0s autopkgtest [15:12:04]: starting date and time: 2024-03-19 15:12:04+0000 0s autopkgtest [15:12:04]: git checkout: 4a1cd702 l/adt_testbed: don't blame the testbed for unsolvable build deps 0s autopkgtest [15:12:04]: host juju-7f2275-prod-proposed-migration-environment-4; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.4d2ovxud/out --timeout-copy=6000 --setup-commands 'sed -i "s/ports.ubuntu.com/ftpmaster.internal/; s/ubuntu-ports/ubuntu/" /etc/apt/sources.list `ls /etc/apt/sources.list.d/*.list 2>/dev/null || true`; ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed --apt-upgrade numpy --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3.12/3.12.2-4build3 db5.3/5.3.28+dfsg2-5build1 openssl/3.0.13-0ubuntu2 readline/8.2-3.1' -- lxd -r lxd-armhf-10.44.124.112 lxd-armhf-10.44.124.112:autopkgtest/ubuntu/noble/armhf 75s autopkgtest [15:13:19]: testbed dpkg architecture: armhf 77s autopkgtest [15:13:21]: testbed apt version: 2.7.12 77s autopkgtest [15:13:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 79s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 80s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 80s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [486 kB] 80s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3777 kB] 81s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [52.7 kB] 81s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf Packages [587 kB] 81s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf c-n-f Metadata [2492 B] 81s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf Packages [1372 B] 81s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf c-n-f Metadata [116 B] 81s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf Packages [3671 kB] 81s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf c-n-f Metadata [7776 B] 81s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf Packages [35.6 kB] 81s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf c-n-f Metadata [116 B] 89s Fetched 8744 kB in 3s (2759 kB/s) 90s Reading package lists... 97s Get:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease [117 kB] 97s Get:2 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf Packages [588 kB] 98s Get:3 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf c-n-f Metadata [2492 B] 98s Get:4 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf Packages [3664 kB] 98s Get:5 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf c-n-f Metadata [7776 B] 98s Get:6 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf Packages [1372 B] 98s Get:7 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf c-n-f Metadata [116 B] 98s Get:8 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf Packages [35.6 kB] 98s Get:9 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf c-n-f Metadata [116 B] 105s Fetched 4416 kB in 2s (2264 kB/s) 106s Reading package lists... 116s tee: /proc/self/fd/2: Permission denied 146s Hit:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease 146s Hit:2 http://ftpmaster.internal/ubuntu noble InRelease 146s Hit:3 http://ports.ubuntu.com/ubuntu-ports noble InRelease 146s Hit:4 http://ftpmaster.internal/ubuntu noble-updates InRelease 146s Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease 146s Hit:6 http://ftpmaster.internal/ubuntu noble-security InRelease 146s Hit:7 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease 146s Hit:8 http://ftpmaster.internal/ubuntu noble-proposed InRelease 146s Hit:9 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease 153s Reading package lists... 153s Reading package lists... 153s Building dependency tree... 153s Reading state information... 155s Calculating upgrade... 156s The following packages were automatically installed and are no longer required: 156s libatasmart4 libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 156s libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 libblockdev-swap3 156s libblockdev-utils3 libblockdev3 libbytesize-common libbytesize1 libnspr4 156s libnss3 libnvme1t64 libpolkit-agent-1-0 libvolume-key1 156s linux-headers-6.8.0-11 python3-lib2to3 156s Use 'apt autoremove' to remove them. 158s The following packages will be REMOVED: 158s libapt-pkg6.0 libarchive13 libatm1 libcurl3-gnutls libcurl4 libdb5.3 libelf1 158s libext2fs2 libgdbm-compat4 libgdbm6 libglib2.0-0 libgnutls30 libgpgme11 158s libhogweed6 libmagic1 libnetplan0 libnettle8 libnpth0 libnvme1 libparted2 158s libpcap0.8 libperl5.38 libpng16-16 libpsl5 libreadline8 libreiserfscore0 158s libssl3 libtirpc3 libudisks2-0 libuv1 linux-headers-6.8.0-11-generic 158s linux-headers-generic python3-distutils udisks2 158s The following NEW packages will be installed: 158s libapt-pkg6.0t64 libarchive13t64 libatm1t64 libcurl3t64-gnutls libcurl4t64 158s libdb5.3t64 libelf1t64 libext2fs2t64 libgdbm-compat4t64 libgdbm6t64 158s libglib2.0-0t64 libgnutls30t64 libgpgme11t64 libhogweed6t64 libmagic1t64 158s libnetplan1 libnettle8t64 libnpth0t64 libnvme1t64 libparted2t64 158s libpcap0.8t64 libperl5.38t64 libpng16-16t64 libpsl5t64 libreadline8t64 158s libreiserfscore0t64 libssl3t64 libtirpc3t64 libuv1t64 xdg-user-dirs 158s The following packages have been kept back: 158s multipath-tools 158s The following packages will be upgraded: 158s apparmor apt apt-utils bind9-dnsutils bind9-host bind9-libs bolt 158s bsdextrautils bsdutils btrfs-progs coreutils cryptsetup-bin curl dbus 158s dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common 158s dbus-user-session debianutils dhcpcd-base dirmngr dmsetup dpkg dpkg-dev 158s e2fsprogs e2fsprogs-l10n eject fdisk file ftp fwupd gawk gcc-13-base 158s gcc-14-base gir1.2-girepository-2.0 gir1.2-glib-2.0 gnupg gnupg-l10n 158s gnupg-utils gpg gpg-agent gpg-wks-client gpgconf gpgsm gpgv groff-base 158s ibverbs-providers inetutils-telnet info initramfs-tools initramfs-tools-bin 158s initramfs-tools-core install-info iproute2 jq keyboxd kmod kpartx 158s krb5-locales libapparmor1 libaudit-common libaudit1 libblkid1 158s libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 158s libblockdev-nvme3 libblockdev-part3 libblockdev-swap3 libblockdev-utils3 158s libblockdev3 libbpf1 libbrotli1 libbsd0 libc-bin libc6 libcap-ng0 158s libcom-err2 libcryptsetup12 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 158s libdpkg-perl libevent-core-2.1-7 libexpat1 libfdisk1 libfido2-1 libftdi1-2 158s libfwupd2 libgcc-s1 libgirepository-1.0-1 libglib2.0-data libgssapi-krb5-2 158s libgudev-1.0-0 libgusb2 libibverbs1 libjcat1 libjq1 libjson-glib-1.0-0 158s libjson-glib-1.0-common libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 158s libldap-common libldap2 liblocale-gettext-perl liblzma5 libmagic-mgc 158s libmbim-glib4 libmbim-proxy libmm-glib0 libmount1 libnghttp2-14 libnsl2 158s libnss-systemd libpam-modules libpam-modules-bin libpam-runtime 158s libpam-systemd libpam0g libplymouth5 libpolkit-agent-1-0 158s libpolkit-gobject-1-0 libpython3-stdlib libpython3.11-minimal 158s libpython3.11-stdlib libpython3.12-minimal libpython3.12-stdlib libqmi-glib5 158s libqmi-proxy libqrtr-glib0 librtmp1 libsasl2-2 libsasl2-modules 158s libsasl2-modules-db libseccomp2 libselinux1 libsemanage-common libsemanage2 158s libslang2 libsmartcols1 libsqlite3-0 libss2 libssh-4 libstdc++6 158s libsystemd-shared libsystemd0 libtext-charwidth-perl libtext-iconv-perl 158s libtirpc-common libudev1 libusb-1.0-0 libuuid1 libvolume-key1 libxml2 158s libxmlb2 libxmuu1 locales logsave lshw lsof man-db mount mtr-tiny 158s netplan-generator netplan.io openssh-client openssh-server 158s openssh-sftp-server openssl parted perl perl-base perl-modules-5.38 158s pinentry-curses plymouth plymouth-theme-ubuntu-text psmisc python-apt-common 158s python3 python3-apt python3-cryptography python3-dbus python3-gdbm 158s python3-gi python3-lib2to3 python3-markupsafe python3-minimal 158s python3-netplan python3-openssl python3-pkg-resources python3-pyrsistent 158s python3-setuptools python3-typing-extensions python3-yaml python3.11 158s python3.11-minimal python3.12 python3.12-minimal readline-common rsync 158s shared-mime-info sudo systemd systemd-dev systemd-resolved systemd-sysv 158s systemd-timesyncd tcpdump telnet tnftp ubuntu-minimal ubuntu-pro-client 158s ubuntu-pro-client-l10n ubuntu-standard udev usb.ids util-linux uuid-runtime 158s vim-common vim-tiny wget xxd xz-utils zlib1g 158s 228 upgraded, 30 newly installed, 34 to remove and 1 not upgraded. 158s Need to get 87.4 MB of archives. 158s After this operation, 8988 kB disk space will be freed. 158s Get:1 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdutils armhf 1:2.39.3-9ubuntu2 [102 kB] 159s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-14-base armhf 14-20240315-1ubuntu1 [47.0 kB] 159s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-s1 armhf 14-20240315-1ubuntu1 [41.5 kB] 159s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++6 armhf 14-20240315-1ubuntu1 [714 kB] 159s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6 armhf 2.39-0ubuntu6 [2827 kB] 159s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssl armhf 3.0.13-0ubuntu2 [975 kB] 159s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g armhf 1:1.3.dfsg-3.1ubuntu1 [49.2 kB] 159s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2build6 [51.3 kB] 159s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12 armhf 3.12.2-4build3 [645 kB] 159s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1 armhf 2.6.1-2 [65.9 kB] 159s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-minimal armhf 3.12.2-4build3 [1942 kB] 159s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-stdlib armhf 3.12.2-4build3 [1906 kB] 159s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-minimal armhf 3.12.2-4build3 [816 kB] 159s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf parted armhf 3.6-3.1build2 [39.4 kB] 159s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblkid1 armhf 2.39.3-9ubuntu2 [160 kB] 159s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libselinux1 armhf 3.5-2build3 [70.5 kB] 159s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-dev all 255.4-1ubuntu5 [103 kB] 159s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-timesyncd armhf 255.4-1ubuntu5 [36.0 kB] 159s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-session-bus-common all 1.14.10-4ubuntu2 [80.3 kB] 159s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit-common all 1:3.1.2-2.1 [5674 B] 159s Get:21 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcap-ng0 armhf 0.8.4-2build1 [13.5 kB] 159s Get:22 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit1 armhf 1:3.1.2-2.1 [44.3 kB] 160s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam0g armhf 1.5.3-5ubuntu3 [62.0 kB] 160s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblzma5 armhf 5.6.0-0.2 [117 kB] 160s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap2 armhf 2.6.7+dfsg-1~exp1ubuntu6 [172 kB] 160s Get:26 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-0t64 armhf 2.79.3-3ubuntu5 [1414 kB] 160s Get:27 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libvolume-key1 armhf 0.3.12-7build1 [38.4 kB] 160s Get:28 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgpgme11t64 armhf 1.18.0-4.1ubuntu3 [120 kB] 160s Get:29 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjcat1 armhf 0.2.0-2build2 [30.4 kB] 160s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libarchive13t64 armhf 3.7.2-1.1ubuntu1 [330 kB] 160s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fwupd armhf 1.9.15-1 [4349 kB] 160s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client-l10n armhf 31.2 [19.4 kB] 160s Get:33 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client armhf 31.2 [216 kB] 160s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11 armhf 3.11.8-1build4 [589 kB] 160s Get:35 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11-minimal armhf 3.11.8-1build4 [1795 kB] 160s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-minimal armhf 3.11.8-1build4 [826 kB] 160s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-4ubuntu4 [19.2 kB] 160s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-iconv-perl armhf 1.7-8build2 [12.7 kB] 160s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-charwidth-perl armhf 0.04-11build2 [8962 B] 160s Get:40 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-base armhf 5.38.2-3.2 [1671 kB] 160s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblocale-gettext-perl armhf 1.07-6ubuntu3 [15.0 kB] 160s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-modules-5.38 all 5.38.2-3.2 [3110 kB] 160s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gdbm armhf 3.12.2-3ubuntu2 [17.1 kB] 160s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf man-db armhf 2.12.0-3build4 [1196 kB] 160s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm6t64 armhf 1.23-5.1 [30.3 kB] 160s Get:46 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm-compat4t64 armhf 1.23-5.1 [6208 B] 160s Get:47 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libperl5.38t64 armhf 5.38.2-3.2 [4101 kB] 160s Get:48 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl armhf 5.38.2-3.2 [231 kB] 160s Get:49 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdb5.3t64 armhf 5.3.28+dfsg2-5build1 [661 kB] 160s Get:50 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-stdlib armhf 3.11.8-1build4 [1810 kB] 160s Get:51 http://ftpmaster.internal/ubuntu noble-proposed/main armhf keyboxd armhf 2.4.4-2ubuntu15 [111 kB] 160s Get:52 http://ftpmaster.internal/ubuntu noble/main armhf libnpth0t64 armhf 1.6-3.1 [6940 B] 161s Get:53 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgv armhf 2.4.4-2ubuntu15 [224 kB] 161s Get:54 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg armhf 2.4.4-2ubuntu15 [524 kB] 161s Get:55 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-wks-client armhf 2.4.4-2ubuntu15 [87.4 kB] 161s Get:56 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-utils armhf 2.4.4-2ubuntu15 [158 kB] 161s Get:57 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-agent armhf 2.4.4-2ubuntu15 [235 kB] 161s Get:58 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgsm armhf 2.4.4-2ubuntu15 [241 kB] 161s Get:59 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreadline8t64 armhf 8.2-3.1 [129 kB] 161s Get:60 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gawk armhf 1:5.2.1-2build2 [415 kB] 161s Get:61 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fdisk armhf 2.39.3-9ubuntu2 [135 kB] 161s Get:62 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgconf armhf 2.4.4-2ubuntu15 [115 kB] 161s Get:63 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dirmngr armhf 2.4.4-2ubuntu15 [346 kB] 161s Get:64 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg all 2.4.4-2ubuntu15 [359 kB] 161s Get:65 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-apt armhf 2.7.6build1 [162 kB] 161s Get:66 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt-utils armhf 2.7.13ubuntu1 [210 kB] 161s Get:67 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapt-pkg6.0t64 armhf 2.7.13ubuntu1 [986 kB] 161s Get:68 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnettle8t64 armhf 3.9.1-2.2 [187 kB] 161s Get:69 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libhogweed6t64 armhf 3.9.1-2.2 [187 kB] 161s Get:70 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgnutls30t64 armhf 3.8.3-1.1ubuntu2 [1046 kB] 161s Get:71 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt armhf 2.7.13ubuntu1 [1367 kB] 161s Get:72 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl3t64-gnutls armhf 8.5.0-2ubuntu7 [290 kB] 161s Get:73 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfwupd2 armhf 1.9.15-1 [123 kB] 161s Get:74 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpsl5t64 armhf 0.21.2-1.1 [55.7 kB] 161s Get:75 http://ftpmaster.internal/ubuntu noble-proposed/main armhf wget armhf 1.21.4-1ubuntu2 [317 kB] 161s Get:76 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tnftp armhf 20230507-2build1 [98.6 kB] 161s Get:77 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpcap0.8t64 armhf 1.10.4-4.1ubuntu1 [137 kB] 161s Get:78 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tcpdump armhf 4.99.4-3ubuntu2 [425 kB] 161s Get:79 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd-shared armhf 255.4-1ubuntu5 [2009 kB] 161s Get:80 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-resolved armhf 255.4-1ubuntu5 [289 kB] 161s Get:81 http://ftpmaster.internal/ubuntu noble-proposed/main armhf sudo armhf 1.9.15p5-3ubuntu3 [936 kB] 161s Get:82 http://ftpmaster.internal/ubuntu noble-proposed/main armhf rsync armhf 3.2.7-1build1 [413 kB] 161s Get:83 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-cryptography armhf 41.0.7-4build2 [788 kB] 161s Get:84 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-sftp-server armhf 1:9.6p1-3ubuntu10 [35.5 kB] 161s Get:85 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-client armhf 1:9.6p1-3ubuntu10 [890 kB] 161s Get:86 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-server armhf 1:9.6p1-3ubuntu10 [503 kB] 161s Get:87 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssl3t64 armhf 3.0.13-0ubuntu2 [1558 kB] 161s Get:88 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libudev1 armhf 255.4-1ubuntu5 [166 kB] 161s Get:89 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd armhf 255.4-1ubuntu5 [3502 kB] 162s Get:90 http://ftpmaster.internal/ubuntu noble-proposed/main armhf udev armhf 255.4-1ubuntu5 [1852 kB] 162s Get:91 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-sysv armhf 255.4-1ubuntu5 [11.9 kB] 162s Get:92 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnss-systemd armhf 255.4-1ubuntu5 [148 kB] 162s Get:93 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-systemd armhf 255.4-1ubuntu5 [216 kB] 162s Get:94 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd0 armhf 255.4-1ubuntu5 [410 kB] 162s Get:95 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules-bin armhf 1.5.3-5ubuntu3 [47.0 kB] 162s Get:96 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules armhf 1.5.3-5ubuntu3 [261 kB] 162s Get:97 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-runtime all 1.5.3-5ubuntu3 [40.8 kB] 162s Get:98 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-user-session armhf 1.14.10-4ubuntu2 [9962 B] 162s Get:99 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapparmor1 armhf 4.0.0-beta3-0ubuntu2 [45.0 kB] 162s Get:100 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-bin armhf 1.14.10-4ubuntu2 [37.1 kB] 162s Get:101 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-system-bus-common all 1.14.10-4ubuntu2 [81.5 kB] 162s Get:102 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus armhf 1.14.10-4ubuntu2 [28.1 kB] 162s Get:103 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-daemon armhf 1.14.10-4ubuntu2 [109 kB] 162s Get:104 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdbus-1-3 armhf 1.14.10-4ubuntu2 [190 kB] 162s Get:105 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kmod armhf 31+20240202-2ubuntu4 [91.8 kB] 162s Get:106 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkmod2 armhf 31+20240202-2ubuntu4 [44.9 kB] 162s Get:107 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmount1 armhf 2.39.3-9ubuntu2 [171 kB] 162s Get:108 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libseccomp2 armhf 2.5.5-1ubuntu2 [49.5 kB] 162s Get:109 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuuid1 armhf 2.39.3-9ubuntu2 [34.4 kB] 162s Get:110 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcryptsetup12 armhf 2:2.7.0-1ubuntu2 [238 kB] 162s Get:111 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfdisk1 armhf 2.39.3-9ubuntu2 [196 kB] 162s Get:112 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mount armhf 2.39.3-9ubuntu2 [134 kB] 162s Get:113 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdevmapper1.02.1 armhf 2:1.02.185-3ubuntu2 [135 kB] 162s Get:114 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libparted2t64 armhf 3.6-3.1build2 [143 kB] 162s Get:115 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsqlite3-0 armhf 3.45.1-1ubuntu1 [599 kB] 162s Get:116 http://ftpmaster.internal/ubuntu noble-proposed/main armhf pinentry-curses armhf 1.2.1-3ubuntu4 [36.7 kB] 162s Get:117 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsmartcols1 armhf 2.39.3-9ubuntu2 [117 kB] 162s Get:118 http://ftpmaster.internal/ubuntu noble-proposed/main armhf readline-common all 8.2-3.1 [56.4 kB] 162s Get:119 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-yaml armhf 6.0.1-2build1 [117 kB] 162s Get:120 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python-apt-common all 2.7.6build1 [19.8 kB] 162s Get:121 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-setuptools all 68.1.2-2ubuntu1 [396 kB] 162s Get:122 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pkg-resources all 68.1.2-2ubuntu1 [168 kB] 162s Get:123 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg armhf 1.22.6ubuntu4 [1229 kB] 163s Get:124 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-minimal armhf 3.12.2-0ubuntu1 [27.1 kB] 163s Get:125 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3 armhf 3.12.2-0ubuntu1 [24.1 kB] 163s Get:126 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-stdlib armhf 3.12.2-0ubuntu1 [9802 B] 163s Get:127 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdextrautils armhf 2.39.3-9ubuntu2 [78.7 kB] 163s Get:128 http://ftpmaster.internal/ubuntu noble-proposed/main armhf groff-base armhf 1.23.0-3build1 [946 kB] 163s Get:129 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-2 armhf 2.1.28+dfsg1-4ubuntu4 [49.7 kB] 163s Get:130 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-common all 1.8.0-2build1 [4210 B] 163s Get:131 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-0 armhf 1.8.0-2build1 [61.2 kB] 163s Get:132 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxml2 armhf 2.9.14+dfsg-1.3ubuntu2 [595 kB] 163s Get:133 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgudev-1.0-0 armhf 1:238-3ubuntu2 [13.6 kB] 163s Get:134 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libusb-1.0-0 armhf 2:1.0.27-1 [48.7 kB] 163s Get:135 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgusb2 armhf 0.4.8-1build1 [34.6 kB] 163s Get:136 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-proxy armhf 1.31.2-0ubuntu2 [5748 B] 163s Get:137 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-glib4 armhf 1.31.2-0ubuntu2 [216 kB] 163s Get:138 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmm-glib0 armhf 1.23.4-0ubuntu1 [214 kB] 163s Get:139 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-agent-1-0 armhf 124-1ubuntu1 [15.3 kB] 163s Get:140 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-gobject-1-0 armhf 124-1ubuntu1 [44.1 kB] 163s Get:141 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-proxy armhf 1.35.2-0ubuntu1 [5732 B] 163s Get:142 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqrtr-glib0 armhf 1.2.2-1ubuntu3 [15.4 kB] 163s Get:143 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-glib5 armhf 1.35.2-0ubuntu1 [908 kB] 163s Get:144 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmlb2 armhf 0.3.15-1build1 [57.0 kB] 163s Get:145 http://ftpmaster.internal/ubuntu noble-proposed/main armhf shared-mime-info armhf 2.4-1build1 [470 kB] 163s Get:146 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbrotli1 armhf 1.1.0-2build1 [319 kB] 163s Get:147 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgssapi-krb5-2 armhf 1.20.1-5.1build3 [119 kB] 163s Get:148 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5-3 armhf 1.20.1-5.1build3 [321 kB] 163s Get:149 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5support0 armhf 1.20.1-5.1build3 [31.4 kB] 163s Get:150 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libk5crypto3 armhf 1.20.1-5.1build3 [78.6 kB] 163s Get:151 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcom-err2 armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 163s Get:152 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnghttp2-14 armhf 1.59.0-1build1 [68.1 kB] 163s Get:153 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssh-4 armhf 0.10.6-2build1 [169 kB] 163s Get:154 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libibverbs1 armhf 50.0-2build1 [57.9 kB] 163s Get:155 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfido2-1 armhf 1.14.0-1build1 [75.8 kB] 163s Get:156 http://ftpmaster.internal/ubuntu noble-proposed/main armhf coreutils armhf 9.4-3ubuntu3 [1280 kB] 163s Get:157 http://ftpmaster.internal/ubuntu noble-proposed/main armhf debianutils armhf 5.17 [88.9 kB] 163s Get:158 http://ftpmaster.internal/ubuntu noble-proposed/main armhf util-linux armhf 2.39.3-9ubuntu2 [1216 kB] 163s Get:159 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-bin armhf 2.39-0ubuntu6 [530 kB] 163s Get:160 http://ftpmaster.internal/ubuntu noble-proposed/main armhf curl armhf 8.5.0-2ubuntu7 [219 kB] 163s Get:161 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl4t64 armhf 8.5.0-2ubuntu7 [296 kB] 163s Get:162 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbpf1 armhf 1:1.3.0-2build1 [146 kB] 163s Get:163 http://ftpmaster.internal/ubuntu noble-proposed/main armhf iproute2 armhf 6.1.0-1ubuntu5 [1060 kB] 163s Get:164 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libelf1t64 armhf 0.190-1.1build2 [49.9 kB] 163s Get:165 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lsof armhf 4.95.0-1build2 [248 kB] 163s Get:166 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnsl2 armhf 1.3.0-3build2 [36.5 kB] 163s Get:167 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc-common all 1.3.4+ds-1.1 [8018 B] 163s Get:168 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc3t64 armhf 1.3.4+ds-1.1 [73.2 kB] 163s Get:169 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-utils3 armhf 3.1.0-1build1 [16.9 kB] 163s Get:170 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-fs3 armhf 3.1.0-1build1 [34.4 kB] 163s Get:171 http://ftpmaster.internal/ubuntu noble-proposed/main armhf logsave armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 163s Get:172 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-minimal armhf 1.536build1 [10.7 kB] 163s Get:173 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools all 0.142ubuntu22 [9056 B] 163s Get:174 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-core all 0.142ubuntu22 [50.0 kB] 163s Get:175 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs-l10n all 1.47.0-2.4~exp1ubuntu2 [5996 B] 163s Get:176 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libext2fs2t64 armhf 1.47.0-2.4~exp1ubuntu2 [201 kB] 163s Get:177 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs armhf 1.47.0-2.4~exp1ubuntu2 [571 kB] 163s Get:178 http://ftpmaster.internal/ubuntu noble-proposed/main armhf btrfs-progs armhf 6.6.3-1.1build1 [852 kB] 163s Get:179 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dhcpcd-base armhf 1:10.0.6-1ubuntu2 [186 kB] 163s Get:180 http://ftpmaster.internal/ubuntu noble-proposed/main armhf eject armhf 2.39.3-9ubuntu2 [43.2 kB] 163s Get:181 http://ftpmaster.internal/ubuntu noble-proposed/main armhf locales all 2.39-0ubuntu6 [4232 kB] 164s Get:182 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnetplan1 armhf 1.0-1 [113 kB] 164s Get:183 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-netplan armhf 1.0-1 [22.5 kB] 164s Get:184 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan-generator armhf 1.0-1 [58.7 kB] 164s Get:185 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dbus armhf 1.3.2-5build2 [94.7 kB] 164s Get:186 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan.io armhf 1.0-1 [64.3 kB] 164s Get:187 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-tiny armhf 2:9.1.0016-1ubuntu5 [665 kB] 164s Get:188 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-common all 2:9.1.0016-1ubuntu5 [385 kB] 164s Get:189 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-bin armhf 0.142ubuntu22 [20.1 kB] 164s Get:190 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreiserfscore0t64 armhf 1:3.6.27-7.1 [66.2 kB] 164s Get:191 http://ftpmaster.internal/ubuntu noble-proposed/main armhf file armhf 1:5.45-3 [21.1 kB] 164s Get:192 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic-mgc armhf 1:5.45-3 [307 kB] 164s Get:193 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic1t64 armhf 1:5.45-3 [81.4 kB] 164s Get:194 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-nvme3 armhf 3.1.0-1build1 [17.5 kB] 164s Get:195 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnvme1t64 armhf 1.8-3 [67.5 kB] 164s Get:196 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libplymouth5 armhf 24.004.60-1ubuntu5 [140 kB] 164s Get:197 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpng16-16t64 armhf 1.6.43-3 [166 kB] 164s Get:198 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-host armhf 1:9.18.24-0ubuntu3 [47.4 kB] 164s Get:199 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-dnsutils armhf 1:9.18.24-0ubuntu3 [149 kB] 164s Get:200 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-libs armhf 1:9.18.24-0ubuntu3 [1148 kB] 164s Get:201 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuv1t64 armhf 1.48.0-1.1 [82.9 kB] 164s Get:202 http://ftpmaster.internal/ubuntu noble-proposed/main armhf uuid-runtime armhf 2.39.3-9ubuntu2 [41.7 kB] 164s Get:203 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdebconfclient0 armhf 0.271ubuntu2 [10.8 kB] 164s Get:204 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage-common all 3.5-1build4 [10.1 kB] 164s Get:205 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage2 armhf 3.5-1build4 [84.5 kB] 164s Get:206 http://ftpmaster.internal/ubuntu noble-proposed/main armhf install-info armhf 7.1-3build1 [60.5 kB] 164s Get:207 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-base armhf 13.2.0-19ubuntu1 [47.7 kB] 164s Get:208 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libss2 armhf 1.47.0-2.4~exp1ubuntu2 [14.7 kB] 164s Get:209 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dmsetup armhf 2:1.02.185-3ubuntu2 [81.1 kB] 164s Get:210 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-girepository-2.0 armhf 1.79.1-1ubuntu6 [24.8 kB] 164s Get:211 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-glib-2.0 armhf 2.79.3-3ubuntu5 [182 kB] 164s Get:212 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgirepository-1.0-1 armhf 1.79.1-1ubuntu6 [106 kB] 164s Get:213 http://ftpmaster.internal/ubuntu noble-proposed/main armhf krb5-locales all 1.20.1-5.1build3 [13.8 kB] 164s Get:214 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbsd0 armhf 0.12.1-1 [36.6 kB] 164s Get:215 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-data all 2.79.3-3ubuntu5 [46.6 kB] 165s Get:216 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libslang2 armhf 2.3.3-3build1 [478 kB] 165s Get:217 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gi armhf 3.47.0-3build1 [219 kB] 165s Get:218 http://ftpmaster.internal/ubuntu noble/main armhf xdg-user-dirs armhf 0.18-1 [17.3 kB] 165s Get:219 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xxd armhf 2:9.1.0016-1ubuntu5 [62.4 kB] 165s Get:220 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apparmor armhf 4.0.0-beta3-0ubuntu2 [562 kB] 165s Get:221 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ftp all 20230507-2build1 [4724 B] 165s Get:222 http://ftpmaster.internal/ubuntu noble-proposed/main armhf inetutils-telnet armhf 2:2.5-3ubuntu3 [90.7 kB] 165s Get:223 http://ftpmaster.internal/ubuntu noble-proposed/main armhf info armhf 7.1-3build1 [127 kB] 165s Get:224 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmuu1 armhf 2:1.1.3-3build1 [8004 B] 165s Get:225 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lshw armhf 02.19.git.2021.06.19.996aaad9c7-2build2 [310 kB] 165s Get:226 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mtr-tiny armhf 0.95-1.1build1 [51.7 kB] 165s Get:227 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth-theme-ubuntu-text armhf 24.004.60-1ubuntu5 [9826 B] 165s Get:228 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth armhf 24.004.60-1ubuntu5 [143 kB] 165s Get:229 http://ftpmaster.internal/ubuntu noble-proposed/main armhf psmisc armhf 23.7-1 [176 kB] 165s Get:230 http://ftpmaster.internal/ubuntu noble-proposed/main armhf telnet all 0.17+2.5-3ubuntu3 [3682 B] 165s Get:231 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xz-utils armhf 5.6.0-0.2 [271 kB] 165s Get:232 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-standard armhf 1.536build1 [10.7 kB] 165s Get:233 http://ftpmaster.internal/ubuntu noble-proposed/main armhf usb.ids all 2024.03.18-1 [223 kB] 165s Get:234 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bolt armhf 0.9.6-2build1 [138 kB] 165s Get:235 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cryptsetup-bin armhf 2:2.7.0-1ubuntu2 [214 kB] 165s Get:236 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg-dev all 1.22.6ubuntu4 [1074 kB] 165s Get:237 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdpkg-perl all 1.22.6ubuntu4 [268 kB] 165s Get:238 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-l10n all 2.4.4-2ubuntu15 [65.8 kB] 165s Get:239 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ibverbs-providers armhf 50.0-2build1 [27.4 kB] 165s Get:240 http://ftpmaster.internal/ubuntu noble-proposed/main armhf jq armhf 1.7.1-3 [65.2 kB] 165s Get:241 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjq1 armhf 1.7.1-3 [156 kB] 165s Get:242 http://ftpmaster.internal/ubuntu noble/main armhf libatm1t64 armhf 1:2.5.1-5.1 [20.0 kB] 165s Get:243 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-crypto3 armhf 3.1.0-1build1 [20.3 kB] 165s Get:244 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-loop3 armhf 3.1.0-1build1 [6502 B] 165s Get:245 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-mdraid3 armhf 3.1.0-1build1 [13.3 kB] 165s Get:246 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-part3 armhf 3.1.0-1build1 [16.4 kB] 165s Get:247 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-swap3 armhf 3.1.0-1build1 [8894 B] 165s Get:248 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev3 armhf 3.1.0-1build1 [42.9 kB] 165s Get:249 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libevent-core-2.1-7 armhf 2.1.12-stable-9build1 [82.3 kB] 165s Get:250 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libftdi1-2 armhf 1.5-6build4 [25.7 kB] 165s Get:251 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap-common all 2.6.7+dfsg-1~exp1ubuntu6 [31.3 kB] 165s Get:252 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules armhf 2.1.28+dfsg1-4ubuntu4 [61.4 kB] 165s Get:253 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-lib2to3 all 3.12.2-3ubuntu2 [79.3 kB] 165s Get:254 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-markupsafe armhf 2.1.5-1build1 [12.1 kB] 165s Get:255 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-openssl all 24.0.0-4 [47.9 kB] 165s Get:256 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pyrsistent armhf 0.20.0-1build1 [53.0 kB] 165s Get:257 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-typing-extensions all 4.10.0-1 [60.7 kB] 165s Get:258 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kpartx armhf 0.9.4-5ubuntu4 [31.4 kB] 169s Preconfiguring packages ... 169s Fetched 87.4 MB in 7s (12.1 MB/s) 169s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 169s Preparing to unpack .../bsdutils_1%3a2.39.3-9ubuntu2_armhf.deb ... 169s Unpacking bsdutils (1:2.39.3-9ubuntu2) over (1:2.39.3-6ubuntu2) ... 169s Setting up bsdutils (1:2.39.3-9ubuntu2) ... 170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 170s Preparing to unpack .../gcc-14-base_14-20240315-1ubuntu1_armhf.deb ... 170s Unpacking gcc-14-base:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 170s Setting up gcc-14-base:armhf (14-20240315-1ubuntu1) ... 170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 170s Preparing to unpack .../libgcc-s1_14-20240315-1ubuntu1_armhf.deb ... 170s Unpacking libgcc-s1:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 170s Setting up libgcc-s1:armhf (14-20240315-1ubuntu1) ... 170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 170s Preparing to unpack .../libstdc++6_14-20240315-1ubuntu1_armhf.deb ... 170s Unpacking libstdc++6:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 170s Setting up libstdc++6:armhf (14-20240315-1ubuntu1) ... 170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 170s Preparing to unpack .../libc6_2.39-0ubuntu6_armhf.deb ... 171s Unpacking libc6:armhf (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 171s Setting up libc6:armhf (2.39-0ubuntu6) ... 172s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 172s Preparing to unpack .../openssl_3.0.13-0ubuntu2_armhf.deb ... 172s Unpacking openssl (3.0.13-0ubuntu2) over (3.0.10-1ubuntu4) ... 173s Preparing to unpack .../zlib1g_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 173s Unpacking zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) over (1:1.3.dfsg-3ubuntu1) ... 173s Setting up zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) ... 173s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 173s Preparing to unpack .../0-librtmp1_2.4+20151223.gitfa8646d.1-2build6_armhf.deb ... 173s Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) over (2.4+20151223.gitfa8646d.1-2build4) ... 173s Preparing to unpack .../1-python3.12_3.12.2-4build3_armhf.deb ... 173s Unpacking python3.12 (3.12.2-4build3) over (3.12.2-1) ... 174s Preparing to unpack .../2-libexpat1_2.6.1-2_armhf.deb ... 174s Unpacking libexpat1:armhf (2.6.1-2) over (2.6.0-1) ... 174s Preparing to unpack .../3-python3.12-minimal_3.12.2-4build3_armhf.deb ... 174s Unpacking python3.12-minimal (3.12.2-4build3) over (3.12.2-1) ... 174s Preparing to unpack .../4-libpython3.12-stdlib_3.12.2-4build3_armhf.deb ... 174s Unpacking libpython3.12-stdlib:armhf (3.12.2-4build3) over (3.12.2-1) ... 175s Preparing to unpack .../5-libpython3.12-minimal_3.12.2-4build3_armhf.deb ... 175s Unpacking libpython3.12-minimal:armhf (3.12.2-4build3) over (3.12.2-1) ... 176s Preparing to unpack .../6-parted_3.6-3.1build2_armhf.deb ... 176s Unpacking parted (3.6-3.1build2) over (3.6-3) ... 176s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 176s Removing libparted2:armhf (3.6-3) ... 176s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 176s Preparing to unpack .../libblkid1_2.39.3-9ubuntu2_armhf.deb ... 176s Unpacking libblkid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 176s Setting up libblkid1:armhf (2.39.3-9ubuntu2) ... 176s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 176s Preparing to unpack .../libselinux1_3.5-2build3_armhf.deb ... 176s Unpacking libselinux1:armhf (3.5-2build3) over (3.5-2build1) ... 176s Setting up libselinux1:armhf (3.5-2build3) ... 176s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 176s Preparing to unpack .../systemd-dev_255.4-1ubuntu5_all.deb ... 176s Unpacking systemd-dev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 177s Preparing to unpack .../systemd-timesyncd_255.4-1ubuntu5_armhf.deb ... 177s Unpacking systemd-timesyncd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 177s Preparing to unpack .../dbus-session-bus-common_1.14.10-4ubuntu2_all.deb ... 177s Unpacking dbus-session-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 177s Preparing to unpack .../libaudit-common_1%3a3.1.2-2.1_all.deb ... 177s Unpacking libaudit-common (1:3.1.2-2.1) over (1:3.1.2-2) ... 177s Setting up libaudit-common (1:3.1.2-2.1) ... 177s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 177s Preparing to unpack .../libcap-ng0_0.8.4-2build1_armhf.deb ... 177s Unpacking libcap-ng0:armhf (0.8.4-2build1) over (0.8.4-2) ... 177s Setting up libcap-ng0:armhf (0.8.4-2build1) ... 177s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 177s Preparing to unpack .../libaudit1_1%3a3.1.2-2.1_armhf.deb ... 177s Unpacking libaudit1:armhf (1:3.1.2-2.1) over (1:3.1.2-2) ... 178s Setting up libaudit1:armhf (1:3.1.2-2.1) ... 178s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 178s Preparing to unpack .../libpam0g_1.5.3-5ubuntu3_armhf.deb ... 178s Unpacking libpam0g:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 178s Setting up libpam0g:armhf (1.5.3-5ubuntu3) ... 178s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 178s Preparing to unpack .../liblzma5_5.6.0-0.2_armhf.deb ... 178s Unpacking liblzma5:armhf (5.6.0-0.2) over (5.4.5-0.3) ... 178s Setting up liblzma5:armhf (5.6.0-0.2) ... 178s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 178s Preparing to unpack .../libldap2_2.6.7+dfsg-1~exp1ubuntu6_armhf.deb ... 178s Unpacking libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 179s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 179s Removing udisks2 (2.10.1-1ubuntu2) ... 179s dpkg: libglib2.0-0:armhf: dependency problems, but removing anyway as you requested: 179s shared-mime-info depends on libglib2.0-0 (>= 2.75.3). 179s python3-gi depends on libglib2.0-0 (>= 2.77.0). 179s python3-dbus depends on libglib2.0-0 (>= 2.16.0). 179s netplan.io depends on libglib2.0-0 (>= 2.70.0). 179s netplan-generator depends on libglib2.0-0 (>= 2.70.0). 179s libxmlb2:armhf depends on libglib2.0-0 (>= 2.54.0). 179s libvolume-key1:armhf depends on libglib2.0-0 (>= 2.18.0). 179s libudisks2-0:armhf depends on libglib2.0-0 (>= 2.75.3). 179s libqrtr-glib0:armhf depends on libglib2.0-0 (>= 2.56). 179s libqmi-proxy depends on libglib2.0-0 (>= 2.30.0). 179s libqmi-glib5:armhf depends on libglib2.0-0 (>= 2.54.0). 179s libpolkit-gobject-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 179s libpolkit-agent-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 179s libnetplan0:armhf depends on libglib2.0-0 (>= 2.75.3). 179s libmm-glib0:armhf depends on libglib2.0-0 (>= 2.62.0). 179s libmbim-proxy depends on libglib2.0-0 (>= 2.56). 179s libmbim-glib4:armhf depends on libglib2.0-0 (>= 2.56). 179s libjson-glib-1.0-0:armhf depends on libglib2.0-0 (>= 2.75.3). 179s libjcat1:armhf depends on libglib2.0-0 (>= 2.75.3). 179s libgusb2:armhf depends on libglib2.0-0 (>= 2.75.3). 179s libgudev-1.0-0:armhf depends on libglib2.0-0 (>= 2.38.0). 179s libgirepository-1.0-1:armhf depends on libglib2.0-0 (>= 2.79.0). 179s libfwupd2:armhf depends on libglib2.0-0 (>= 2.79.0). 179s libblockdev3:armhf depends on libglib2.0-0 (>= 2.42.2). 179s libblockdev-utils3:armhf depends on libglib2.0-0 (>= 2.75.3). 179s libblockdev-swap3:armhf depends on libglib2.0-0 (>= 2.42.2). 179s libblockdev-part3:armhf depends on libglib2.0-0 (>= 2.42.2). 179s libblockdev-nvme3:armhf depends on libglib2.0-0 (>= 2.42.2). 179s libblockdev-mdraid3:armhf depends on libglib2.0-0 (>= 2.42.2). 179s libblockdev-loop3:armhf depends on libglib2.0-0 (>= 2.42.2). 179s libblockdev-fs3:armhf depends on libglib2.0-0 (>= 2.42.2). 179s libblockdev-crypto3:armhf depends on libglib2.0-0 (>= 2.42.2). 179s gir1.2-glib-2.0:armhf depends on libglib2.0-0 (= 2.79.2-1~ubuntu1). 179s fwupd depends on libglib2.0-0 (>= 2.79.0). 179s bolt depends on libglib2.0-0 (>= 2.56.0). 179s 179s Removing libglib2.0-0:armhf (2.79.2-1~ubuntu1) ... 179s Selecting previously unselected package libglib2.0-0t64:armhf. 179s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58560 files and directories currently installed.) 179s Preparing to unpack .../libglib2.0-0t64_2.79.3-3ubuntu5_armhf.deb ... 179s libglib2.0-0t64.preinst: Removing /var/lib/dpkg/info/libglib2.0-0:armhf.postrm to avoid loss of /usr/share/glib-2.0/schemas/gschemas.compiled... 179s removed '/var/lib/dpkg/info/libglib2.0-0:armhf.postrm' 179s Unpacking libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 180s Preparing to unpack .../libvolume-key1_0.3.12-7build1_armhf.deb ... 180s Unpacking libvolume-key1:armhf (0.3.12-7build1) over (0.3.12-5build2) ... 180s dpkg: libgpgme11:armhf: dependency problems, but removing anyway as you requested: 180s libjcat1:armhf depends on libgpgme11 (>= 1.2.0). 180s 180s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58585 files and directories currently installed.) 180s Removing libgpgme11:armhf (1.18.0-4ubuntu1) ... 180s Selecting previously unselected package libgpgme11t64:armhf. 180s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58579 files and directories currently installed.) 180s Preparing to unpack .../libgpgme11t64_1.18.0-4.1ubuntu3_armhf.deb ... 180s Unpacking libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 180s Preparing to unpack .../libjcat1_0.2.0-2build2_armhf.deb ... 180s Unpacking libjcat1:armhf (0.2.0-2build2) over (0.2.0-2) ... 180s dpkg: libarchive13:armhf: dependency problems, but removing anyway as you requested: 180s fwupd depends on libarchive13 (>= 3.2.1). 180s 180s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58586 files and directories currently installed.) 180s Removing libarchive13:armhf (3.7.2-1ubuntu2) ... 180s Selecting previously unselected package libarchive13t64:armhf. 180s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58580 files and directories currently installed.) 180s Preparing to unpack .../00-libarchive13t64_3.7.2-1.1ubuntu1_armhf.deb ... 180s Unpacking libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 180s Preparing to unpack .../01-fwupd_1.9.15-1_armhf.deb ... 181s Unpacking fwupd (1.9.15-1) over (1.9.14-1) ... 181s Preparing to unpack .../02-ubuntu-pro-client-l10n_31.2_armhf.deb ... 181s Unpacking ubuntu-pro-client-l10n (31.2) over (31.1) ... 181s Preparing to unpack .../03-ubuntu-pro-client_31.2_armhf.deb ... 182s Unpacking ubuntu-pro-client (31.2) over (31.1) ... 182s Preparing to unpack .../04-python3.11_3.11.8-1build4_armhf.deb ... 182s Unpacking python3.11 (3.11.8-1build4) over (3.11.8-1) ... 182s Preparing to unpack .../05-python3.11-minimal_3.11.8-1build4_armhf.deb ... 182s Unpacking python3.11-minimal (3.11.8-1build4) over (3.11.8-1) ... 182s Preparing to unpack .../06-libpython3.11-minimal_3.11.8-1build4_armhf.deb ... 183s Unpacking libpython3.11-minimal:armhf (3.11.8-1build4) over (3.11.8-1) ... 183s Preparing to unpack .../07-libsasl2-modules-db_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 183s Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 183s Preparing to unpack .../08-libtext-iconv-perl_1.7-8build2_armhf.deb ... 183s Unpacking libtext-iconv-perl:armhf (1.7-8build2) over (1.7-8build1) ... 183s Preparing to unpack .../09-libtext-charwidth-perl_0.04-11build2_armhf.deb ... 183s Unpacking libtext-charwidth-perl:armhf (0.04-11build2) over (0.04-11build1) ... 183s Preparing to unpack .../10-perl-base_5.38.2-3.2_armhf.deb ... 183s Unpacking perl-base (5.38.2-3.2) over (5.38.2-3) ... 184s Setting up perl-base (5.38.2-3.2) ... 184s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 184s Preparing to unpack .../liblocale-gettext-perl_1.07-6ubuntu3_armhf.deb ... 184s Unpacking liblocale-gettext-perl (1.07-6ubuntu3) over (1.07-6build1) ... 184s Preparing to unpack .../perl-modules-5.38_5.38.2-3.2_all.deb ... 184s Unpacking perl-modules-5.38 (5.38.2-3.2) over (5.38.2-3) ... 185s Preparing to unpack .../python3-gdbm_3.12.2-3ubuntu2_armhf.deb ... 185s Unpacking python3-gdbm:armhf (3.12.2-3ubuntu2) over (3.11.5-1) ... 185s Preparing to unpack .../man-db_2.12.0-3build4_armhf.deb ... 185s Unpacking man-db (2.12.0-3build4) over (2.12.0-3) ... 185s dpkg: libgdbm-compat4:armhf: dependency problems, but removing anyway as you requested: 185s libperl5.38:armhf depends on libgdbm-compat4 (>= 1.18-3). 185s 186s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 186s Removing libgdbm-compat4:armhf (1.23-5) ... 186s dpkg: libgdbm6:armhf: dependency problems, but removing anyway as you requested: 186s libperl5.38:armhf depends on libgdbm6 (>= 1.21). 186s 186s Removing libgdbm6:armhf (1.23-5) ... 186s Selecting previously unselected package libgdbm6t64:armhf. 186s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58577 files and directories currently installed.) 186s Preparing to unpack .../libgdbm6t64_1.23-5.1_armhf.deb ... 186s Unpacking libgdbm6t64:armhf (1.23-5.1) ... 186s Selecting previously unselected package libgdbm-compat4t64:armhf. 186s Preparing to unpack .../libgdbm-compat4t64_1.23-5.1_armhf.deb ... 186s Unpacking libgdbm-compat4t64:armhf (1.23-5.1) ... 186s dpkg: libperl5.38:armhf: dependency problems, but removing anyway as you requested: 186s perl depends on libperl5.38 (= 5.38.2-3). 186s 186s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 186s Removing libperl5.38:armhf (5.38.2-3) ... 186s Selecting previously unselected package libperl5.38t64:armhf. 186s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58070 files and directories currently installed.) 186s Preparing to unpack .../libperl5.38t64_5.38.2-3.2_armhf.deb ... 186s Unpacking libperl5.38t64:armhf (5.38.2-3.2) ... 187s Preparing to unpack .../perl_5.38.2-3.2_armhf.deb ... 187s Unpacking perl (5.38.2-3.2) over (5.38.2-3) ... 187s dpkg: libdb5.3:armhf: dependency problems, but removing anyway as you requested: 187s libpython3.11-stdlib:armhf depends on libdb5.3. 187s libpam-modules:armhf depends on libdb5.3. 187s iproute2 depends on libdb5.3. 187s apt-utils depends on libdb5.3. 187s 187s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 187s Removing libdb5.3:armhf (5.3.28+dfsg2-4) ... 187s Selecting previously unselected package libdb5.3t64:armhf. 187s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58583 files and directories currently installed.) 187s Preparing to unpack .../libdb5.3t64_5.3.28+dfsg2-5build1_armhf.deb ... 187s Unpacking libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 187s Preparing to unpack .../libpython3.11-stdlib_3.11.8-1build4_armhf.deb ... 187s Unpacking libpython3.11-stdlib:armhf (3.11.8-1build4) over (3.11.8-1) ... 188s Preparing to unpack .../keyboxd_2.4.4-2ubuntu15_armhf.deb ... 188s Unpacking keyboxd (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 188s dpkg: libnpth0:armhf: dependency problems, but removing anyway as you requested: 188s gpgv depends on libnpth0 (>= 0.90). 188s gpgsm depends on libnpth0 (>= 0.90). 188s gpg-agent depends on libnpth0 (>= 0.90). 188s gpg depends on libnpth0 (>= 0.90). 188s dirmngr depends on libnpth0 (>= 0.90). 188s 188s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 188s Removing libnpth0:armhf (1.6-3build2) ... 188s Selecting previously unselected package libnpth0t64:armhf. 188s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58582 files and directories currently installed.) 188s Preparing to unpack .../libnpth0t64_1.6-3.1_armhf.deb ... 188s Unpacking libnpth0t64:armhf (1.6-3.1) ... 188s Setting up libnpth0t64:armhf (1.6-3.1) ... 189s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 189s Preparing to unpack .../gpgv_2.4.4-2ubuntu15_armhf.deb ... 189s Unpacking gpgv (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 189s Setting up gpgv (2.4.4-2ubuntu15) ... 189s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 189s Preparing to unpack .../gpg_2.4.4-2ubuntu15_armhf.deb ... 189s Unpacking gpg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 189s Preparing to unpack .../gpg-wks-client_2.4.4-2ubuntu15_armhf.deb ... 189s Unpacking gpg-wks-client (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 189s Preparing to unpack .../gnupg-utils_2.4.4-2ubuntu15_armhf.deb ... 189s Unpacking gnupg-utils (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 189s Preparing to unpack .../gpg-agent_2.4.4-2ubuntu15_armhf.deb ... 189s Unpacking gpg-agent (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 189s Preparing to unpack .../gpgsm_2.4.4-2ubuntu15_armhf.deb ... 189s Unpacking gpgsm (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 189s dpkg: libreadline8:armhf: dependency problems, but removing anyway as you requested: 189s gpgconf depends on libreadline8 (>= 6.0). 189s gawk depends on libreadline8 (>= 6.0). 189s fdisk depends on libreadline8 (>= 6.0). 189s 190s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 190s Removing libreadline8:armhf (8.2-3) ... 190s Selecting previously unselected package libreadline8t64:armhf. 190s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58576 files and directories currently installed.) 190s Preparing to unpack .../libreadline8t64_8.2-3.1_armhf.deb ... 190s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8 to /lib/arm-linux-gnueabihf/libhistory.so.8.usr-is-merged by libreadline8t64' 190s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8.2 to /lib/arm-linux-gnueabihf/libhistory.so.8.2.usr-is-merged by libreadline8t64' 190s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8 to /lib/arm-linux-gnueabihf/libreadline.so.8.usr-is-merged by libreadline8t64' 190s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8.2 to /lib/arm-linux-gnueabihf/libreadline.so.8.2.usr-is-merged by libreadline8t64' 190s Unpacking libreadline8t64:armhf (8.2-3.1) ... 190s Setting up libreadline8t64:armhf (8.2-3.1) ... 190s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 190s Preparing to unpack .../0-gawk_1%3a5.2.1-2build2_armhf.deb ... 190s Unpacking gawk (1:5.2.1-2build2) over (1:5.2.1-2) ... 190s Preparing to unpack .../1-fdisk_2.39.3-9ubuntu2_armhf.deb ... 190s Unpacking fdisk (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 190s Preparing to unpack .../2-gpgconf_2.4.4-2ubuntu15_armhf.deb ... 190s Unpacking gpgconf (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 190s Preparing to unpack .../3-dirmngr_2.4.4-2ubuntu15_armhf.deb ... 191s Unpacking dirmngr (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 191s Preparing to unpack .../4-gnupg_2.4.4-2ubuntu15_all.deb ... 191s Unpacking gnupg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 191s Preparing to unpack .../5-python3-apt_2.7.6build1_armhf.deb ... 191s Unpacking python3-apt (2.7.6build1) over (2.7.6) ... 191s Preparing to unpack .../6-apt-utils_2.7.13ubuntu1_armhf.deb ... 191s Unpacking apt-utils (2.7.13ubuntu1) over (2.7.12) ... 191s dpkg: libapt-pkg6.0:armhf: dependency problems, but removing anyway as you requested: 191s apt depends on libapt-pkg6.0 (>= 2.7.12). 191s 191s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58594 files and directories currently installed.) 191s Removing libapt-pkg6.0:armhf (2.7.12) ... 191s dpkg: libnettle8:armhf: dependency problems, but removing anyway as you requested: 191s libhogweed6:armhf depends on libnettle8. 191s libgnutls30:armhf depends on libnettle8 (>= 3.9~). 191s libcurl3-gnutls:armhf depends on libnettle8. 191s 191s Removing libnettle8:armhf (3.9.1-2) ... 192s Selecting previously unselected package libapt-pkg6.0t64:armhf. 192s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58538 files and directories currently installed.) 192s Preparing to unpack .../libapt-pkg6.0t64_2.7.13ubuntu1_armhf.deb ... 192s Unpacking libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 192s Setting up libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 192s Selecting previously unselected package libnettle8t64:armhf. 192s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 192s Preparing to unpack .../libnettle8t64_3.9.1-2.2_armhf.deb ... 192s Unpacking libnettle8t64:armhf (3.9.1-2.2) ... 192s Setting up libnettle8t64:armhf (3.9.1-2.2) ... 192s dpkg: libhogweed6:armhf: dependency problems, but removing anyway as you requested: 192s libgnutls30:armhf depends on libhogweed6 (>= 3.6). 192s 192s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 192s Removing libhogweed6:armhf (3.9.1-2) ... 192s Selecting previously unselected package libhogweed6t64:armhf. 193s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58591 files and directories currently installed.) 193s Preparing to unpack .../libhogweed6t64_3.9.1-2.2_armhf.deb ... 193s Unpacking libhogweed6t64:armhf (3.9.1-2.2) ... 193s Setting up libhogweed6t64:armhf (3.9.1-2.2) ... 193s dpkg: libgnutls30:armhf: dependency problems, but removing anyway as you requested: 193s libcurl3-gnutls:armhf depends on libgnutls30 (>= 3.8.2). 193s apt depends on libgnutls30 (>= 3.8.1). 193s 193s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58597 files and directories currently installed.) 193s Removing libgnutls30:armhf (3.8.3-1ubuntu1) ... 193s Selecting previously unselected package libgnutls30t64:armhf. 193s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 193s Preparing to unpack .../libgnutls30t64_3.8.3-1.1ubuntu2_armhf.deb ... 193s Unpacking libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 193s Setting up libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 193s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 193s Preparing to unpack .../apt_2.7.13ubuntu1_armhf.deb ... 193s Unpacking apt (2.7.13ubuntu1) over (2.7.12) ... 194s Setting up apt (2.7.13ubuntu1) ... 195s dpkg: libcurl3-gnutls:armhf: dependency problems, but removing anyway as you requested: 195s libfwupd2:armhf depends on libcurl3-gnutls (>= 7.63.0). 195s 195s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 195s Removing libcurl3-gnutls:armhf (8.5.0-2ubuntu2) ... 195s Selecting previously unselected package libcurl3t64-gnutls:armhf. 195s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58609 files and directories currently installed.) 195s Preparing to unpack .../libcurl3t64-gnutls_8.5.0-2ubuntu7_armhf.deb ... 195s Unpacking libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 195s Preparing to unpack .../libfwupd2_1.9.15-1_armhf.deb ... 195s Unpacking libfwupd2:armhf (1.9.15-1) over (1.9.14-1) ... 195s dpkg: libpsl5:armhf: dependency problems, but removing anyway as you requested: 195s wget depends on libpsl5 (>= 0.16.0). 195s libcurl4:armhf depends on libpsl5 (>= 0.16.0). 195s 195s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 195s Removing libpsl5:armhf (0.21.2-1build1) ... 196s Selecting previously unselected package libpsl5t64:armhf. 196s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58611 files and directories currently installed.) 196s Preparing to unpack .../libpsl5t64_0.21.2-1.1_armhf.deb ... 196s Unpacking libpsl5t64:armhf (0.21.2-1.1) ... 196s Preparing to unpack .../wget_1.21.4-1ubuntu2_armhf.deb ... 196s Unpacking wget (1.21.4-1ubuntu2) over (1.21.4-1ubuntu1) ... 196s Preparing to unpack .../tnftp_20230507-2build1_armhf.deb ... 196s Unpacking tnftp (20230507-2build1) over (20230507-2) ... 196s dpkg: libpcap0.8:armhf: dependency problems, but removing anyway as you requested: 196s tcpdump depends on libpcap0.8 (>= 1.9.1). 196s 196s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58617 files and directories currently installed.) 196s Removing libpcap0.8:armhf (1.10.4-4ubuntu3) ... 196s Selecting previously unselected package libpcap0.8t64:armhf. 196s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58606 files and directories currently installed.) 196s Preparing to unpack .../0-libpcap0.8t64_1.10.4-4.1ubuntu1_armhf.deb ... 196s Unpacking libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 196s Preparing to unpack .../1-tcpdump_4.99.4-3ubuntu2_armhf.deb ... 196s Unpacking tcpdump (4.99.4-3ubuntu2) over (4.99.4-3ubuntu1) ... 196s Preparing to unpack .../2-libsystemd-shared_255.4-1ubuntu5_armhf.deb ... 196s Unpacking libsystemd-shared:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 196s Preparing to unpack .../3-systemd-resolved_255.4-1ubuntu5_armhf.deb ... 196s Unpacking systemd-resolved (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 197s Preparing to unpack .../4-sudo_1.9.15p5-3ubuntu3_armhf.deb ... 197s Unpacking sudo (1.9.15p5-3ubuntu3) over (1.9.15p5-3ubuntu1) ... 197s Preparing to unpack .../5-rsync_3.2.7-1build1_armhf.deb ... 197s Unpacking rsync (3.2.7-1build1) over (3.2.7-1) ... 197s Preparing to unpack .../6-python3-cryptography_41.0.7-4build2_armhf.deb ... 197s Unpacking python3-cryptography (41.0.7-4build2) over (41.0.7-3) ... 197s Preparing to unpack .../7-openssh-sftp-server_1%3a9.6p1-3ubuntu10_armhf.deb ... 197s Unpacking openssh-sftp-server (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 197s Preparing to unpack .../8-openssh-client_1%3a9.6p1-3ubuntu10_armhf.deb ... 197s Unpacking openssh-client (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 198s Preparing to unpack .../9-openssh-server_1%3a9.6p1-3ubuntu10_armhf.deb ... 198s Unpacking openssh-server (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 198s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 198s Removing linux-headers-generic (6.8.0-11.11+1) ... 198s Removing linux-headers-6.8.0-11-generic (6.8.0-11.11) ... 200s dpkg: libssl3:armhf: dependency problems, but removing anyway as you requested: 200s systemd depends on libssl3 (>= 3.0.0). 200s libssh-4:armhf depends on libssl3 (>= 3.0.0). 200s libsasl2-modules:armhf depends on libssl3 (>= 3.0.0). 200s libsasl2-2:armhf depends on libssl3 (>= 3.0.0). 200s libnvme1 depends on libssl3 (>= 3.0.0). 200s libkrb5-3:armhf depends on libssl3 (>= 3.0.0). 200s libkmod2:armhf depends on libssl3 (>= 3.0.0). 200s libfido2-1:armhf depends on libssl3 (>= 3.0.0). 200s libcurl4:armhf depends on libssl3 (>= 3.0.0). 200s libcryptsetup12:armhf depends on libssl3 (>= 3.0.0). 200s kmod depends on libssl3 (>= 3.0.0). 200s dhcpcd-base depends on libssl3 (>= 3.0.0). 200s bind9-libs:armhf depends on libssl3 (>= 3.0.0). 200s 200s Removing libssl3:armhf (3.0.10-1ubuntu4) ... 200s Selecting previously unselected package libssl3t64:armhf. 200s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47465 files and directories currently installed.) 200s Preparing to unpack .../libssl3t64_3.0.13-0ubuntu2_armhf.deb ... 200s Unpacking libssl3t64:armhf (3.0.13-0ubuntu2) ... 200s Setting up libssl3t64:armhf (3.0.13-0ubuntu2) ... 200s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 200s Preparing to unpack .../libudev1_255.4-1ubuntu5_armhf.deb ... 200s Unpacking libudev1:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 200s Setting up libudev1:armhf (255.4-1ubuntu5) ... 200s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 200s Preparing to unpack .../systemd_255.4-1ubuntu5_armhf.deb ... 200s Unpacking systemd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 201s Preparing to unpack .../udev_255.4-1ubuntu5_armhf.deb ... 201s Unpacking udev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 202s Preparing to unpack .../libsystemd0_255.4-1ubuntu5_armhf.deb ... 202s Unpacking libsystemd0:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 202s Setting up libsystemd0:armhf (255.4-1ubuntu5) ... 202s Setting up libsystemd-shared:armhf (255.4-1ubuntu5) ... 202s Setting up systemd-dev (255.4-1ubuntu5) ... 202s Setting up systemd (255.4-1ubuntu5) ... 204s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 204s Preparing to unpack .../systemd-sysv_255.4-1ubuntu5_armhf.deb ... 204s Unpacking systemd-sysv (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 204s Preparing to unpack .../libnss-systemd_255.4-1ubuntu5_armhf.deb ... 204s Unpacking libnss-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 204s Preparing to unpack .../libpam-systemd_255.4-1ubuntu5_armhf.deb ... 204s Unpacking libpam-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 204s Preparing to unpack .../libpam-modules-bin_1.5.3-5ubuntu3_armhf.deb ... 204s Unpacking libpam-modules-bin (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 204s Setting up libpam-modules-bin (1.5.3-5ubuntu3) ... 205s pam_namespace.service is a disabled or a static unit not running, not starting it. 205s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 205s Preparing to unpack .../libpam-modules_1.5.3-5ubuntu3_armhf.deb ... 205s Unpacking libpam-modules:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 205s Setting up libpam-modules:armhf (1.5.3-5ubuntu3) ... 205s Installing new version of config file /etc/security/namespace.init ... 206s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 206s Preparing to unpack .../libpam-runtime_1.5.3-5ubuntu3_all.deb ... 206s Unpacking libpam-runtime (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 206s Setting up libpam-runtime (1.5.3-5ubuntu3) ... 206s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 206s Preparing to unpack .../0-dbus-user-session_1.14.10-4ubuntu2_armhf.deb ... 206s Unpacking dbus-user-session (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 206s Preparing to unpack .../1-libapparmor1_4.0.0-beta3-0ubuntu2_armhf.deb ... 206s Unpacking libapparmor1:armhf (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 207s Preparing to unpack .../2-dbus-bin_1.14.10-4ubuntu2_armhf.deb ... 207s Unpacking dbus-bin (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 207s Preparing to unpack .../3-dbus-system-bus-common_1.14.10-4ubuntu2_all.deb ... 207s Unpacking dbus-system-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 207s Preparing to unpack .../4-dbus_1.14.10-4ubuntu2_armhf.deb ... 207s Unpacking dbus (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 207s Preparing to unpack .../5-dbus-daemon_1.14.10-4ubuntu2_armhf.deb ... 207s Unpacking dbus-daemon (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 207s Preparing to unpack .../6-libdbus-1-3_1.14.10-4ubuntu2_armhf.deb ... 207s Unpacking libdbus-1-3:armhf (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 207s Preparing to unpack .../7-kmod_31+20240202-2ubuntu4_armhf.deb ... 207s Unpacking kmod (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 207s dpkg: warning: unable to delete old directory '/lib/modprobe.d': Directory not empty 207s Preparing to unpack .../8-libkmod2_31+20240202-2ubuntu4_armhf.deb ... 207s Unpacking libkmod2:armhf (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 207s Preparing to unpack .../9-libmount1_2.39.3-9ubuntu2_armhf.deb ... 207s Unpacking libmount1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 207s Setting up libmount1:armhf (2.39.3-9ubuntu2) ... 207s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 207s Preparing to unpack .../libseccomp2_2.5.5-1ubuntu2_armhf.deb ... 207s Unpacking libseccomp2:armhf (2.5.5-1ubuntu2) over (2.5.5-1ubuntu1) ... 208s Setting up libseccomp2:armhf (2.5.5-1ubuntu2) ... 208s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 208s Preparing to unpack .../libuuid1_2.39.3-9ubuntu2_armhf.deb ... 208s Unpacking libuuid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 208s Setting up libuuid1:armhf (2.39.3-9ubuntu2) ... 208s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 208s Preparing to unpack .../0-libcryptsetup12_2%3a2.7.0-1ubuntu2_armhf.deb ... 208s Unpacking libcryptsetup12:armhf (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 208s Preparing to unpack .../1-libfdisk1_2.39.3-9ubuntu2_armhf.deb ... 208s Unpacking libfdisk1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 208s Preparing to unpack .../2-mount_2.39.3-9ubuntu2_armhf.deb ... 208s Unpacking mount (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 208s Preparing to unpack .../3-libdevmapper1.02.1_2%3a1.02.185-3ubuntu2_armhf.deb ... 208s Unpacking libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 208s Selecting previously unselected package libparted2t64:armhf. 208s Preparing to unpack .../4-libparted2t64_3.6-3.1build2_armhf.deb ... 208s Unpacking libparted2t64:armhf (3.6-3.1build2) ... 208s Preparing to unpack .../5-libsqlite3-0_3.45.1-1ubuntu1_armhf.deb ... 208s Unpacking libsqlite3-0:armhf (3.45.1-1ubuntu1) over (3.45.1-1) ... 208s Preparing to unpack .../6-pinentry-curses_1.2.1-3ubuntu4_armhf.deb ... 208s Unpacking pinentry-curses (1.2.1-3ubuntu4) over (1.2.1-3ubuntu1) ... 208s Preparing to unpack .../7-libsmartcols1_2.39.3-9ubuntu2_armhf.deb ... 208s Unpacking libsmartcols1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 209s Setting up libsmartcols1:armhf (2.39.3-9ubuntu2) ... 209s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47482 files and directories currently installed.) 209s Preparing to unpack .../0-readline-common_8.2-3.1_all.deb ... 209s Unpacking readline-common (8.2-3.1) over (8.2-3) ... 209s Preparing to unpack .../1-python3-yaml_6.0.1-2build1_armhf.deb ... 209s Unpacking python3-yaml (6.0.1-2build1) over (6.0.1-2) ... 209s Preparing to unpack .../2-python-apt-common_2.7.6build1_all.deb ... 209s Unpacking python-apt-common (2.7.6build1) over (2.7.6) ... 209s Preparing to unpack .../3-python3-setuptools_68.1.2-2ubuntu1_all.deb ... 210s Unpacking python3-setuptools (68.1.2-2ubuntu1) over (68.1.2-2) ... 210s Preparing to unpack .../4-python3-pkg-resources_68.1.2-2ubuntu1_all.deb ... 210s Unpacking python3-pkg-resources (68.1.2-2ubuntu1) over (68.1.2-2) ... 210s Preparing to unpack .../5-dpkg_1.22.6ubuntu4_armhf.deb ... 210s Unpacking dpkg (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 211s Setting up dpkg (1.22.6ubuntu4) ... 211s Setting up libpython3.12-minimal:armhf (3.12.2-4build3) ... 211s Setting up libexpat1:armhf (2.6.1-2) ... 211s Setting up python3.12-minimal (3.12.2-4build3) ... 214s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 214s Preparing to unpack .../python3-minimal_3.12.2-0ubuntu1_armhf.deb ... 214s Unpacking python3-minimal (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 214s Setting up python3-minimal (3.12.2-0ubuntu1) ... 215s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 215s Preparing to unpack .../00-python3_3.12.2-0ubuntu1_armhf.deb ... 215s Unpacking python3 (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 215s Preparing to unpack .../01-libpython3-stdlib_3.12.2-0ubuntu1_armhf.deb ... 215s Unpacking libpython3-stdlib:armhf (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 215s Preparing to unpack .../02-bsdextrautils_2.39.3-9ubuntu2_armhf.deb ... 215s Unpacking bsdextrautils (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 215s Preparing to unpack .../03-groff-base_1.23.0-3build1_armhf.deb ... 215s Unpacking groff-base (1.23.0-3build1) over (1.23.0-3) ... 215s Preparing to unpack .../04-libsasl2-2_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 215s Unpacking libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 215s Preparing to unpack .../05-libjson-glib-1.0-common_1.8.0-2build1_all.deb ... 215s Unpacking libjson-glib-1.0-common (1.8.0-2build1) over (1.8.0-2) ... 216s Preparing to unpack .../06-libjson-glib-1.0-0_1.8.0-2build1_armhf.deb ... 216s Unpacking libjson-glib-1.0-0:armhf (1.8.0-2build1) over (1.8.0-2) ... 216s Preparing to unpack .../07-libxml2_2.9.14+dfsg-1.3ubuntu2_armhf.deb ... 216s Unpacking libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) over (2.9.14+dfsg-1.3ubuntu1) ... 216s Preparing to unpack .../08-libgudev-1.0-0_1%3a238-3ubuntu2_armhf.deb ... 216s Unpacking libgudev-1.0-0:armhf (1:238-3ubuntu2) over (1:238-3) ... 216s Preparing to unpack .../09-libusb-1.0-0_2%3a1.0.27-1_armhf.deb ... 216s Unpacking libusb-1.0-0:armhf (2:1.0.27-1) over (2:1.0.26-1) ... 216s Preparing to unpack .../10-libgusb2_0.4.8-1build1_armhf.deb ... 216s Unpacking libgusb2:armhf (0.4.8-1build1) over (0.4.8-1) ... 216s Preparing to unpack .../11-libmbim-proxy_1.31.2-0ubuntu2_armhf.deb ... 216s Unpacking libmbim-proxy (1.31.2-0ubuntu2) over (1.30.0-1) ... 216s Preparing to unpack .../12-libmbim-glib4_1.31.2-0ubuntu2_armhf.deb ... 216s Unpacking libmbim-glib4:armhf (1.31.2-0ubuntu2) over (1.30.0-1) ... 216s Preparing to unpack .../13-libmm-glib0_1.23.4-0ubuntu1_armhf.deb ... 216s Unpacking libmm-glib0:armhf (1.23.4-0ubuntu1) over (1.22.0-3) ... 216s Preparing to unpack .../14-libpolkit-agent-1-0_124-1ubuntu1_armhf.deb ... 216s Unpacking libpolkit-agent-1-0:armhf (124-1ubuntu1) over (124-1) ... 216s Preparing to unpack .../15-libpolkit-gobject-1-0_124-1ubuntu1_armhf.deb ... 216s Unpacking libpolkit-gobject-1-0:armhf (124-1ubuntu1) over (124-1) ... 216s Preparing to unpack .../16-libqmi-proxy_1.35.2-0ubuntu1_armhf.deb ... 216s Unpacking libqmi-proxy (1.35.2-0ubuntu1) over (1.34.0-2) ... 216s Preparing to unpack .../17-libqrtr-glib0_1.2.2-1ubuntu3_armhf.deb ... 216s Unpacking libqrtr-glib0:armhf (1.2.2-1ubuntu3) over (1.2.2-1ubuntu2) ... 216s Preparing to unpack .../18-libqmi-glib5_1.35.2-0ubuntu1_armhf.deb ... 216s Unpacking libqmi-glib5:armhf (1.35.2-0ubuntu1) over (1.34.0-2) ... 217s Preparing to unpack .../19-libxmlb2_0.3.15-1build1_armhf.deb ... 217s Unpacking libxmlb2:armhf (0.3.15-1build1) over (0.3.15-1) ... 217s Preparing to unpack .../20-shared-mime-info_2.4-1build1_armhf.deb ... 217s Unpacking shared-mime-info (2.4-1build1) over (2.4-1) ... 217s Preparing to unpack .../21-libbrotli1_1.1.0-2build1_armhf.deb ... 217s Unpacking libbrotli1:armhf (1.1.0-2build1) over (1.1.0-2) ... 217s Preparing to unpack .../22-libgssapi-krb5-2_1.20.1-5.1build3_armhf.deb ... 217s Unpacking libgssapi-krb5-2:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 217s Preparing to unpack .../23-libkrb5-3_1.20.1-5.1build3_armhf.deb ... 217s Unpacking libkrb5-3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 217s Preparing to unpack .../24-libkrb5support0_1.20.1-5.1build3_armhf.deb ... 217s Unpacking libkrb5support0:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 217s Preparing to unpack .../25-libk5crypto3_1.20.1-5.1build3_armhf.deb ... 217s Unpacking libk5crypto3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 217s Preparing to unpack .../26-libcom-err2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 217s Unpacking libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 217s Preparing to unpack .../27-libnghttp2-14_1.59.0-1build1_armhf.deb ... 217s Unpacking libnghttp2-14:armhf (1.59.0-1build1) over (1.59.0-1) ... 217s Preparing to unpack .../28-libssh-4_0.10.6-2build1_armhf.deb ... 217s Unpacking libssh-4:armhf (0.10.6-2build1) over (0.10.6-2) ... 217s Preparing to unpack .../29-libibverbs1_50.0-2build1_armhf.deb ... 217s Unpacking libibverbs1:armhf (50.0-2build1) over (50.0-2) ... 217s Preparing to unpack .../30-libfido2-1_1.14.0-1build1_armhf.deb ... 217s Unpacking libfido2-1:armhf (1.14.0-1build1) over (1.14.0-1) ... 217s Preparing to unpack .../31-coreutils_9.4-3ubuntu3_armhf.deb ... 217s Unpacking coreutils (9.4-3ubuntu3) over (9.4-2ubuntu4) ... 218s Setting up coreutils (9.4-3ubuntu3) ... 218s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 218s Preparing to unpack .../debianutils_5.17_armhf.deb ... 218s Unpacking debianutils (5.17) over (5.16) ... 218s Setting up debianutils (5.17) ... 218s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 218s Preparing to unpack .../util-linux_2.39.3-9ubuntu2_armhf.deb ... 218s Unpacking util-linux (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 219s Setting up util-linux (2.39.3-9ubuntu2) ... 220s fstrim.service is a disabled or a static unit not running, not starting it. 220s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 220s Preparing to unpack .../libc-bin_2.39-0ubuntu6_armhf.deb ... 220s Unpacking libc-bin (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 220s Setting up libc-bin (2.39-0ubuntu6) ... 221s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 221s Removing libatm1:armhf (1:2.5.1-5) ... 221s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 221s Preparing to unpack .../curl_8.5.0-2ubuntu7_armhf.deb ... 221s Unpacking curl (8.5.0-2ubuntu7) over (8.5.0-2ubuntu2) ... 221s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 221s Removing libcurl4:armhf (8.5.0-2ubuntu2) ... 221s Selecting previously unselected package libcurl4t64:armhf. 221s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47471 files and directories currently installed.) 221s Preparing to unpack .../libcurl4t64_8.5.0-2ubuntu7_armhf.deb ... 221s Unpacking libcurl4t64:armhf (8.5.0-2ubuntu7) ... 221s Preparing to unpack .../libbpf1_1%3a1.3.0-2build1_armhf.deb ... 221s Unpacking libbpf1:armhf (1:1.3.0-2build1) over (1:1.3.0-2) ... 221s Preparing to unpack .../iproute2_6.1.0-1ubuntu5_armhf.deb ... 221s Unpacking iproute2 (6.1.0-1ubuntu5) over (6.1.0-1ubuntu2) ... 222s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47477 files and directories currently installed.) 222s Removing libelf1:armhf (0.190-1) ... 222s Selecting previously unselected package libelf1t64:armhf. 222s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47472 files and directories currently installed.) 222s Preparing to unpack .../libelf1t64_0.190-1.1build2_armhf.deb ... 222s Unpacking libelf1t64:armhf (0.190-1.1build2) ... 222s Preparing to unpack .../lsof_4.95.0-1build2_armhf.deb ... 222s Unpacking lsof (4.95.0-1build2) over (4.95.0-1build1) ... 222s Preparing to unpack .../libnsl2_1.3.0-3build2_armhf.deb ... 222s Unpacking libnsl2:armhf (1.3.0-3build2) over (1.3.0-3) ... 222s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47477 files and directories currently installed.) 222s Removing libtirpc3:armhf (1.3.4+ds-1build1) ... 222s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47471 files and directories currently installed.) 222s Preparing to unpack .../0-libtirpc-common_1.3.4+ds-1.1_all.deb ... 222s Unpacking libtirpc-common (1.3.4+ds-1.1) over (1.3.4+ds-1build1) ... 222s Selecting previously unselected package libtirpc3t64:armhf. 222s Preparing to unpack .../1-libtirpc3t64_1.3.4+ds-1.1_armhf.deb ... 222s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3 to /lib/arm-linux-gnueabihf/libtirpc.so.3.usr-is-merged by libtirpc3t64' 222s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0 to /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' 222s Unpacking libtirpc3t64:armhf (1.3.4+ds-1.1) ... 222s Preparing to unpack .../2-libblockdev-utils3_3.1.0-1build1_armhf.deb ... 222s Unpacking libblockdev-utils3:armhf (3.1.0-1build1) over (3.1.0-1) ... 222s Preparing to unpack .../3-libblockdev-fs3_3.1.0-1build1_armhf.deb ... 222s Unpacking libblockdev-fs3:armhf (3.1.0-1build1) over (3.1.0-1) ... 222s Preparing to unpack .../4-logsave_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 222s Unpacking logsave (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 222s Preparing to unpack .../5-ubuntu-minimal_1.536build1_armhf.deb ... 222s Unpacking ubuntu-minimal (1.536build1) over (1.536) ... 222s Preparing to unpack .../6-initramfs-tools_0.142ubuntu22_all.deb ... 223s Unpacking initramfs-tools (0.142ubuntu22) over (0.142ubuntu20) ... 223s Preparing to unpack .../7-initramfs-tools-core_0.142ubuntu22_all.deb ... 223s Unpacking initramfs-tools-core (0.142ubuntu22) over (0.142ubuntu20) ... 223s Preparing to unpack .../8-e2fsprogs-l10n_1.47.0-2.4~exp1ubuntu2_all.deb ... 223s Unpacking e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 223s dpkg: libext2fs2:armhf: dependency problems, but removing anyway as you requested: 223s e2fsprogs depends on libext2fs2 (= 1.47.0-2ubuntu1). 223s btrfs-progs depends on libext2fs2 (>= 1.42). 223s 223s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47483 files and directories currently installed.) 223s Removing libext2fs2:armhf (1.47.0-2ubuntu1) ... 223s Selecting previously unselected package libext2fs2t64:armhf. 223s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 223s Preparing to unpack .../libext2fs2t64_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 223s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2 to /lib/arm-linux-gnueabihf/libe2p.so.2.usr-is-merged by libext2fs2t64' 223s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2.3 to /lib/arm-linux-gnueabihf/libe2p.so.2.3.usr-is-merged by libext2fs2t64' 223s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2 to /lib/arm-linux-gnueabihf/libext2fs.so.2.usr-is-merged by libext2fs2t64' 223s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2.4 to /lib/arm-linux-gnueabihf/libext2fs.so.2.4.usr-is-merged by libext2fs2t64' 223s Unpacking libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 223s Setting up libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) ... 223s Setting up libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 223s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47492 files and directories currently installed.) 223s Preparing to unpack .../00-e2fsprogs_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 223s Unpacking e2fsprogs (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 223s Preparing to unpack .../01-btrfs-progs_6.6.3-1.1build1_armhf.deb ... 223s Unpacking btrfs-progs (6.6.3-1.1build1) over (6.6.3-1.1) ... 224s Preparing to unpack .../02-dhcpcd-base_1%3a10.0.6-1ubuntu2_armhf.deb ... 224s Unpacking dhcpcd-base (1:10.0.6-1ubuntu2) over (1:10.0.6-1ubuntu1) ... 224s Preparing to unpack .../03-eject_2.39.3-9ubuntu2_armhf.deb ... 224s Unpacking eject (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 224s Preparing to unpack .../04-locales_2.39-0ubuntu6_all.deb ... 224s Unpacking locales (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 224s Selecting previously unselected package libnetplan1:armhf. 224s Preparing to unpack .../05-libnetplan1_1.0-1_armhf.deb ... 224s Unpacking libnetplan1:armhf (1.0-1) ... 224s Preparing to unpack .../06-python3-netplan_1.0-1_armhf.deb ... 224s Unpacking python3-netplan (1.0-1) over (0.107.1-3) ... 224s Preparing to unpack .../07-netplan-generator_1.0-1_armhf.deb ... 224s Adding 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 224s Unpacking netplan-generator (1.0-1) over (0.107.1-3) ... 224s Preparing to unpack .../08-python3-dbus_1.3.2-5build2_armhf.deb ... 225s Unpacking python3-dbus (1.3.2-5build2) over (1.3.2-5build1) ... 225s Preparing to unpack .../09-netplan.io_1.0-1_armhf.deb ... 225s Unpacking netplan.io (1.0-1) over (0.107.1-3) ... 225s Preparing to unpack .../10-vim-tiny_2%3a9.1.0016-1ubuntu5_armhf.deb ... 225s Unpacking vim-tiny (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 225s Preparing to unpack .../11-vim-common_2%3a9.1.0016-1ubuntu5_all.deb ... 225s Unpacking vim-common (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 225s Preparing to unpack .../12-initramfs-tools-bin_0.142ubuntu22_armhf.deb ... 225s Unpacking initramfs-tools-bin (0.142ubuntu22) over (0.142ubuntu20) ... 225s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47496 files and directories currently installed.) 225s Removing libreiserfscore0 (1:3.6.27-7) ... 225s Selecting previously unselected package libreiserfscore0t64. 225s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 225s Preparing to unpack .../libreiserfscore0t64_1%3a3.6.27-7.1_armhf.deb ... 225s Unpacking libreiserfscore0t64 (1:3.6.27-7.1) ... 226s Preparing to unpack .../file_1%3a5.45-3_armhf.deb ... 226s Unpacking file (1:5.45-3) over (1:5.45-2) ... 226s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47497 files and directories currently installed.) 226s Removing libmagic1:armhf (1:5.45-2) ... 226s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47487 files and directories currently installed.) 226s Preparing to unpack .../libmagic-mgc_1%3a5.45-3_armhf.deb ... 226s Unpacking libmagic-mgc (1:5.45-3) over (1:5.45-2) ... 226s Selecting previously unselected package libmagic1t64:armhf. 226s Preparing to unpack .../libmagic1t64_1%3a5.45-3_armhf.deb ... 226s Unpacking libmagic1t64:armhf (1:5.45-3) ... 226s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47498 files and directories currently installed.) 226s Removing libnetplan0:armhf (0.107.1-3) ... 226s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47494 files and directories currently installed.) 226s Preparing to unpack .../libblockdev-nvme3_3.1.0-1build1_armhf.deb ... 226s Unpacking libblockdev-nvme3:armhf (3.1.0-1build1) over (3.1.0-1) ... 226s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47494 files and directories currently installed.) 226s Removing libnvme1 (1.8-2) ... 226s Selecting previously unselected package libnvme1t64. 226s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47487 files and directories currently installed.) 227s Preparing to unpack .../libnvme1t64_1.8-3_armhf.deb ... 227s Unpacking libnvme1t64 (1.8-3) ... 227s Preparing to unpack .../libplymouth5_24.004.60-1ubuntu5_armhf.deb ... 227s Unpacking libplymouth5:armhf (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 227s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47495 files and directories currently installed.) 227s Removing libpng16-16:armhf (1.6.43-1) ... 227s Selecting previously unselected package libpng16-16t64:armhf. 227s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47485 files and directories currently installed.) 227s Preparing to unpack .../libpng16-16t64_1.6.43-3_armhf.deb ... 227s Unpacking libpng16-16t64:armhf (1.6.43-3) ... 227s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47496 files and directories currently installed.) 227s Removing libudisks2-0:armhf (2.10.1-1ubuntu2) ... 227s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 227s Preparing to unpack .../bind9-host_1%3a9.18.24-0ubuntu3_armhf.deb ... 227s Unpacking bind9-host (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 227s Preparing to unpack .../bind9-dnsutils_1%3a9.18.24-0ubuntu3_armhf.deb ... 227s Unpacking bind9-dnsutils (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 227s Preparing to unpack .../bind9-libs_1%3a9.18.24-0ubuntu3_armhf.deb ... 227s Unpacking bind9-libs:armhf (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 228s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 228s Removing libuv1:armhf (1.48.0-1) ... 228s Selecting previously unselected package libuv1t64:armhf. 228s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47486 files and directories currently installed.) 228s Preparing to unpack .../libuv1t64_1.48.0-1.1_armhf.deb ... 228s Unpacking libuv1t64:armhf (1.48.0-1.1) ... 228s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47492 files and directories currently installed.) 228s Removing python3-distutils (3.11.5-1) ... 228s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 228s Preparing to unpack .../uuid-runtime_2.39.3-9ubuntu2_armhf.deb ... 228s Unpacking uuid-runtime (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 228s Preparing to unpack .../libdebconfclient0_0.271ubuntu2_armhf.deb ... 228s Unpacking libdebconfclient0:armhf (0.271ubuntu2) over (0.271ubuntu1) ... 228s Setting up libdebconfclient0:armhf (0.271ubuntu2) ... 228s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 228s Preparing to unpack .../libsemanage-common_3.5-1build4_all.deb ... 228s Unpacking libsemanage-common (3.5-1build4) over (3.5-1build2) ... 228s Setting up libsemanage-common (3.5-1build4) ... 229s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 229s Preparing to unpack .../libsemanage2_3.5-1build4_armhf.deb ... 229s Unpacking libsemanage2:armhf (3.5-1build4) over (3.5-1build2) ... 229s Setting up libsemanage2:armhf (3.5-1build4) ... 229s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 229s Preparing to unpack .../install-info_7.1-3build1_armhf.deb ... 229s Unpacking install-info (7.1-3build1) over (7.1-3) ... 229s Setting up install-info (7.1-3build1) ... 229s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 229s Preparing to unpack .../00-gcc-13-base_13.2.0-19ubuntu1_armhf.deb ... 229s Unpacking gcc-13-base:armhf (13.2.0-19ubuntu1) over (13.2.0-17ubuntu2) ... 229s Preparing to unpack .../01-libss2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 229s Unpacking libss2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 229s Preparing to unpack .../02-dmsetup_2%3a1.02.185-3ubuntu2_armhf.deb ... 230s Unpacking dmsetup (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 230s Preparing to unpack .../03-gir1.2-girepository-2.0_1.79.1-1ubuntu6_armhf.deb ... 230s Unpacking gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 230s Preparing to unpack .../04-gir1.2-glib-2.0_2.79.3-3ubuntu5_armhf.deb ... 230s Unpacking gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 230s Preparing to unpack .../05-libgirepository-1.0-1_1.79.1-1ubuntu6_armhf.deb ... 230s Unpacking libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 230s Preparing to unpack .../06-krb5-locales_1.20.1-5.1build3_all.deb ... 230s Unpacking krb5-locales (1.20.1-5.1build3) over (1.20.1-5build1) ... 230s Preparing to unpack .../07-libbsd0_0.12.1-1_armhf.deb ... 230s Unpacking libbsd0:armhf (0.12.1-1) over (0.11.8-1) ... 230s Preparing to unpack .../08-libglib2.0-data_2.79.3-3ubuntu5_all.deb ... 230s Unpacking libglib2.0-data (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 230s Preparing to unpack .../09-libslang2_2.3.3-3build1_armhf.deb ... 230s Unpacking libslang2:armhf (2.3.3-3build1) over (2.3.3-3) ... 230s Preparing to unpack .../10-python3-gi_3.47.0-3build1_armhf.deb ... 230s Unpacking python3-gi (3.47.0-3build1) over (3.47.0-3) ... 230s Selecting previously unselected package xdg-user-dirs. 230s Preparing to unpack .../11-xdg-user-dirs_0.18-1_armhf.deb ... 230s Unpacking xdg-user-dirs (0.18-1) ... 231s Preparing to unpack .../12-xxd_2%3a9.1.0016-1ubuntu5_armhf.deb ... 231s Unpacking xxd (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 231s Preparing to unpack .../13-apparmor_4.0.0-beta3-0ubuntu2_armhf.deb ... 233s Unpacking apparmor (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 234s Preparing to unpack .../14-ftp_20230507-2build1_all.deb ... 234s Unpacking ftp (20230507-2build1) over (20230507-2) ... 234s Preparing to unpack .../15-inetutils-telnet_2%3a2.5-3ubuntu3_armhf.deb ... 234s Unpacking inetutils-telnet (2:2.5-3ubuntu3) over (2:2.5-3ubuntu1) ... 234s Preparing to unpack .../16-info_7.1-3build1_armhf.deb ... 234s Unpacking info (7.1-3build1) over (7.1-3) ... 234s Preparing to unpack .../17-libxmuu1_2%3a1.1.3-3build1_armhf.deb ... 234s Unpacking libxmuu1:armhf (2:1.1.3-3build1) over (2:1.1.3-3) ... 234s Preparing to unpack .../18-lshw_02.19.git.2021.06.19.996aaad9c7-2build2_armhf.deb ... 234s Unpacking lshw (02.19.git.2021.06.19.996aaad9c7-2build2) over (02.19.git.2021.06.19.996aaad9c7-2build1) ... 235s Preparing to unpack .../19-mtr-tiny_0.95-1.1build1_armhf.deb ... 235s Unpacking mtr-tiny (0.95-1.1build1) over (0.95-1.1) ... 235s Preparing to unpack .../20-plymouth-theme-ubuntu-text_24.004.60-1ubuntu5_armhf.deb ... 235s Unpacking plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 235s Preparing to unpack .../21-plymouth_24.004.60-1ubuntu5_armhf.deb ... 235s Unpacking plymouth (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 236s Preparing to unpack .../22-psmisc_23.7-1_armhf.deb ... 236s Unpacking psmisc (23.7-1) over (23.6-2) ... 236s Preparing to unpack .../23-telnet_0.17+2.5-3ubuntu3_all.deb ... 236s Unpacking telnet (0.17+2.5-3ubuntu3) over (0.17+2.5-3ubuntu1) ... 236s Preparing to unpack .../24-xz-utils_5.6.0-0.2_armhf.deb ... 236s Unpacking xz-utils (5.6.0-0.2) over (5.4.5-0.3) ... 237s Preparing to unpack .../25-ubuntu-standard_1.536build1_armhf.deb ... 237s Unpacking ubuntu-standard (1.536build1) over (1.536) ... 237s Preparing to unpack .../26-usb.ids_2024.03.18-1_all.deb ... 237s Unpacking usb.ids (2024.03.18-1) over (2024.01.30-1) ... 237s Preparing to unpack .../27-bolt_0.9.6-2build1_armhf.deb ... 237s Unpacking bolt (0.9.6-2build1) over (0.9.6-2) ... 237s Preparing to unpack .../28-cryptsetup-bin_2%3a2.7.0-1ubuntu2_armhf.deb ... 237s Unpacking cryptsetup-bin (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 237s Preparing to unpack .../29-dpkg-dev_1.22.6ubuntu4_all.deb ... 237s Unpacking dpkg-dev (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 238s Preparing to unpack .../30-libdpkg-perl_1.22.6ubuntu4_all.deb ... 238s Unpacking libdpkg-perl (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 238s Preparing to unpack .../31-gnupg-l10n_2.4.4-2ubuntu15_all.deb ... 238s Unpacking gnupg-l10n (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 239s Preparing to unpack .../32-ibverbs-providers_50.0-2build1_armhf.deb ... 239s Unpacking ibverbs-providers:armhf (50.0-2build1) over (50.0-2) ... 239s Preparing to unpack .../33-jq_1.7.1-3_armhf.deb ... 239s Unpacking jq (1.7.1-3) over (1.7.1-2) ... 239s Preparing to unpack .../34-libjq1_1.7.1-3_armhf.deb ... 239s Unpacking libjq1:armhf (1.7.1-3) over (1.7.1-2) ... 239s Selecting previously unselected package libatm1t64:armhf. 239s Preparing to unpack .../35-libatm1t64_1%3a2.5.1-5.1_armhf.deb ... 239s Unpacking libatm1t64:armhf (1:2.5.1-5.1) ... 239s Preparing to unpack .../36-libblockdev-crypto3_3.1.0-1build1_armhf.deb ... 239s Unpacking libblockdev-crypto3:armhf (3.1.0-1build1) over (3.1.0-1) ... 239s Preparing to unpack .../37-libblockdev-loop3_3.1.0-1build1_armhf.deb ... 239s Unpacking libblockdev-loop3:armhf (3.1.0-1build1) over (3.1.0-1) ... 240s Preparing to unpack .../38-libblockdev-mdraid3_3.1.0-1build1_armhf.deb ... 240s Unpacking libblockdev-mdraid3:armhf (3.1.0-1build1) over (3.1.0-1) ... 240s Preparing to unpack .../39-libblockdev-part3_3.1.0-1build1_armhf.deb ... 240s Unpacking libblockdev-part3:armhf (3.1.0-1build1) over (3.1.0-1) ... 240s Preparing to unpack .../40-libblockdev-swap3_3.1.0-1build1_armhf.deb ... 240s Unpacking libblockdev-swap3:armhf (3.1.0-1build1) over (3.1.0-1) ... 240s Preparing to unpack .../41-libblockdev3_3.1.0-1build1_armhf.deb ... 240s Unpacking libblockdev3:armhf (3.1.0-1build1) over (3.1.0-1) ... 240s Preparing to unpack .../42-libevent-core-2.1-7_2.1.12-stable-9build1_armhf.deb ... 240s Unpacking libevent-core-2.1-7:armhf (2.1.12-stable-9build1) over (2.1.12-stable-9) ... 240s Preparing to unpack .../43-libftdi1-2_1.5-6build4_armhf.deb ... 240s Unpacking libftdi1-2:armhf (1.5-6build4) over (1.5-6build3) ... 240s Preparing to unpack .../44-libldap-common_2.6.7+dfsg-1~exp1ubuntu6_all.deb ... 240s Unpacking libldap-common (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 240s Preparing to unpack .../45-libsasl2-modules_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 240s Unpacking libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 240s Preparing to unpack .../46-python3-lib2to3_3.12.2-3ubuntu2_all.deb ... 241s Unpacking python3-lib2to3 (3.12.2-3ubuntu2) over (3.11.5-1) ... 241s Preparing to unpack .../47-python3-markupsafe_2.1.5-1build1_armhf.deb ... 241s Unpacking python3-markupsafe (2.1.5-1build1) over (2.1.5-1) ... 241s Preparing to unpack .../48-python3-openssl_24.0.0-4_all.deb ... 241s Unpacking python3-openssl (24.0.0-4) over (23.2.0-1) ... 241s Preparing to unpack .../49-python3-pyrsistent_0.20.0-1build1_armhf.deb ... 242s Unpacking python3-pyrsistent:armhf (0.20.0-1build1) over (0.20.0-1) ... 242s Preparing to unpack .../50-python3-typing-extensions_4.10.0-1_all.deb ... 242s Unpacking python3-typing-extensions (4.10.0-1) over (4.9.0-1) ... 242s Preparing to unpack .../51-kpartx_0.9.4-5ubuntu4_armhf.deb ... 242s Unpacking kpartx (0.9.4-5ubuntu4) over (0.9.4-5ubuntu3) ... 242s Setting up pinentry-curses (1.2.1-3ubuntu4) ... 242s Setting up libtext-iconv-perl:armhf (1.7-8build2) ... 242s Setting up libtext-charwidth-perl:armhf (0.04-11build2) ... 242s Setting up libibverbs1:armhf (50.0-2build1) ... 242s Setting up systemd-sysv (255.4-1ubuntu5) ... 242s Setting up libapparmor1:armhf (4.0.0-beta3-0ubuntu2) ... 242s Setting up libatm1t64:armhf (1:2.5.1-5.1) ... 242s Setting up libgdbm6t64:armhf (1.23-5.1) ... 242s Setting up bsdextrautils (2.39.3-9ubuntu2) ... 242s Setting up libgdbm-compat4t64:armhf (1.23-5.1) ... 242s Setting up xdg-user-dirs (0.18-1) ... 242s Setting up ibverbs-providers:armhf (50.0-2build1) ... 242s Setting up libmagic-mgc (1:5.45-3) ... 242s Setting up gawk (1:5.2.1-2build2) ... 242s Setting up psmisc (23.7-1) ... 242s Setting up libjq1:armhf (1.7.1-3) ... 242s Setting up libtirpc-common (1.3.4+ds-1.1) ... 242s Setting up libbrotli1:armhf (1.1.0-2build1) ... 242s Setting up libsqlite3-0:armhf (3.45.1-1ubuntu1) ... 242s Setting up libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) ... 242s Setting up libuv1t64:armhf (1.48.0-1.1) ... 242s Setting up libmagic1t64:armhf (1:5.45-3) ... 242s Setting up libpsl5t64:armhf (0.21.2-1.1) ... 242s Setting up libnghttp2-14:armhf (1.59.0-1build1) ... 242s Setting up libreiserfscore0t64 (1:3.6.27-7.1) ... 242s Setting up libnss-systemd:armhf (255.4-1ubuntu5) ... 242s Setting up krb5-locales (1.20.1-5.1build3) ... 242s Setting up file (1:5.45-3) ... 242s Setting up lshw (02.19.git.2021.06.19.996aaad9c7-2build2) ... 242s Setting up locales (2.39-0ubuntu6) ... 245s Generating locales (this might take a while)... 251s en_US.UTF-8... done 251s Generation complete. 251s Setting up libldap-common (2.6.7+dfsg-1~exp1ubuntu6) ... 251s Setting up xxd (2:9.1.0016-1ubuntu5) ... 251s Setting up libelf1t64:armhf (0.190-1.1build2) ... 251s Setting up libkrb5support0:armhf (1.20.1-5.1build3) ... 251s Setting up eject (2.39.3-9ubuntu2) ... 251s Setting up apparmor (4.0.0-beta3-0ubuntu2) ... 251s Installing new version of config file /etc/apparmor.d/abstractions/authentication ... 251s Installing new version of config file /etc/apparmor.d/abstractions/crypto ... 251s Installing new version of config file /etc/apparmor.d/abstractions/kde-open5 ... 251s Installing new version of config file /etc/apparmor.d/abstractions/openssl ... 251s Installing new version of config file /etc/apparmor.d/code ... 251s Installing new version of config file /etc/apparmor.d/firefox ... 253s apparmor_parser: Unable to replace "lsb_release". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 253s 253s apparmor_parser: Unable to replace "kmod". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 253s 253s apparmor_parser: Unable to replace "nvidia_modprobe". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 253s 255s sysctl: cannot stat /proc/sys/kernel/apparmor_restrict_unprivileged_userns: No such file or directory 255s Reloading AppArmor profiles 255s /sbin/apparmor_parser: Unable to replace "Discord". /sbin/apparmor_parser: Unable to replace "1password". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "MongoDB Compass". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "brave". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "buildah". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "cam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "busybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "ch-checkns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "ch-run". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "chrome". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "vscode". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "crun". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "devhelp". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "epiphany". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "element-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "firefox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "flatpak". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "evolution". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "geary". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "github-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "goldendict". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "ipa_verify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "kchmviewer". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "keybase". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lc-compliance". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "libcamerify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "loupe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "linux-sandbox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lxc-attach". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lxc-create". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lxc-destroy". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lxc-execute". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lxc-stop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "mmdebstrap". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lxc-usernsexec". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "msedge". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lxc-unshare". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "obsidian". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "notepadqq". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "pageedit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "opera". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "nautilus". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "privacybrowser". /sbin/apparmor_parser: Unable to replace "polypane". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "qcam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "podman". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "qutebrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "rootlesskit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "qmapshack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "opam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "rssguard". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "runc". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-apt". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-adduser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "plasmashell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-checkpackages". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-clean". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "rpm". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-distupgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-destroychroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-unhold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-shell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-createchroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-hold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-upgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-update". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "sbuild-abort". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "signal-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "slirp4netns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "scide". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "stress-ng". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "steam". /sbin/apparmor_parser: Unable to replace "thunderbird". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "slack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "systemd-coredump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "toybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "tup". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "surfshark". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "tuxedo-control-center". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "trinity". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "userbindmount". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "lsb_release". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "unprivileged_userns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "uwsgi-core". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "vdens". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "kmod". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "nvidia_modprobe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "vivaldi-bin". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "vpnns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "wpcom". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "virtiofsd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "unix-chkpwd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "rsyslogd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "/usr/bin/man". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "ubuntu_pro_apt_news". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s /sbin/apparmor_parser: Unable to replace "tcpdump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 255s 255s Error: At least one profile failed to load 255s Setting up libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 255s No schema files found: doing nothing. 255s Setting up libglib2.0-data (2.79.3-3ubuntu5) ... 255s Setting up vim-common (2:9.1.0016-1ubuntu5) ... 255s Setting up gcc-13-base:armhf (13.2.0-19ubuntu1) ... 255s Setting up libqrtr-glib0:armhf (1.2.2-1ubuntu3) ... 255s Setting up libslang2:armhf (2.3.3-3build1) ... 255s Setting up libnvme1t64 (1.8-3) ... 255s Setting up mtr-tiny (0.95-1.1build1) ... 255s Setting up gnupg-l10n (2.4.4-2ubuntu15) ... 255s Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) ... 255s Setting up libdbus-1-3:armhf (1.14.10-4ubuntu2) ... 255s Setting up xz-utils (5.6.0-0.2) ... 255s Setting up perl-modules-5.38 (5.38.2-3.2) ... 255s Setting up libpng16-16t64:armhf (1.6.43-3) ... 255s Setting up systemd-timesyncd (255.4-1ubuntu5) ... 256s Setting up libevent-core-2.1-7:armhf (2.1.12-stable-9build1) ... 256s Setting up libss2:armhf (1.47.0-2.4~exp1ubuntu2) ... 256s Setting up usb.ids (2024.03.18-1) ... 256s Setting up sudo (1.9.15p5-3ubuntu3) ... 256s Setting up dhcpcd-base (1:10.0.6-1ubuntu2) ... 256s Setting up gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) ... 256s Setting up libk5crypto3:armhf (1.20.1-5.1build3) ... 256s Setting up logsave (1.47.0-2.4~exp1ubuntu2) ... 256s Setting up libfdisk1:armhf (2.39.3-9ubuntu2) ... 256s Setting up libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 256s Setting up libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) ... 256s Setting up python-apt-common (2.7.6build1) ... 256s Setting up mount (2.39.3-9ubuntu2) ... 256s Setting up dmsetup (2:1.02.185-3ubuntu2) ... 256s Setting up uuid-runtime (2.39.3-9ubuntu2) ... 258s uuidd.service is a disabled or a static unit not running, not starting it. 258s Setting up libmm-glib0:armhf (1.23.4-0ubuntu1) ... 258s Setting up groff-base (1.23.0-3build1) ... 258s Setting up libplymouth5:armhf (24.004.60-1ubuntu5) ... 258s Setting up dbus-session-bus-common (1.14.10-4ubuntu2) ... 258s Setting up jq (1.7.1-3) ... 259s Setting up gpgconf (2.4.4-2ubuntu15) ... 259s Setting up libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 259s Setting up libcryptsetup12:armhf (2:2.7.0-1ubuntu2) ... 259s Setting up libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) ... 259s Setting up libjson-glib-1.0-common (1.8.0-2build1) ... 259s Setting up libkrb5-3:armhf (1.20.1-5.1build3) ... 259s Setting up libpython3.11-minimal:armhf (3.11.8-1build4) ... 259s Setting up libusb-1.0-0:armhf (2:1.0.27-1) ... 259s Setting up libperl5.38t64:armhf (5.38.2-3.2) ... 259s Setting up tnftp (20230507-2build1) ... 259s Setting up dbus-system-bus-common (1.14.10-4ubuntu2) ... 259s Setting up libfido2-1:armhf (1.14.0-1build1) ... 259s Setting up openssl (3.0.13-0ubuntu2) ... 259s Setting up libbsd0:armhf (0.12.1-1) ... 259s Setting up readline-common (8.2-3.1) ... 259s Setting up libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) ... 259s Setting up libxmuu1:armhf (2:1.1.3-3build1) ... 259s Setting up dbus-bin (1.14.10-4ubuntu2) ... 259s Setting up info (7.1-3build1) ... 259s Setting up liblocale-gettext-perl (1.07-6ubuntu3) ... 259s Setting up gpg (2.4.4-2ubuntu15) ... 259s Setting up libgudev-1.0-0:armhf (1:238-3ubuntu2) ... 259s Setting up libpolkit-gobject-1-0:armhf (124-1ubuntu1) ... 259s Setting up libbpf1:armhf (1:1.3.0-2build1) ... 259s Setting up libmbim-glib4:armhf (1.31.2-0ubuntu2) ... 259s Setting up rsync (3.2.7-1build1) ... 260s rsync.service is a disabled or a static unit not running, not starting it. 260s Setting up libkmod2:armhf (31+20240202-2ubuntu4) ... 260s Setting up bolt (0.9.6-2build1) ... 261s bolt.service is a disabled or a static unit not running, not starting it. 261s Setting up gnupg-utils (2.4.4-2ubuntu15) ... 261s Setting up initramfs-tools-bin (0.142ubuntu22) ... 261s Setting up cryptsetup-bin (2:2.7.0-1ubuntu2) ... 261s Setting up python3.11-minimal (3.11.8-1build4) ... 264s Setting up tcpdump (4.99.4-3ubuntu2) ... 264s apparmor_parser: Unable to replace "tcpdump". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 264s 264s Setting up apt-utils (2.7.13ubuntu1) ... 264s Setting up gpg-agent (2.4.4-2ubuntu15) ... 265s Setting up libpython3.12-stdlib:armhf (3.12.2-4build3) ... 265s Setting up wget (1.21.4-1ubuntu2) ... 265s Setting up libxmlb2:armhf (0.3.15-1build1) ... 265s Setting up btrfs-progs (6.6.3-1.1build1) ... 265s Setting up libpython3.11-stdlib:armhf (3.11.8-1build4) ... 265s Setting up python3.12 (3.12.2-4build3) ... 268s Setting up gpgsm (2.4.4-2ubuntu15) ... 268s Setting up inetutils-telnet (2:2.5-3ubuntu3) ... 268s Setting up e2fsprogs (1.47.0-2.4~exp1ubuntu2) ... 268s update-initramfs: deferring update (trigger activated) 270s e2scrub_all.service is a disabled or a static unit not running, not starting it. 270s Setting up libparted2t64:armhf (3.6-3.1build2) ... 270s Setting up dbus-daemon (1.14.10-4ubuntu2) ... 270s Setting up libmbim-proxy (1.31.2-0ubuntu2) ... 270s Setting up vim-tiny (2:9.1.0016-1ubuntu5) ... 270s Setting up kmod (31+20240202-2ubuntu4) ... 270s Setting up libnetplan1:armhf (1.0-1) ... 270s Setting up man-db (2.12.0-3build4) ... 271s Updating database of manual pages ... 273s apparmor_parser: Unable to replace "/usr/bin/man". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 273s 274s man-db.service is a disabled or a static unit not running, not starting it. 274s Setting up fdisk (2.39.3-9ubuntu2) ... 274s Setting up libjson-glib-1.0-0:armhf (1.8.0-2build1) ... 274s Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) ... 274s Setting up libftdi1-2:armhf (1.5-6build4) ... 274s Setting up perl (5.38.2-3.2) ... 274s Setting up gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) ... 274s Setting up dbus (1.14.10-4ubuntu2) ... 274s A reboot is required to replace the running dbus-daemon. 274s Please reboot the system when convenient. 275s Setting up shared-mime-info (2.4-1build1) ... 276s Setting up libblockdev-utils3:armhf (3.1.0-1build1) ... 276s Setting up libgssapi-krb5-2:armhf (1.20.1-5.1build3) ... 276s Setting up udev (255.4-1ubuntu5) ... 278s Setting up ftp (20230507-2build1) ... 278s Setting up keyboxd (2.4.4-2ubuntu15) ... 278s Setting up libdpkg-perl (1.22.6ubuntu4) ... 279s Setting up libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) ... 279s Setting up libssh-4:armhf (0.10.6-2build1) ... 279s Setting up libblockdev-nvme3:armhf (3.1.0-1build1) ... 279s Setting up libblockdev-fs3:armhf (3.1.0-1build1) ... 279s Setting up kpartx (0.9.4-5ubuntu4) ... 279s Setting up libpam-systemd:armhf (255.4-1ubuntu5) ... 279s Setting up libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 279s Setting up libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 279s Setting up netplan-generator (1.0-1) ... 279s Removing 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 279s Setting up initramfs-tools-core (0.142ubuntu22) ... 279s Setting up libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 279s Setting up libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) ... 279s Setting up libpython3-stdlib:armhf (3.12.2-0ubuntu1) ... 279s Setting up systemd-resolved (255.4-1ubuntu5) ... 281s Setting up python3.11 (3.11.8-1build4) ... 283s Setting up telnet (0.17+2.5-3ubuntu3) ... 283s Setting up initramfs-tools (0.142ubuntu22) ... 283s update-initramfs: deferring update (trigger activated) 283s Setting up libblockdev-mdraid3:armhf (3.1.0-1build1) ... 283s Setting up libcurl4t64:armhf (8.5.0-2ubuntu7) ... 283s Setting up bind9-libs:armhf (1:9.18.24-0ubuntu3) ... 283s Setting up libtirpc3t64:armhf (1.3.4+ds-1.1) ... 283s Setting up e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) ... 283s Setting up libblockdev-swap3:armhf (3.1.0-1build1) ... 283s Setting up plymouth (24.004.60-1ubuntu5) ... 283s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 284s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 284s Setting up iproute2 (6.1.0-1ubuntu5) ... 284s Setting up openssh-client (1:9.6p1-3ubuntu10) ... 285s Setting up libgusb2:armhf (0.4.8-1build1) ... 285s Setting up libblockdev-loop3:armhf (3.1.0-1build1) ... 285s Setting up libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 285s Setting up parted (3.6-3.1build2) ... 285s Setting up libqmi-glib5:armhf (1.35.2-0ubuntu1) ... 285s Setting up python3 (3.12.2-0ubuntu1) ... 285s Setting up python3-markupsafe (2.1.5-1build1) ... 286s Setting up libblockdev3:armhf (3.1.0-1build1) ... 286s Setting up libjcat1:armhf (0.2.0-2build2) ... 286s Setting up dpkg-dev (1.22.6ubuntu4) ... 286s Setting up libblockdev-part3:armhf (3.1.0-1build1) ... 286s Setting up dirmngr (2.4.4-2ubuntu15) ... 286s Setting up dbus-user-session (1.14.10-4ubuntu2) ... 286s Setting up plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) ... 286s update-initramfs: deferring update (trigger activated) 286s Setting up python3-cryptography (41.0.7-4build2) ... 287s Setting up python3-gi (3.47.0-3build1) ... 287s Setting up python3-typing-extensions (4.10.0-1) ... 288s Setting up lsof (4.95.0-1build2) ... 288s Setting up python3-pyrsistent:armhf (0.20.0-1build1) ... 288s Setting up libnsl2:armhf (1.3.0-3build2) ... 288s Setting up gnupg (2.4.4-2ubuntu15) ... 288s Setting up python3-netplan (1.0-1) ... 288s Setting up curl (8.5.0-2ubuntu7) ... 288s Setting up libvolume-key1:armhf (0.3.12-7build1) ... 288s Setting up bind9-host (1:9.18.24-0ubuntu3) ... 288s Setting up python3-lib2to3 (3.12.2-3ubuntu2) ... 289s Setting up python3-pkg-resources (68.1.2-2ubuntu1) ... 289s Setting up openssh-sftp-server (1:9.6p1-3ubuntu10) ... 289s Setting up python3-dbus (1.3.2-5build2) ... 290s Setting up python3-setuptools (68.1.2-2ubuntu1) ... 291s Setting up gpg-wks-client (2.4.4-2ubuntu15) ... 291s Setting up openssh-server (1:9.6p1-3ubuntu10) ... 292s Replacing config file /etc/ssh/sshd_config with new version 294s Created symlink /etc/systemd/system/ssh.service.requires/ssh.socket → /usr/lib/systemd/system/ssh.socket. 298s Setting up libblockdev-crypto3:armhf (3.1.0-1build1) ... 298s Setting up python3-gdbm:armhf (3.12.2-3ubuntu2) ... 298s Setting up python3-apt (2.7.6build1) ... 298s Setting up python3-openssl (24.0.0-4) ... 299s Setting up libfwupd2:armhf (1.9.15-1) ... 299s Setting up python3-yaml (6.0.1-2build1) ... 299s Setting up libqmi-proxy (1.35.2-0ubuntu1) ... 299s Setting up netplan.io (1.0-1) ... 299s Setting up bind9-dnsutils (1:9.18.24-0ubuntu3) ... 299s Setting up ubuntu-pro-client (31.2) ... 299s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 299s 302s Setting up fwupd (1.9.15-1) ... 304s fwupd-offline-update.service is a disabled or a static unit not running, not starting it. 304s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 304s fwupd.service is a disabled or a static unit not running, not starting it. 304s Setting up ubuntu-pro-client-l10n (31.2) ... 304s Setting up ubuntu-minimal (1.536build1) ... 304s Setting up ubuntu-standard (1.536build1) ... 304s Processing triggers for libc-bin (2.39-0ubuntu6) ... 304s Processing triggers for ufw (0.36.2-5) ... 304s Processing triggers for install-info (7.1-3build1) ... 304s Processing triggers for initramfs-tools (0.142ubuntu22) ... 308s Reading package lists... 309s Building dependency tree... 309s Reading state information... 310s The following packages will be REMOVED: 310s libatasmart4* libblockdev-crypto3* libblockdev-fs3* libblockdev-loop3* 310s libblockdev-mdraid3* libblockdev-nvme3* libblockdev-part3* 310s libblockdev-swap3* libblockdev-utils3* libblockdev3* libbytesize-common* 310s libbytesize1* libnspr4* libnss3* libnvme1t64* libpolkit-agent-1-0* 310s libvolume-key1* linux-headers-6.8.0-11* python3-lib2to3* 311s 0 upgraded, 0 newly installed, 19 to remove and 1 not upgraded. 311s After this operation, 89.7 MB disk space will be freed. 312s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47405 files and directories currently installed.) 312s Removing libatasmart4:armhf (0.19-5build2) ... 312s Removing libblockdev-crypto3:armhf (3.1.0-1build1) ... 312s Removing libblockdev-fs3:armhf (3.1.0-1build1) ... 312s Removing libblockdev-loop3:armhf (3.1.0-1build1) ... 312s Removing libblockdev-mdraid3:armhf (3.1.0-1build1) ... 312s Removing libblockdev-nvme3:armhf (3.1.0-1build1) ... 312s Removing libblockdev-part3:armhf (3.1.0-1build1) ... 312s Removing libblockdev-swap3:armhf (3.1.0-1build1) ... 312s Removing libblockdev3:armhf (3.1.0-1build1) ... 312s Removing libblockdev-utils3:armhf (3.1.0-1build1) ... 312s Removing libbytesize1:armhf (2.10-1ubuntu1) ... 312s Removing libbytesize-common (2.10-1ubuntu1) ... 312s Removing libvolume-key1:armhf (0.3.12-7build1) ... 312s Removing libnss3:armhf (2:3.98-1) ... 312s Removing libnspr4:armhf (2:4.35-1.1) ... 312s Removing libnvme1t64 (1.8-3) ... 312s Removing libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 312s Removing linux-headers-6.8.0-11 (6.8.0-11.11) ... 314s Removing python3-lib2to3 (3.12.2-3ubuntu2) ... 315s Processing triggers for libc-bin (2.39-0ubuntu6) ... 315s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 27134 files and directories currently installed.) 315s Purging configuration files for libblockdev3:armhf (3.1.0-1build1) ... 318s autopkgtest [15:17:22]: rebooting testbed after setup commands that affected boot 363s autopkgtest [15:18:07]: testbed running kernel: Linux 5.4.0-170-generic #188-Ubuntu SMP Wed Jan 10 09:51:10 UTC 2024 396s autopkgtest [15:18:40]: @@@@@@@@@@@@@@@@@@@@ apt-source numpy 413s Get:1 http://ftpmaster.internal/ubuntu noble-proposed/main numpy 1:1.24.2-3ubuntu1 (dsc) [2456 B] 413s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main numpy 1:1.24.2-3ubuntu1 (tar) [8239 kB] 413s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main numpy 1:1.24.2-3ubuntu1 (diff) [32.1 kB] 413s gpgv: Signature made Tue Mar 19 10:32:15 2024 UTC 413s gpgv: using RSA key 568BF22A66337CBFC9A6B9B72C83DBC8E9BD0E37 413s gpgv: Can't check signature: No public key 413s dpkg-source: warning: cannot verify inline signature for ./numpy_1.24.2-3ubuntu1.dsc: no acceptable signature found 415s autopkgtest [15:18:59]: testing package numpy version 1:1.24.2-3ubuntu1 418s autopkgtest [15:19:02]: build not needed 571s autopkgtest [15:21:35]: test python3: preparing testbed 582s Reading package lists... 583s Building dependency tree... 583s Reading state information... 584s Starting pkgProblemResolver with broken count: 0 584s Starting 2 pkgProblemResolver with broken count: 0 584s Done 586s The following additional packages will be installed: 586s build-essential cpp cpp-13 cpp-13-arm-linux-gnueabihf 586s cpp-arm-linux-gnueabihf g++ g++-13 g++-13-arm-linux-gnueabihf 586s g++-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 586s gcc-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libc-dev-bin libc6-dev 586s libcc1-0 libcrypt-dev libexpat1-dev libgcc-13-dev libgfortran5 libgomp1 586s libisl23 libjs-jquery libjs-sphinxdoc libjs-underscore liblapack3 libmpc3 586s libpython3-all-dev libpython3-dev libpython3.12-dev libpython3.12t64 586s libstdc++-13-dev libubsan1 linux-libc-dev python3-all python3-all-dev 586s python3-dateutil python3-dev python3-hypothesis python3-iniconfig 586s python3-numpy python3-packaging python3-pluggy python3-pytest 586s python3-sortedcontainers python3.12-dev rpcsvc-proto zlib1g-dev 586s Suggested packages: 586s cpp-doc gcc-13-locales cpp-13-doc gcc-13-doc gcc-multilib manpages-dev 586s autoconf automake libtool flex bison gdb gcc-doc gdb-arm-linux-gnueabihf 586s glibc-doc libstdc++-13-doc python-hypothesis-doc gfortran 586s python-sortedcontainers-doc 586s Recommended packages: 586s manpages manpages-dev libc-devtools javascript-common python3-click 586s The following NEW packages will be installed: 586s autopkgtest-satdep build-essential cpp cpp-13 cpp-13-arm-linux-gnueabihf 586s cpp-arm-linux-gnueabihf g++ g++-13 g++-13-arm-linux-gnueabihf 586s g++-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 586s gcc-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libc-dev-bin libc6-dev 586s libcc1-0 libcrypt-dev libexpat1-dev libgcc-13-dev libgfortran5 libgomp1 586s libisl23 libjs-jquery libjs-sphinxdoc libjs-underscore liblapack3 libmpc3 586s libpython3-all-dev libpython3-dev libpython3.12-dev libpython3.12t64 586s libstdc++-13-dev libubsan1 linux-libc-dev python3-all python3-all-dev 586s python3-dateutil python3-dev python3-hypothesis python3-iniconfig 586s python3-numpy python3-packaging python3-pluggy python3-pytest 586s python3-sortedcontainers python3.12-dev rpcsvc-proto zlib1g-dev 587s 0 upgraded, 52 newly installed, 0 to remove and 1 not upgraded. 587s Need to get 62.3 MB/62.3 MB of archives. 587s After this operation, 194 MB of additional disk space will be used. 587s Get:1 /tmp/autopkgtest.b6ixTN/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [772 B] 587s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-dev-bin armhf 2.39-0ubuntu6 [19.1 kB] 587s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-libc-dev armhf 6.8.0-19.19 [1555 kB] 587s Get:4 http://ftpmaster.internal/ubuntu noble/main armhf libcrypt-dev armhf 1:4.4.36-4 [136 kB] 588s Get:5 http://ftpmaster.internal/ubuntu noble/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu6 [63.7 kB] 588s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6-dev armhf 2.39-0ubuntu6 [1351 kB] 588s Get:7 http://ftpmaster.internal/ubuntu noble/main armhf libisl23 armhf 0.26-3 [595 kB] 588s Get:8 http://ftpmaster.internal/ubuntu noble/main armhf libmpc3 armhf 1.3.1-1 [46.4 kB] 588s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [8753 kB] 589s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13 armhf 13.2.0-19ubuntu1 [1036 B] 589s Get:11 http://ftpmaster.internal/ubuntu noble/main armhf cpp-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [5320 B] 589s Get:12 http://ftpmaster.internal/ubuntu noble/main armhf cpp armhf 4:13.2.0-7ubuntu1 [22.4 kB] 589s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcc1-0 armhf 14-20240315-1ubuntu1 [39.0 kB] 589s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgomp1 armhf 14-20240315-1ubuntu1 [125 kB] 589s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libatomic1 armhf 14-20240315-1ubuntu1 [7824 B] 589s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libasan8 armhf 14-20240315-1ubuntu1 [2941 kB] 589s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libubsan1 armhf 14-20240315-1ubuntu1 [1152 kB] 589s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-13-dev armhf 13.2.0-19ubuntu1 [900 kB] 589s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [16.8 MB] 590s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13 armhf 13.2.0-19ubuntu1 [448 kB] 590s Get:21 http://ftpmaster.internal/ubuntu noble/main armhf gcc-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [1220 B] 590s Get:22 http://ftpmaster.internal/ubuntu noble/main armhf gcc armhf 4:13.2.0-7ubuntu1 [5022 B] 590s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++-13-dev armhf 13.2.0-19ubuntu1 [2403 kB] 590s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf g++-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [9935 kB] 590s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf g++-13 armhf 13.2.0-19ubuntu1 [14.5 kB] 590s Get:26 http://ftpmaster.internal/ubuntu noble/main armhf g++-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [966 B] 590s Get:27 http://ftpmaster.internal/ubuntu noble/main armhf g++ armhf 4:13.2.0-7ubuntu1 [1090 B] 590s Get:28 http://ftpmaster.internal/ubuntu noble/main armhf build-essential armhf 12.10ubuntu1 [4928 B] 590s Get:29 http://ftpmaster.internal/ubuntu noble/main armhf libblas3 armhf 3.12.0-3 [123 kB] 590s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1-dev armhf 2.6.1-2 [122 kB] 590s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgfortran5 armhf 14-20240315-1ubuntu1 [312 kB] 590s Get:32 http://ftpmaster.internal/ubuntu noble/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 590s Get:33 http://ftpmaster.internal/ubuntu noble/main armhf libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 590s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjs-sphinxdoc all 7.2.6-5 [149 kB] 591s Get:35 http://ftpmaster.internal/ubuntu noble/main armhf liblapack3 armhf 3.12.0-3 [2085 kB] 591s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12t64 armhf 3.12.2-4build3 [2056 kB] 591s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g-dev armhf 1:1.3.dfsg-3.1ubuntu1 [880 kB] 591s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-dev armhf 3.12.2-4build3 [3901 kB] 591s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-dev armhf 3.12.2-0ubuntu1 [10.1 kB] 591s Get:40 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-all-dev armhf 3.12.2-0ubuntu1 [910 B] 591s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-all armhf 3.12.2-0ubuntu1 [886 B] 591s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-dev armhf 3.12.2-4build3 [498 kB] 591s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dev armhf 3.12.2-0ubuntu1 [26.7 kB] 591s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-all-dev armhf 3.12.2-0ubuntu1 [908 B] 591s Get:45 http://ftpmaster.internal/ubuntu noble/main armhf python3-dateutil all 2.8.2-3 [79.2 kB] 591s Get:46 http://ftpmaster.internal/ubuntu noble/main armhf python3-sortedcontainers all 2.4.0-2 [27.6 kB] 591s Get:47 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf python3-hypothesis all 6.98.15-1 [311 kB] 591s Get:48 http://ftpmaster.internal/ubuntu noble/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 591s Get:49 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-numpy armhf 1:1.24.2-3ubuntu1 [3610 kB] 591s Get:50 http://ftpmaster.internal/ubuntu noble/main armhf python3-packaging all 23.2-1 [40.6 kB] 591s Get:51 http://ftpmaster.internal/ubuntu noble/universe armhf python3-pluggy all 1.4.0-1 [20.4 kB] 591s Get:52 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf python3-pytest all 8.0.2-1 [248 kB] 593s Fetched 62.3 MB in 5s (13.7 MB/s) 593s Selecting previously unselected package libc-dev-bin. 593s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 27130 files and directories currently installed.) 593s Preparing to unpack .../00-libc-dev-bin_2.39-0ubuntu6_armhf.deb ... 593s Unpacking libc-dev-bin (2.39-0ubuntu6) ... 593s Selecting previously unselected package linux-libc-dev:armhf. 593s Preparing to unpack .../01-linux-libc-dev_6.8.0-19.19_armhf.deb ... 593s Unpacking linux-libc-dev:armhf (6.8.0-19.19) ... 594s Selecting previously unselected package libcrypt-dev:armhf. 594s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.36-4_armhf.deb ... 594s Unpacking libcrypt-dev:armhf (1:4.4.36-4) ... 594s Selecting previously unselected package rpcsvc-proto. 594s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu6_armhf.deb ... 594s Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ... 594s Selecting previously unselected package libc6-dev:armhf. 594s Preparing to unpack .../04-libc6-dev_2.39-0ubuntu6_armhf.deb ... 594s Unpacking libc6-dev:armhf (2.39-0ubuntu6) ... 594s Selecting previously unselected package libisl23:armhf. 594s Preparing to unpack .../05-libisl23_0.26-3_armhf.deb ... 594s Unpacking libisl23:armhf (0.26-3) ... 594s Selecting previously unselected package libmpc3:armhf. 594s Preparing to unpack .../06-libmpc3_1.3.1-1_armhf.deb ... 594s Unpacking libmpc3:armhf (1.3.1-1) ... 594s Selecting previously unselected package cpp-13-arm-linux-gnueabihf. 594s Preparing to unpack .../07-cpp-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 594s Unpacking cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 595s Selecting previously unselected package cpp-13. 595s Preparing to unpack .../08-cpp-13_13.2.0-19ubuntu1_armhf.deb ... 595s Unpacking cpp-13 (13.2.0-19ubuntu1) ... 595s Selecting previously unselected package cpp-arm-linux-gnueabihf. 595s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 595s Unpacking cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 595s Selecting previously unselected package cpp. 595s Preparing to unpack .../10-cpp_4%3a13.2.0-7ubuntu1_armhf.deb ... 595s Unpacking cpp (4:13.2.0-7ubuntu1) ... 595s Selecting previously unselected package libcc1-0:armhf. 595s Preparing to unpack .../11-libcc1-0_14-20240315-1ubuntu1_armhf.deb ... 595s Unpacking libcc1-0:armhf (14-20240315-1ubuntu1) ... 595s Selecting previously unselected package libgomp1:armhf. 595s Preparing to unpack .../12-libgomp1_14-20240315-1ubuntu1_armhf.deb ... 595s Unpacking libgomp1:armhf (14-20240315-1ubuntu1) ... 595s Selecting previously unselected package libatomic1:armhf. 595s Preparing to unpack .../13-libatomic1_14-20240315-1ubuntu1_armhf.deb ... 595s Unpacking libatomic1:armhf (14-20240315-1ubuntu1) ... 595s Selecting previously unselected package libasan8:armhf. 595s Preparing to unpack .../14-libasan8_14-20240315-1ubuntu1_armhf.deb ... 595s Unpacking libasan8:armhf (14-20240315-1ubuntu1) ... 596s Selecting previously unselected package libubsan1:armhf. 596s Preparing to unpack .../15-libubsan1_14-20240315-1ubuntu1_armhf.deb ... 596s Unpacking libubsan1:armhf (14-20240315-1ubuntu1) ... 596s Selecting previously unselected package libgcc-13-dev:armhf. 596s Preparing to unpack .../16-libgcc-13-dev_13.2.0-19ubuntu1_armhf.deb ... 596s Unpacking libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 596s Selecting previously unselected package gcc-13-arm-linux-gnueabihf. 596s Preparing to unpack .../17-gcc-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 596s Unpacking gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 597s Selecting previously unselected package gcc-13. 597s Preparing to unpack .../18-gcc-13_13.2.0-19ubuntu1_armhf.deb ... 597s Unpacking gcc-13 (13.2.0-19ubuntu1) ... 597s Selecting previously unselected package gcc-arm-linux-gnueabihf. 597s Preparing to unpack .../19-gcc-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 597s Unpacking gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 597s Selecting previously unselected package gcc. 597s Preparing to unpack .../20-gcc_4%3a13.2.0-7ubuntu1_armhf.deb ... 597s Unpacking gcc (4:13.2.0-7ubuntu1) ... 597s Selecting previously unselected package libstdc++-13-dev:armhf. 597s Preparing to unpack .../21-libstdc++-13-dev_13.2.0-19ubuntu1_armhf.deb ... 597s Unpacking libstdc++-13-dev:armhf (13.2.0-19ubuntu1) ... 598s Selecting previously unselected package g++-13-arm-linux-gnueabihf. 598s Preparing to unpack .../22-g++-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 598s Unpacking g++-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 598s Selecting previously unselected package g++-13. 598s Preparing to unpack .../23-g++-13_13.2.0-19ubuntu1_armhf.deb ... 598s Unpacking g++-13 (13.2.0-19ubuntu1) ... 598s Selecting previously unselected package g++-arm-linux-gnueabihf. 598s Preparing to unpack .../24-g++-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 598s Unpacking g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 598s Selecting previously unselected package g++. 598s Preparing to unpack .../25-g++_4%3a13.2.0-7ubuntu1_armhf.deb ... 598s Unpacking g++ (4:13.2.0-7ubuntu1) ... 598s Selecting previously unselected package build-essential. 598s Preparing to unpack .../26-build-essential_12.10ubuntu1_armhf.deb ... 598s Unpacking build-essential (12.10ubuntu1) ... 598s Selecting previously unselected package libblas3:armhf. 598s Preparing to unpack .../27-libblas3_3.12.0-3_armhf.deb ... 598s Unpacking libblas3:armhf (3.12.0-3) ... 598s Selecting previously unselected package libexpat1-dev:armhf. 598s Preparing to unpack .../28-libexpat1-dev_2.6.1-2_armhf.deb ... 598s Unpacking libexpat1-dev:armhf (2.6.1-2) ... 599s Selecting previously unselected package libgfortran5:armhf. 599s Preparing to unpack .../29-libgfortran5_14-20240315-1ubuntu1_armhf.deb ... 599s Unpacking libgfortran5:armhf (14-20240315-1ubuntu1) ... 599s Selecting previously unselected package libjs-jquery. 599s Preparing to unpack .../30-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 599s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 599s Selecting previously unselected package libjs-underscore. 599s Preparing to unpack .../31-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 599s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 599s Selecting previously unselected package libjs-sphinxdoc. 599s Preparing to unpack .../32-libjs-sphinxdoc_7.2.6-5_all.deb ... 599s Unpacking libjs-sphinxdoc (7.2.6-5) ... 599s Selecting previously unselected package liblapack3:armhf. 599s Preparing to unpack .../33-liblapack3_3.12.0-3_armhf.deb ... 599s Unpacking liblapack3:armhf (3.12.0-3) ... 599s Selecting previously unselected package libpython3.12t64:armhf. 599s Preparing to unpack .../34-libpython3.12t64_3.12.2-4build3_armhf.deb ... 599s Unpacking libpython3.12t64:armhf (3.12.2-4build3) ... 599s Selecting previously unselected package zlib1g-dev:armhf. 599s Preparing to unpack .../35-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 599s Unpacking zlib1g-dev:armhf (1:1.3.dfsg-3.1ubuntu1) ... 599s Selecting previously unselected package libpython3.12-dev:armhf. 599s Preparing to unpack .../36-libpython3.12-dev_3.12.2-4build3_armhf.deb ... 599s Unpacking libpython3.12-dev:armhf (3.12.2-4build3) ... 600s Selecting previously unselected package libpython3-dev:armhf. 600s Preparing to unpack .../37-libpython3-dev_3.12.2-0ubuntu1_armhf.deb ... 600s Unpacking libpython3-dev:armhf (3.12.2-0ubuntu1) ... 600s Selecting previously unselected package libpython3-all-dev:armhf. 600s Preparing to unpack .../38-libpython3-all-dev_3.12.2-0ubuntu1_armhf.deb ... 600s Unpacking libpython3-all-dev:armhf (3.12.2-0ubuntu1) ... 600s Selecting previously unselected package python3-all. 600s Preparing to unpack .../39-python3-all_3.12.2-0ubuntu1_armhf.deb ... 600s Unpacking python3-all (3.12.2-0ubuntu1) ... 600s Selecting previously unselected package python3.12-dev. 600s Preparing to unpack .../40-python3.12-dev_3.12.2-4build3_armhf.deb ... 600s Unpacking python3.12-dev (3.12.2-4build3) ... 600s Selecting previously unselected package python3-dev. 600s Preparing to unpack .../41-python3-dev_3.12.2-0ubuntu1_armhf.deb ... 600s Unpacking python3-dev (3.12.2-0ubuntu1) ... 600s Selecting previously unselected package python3-all-dev. 600s Preparing to unpack .../42-python3-all-dev_3.12.2-0ubuntu1_armhf.deb ... 600s Unpacking python3-all-dev (3.12.2-0ubuntu1) ... 600s Selecting previously unselected package python3-dateutil. 600s Preparing to unpack .../43-python3-dateutil_2.8.2-3_all.deb ... 600s Unpacking python3-dateutil (2.8.2-3) ... 600s Selecting previously unselected package python3-sortedcontainers. 601s Preparing to unpack .../44-python3-sortedcontainers_2.4.0-2_all.deb ... 601s Unpacking python3-sortedcontainers (2.4.0-2) ... 601s Selecting previously unselected package python3-hypothesis. 601s Preparing to unpack .../45-python3-hypothesis_6.98.15-1_all.deb ... 601s Unpacking python3-hypothesis (6.98.15-1) ... 601s Selecting previously unselected package python3-iniconfig. 601s Preparing to unpack .../46-python3-iniconfig_1.1.1-2_all.deb ... 601s Unpacking python3-iniconfig (1.1.1-2) ... 601s Selecting previously unselected package python3-numpy. 601s Preparing to unpack .../47-python3-numpy_1%3a1.24.2-3ubuntu1_armhf.deb ... 601s Unpacking python3-numpy (1:1.24.2-3ubuntu1) ... 602s Selecting previously unselected package python3-packaging. 602s Preparing to unpack .../48-python3-packaging_23.2-1_all.deb ... 602s Unpacking python3-packaging (23.2-1) ... 602s Selecting previously unselected package python3-pluggy. 602s Preparing to unpack .../49-python3-pluggy_1.4.0-1_all.deb ... 602s Unpacking python3-pluggy (1.4.0-1) ... 602s Selecting previously unselected package python3-pytest. 602s Preparing to unpack .../50-python3-pytest_8.0.2-1_all.deb ... 602s Unpacking python3-pytest (8.0.2-1) ... 602s Selecting previously unselected package autopkgtest-satdep. 602s Preparing to unpack .../51-1-autopkgtest-satdep.deb ... 602s Unpacking autopkgtest-satdep (0) ... 602s Setting up python3-iniconfig (1.1.1-2) ... 602s Setting up linux-libc-dev:armhf (6.8.0-19.19) ... 602s Setting up python3-all (3.12.2-0ubuntu1) ... 602s Setting up python3-sortedcontainers (2.4.0-2) ... 603s Setting up libgomp1:armhf (14-20240315-1ubuntu1) ... 603s Setting up libpython3.12t64:armhf (3.12.2-4build3) ... 603s Setting up libblas3:armhf (3.12.0-3) ... 603s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 603s Setting up python3-packaging (23.2-1) ... 603s Setting up rpcsvc-proto (1.4.2-0ubuntu6) ... 603s Setting up libmpc3:armhf (1.3.1-1) ... 603s Setting up libatomic1:armhf (14-20240315-1ubuntu1) ... 603s Setting up libgfortran5:armhf (14-20240315-1ubuntu1) ... 603s Setting up python3-pluggy (1.4.0-1) ... 603s Setting up libubsan1:armhf (14-20240315-1ubuntu1) ... 603s Setting up libcrypt-dev:armhf (1:4.4.36-4) ... 603s Setting up libasan8:armhf (14-20240315-1ubuntu1) ... 603s Setting up python3-dateutil (2.8.2-3) ... 604s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 604s Setting up libisl23:armhf (0.26-3) ... 604s Setting up libc-dev-bin (2.39-0ubuntu6) ... 604s Setting up libcc1-0:armhf (14-20240315-1ubuntu1) ... 604s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 604s Setting up liblapack3:armhf (3.12.0-3) ... 604s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 604s Setting up cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 604s Setting up python3-pytest (8.0.2-1) ... 605s Setting up python3-hypothesis (6.98.15-1) ... 606s Setting up python3-numpy (1:1.24.2-3ubuntu1) ... 612s Setting up libjs-sphinxdoc (7.2.6-5) ... 612s Setting up libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 612s Setting up libc6-dev:armhf (2.39-0ubuntu6) ... 612s Setting up cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 612s Setting up libstdc++-13-dev:armhf (13.2.0-19ubuntu1) ... 612s Setting up cpp-13 (13.2.0-19ubuntu1) ... 612s Setting up gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 612s Setting up libexpat1-dev:armhf (2.6.1-2) ... 612s Setting up gcc-13 (13.2.0-19ubuntu1) ... 612s Setting up zlib1g-dev:armhf (1:1.3.dfsg-3.1ubuntu1) ... 612s Setting up cpp (4:13.2.0-7ubuntu1) ... 612s Setting up gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 612s Setting up g++-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 612s Setting up g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 612s Setting up g++-13 (13.2.0-19ubuntu1) ... 612s Setting up libpython3.12-dev:armhf (3.12.2-4build3) ... 612s Setting up gcc (4:13.2.0-7ubuntu1) ... 612s Setting up python3.12-dev (3.12.2-4build3) ... 612s Setting up g++ (4:13.2.0-7ubuntu1) ... 612s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 612s Setting up build-essential (12.10ubuntu1) ... 612s Setting up libpython3-dev:armhf (3.12.2-0ubuntu1) ... 612s Setting up libpython3-all-dev:armhf (3.12.2-0ubuntu1) ... 612s Setting up python3-dev (3.12.2-0ubuntu1) ... 612s Setting up python3-all-dev (3.12.2-0ubuntu1) ... 612s Setting up autopkgtest-satdep (0) ... 612s Processing triggers for man-db (2.12.0-3build4) ... 613s Processing triggers for libc-bin (2.39-0ubuntu6) ... 632s (Reading database ... 31548 files and directories currently installed.) 632s Removing autopkgtest-satdep (0) ... 637s autopkgtest [15:22:41]: test python3: [----------------------- 640s === python3.12 === 640s /usr/lib/python3/dist-packages/numpy/_pytesttester.py:143: DeprecationWarning: 640s 640s `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 640s of the deprecation of `distutils` itself. It will be removed for 640s Python >= 3.12. For older Python versions it will remain present. 640s It is recommended to use `setuptools < 60.0` for those Python versions. 640s For more details, see: 640s https://numpy.org/devdocs/reference/distutils_status_migration.html 640s 640s 640s from numpy.distutils import cpuinfo 670s NumPy version 1.24.2 670s NumPy relaxed strides checking option: True 670s NumPy CPU features: NEON* NEON_FP16* NEON_VFPV4* ASIMD* ASIMDHP? ASIMDDP? ASIMDFHM? 670s ============================= test session starts ============================== 670s platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.4.0 670s rootdir: /tmp/autopkgtest.b6ixTN/autopkgtest_tmp 670s plugins: hypothesis-6.98.15 670s collected 28260 items / 1315 deselected / 26945 selected 670s 674s array_api/tests/test_array_object.py ........................ [ 0%] 674s array_api/tests/test_creation_functions.py .............. [ 0%] 674s array_api/tests/test_data_type_functions.py .... [ 0%] 674s array_api/tests/test_elementwise_functions.py .. [ 0%] 676s array_api/tests/test_set_functions.py .. [ 0%] 676s array_api/tests/test_sorting_functions.py .... [ 0%] 676s array_api/tests/test_validation.py ... [ 0%] 676s compat/tests/test_compat.py . [ 0%] 676s core/tests/test__exceptions.py ........... [ 0%] 676s core/tests/test_abc.py ..... [ 0%] 676s core/tests/test_api.py ................................................. [ 0%] 678s ............ [ 0%] 678s core/tests/test_argparse.py ..... [ 0%] 678s core/tests/test_array_coercion.py ...................................... [ 0%] 679s .......................x................................................ [ 0%] 679s ........................................................................ [ 1%] 679s .s.......... [ 1%] 679s core/tests/test_arraymethod.py ........................................s [ 1%] 679s [ 1%] 681s core/tests/test_arrayprint.py ..x....................................... [ 1%] 681s .... [ 1%] 681s core/tests/test_casting_floatingpoint_errors.py ........................ [ 1%] 682s ........................................................................ [ 1%] 682s ........................................................................ [ 2%] 682s .............. [ 2%] 683s core/tests/test_casting_unittests.py ................................... [ 2%] 683s ........................................................................ [ 2%] 684s ........................................................................ [ 2%] 684s ........................................................................ [ 3%] 684s .................................... [ 3%] 684s core/tests/test_conversion_utils.py ........................... [ 3%] 684s core/tests/test_cpu_dispatcher.py . [ 3%] 684s core/tests/test_cpu_features.py sssF [ 3%] 684s core/tests/test_custom_dtypes.py ............................. [ 3%] 684s core/tests/test_cython.py ssssss [ 3%] 685s core/tests/test_datetime.py ............................................ [ 3%] 685s ........................................................................ [ 3%] 686s ...........F............................................................ [ 4%] 687s ...........................................x..........x..x..........x... [ 4%] 687s [ 4%] 687s core/tests/test_defchararray.py ........................................ [ 4%] 687s ........................................... [ 4%] 688s core/tests/test_deprecations.py .....F.................................. [ 4%] 688s .................ssssssss............................................... [ 5%] 689s ................................ [ 5%] 689s core/tests/test_dlpack.py .............................................. [ 5%] 689s ............ [ 5%] 689s core/tests/test_dtype.py ............................................... [ 5%] 706s ............................................ssssFFFFFFFFFFFFFFFFFFFFFFFF [ 6%] 713s FFFF.................................................................... [ 6%] 713s ........................................................................ [ 6%] 713s ........................................................................ [ 6%] 714s ........................................................................ [ 7%] 714s ........................................................................ [ 7%] 715s ........................................................................ [ 7%] 715s ........................................................................ [ 7%] 715s ........................................................................ [ 8%] 716s ........................................................................ [ 8%] 716s ........................................................................ [ 8%] 716s ........................................................................ [ 8%] 716s ........................................................................ [ 9%] 717s ..............................s [ 9%] 721s core/tests/test_einsum.py .............................................. [ 9%] 721s .................. [ 9%] 721s core/tests/test_errstate.py .... [ 9%] 723s core/tests/test_extint128.py ............ [ 9%] 724s core/tests/test_function_base.py .............................. [ 9%] 724s core/tests/test_getlimits.py .............. [ 9%] 724s core/tests/test_half.py ..................................... [ 9%] 724s core/tests/test_hashtable.py ......... [ 9%] 724s core/tests/test_indexerrors.py ........ [ 9%] 725s core/tests/test_indexing.py ............................................ [ 10%] 726s ....................................... [ 10%] 726s core/tests/test_item_selection.py ..... [ 10%] 726s core/tests/test_longdouble.py .s.....................sssssss.... [ 10%] 726s core/tests/test_machar.py . [ 10%] 733s core/tests/test_mem_overlap.py .................. [ 10%] 736s core/tests/test_mem_policy.py ......... [ 10%] 736s core/tests/test_memmap.py ................... [ 10%] 737s core/tests/test_multiarray.py .......................................... [ 10%] 737s ..............................s......................................... [ 11%] 742s .............xx......................................................... [ 11%] 742s ........................................................................ [ 11%] 743s ........................................................................ [ 11%] 746s .............................s.......................................... [ 12%] 747s ........................................................................ [ 12%] 747s ........................................................................ [ 12%] 748s ........................................................................ [ 12%] 750s ........................................................................ [ 13%] 753s ........................................................................ [ 13%] 756s ..............................................................s.s.s.s.s. [ 13%] 757s s.....s.s.....s.s.s.s.......s.s.s.s..................................... [ 13%] 758s ........................................................................ [ 14%] 759s ........................................................................ [ 14%] 760s ........................................................................ [ 14%] 762s ........................................................................ [ 15%] 769s ........................................................................ [ 15%] 773s ........................................................................ [ 15%] 773s ........................ [ 15%] 773s core/tests/test_nditer.py .............................................. [ 15%] 774s ........................................................................ [ 16%] 774s ........................................................................ [ 16%] 774s ........................................................................ [ 16%] 775s ........................................................................ [ 16%] 775s ........................................................................ [ 17%] 775s ........................................................................ [ 17%] 776s ........................................................................ [ 17%] 776s ........................................................................ [ 17%] 777s ........................................................................ [ 18%] 779s ........................................................................ [ 18%] 779s ................................... [ 18%] 780s core/tests/test_nep50_promotions.py .......................... [ 18%] 780s core/tests/test_numeric.py ..............................x...x.......... [ 18%] 781s ........................................................................ [ 19%] 781s ........................................................................ [ 19%] 785s ..........................................................xx............ [ 19%] 789s ........................................................................ [ 19%] 789s .................... [ 20%] 789s core/tests/test_numerictypes.py ........................................ [ 20%] 789s ........................................................................ [ 20%] 789s ...... [ 20%] 789s core/tests/test_overrides.py ........................................... [ 20%] 790s ........................................................................ [ 20%] 790s ........... [ 20%] 790s core/tests/test_print.py ...................sss [ 21%] 790s core/tests/test_protocols.py .. [ 21%] 790s core/tests/test_records.py ......................................... [ 21%] 790s core/tests/test_regression.py .......................................... [ 21%] 790s ........................................................................ [ 21%] 791s ................................................F....................... [ 21%] 795s ........................................................................ [ 22%] 796s ......s..s.............................................................. [ 22%] 796s ........................................................................ [ 22%] 796s ............ [ 22%] 796s core/tests/test_scalar_ctors.py ........................................ [ 22%] 796s ........................................................................ [ 23%] 797s .................................................. [ 23%] 797s core/tests/test_scalar_methods.py ............................s......... [ 23%] 797s ................................................................sss..... [ 23%] 797s ...... [ 23%] 797s core/tests/test_scalarbuffer.py ........................................ [ 23%] 797s ...................................... [ 24%] 797s core/tests/test_scalarinherit.py ..... [ 24%] 801s core/tests/test_scalarmath.py .........................ss............... [ 24%] 802s ........................................................................ [ 24%] 802s ........................................................................ [ 24%] 803s ......................ssssss............................................ [ 25%] 803s ........................................................................ [ 25%] 803s ...... [ 25%] 803s core/tests/test_scalarprint.py .....s [ 25%] 803s core/tests/test_shape_base.py .......................................... [ 25%] 804s ........................................................................ [ 25%] 804s ........................................................................ [ 26%] 804s ........................ [ 26%] 804s core/tests/test_simd.py ................................................ [ 26%] 804s ........................................................................ [ 26%] 805s ..............................ssssssssssssssssssssssssssssssssssssssssss [ 26%] 805s .s...................................................................... [ 27%] 805s ........................................................................ [ 27%] 806s ........................................................................ [ 27%] 806s ........................................................................ [ 27%] 807s ........................................................................ [ 28%] 808s ......................................ssssssssssssssssssssssssssssssssss [ 28%] 808s ssssssssss.............................................................. [ 28%] 808s ........................................................................ [ 28%] 809s ................ssssssssssssssssssssssssssssssssssssssssss.s............ [ 29%] 809s ........................................................................ [ 29%] 809s ........................................................................ [ 29%] 810s ........................................................................ [ 30%] 810s ........................................................................ [ 30%] 811s ........................................................................ [ 30%] 812s ........................ssssssssssssssssssssssssssssssssssssssssssssssss [ 30%] 812s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 812s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 812s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 812s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 812s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 813s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 813s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 813s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 813s ssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 33%] 813s core/tests/test_simd_module.py .................................... [ 33%] 817s core/tests/test_strings.py ............................................. [ 33%] 822s ........................................................................ [ 33%] 822s ................. [ 33%] 822s core/tests/test_ufunc.py ............................................... [ 33%] 823s ........................................................................ [ 34%] 824s .........................F.............................................. [ 34%] 824s ........................................................................ [ 34%] 825s ........................................................................ [ 35%] 825s ........................................................................ [ 35%] 827s ..................................................xxxxxxx............. [ 35%] 827s core/tests/test_umath.py ............................................... [ 35%] 828s ........................................................................ [ 36%] 828s ........................................................................ [ 36%] 830s ........................................................................ [ 36%] 834s ........................................................................ [ 36%] 836s ........................................................................ [ 37%] 836s ........................................................................ [ 37%] 837s ........................................................................ [ 37%] 837s ........................................................................ [ 37%] 838s ........................................................................ [ 38%] 838s ........................................................................ [ 38%] 838s ........................................................................ [ 38%] 838s ........................................................................ [ 38%] 839s ........................................................................ [ 39%] 839s ........................................................................ [ 39%] 839s ........................................................................ [ 39%] 840s ........................................................................ [ 40%] 840s ........................................................................ [ 40%] 840s ........................................................................ [ 40%] 840s ........................................................................ [ 40%] 841s ........................................................................ [ 41%] 841s ........................................................................ [ 41%] 841s ........................................................................ [ 41%] 842s ........................................................................ [ 41%] 842s ........................................................................ [ 42%] 842s ........................................................................ [ 42%] 843s ........................................................................ [ 42%] 843s ........................................................................ [ 42%] 843s ........................................................................ [ 43%] 844s ........................................................................ [ 43%] 844s ........................................................................ [ 43%] 844s ........................................................................ [ 44%] 845s ........................................................................ [ 44%] 845s ........................................................................ [ 44%] 846s ............................................................F........... [ 44%] 846s ........................................................................ [ 45%] 847s ....................................F................................... [ 45%] 847s ........................................................................ [ 45%] 848s ............F........................................................... [ 45%] 849s ............................................................F........... [ 46%] 849s ........................................................................ [ 46%] 850s ....................................F................................... [ 46%] 850s ........................................................................ [ 46%] 851s ............F........................................................... [ 47%] 851s ........................................................................ [ 47%] 851s ........................................................................ [ 47%] 852s ........................................................................ [ 48%] 852s ........................................................................ [ 48%] 852s ........................................................................ [ 48%] 853s ........................................................................ [ 48%] 853s ........................................................................ [ 49%] 854s ........................................................................ [ 49%] 854s ........................................................................ [ 49%] 855s ........................................................................ [ 49%] 857s ........................................................................ [ 50%] 860s ........................................................................ [ 50%] 861s ............s...s....................................................... [ 50%] 862s ........................................................................ [ 50%] 863s ........s............................................................... [ 51%] 864s ........................................................................ [ 51%] 865s ...........................................ssssssssssssss............... [ 51%] 866s ........................................................................ [ 52%] 866s ......................................... [ 52%] 867s core/tests/test_umath_accuracy.py s..................................... [ 52%] 867s ... [ 52%] 867s core/tests/test_umath_complex.py ..s............s....................... [ 52%] 867s ........................................................................ [ 52%] 868s ........................................................................ [ 53%] 868s ........................................................................ [ 53%] 868s ........................................................................ [ 53%] 868s ...... [ 53%] 868s core/tests/test_unicode.py ............................................. [ 53%] 869s ............................... [ 53%] 871s distutils/tests/test_ccompiler_opt.py .................................. [ 53%] 876s ........................................................................ [ 54%] 880s ........................................................................ [ 54%] 882s ........................................................................ [ 54%] 883s ....................... [ 54%] 883s distutils/tests/test_ccompiler_opt_conf.py . [ 54%] 884s distutils/tests/test_exec_command.py ... [ 54%] 884s distutils/tests/test_fcompiler.py . [ 54%] 884s distutils/tests/test_fcompiler_gnu.py .... [ 54%] 884s distutils/tests/test_fcompiler_intel.py .. [ 54%] 884s distutils/tests/test_fcompiler_nagfor.py . [ 54%] 884s distutils/tests/test_from_template.py . [ 54%] 884s distutils/tests/test_log.py .... [ 54%] 884s distutils/tests/test_mingw32ccompiler.py s [ 54%] 884s distutils/tests/test_misc_util.py ....... [ 54%] 884s distutils/tests/test_npy_pkg_config.py .... [ 54%] 886s distutils/tests/test_shell_utils.py sssssssssssssss...............ssssss [ 55%] 886s sssssssss............... [ 55%] 886s distutils/tests/test_system_info.py ....ss.. [ 55%] 887s f2py/tests/test_abstract_interface.py ss [ 55%] 894s f2py/tests/test_array_from_pyobj.py .................................... [ 55%] 894s ........................................................................ [ 55%] 895s ........................................................................ [ 55%] 895s ........................................................................ [ 56%] 895s ........................................................................ [ 56%] 896s ........................................................................ [ 56%] 896s ........................................................................ [ 56%] 896s ........................................................................ [ 57%] 897s ......................................... [ 57%] 897s f2py/tests/test_block_docstring.py s [ 57%] 897s f2py/tests/test_callback.py ssssssssssssssss [ 57%] 897s f2py/tests/test_character.py sssssssssssssssssssssssssssssssssssssssssss [ 57%] 897s [ 57%] 897s f2py/tests/test_common.py s [ 57%] 897s f2py/tests/test_compile_function.py sssssss [ 57%] 897s f2py/tests/test_crackfortran.py s.....sss....ssssssssssssssssss......s [ 57%] 897s f2py/tests/test_docs.py sss [ 57%] 897s f2py/tests/test_f2cmap.py s [ 57%] 899s f2py/tests/test_f2py2e.py ..x.............x.........x.................. [ 57%] 899s f2py/tests/test_kind.py s [ 57%] 899s f2py/tests/test_mixed.py ss [ 57%] 899s f2py/tests/test_module_doc.py s [ 57%] 899s f2py/tests/test_quoted_character.py s [ 58%] 899s f2py/tests/test_regression.py . [ 58%] 899s f2py/tests/test_return_character.py sssssssssssssss [ 58%] 899s f2py/tests/test_return_complex.py ssssssssssssssss [ 58%] 899s f2py/tests/test_return_integer.py ssssssssssssssssssss [ 58%] 899s f2py/tests/test_return_real.py ssssssssssssssssssss [ 58%] 899s f2py/tests/test_semicolon_split.py ss [ 58%] 899s f2py/tests/test_string.py sss [ 58%] 899s f2py/tests/test_symbolic.py ........... [ 58%] 899s f2py/tests/test_value_attrspec.py s [ 58%] 900s fft/tests/test_helper.py ........ [ 58%] 901s fft/tests/test_pocketfft.py ............................................ [ 58%] 903s .................................... [ 58%] 903s lib/tests/test__datasource.py .......................... [ 58%] 903s lib/tests/test__iotools.py ........................ [ 58%] 903s lib/tests/test__version.py ........ [ 58%] 903s lib/tests/test_arraypad.py ............................................. [ 59%] 904s ..................................x..................................... [ 59%] 904s ........................................................................ [ 59%] 905s ........................................................................ [ 59%] 905s ........................................................................ [ 60%] 905s ........................................................................ [ 60%] 906s ........................................................................ [ 60%] 906s ........................................................................ [ 60%] 906s ................................... [ 61%] 906s lib/tests/test_arraysetops.py .......................................... [ 61%] 907s ................................ [ 61%] 907s lib/tests/test_arrayterator.py . [ 61%] 907s lib/tests/test_financial_expired.py . [ 61%] 952s lib/tests/test_format.py .....................FFF................. [ 61%] 953s lib/tests/test_function_base.py ........................................ [ 61%] 953s ........................................................................ [ 61%] 964s .............................................x.......................... [ 62%] 964s ........................................................................ [ 62%] 965s ........................................................................ [ 62%] 965s ........................................................................ [ 62%] 965s ........................................................................ [ 63%] 966s ........................................................................ [ 63%] 966s ........................................................................ [ 63%] 967s ........................................................................ [ 64%] 967s ........................................................................ [ 64%] 970s ......................................X................................. [ 64%] 970s ................................... [ 64%] 972s lib/tests/test_histograms.py ........................................... [ 64%] 972s .............. [ 64%] 973s lib/tests/test_index_tricks.py ......................................... [ 65%] 973s ...... [ 65%] 974s lib/tests/test_io.py ................................................... [ 65%] 974s ........................................................................ [ 65%] 975s ........................................................................ [ 65%] 980s .... [ 65%] 980s lib/tests/test_loadtxt.py .............................................. [ 65%] 980s ........................................................................ [ 66%] 980s ........................................................................ [ 66%] 981s .......................x...x.............s.....x........................ [ 66%] 982s .................. [ 66%] 982s lib/tests/test_mixins.py ........... [ 66%] 983s lib/tests/test_nanfunctions.py .....................ss.ss.ss.ss.ss.ss.ss [ 67%] 983s ..........................................ss.ss.ss.ss.ss.ss.ss.......... [ 67%] 983s ........................................................................ [ 67%] 984s ........................................................................ [ 67%] 984s ........................................................................ [ 68%] 984s ........................................................................ [ 68%] 985s ........................................................................ [ 68%] 985s ........................................................................ [ 68%] 986s ........................................................................ [ 69%] 986s ........................................................................ [ 69%] 986s ........................................................................ [ 69%] 987s ..............................ss.ss.ss.ss.ss.ss.ss...................... [ 69%] 987s .....................ss.ss.ss.ss.ss.ss.ss............................... [ 70%] 988s ........ss.ss.ss.ss.ss.ss.ss............................................ [ 70%] 990s ........................................................................ [ 70%] 990s ..ss.ss.ss.ss.ss.ss.ss.............................ss.ss.ss.ss.ss.ss.ss. [ 71%] 991s ......................... [ 71%] 992s lib/tests/test_packbits.py ............................................. [ 71%] 992s ........................................................................ [ 71%] 993s ........................................................................ [ 71%] 993s ........................................................................ [ 72%] 994s ................... [ 72%] 994s lib/tests/test_polynomial.py ..................................... [ 72%] 994s lib/tests/test_recfunctions.py ......................................... [ 72%] 994s .......... [ 72%] 994s lib/tests/test_regression.py ........................... [ 72%] 995s lib/tests/test_shape_base.py ..............................s............ [ 72%] 995s ................................. [ 72%] 995s lib/tests/test_stride_tricks.py .......................... [ 72%] 995s lib/tests/test_twodim_base.py ..................................... [ 73%] 996s lib/tests/test_type_check.py ........................................... [ 73%] 996s ......... [ 73%] 996s lib/tests/test_ufunclike.py ...... [ 73%] 998s lib/tests/test_utils.py ................. [ 73%] 998s linalg/tests/test_deprecations.py . [ 73%] 1005s linalg/tests/test_linalg.py ............................................ [ 73%] 1013s ..x..................................................................... [ 73%] 1014s ........................................................................ [ 74%] 1016s ........................................................................ [ 74%] 1019s ........................................................................ [ 74%] 1022s .....................F........................sx [ 74%] 1022s linalg/tests/test_regression.py ......... [ 74%] 1023s ma/tests/test_core.py .................................................. [ 75%] 1024s ........................................................................ [ 75%] 1026s ........................................................................ [ 75%] 1027s ........................................................................ [ 75%] 1028s ........................................................................ [ 76%] 1029s ........................................................................ [ 76%] 1031s ........................................................................ [ 76%] 1032s ........................................................................ [ 76%] 1033s ........................................................................ [ 77%] 1034s ........................................................................ [ 77%] 1035s ........................................................................ [ 77%] 1036s ........................................................................ [ 77%] 1038s ........................................................................ [ 78%] 1039s ........................................................................ [ 78%] 1040s ........................................................................ [ 78%] 1041s ........................................................................ [ 79%] 1042s ........................................................................ [ 79%] 1043s ........................................................................ [ 79%] 1044s ........................................................................ [ 79%] 1046s ........................................................................ [ 80%] 1047s ........................................................................ [ 80%] 1048s ........................................................................ [ 80%] 1049s ........................................................................ [ 80%] 1050s ........................................................................ [ 81%] 1051s ........................................................................ [ 81%] 1053s ........................................................................ [ 81%] 1054s ........................................................................ [ 81%] 1056s ........................................................................ [ 82%] 1057s ........................................................................ [ 82%] 1058s ........................................................................ [ 82%] 1059s ........................................................................ [ 83%] 1060s ........................................................................ [ 83%] 1062s ........................................................................ [ 83%] 1063s ........................................................................ [ 83%] 1064s ........................................................................ [ 84%] 1065s ........................................................................ [ 84%] 1066s ........................................................................ [ 84%] 1068s ........................................................................ [ 84%] 1069s ........................................................................ [ 85%] 1070s ........................................................................ [ 85%] 1071s ........................................................................ [ 85%] 1073s ........................................................................ [ 86%] 1074s ........................................................................ [ 86%] 1075s ........................................................................ [ 86%] 1076s ........................................................................ [ 86%] 1077s ........................................................................ [ 87%] 1079s ........................................................................ [ 87%] 1080s ........................................................................ [ 87%] 1081s ........................................................................ [ 87%] 1082s ........................................................................ [ 88%] 1084s ........................................................................ [ 88%] 1088s ........................................................................ [ 88%] 1093s ........................................xx.............................. [ 88%] 1094s ........................................................................ [ 89%] 1094s ........................................................................ [ 89%] 1095s ........................................................................ [ 89%] 1096s ......................................................... [ 89%] 1096s ma/tests/test_deprecations.py ..... [ 89%] 1097s ma/tests/test_extras.py ................................................ [ 90%] 1099s ................................................... [ 90%] 1099s ma/tests/test_mrecords.py ........................ [ 90%] 1100s ma/tests/test_old_ma.py ......................................... [ 90%] 1100s ma/tests/test_regression.py ............. [ 90%] 1101s ma/tests/test_subclassing.py ............... [ 90%] 1101s matrixlib/tests/test_defmatrix.py ...................................... [ 90%] 1101s ..... [ 90%] 1101s matrixlib/tests/test_interaction.py ....................... [ 90%] 1102s matrixlib/tests/test_masked_matrix.py .............. [ 90%] 1102s matrixlib/tests/test_matrix_linalg.py .................................. [ 91%] 1105s .................................................................... [ 91%] 1105s matrixlib/tests/test_multiarray.py .. [ 91%] 1105s matrixlib/tests/test_numeric.py .. [ 91%] 1105s matrixlib/tests/test_regression.py .... [ 91%] 1106s polynomial/tests/test_chebyshev.py ..................................... [ 91%] 1106s .... [ 91%] 1106s polynomial/tests/test_classes.py ....................................... [ 91%] 1107s ........................................................................ [ 91%] 1109s ........................................................................ [ 92%] 1110s ...................................................... [ 92%] 1111s polynomial/tests/test_hermite.py .................................. [ 92%] 1112s polynomial/tests/test_hermite_e.py .................................. [ 92%] 1113s polynomial/tests/test_laguerre.py .................................. [ 92%] 1114s polynomial/tests/test_legendre.py ...................................... [ 92%] 1114s [ 92%] 1115s polynomial/tests/test_polynomial.py ................................... [ 93%] 1115s polynomial/tests/test_polyutils.py ......... [ 93%] 1116s polynomial/tests/test_printing.py ...................................... [ 93%] 1116s ..................................... [ 93%] 1116s polynomial/tests/test_symbol.py ........................................ [ 93%] 1116s ............ [ 93%] 1117s random/tests/test_direct.py ..............s................s............ [ 93%] 1117s .....s.................s.................s.... [ 93%] 1117s random/tests/test_extending.py ss [ 93%] 1118s random/tests/test_generator_mt19937.py ................................. [ 94%] 1121s ........................................................................ [ 94%] 1125s ........................................................................ [ 94%] 1126s ........................................................................ [ 94%] 10638s ...........................autopkgtest [18:09:22]: ERROR: timed out on command "su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.b6ixTN/wrapper.sh --artifacts=/tmp/autopkgtest.b6ixTN/python3-artifacts --chdir=/tmp/autopkgtest.b6ixTN/build.5ku/src --env=AUTOPKGTEST_TESTBED_ARCH=armhf --env=AUTOPKGTEST_TEST_ARCH=armhf --env=DEB_BUILD_OPTIONS=parallel=8 --env=DEBIAN_FRONTEND=noninteractive --env=LANG=C.UTF-8 --unset-env=LANGUAGE --unset-env=LC_ADDRESS --unset-env=LC_ALL --unset-env=LC_COLLATE --unset-env=LC_CTYPE --unset-env=LC_IDENTIFICATION --unset-env=LC_MEASUREMENT --unset-env=LC_MESSAGES --unset-env=LC_MONETARY --unset-env=LC_NAME --unset-env=LC_NUMERIC --unset-env=LC_PAPER --unset-env=LC_TELEPHONE --unset-env=LC_TIME --script-pid-file=/tmp/autopkgtest_script_pid --source-profile --stderr=/tmp/autopkgtest.b6ixTN/python3-stderr --stdout=/tmp/autopkgtest.b6ixTN/python3-stdout --tmp=/tmp/autopkgtest.b6ixTN/autopkgtest_tmp '--env=ADT_TEST_TRIGGERS=python3.12/3.12.2-4build3 db5.3/5.3.28+dfsg2-5build1 openssl/3.0.13-0ubuntu2 readline/8.2-3.1' --make-executable=/tmp/autopkgtest.b6ixTN/build.5ku/src/debian/tests/python3 -- /tmp/autopkgtest.b6ixTN/build.5ku/src/debian/tests/python3" (kind: test) 10639s autopkgtest [18:09:23]: test python3: -----------------------] 10644s python3 FAIL timed out 10644s autopkgtest [18:09:28]: test python3: - - - - - - - - - - results - - - - - - - - - - 10648s autopkgtest [18:09:32]: test openblas: preparing testbed 10765s autopkgtest [18:11:29]: testbed dpkg architecture: armhf 10767s autopkgtest [18:11:31]: testbed apt version: 2.7.12 10767s autopkgtest [18:11:31]: @@@@@@@@@@@@@@@@@@@@ test bed setup 10769s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 10770s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [493 kB] 10771s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [52.7 kB] 10771s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3740 kB] 10773s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 10773s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf Packages [591 kB] 10773s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf c-n-f Metadata [2492 B] 10773s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf Packages [1372 B] 10773s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf c-n-f Metadata [116 B] 10773s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf Packages [3680 kB] 10774s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf c-n-f Metadata [7776 B] 10774s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf Packages [35.6 kB] 10774s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf c-n-f Metadata [116 B] 10783s Fetched 8727 kB in 5s (1644 kB/s) 10784s Reading package lists... 10791s Get:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease [117 kB] 10792s Get:2 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf Packages [591 kB] 10792s Get:3 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf c-n-f Metadata [2492 B] 10792s Get:4 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf Packages [3680 kB] 10792s Get:5 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf c-n-f Metadata [7776 B] 10792s Get:6 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf Packages [1372 B] 10792s Get:7 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf c-n-f Metadata [116 B] 10792s Get:8 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf Packages [35.6 kB] 10792s Get:9 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf c-n-f Metadata [116 B] 10802s Fetched 4436 kB in 2s (2242 kB/s) 10802s Reading package lists... 10811s tee: /proc/self/fd/2: Permission denied 10873s Hit:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease 10873s Hit:2 http://ftpmaster.internal/ubuntu noble InRelease 10873s Hit:3 http://ports.ubuntu.com/ubuntu-ports noble InRelease 10873s Hit:4 http://ftpmaster.internal/ubuntu noble-updates InRelease 10873s Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease 10873s Hit:6 http://ftpmaster.internal/ubuntu noble-security InRelease 10874s Hit:7 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease 10874s Hit:8 http://ftpmaster.internal/ubuntu noble-proposed InRelease 10874s Hit:9 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease 10878s Reading package lists... 10879s Reading package lists... 10879s Building dependency tree... 10879s Reading state information... 10881s Calculating upgrade... 10883s The following packages were automatically installed and are no longer required: 10883s libatasmart4 libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 10883s libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 libblockdev-swap3 10883s libblockdev-utils3 libblockdev3 libbytesize-common libbytesize1 libnspr4 10883s libnss3 libnvme1t64 libpolkit-agent-1-0 libvolume-key1 10883s linux-headers-6.8.0-11 python3-lib2to3 10883s Use 'apt autoremove' to remove them. 10885s The following packages will be REMOVED: 10885s libapt-pkg6.0 libarchive13 libatm1 libcurl3-gnutls libcurl4 libdb5.3 libelf1 10885s libext2fs2 libgdbm-compat4 libgdbm6 libglib2.0-0 libgnutls30 libgpgme11 10885s libhogweed6 libmagic1 libnetplan0 libnettle8 libnpth0 libnvme1 libparted2 10885s libpcap0.8 libperl5.38 libpng16-16 libpsl5 libreadline8 libreiserfscore0 10885s libssl3 libtirpc3 libudisks2-0 libuv1 linux-headers-6.8.0-11-generic 10885s linux-headers-generic python3-distutils udisks2 10885s The following NEW packages will be installed: 10885s libapt-pkg6.0t64 libarchive13t64 libatm1t64 libcurl3t64-gnutls libcurl4t64 10885s libdb5.3t64 libelf1t64 libext2fs2t64 libgdbm-compat4t64 libgdbm6t64 10885s libglib2.0-0t64 libgnutls30t64 libgpgme11t64 libhogweed6t64 libmagic1t64 10885s libnetplan1 libnettle8t64 libnpth0t64 libnvme1t64 libparted2t64 10885s libpcap0.8t64 libperl5.38t64 libpng16-16t64 libpsl5t64 libreadline8t64 10885s libreiserfscore0t64 libssl3t64 libtirpc3t64 libuv1t64 xdg-user-dirs 10885s The following packages have been kept back: 10885s multipath-tools 10885s The following packages will be upgraded: 10885s apparmor apt apt-utils bind9-dnsutils bind9-host bind9-libs bolt 10885s bsdextrautils bsdutils btrfs-progs coreutils cryptsetup-bin curl dbus 10885s dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common 10885s dbus-user-session debianutils dhcpcd-base dirmngr dmsetup dpkg dpkg-dev 10885s e2fsprogs e2fsprogs-l10n eject fdisk file ftp fwupd gawk gcc-13-base 10885s gcc-14-base gir1.2-girepository-2.0 gir1.2-glib-2.0 gnupg gnupg-l10n 10885s gnupg-utils gpg gpg-agent gpg-wks-client gpgconf gpgsm gpgv groff-base 10885s ibverbs-providers inetutils-telnet info initramfs-tools initramfs-tools-bin 10885s initramfs-tools-core install-info iproute2 jq keyboxd kmod kpartx 10885s krb5-locales libapparmor1 libaudit-common libaudit1 libblkid1 10885s libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 10885s libblockdev-nvme3 libblockdev-part3 libblockdev-swap3 libblockdev-utils3 10885s libblockdev3 libbpf1 libbrotli1 libbsd0 libc-bin libc6 libcap-ng0 10885s libcom-err2 libcryptsetup12 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 10885s libdpkg-perl libevent-core-2.1-7 libexpat1 libfdisk1 libfido2-1 libftdi1-2 10885s libfwupd2 libgcc-s1 libgirepository-1.0-1 libglib2.0-data libgssapi-krb5-2 10885s libgudev-1.0-0 libgusb2 libibverbs1 libjcat1 libjq1 libjson-glib-1.0-0 10885s libjson-glib-1.0-common libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 10885s libldap-common libldap2 liblocale-gettext-perl liblzma5 libmagic-mgc 10885s libmbim-glib4 libmbim-proxy libmm-glib0 libmount1 libnghttp2-14 libnsl2 10885s libnss-systemd libpam-modules libpam-modules-bin libpam-runtime 10885s libpam-systemd libpam0g libplymouth5 libpolkit-agent-1-0 10885s libpolkit-gobject-1-0 libpython3-stdlib libpython3.11-minimal 10885s libpython3.11-stdlib libpython3.12-minimal libpython3.12-stdlib libqmi-glib5 10885s libqmi-proxy libqrtr-glib0 librtmp1 libsasl2-2 libsasl2-modules 10885s libsasl2-modules-db libseccomp2 libselinux1 libsemanage-common libsemanage2 10885s libslang2 libsmartcols1 libsqlite3-0 libss2 libssh-4 libstdc++6 10885s libsystemd-shared libsystemd0 libtext-charwidth-perl libtext-iconv-perl 10885s libtirpc-common libudev1 libusb-1.0-0 libuuid1 libvolume-key1 libxml2 10885s libxmlb2 libxmuu1 locales logsave lshw lsof man-db mount mtr-tiny 10885s netplan-generator netplan.io openssh-client openssh-server 10885s openssh-sftp-server openssl parted perl perl-base perl-modules-5.38 10885s pinentry-curses plymouth plymouth-theme-ubuntu-text psmisc python-apt-common 10885s python3 python3-apt python3-cryptography python3-dbus python3-gdbm 10885s python3-gi python3-lib2to3 python3-markupsafe python3-minimal 10885s python3-netplan python3-openssl python3-pkg-resources python3-pyrsistent 10885s python3-setuptools python3-typing-extensions python3-yaml python3.11 10885s python3.11-minimal python3.12 python3.12-minimal readline-common rsync 10885s shared-mime-info sudo systemd systemd-dev systemd-resolved systemd-sysv 10885s systemd-timesyncd tcpdump telnet tnftp ubuntu-minimal ubuntu-pro-client 10885s ubuntu-pro-client-l10n ubuntu-standard udev usb.ids util-linux uuid-runtime 10885s vim-common vim-tiny wget xxd xz-utils zlib1g 10885s 228 upgraded, 30 newly installed, 34 to remove and 1 not upgraded. 10885s Need to get 87.4 MB of archives. 10885s After this operation, 8988 kB disk space will be freed. 10885s Get:1 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdutils armhf 1:2.39.3-9ubuntu2 [102 kB] 10886s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-14-base armhf 14-20240315-1ubuntu1 [47.0 kB] 10886s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-s1 armhf 14-20240315-1ubuntu1 [41.5 kB] 10886s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++6 armhf 14-20240315-1ubuntu1 [714 kB] 10886s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6 armhf 2.39-0ubuntu6 [2827 kB] 10887s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssl armhf 3.0.13-0ubuntu2 [975 kB] 10888s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g armhf 1:1.3.dfsg-3.1ubuntu1 [49.2 kB] 10888s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2build6 [51.3 kB] 10888s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12 armhf 3.12.2-4build3 [645 kB] 10888s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1 armhf 2.6.1-2 [65.9 kB] 10888s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-minimal armhf 3.12.2-4build3 [1942 kB] 10889s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-stdlib armhf 3.12.2-4build3 [1906 kB] 10889s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-minimal armhf 3.12.2-4build3 [816 kB] 10889s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf parted armhf 3.6-3.1build2 [39.4 kB] 10889s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblkid1 armhf 2.39.3-9ubuntu2 [160 kB] 10889s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libselinux1 armhf 3.5-2build3 [70.5 kB] 10889s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-dev all 255.4-1ubuntu5 [103 kB] 10889s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-timesyncd armhf 255.4-1ubuntu5 [36.0 kB] 10889s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-session-bus-common all 1.14.10-4ubuntu2 [80.3 kB] 10889s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit-common all 1:3.1.2-2.1 [5674 B] 10889s Get:21 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcap-ng0 armhf 0.8.4-2build1 [13.5 kB] 10889s Get:22 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit1 armhf 1:3.1.2-2.1 [44.3 kB] 10889s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam0g armhf 1.5.3-5ubuntu3 [62.0 kB] 10889s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblzma5 armhf 5.6.0-0.2 [117 kB] 10889s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap2 armhf 2.6.7+dfsg-1~exp1ubuntu6 [172 kB] 10890s Get:26 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-0t64 armhf 2.79.3-3ubuntu5 [1414 kB] 10890s Get:27 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libvolume-key1 armhf 0.3.12-7build1 [38.4 kB] 10890s Get:28 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgpgme11t64 armhf 1.18.0-4.1ubuntu3 [120 kB] 10890s Get:29 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjcat1 armhf 0.2.0-2build2 [30.4 kB] 10890s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libarchive13t64 armhf 3.7.2-1.1ubuntu1 [330 kB] 10890s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fwupd armhf 1.9.15-1 [4349 kB] 10892s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client-l10n armhf 31.2 [19.4 kB] 10892s Get:33 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client armhf 31.2 [216 kB] 10892s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11 armhf 3.11.8-1build4 [589 kB] 10892s Get:35 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11-minimal armhf 3.11.8-1build4 [1795 kB] 10893s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-minimal armhf 3.11.8-1build4 [826 kB] 10893s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-4ubuntu4 [19.2 kB] 10893s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-iconv-perl armhf 1.7-8build2 [12.7 kB] 10893s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-charwidth-perl armhf 0.04-11build2 [8962 B] 10893s Get:40 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-base armhf 5.38.2-3.2 [1671 kB] 10894s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblocale-gettext-perl armhf 1.07-6ubuntu3 [15.0 kB] 10894s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-modules-5.38 all 5.38.2-3.2 [3110 kB] 10895s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gdbm armhf 3.12.2-3ubuntu2 [17.1 kB] 10895s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf man-db armhf 2.12.0-3build4 [1196 kB] 10896s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm6t64 armhf 1.23-5.1 [30.3 kB] 10896s Get:46 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm-compat4t64 armhf 1.23-5.1 [6208 B] 10896s Get:47 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libperl5.38t64 armhf 5.38.2-3.2 [4101 kB] 10898s Get:48 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl armhf 5.38.2-3.2 [231 kB] 10899s Get:49 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdb5.3t64 armhf 5.3.28+dfsg2-5build1 [661 kB] 10899s Get:50 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-stdlib armhf 3.11.8-1build4 [1810 kB] 10900s Get:51 http://ftpmaster.internal/ubuntu noble-proposed/main armhf keyboxd armhf 2.4.4-2ubuntu15 [111 kB] 10900s Get:52 http://ftpmaster.internal/ubuntu noble/main armhf libnpth0t64 armhf 1.6-3.1 [6940 B] 10900s Get:53 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgv armhf 2.4.4-2ubuntu15 [224 kB] 10901s Get:54 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg armhf 2.4.4-2ubuntu15 [524 kB] 10901s Get:55 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-wks-client armhf 2.4.4-2ubuntu15 [87.4 kB] 10901s Get:56 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-utils armhf 2.4.4-2ubuntu15 [158 kB] 10901s Get:57 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-agent armhf 2.4.4-2ubuntu15 [235 kB] 10902s Get:58 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgsm armhf 2.4.4-2ubuntu15 [241 kB] 10902s Get:59 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreadline8t64 armhf 8.2-3.1 [129 kB] 10902s Get:60 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gawk armhf 1:5.2.1-2build2 [415 kB] 10902s Get:61 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fdisk armhf 2.39.3-9ubuntu2 [135 kB] 10902s Get:62 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgconf armhf 2.4.4-2ubuntu15 [115 kB] 10902s Get:63 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dirmngr armhf 2.4.4-2ubuntu15 [346 kB] 10903s Get:64 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg all 2.4.4-2ubuntu15 [359 kB] 10903s Get:65 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-apt armhf 2.7.6build1 [162 kB] 10903s Get:66 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt-utils armhf 2.7.13ubuntu1 [210 kB] 10903s Get:67 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapt-pkg6.0t64 armhf 2.7.13ubuntu1 [986 kB] 10904s Get:68 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnettle8t64 armhf 3.9.1-2.2 [187 kB] 10904s Get:69 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libhogweed6t64 armhf 3.9.1-2.2 [187 kB] 10905s Get:70 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgnutls30t64 armhf 3.8.3-1.1ubuntu2 [1046 kB] 10906s Get:71 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt armhf 2.7.13ubuntu1 [1367 kB] 10907s Get:72 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl3t64-gnutls armhf 8.5.0-2ubuntu7 [290 kB] 10907s Get:73 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfwupd2 armhf 1.9.15-1 [123 kB] 10907s Get:74 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpsl5t64 armhf 0.21.2-1.1 [55.7 kB] 10907s Get:75 http://ftpmaster.internal/ubuntu noble-proposed/main armhf wget armhf 1.21.4-1ubuntu2 [317 kB] 10908s Get:76 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tnftp armhf 20230507-2build1 [98.6 kB] 10908s Get:77 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpcap0.8t64 armhf 1.10.4-4.1ubuntu1 [137 kB] 10908s Get:78 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tcpdump armhf 4.99.4-3ubuntu2 [425 kB] 10908s Get:79 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd-shared armhf 255.4-1ubuntu5 [2009 kB] 10911s Get:80 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-resolved armhf 255.4-1ubuntu5 [289 kB] 10911s Get:81 http://ftpmaster.internal/ubuntu noble-proposed/main armhf sudo armhf 1.9.15p5-3ubuntu3 [936 kB] 10912s Get:82 http://ftpmaster.internal/ubuntu noble-proposed/main armhf rsync armhf 3.2.7-1build1 [413 kB] 10913s Get:83 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-cryptography armhf 41.0.7-4build2 [788 kB] 10913s Get:84 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-sftp-server armhf 1:9.6p1-3ubuntu10 [35.5 kB] 10913s Get:85 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-client armhf 1:9.6p1-3ubuntu10 [890 kB] 10914s Get:86 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-server armhf 1:9.6p1-3ubuntu10 [503 kB] 10915s Get:87 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssl3t64 armhf 3.0.13-0ubuntu2 [1558 kB] 10916s Get:88 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libudev1 armhf 255.4-1ubuntu5 [166 kB] 10916s Get:89 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd armhf 255.4-1ubuntu5 [3502 kB] 10920s Get:90 http://ftpmaster.internal/ubuntu noble-proposed/main armhf udev armhf 255.4-1ubuntu5 [1852 kB] 10923s Get:91 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-sysv armhf 255.4-1ubuntu5 [11.9 kB] 10923s Get:92 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnss-systemd armhf 255.4-1ubuntu5 [148 kB] 10923s Get:93 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-systemd armhf 255.4-1ubuntu5 [216 kB] 10923s Get:94 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd0 armhf 255.4-1ubuntu5 [410 kB] 10923s Get:95 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules-bin armhf 1.5.3-5ubuntu3 [47.0 kB] 10923s Get:96 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules armhf 1.5.3-5ubuntu3 [261 kB] 10924s Get:97 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-runtime all 1.5.3-5ubuntu3 [40.8 kB] 10924s Get:98 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-user-session armhf 1.14.10-4ubuntu2 [9962 B] 10924s Get:99 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapparmor1 armhf 4.0.0-beta3-0ubuntu2 [45.0 kB] 10924s Get:100 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-bin armhf 1.14.10-4ubuntu2 [37.1 kB] 10924s Get:101 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-system-bus-common all 1.14.10-4ubuntu2 [81.5 kB] 10924s Get:102 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus armhf 1.14.10-4ubuntu2 [28.1 kB] 10924s Get:103 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-daemon armhf 1.14.10-4ubuntu2 [109 kB] 10925s Get:104 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdbus-1-3 armhf 1.14.10-4ubuntu2 [190 kB] 10925s Get:105 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kmod armhf 31+20240202-2ubuntu4 [91.8 kB] 10925s Get:106 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkmod2 armhf 31+20240202-2ubuntu4 [44.9 kB] 10925s Get:107 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmount1 armhf 2.39.3-9ubuntu2 [171 kB] 10925s Get:108 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libseccomp2 armhf 2.5.5-1ubuntu2 [49.5 kB] 10925s Get:109 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuuid1 armhf 2.39.3-9ubuntu2 [34.4 kB] 10925s Get:110 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcryptsetup12 armhf 2:2.7.0-1ubuntu2 [238 kB] 10926s Get:111 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfdisk1 armhf 2.39.3-9ubuntu2 [196 kB] 10926s Get:112 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mount armhf 2.39.3-9ubuntu2 [134 kB] 10926s Get:113 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdevmapper1.02.1 armhf 2:1.02.185-3ubuntu2 [135 kB] 10926s Get:114 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libparted2t64 armhf 3.6-3.1build2 [143 kB] 10926s Get:115 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsqlite3-0 armhf 3.45.1-1ubuntu1 [599 kB] 10927s Get:116 http://ftpmaster.internal/ubuntu noble-proposed/main armhf pinentry-curses armhf 1.2.1-3ubuntu4 [36.7 kB] 10927s Get:117 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsmartcols1 armhf 2.39.3-9ubuntu2 [117 kB] 10927s Get:118 http://ftpmaster.internal/ubuntu noble-proposed/main armhf readline-common all 8.2-3.1 [56.4 kB] 10927s Get:119 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-yaml armhf 6.0.1-2build1 [117 kB] 10927s Get:120 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python-apt-common all 2.7.6build1 [19.8 kB] 10927s Get:121 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-setuptools all 68.1.2-2ubuntu1 [396 kB] 10927s Get:122 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pkg-resources all 68.1.2-2ubuntu1 [168 kB] 10928s Get:123 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg armhf 1.22.6ubuntu4 [1229 kB] 10929s Get:124 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-minimal armhf 3.12.2-0ubuntu1 [27.1 kB] 10929s Get:125 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3 armhf 3.12.2-0ubuntu1 [24.1 kB] 10930s Get:126 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-stdlib armhf 3.12.2-0ubuntu1 [9802 B] 10930s Get:127 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdextrautils armhf 2.39.3-9ubuntu2 [78.7 kB] 10930s Get:128 http://ftpmaster.internal/ubuntu noble-proposed/main armhf groff-base armhf 1.23.0-3build1 [946 kB] 10932s Get:129 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-2 armhf 2.1.28+dfsg1-4ubuntu4 [49.7 kB] 10932s Get:130 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-common all 1.8.0-2build1 [4210 B] 10932s Get:131 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-0 armhf 1.8.0-2build1 [61.2 kB] 10932s Get:132 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxml2 armhf 2.9.14+dfsg-1.3ubuntu2 [595 kB] 10934s Get:133 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgudev-1.0-0 armhf 1:238-3ubuntu2 [13.6 kB] 10934s Get:134 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libusb-1.0-0 armhf 2:1.0.27-1 [48.7 kB] 10934s Get:135 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgusb2 armhf 0.4.8-1build1 [34.6 kB] 10934s Get:136 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-proxy armhf 1.31.2-0ubuntu2 [5748 B] 10934s Get:137 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-glib4 armhf 1.31.2-0ubuntu2 [216 kB] 10935s Get:138 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmm-glib0 armhf 1.23.4-0ubuntu1 [214 kB] 10936s Get:139 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-agent-1-0 armhf 124-1ubuntu1 [15.3 kB] 10936s Get:140 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-gobject-1-0 armhf 124-1ubuntu1 [44.1 kB] 10936s Get:141 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-proxy armhf 1.35.2-0ubuntu1 [5732 B] 10936s Get:142 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqrtr-glib0 armhf 1.2.2-1ubuntu3 [15.4 kB] 10936s Get:143 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-glib5 armhf 1.35.2-0ubuntu1 [908 kB] 10937s Get:144 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmlb2 armhf 0.3.15-1build1 [57.0 kB] 10938s Get:145 http://ftpmaster.internal/ubuntu noble-proposed/main armhf shared-mime-info armhf 2.4-1build1 [470 kB] 10939s Get:146 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbrotli1 armhf 1.1.0-2build1 [319 kB] 10939s Get:147 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgssapi-krb5-2 armhf 1.20.1-5.1build3 [119 kB] 10940s Get:148 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5-3 armhf 1.20.1-5.1build3 [321 kB] 10940s Get:149 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5support0 armhf 1.20.1-5.1build3 [31.4 kB] 10940s Get:150 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libk5crypto3 armhf 1.20.1-5.1build3 [78.6 kB] 10941s Get:151 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcom-err2 armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 10941s Get:152 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnghttp2-14 armhf 1.59.0-1build1 [68.1 kB] 10941s Get:153 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssh-4 armhf 0.10.6-2build1 [169 kB] 10941s Get:154 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libibverbs1 armhf 50.0-2build1 [57.9 kB] 10941s Get:155 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfido2-1 armhf 1.14.0-1build1 [75.8 kB] 10942s Get:156 http://ftpmaster.internal/ubuntu noble-proposed/main armhf coreutils armhf 9.4-3ubuntu3 [1280 kB] 10945s Get:157 http://ftpmaster.internal/ubuntu noble-proposed/main armhf debianutils armhf 5.17 [88.9 kB] 10946s Get:158 http://ftpmaster.internal/ubuntu noble-proposed/main armhf util-linux armhf 2.39.3-9ubuntu2 [1216 kB] 10949s Get:159 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-bin armhf 2.39-0ubuntu6 [530 kB] 10950s Get:160 http://ftpmaster.internal/ubuntu noble-proposed/main armhf curl armhf 8.5.0-2ubuntu7 [219 kB] 10951s Get:161 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl4t64 armhf 8.5.0-2ubuntu7 [296 kB] 10951s Get:162 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbpf1 armhf 1:1.3.0-2build1 [146 kB] 10952s Get:163 http://ftpmaster.internal/ubuntu noble-proposed/main armhf iproute2 armhf 6.1.0-1ubuntu5 [1060 kB] 10954s Get:164 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libelf1t64 armhf 0.190-1.1build2 [49.9 kB] 10954s Get:165 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lsof armhf 4.95.0-1build2 [248 kB] 10954s Get:166 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnsl2 armhf 1.3.0-3build2 [36.5 kB] 10954s Get:167 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc-common all 1.3.4+ds-1.1 [8018 B] 10954s Get:168 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc3t64 armhf 1.3.4+ds-1.1 [73.2 kB] 10955s Get:169 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-utils3 armhf 3.1.0-1build1 [16.9 kB] 10955s Get:170 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-fs3 armhf 3.1.0-1build1 [34.4 kB] 10955s Get:171 http://ftpmaster.internal/ubuntu noble-proposed/main armhf logsave armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 10955s Get:172 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-minimal armhf 1.536build1 [10.7 kB] 10955s Get:173 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools all 0.142ubuntu22 [9056 B] 10955s Get:174 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-core all 0.142ubuntu22 [50.0 kB] 10955s Get:175 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs-l10n all 1.47.0-2.4~exp1ubuntu2 [5996 B] 10955s Get:176 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libext2fs2t64 armhf 1.47.0-2.4~exp1ubuntu2 [201 kB] 10955s Get:177 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs armhf 1.47.0-2.4~exp1ubuntu2 [571 kB] 10956s Get:178 http://ftpmaster.internal/ubuntu noble-proposed/main armhf btrfs-progs armhf 6.6.3-1.1build1 [852 kB] 10958s Get:179 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dhcpcd-base armhf 1:10.0.6-1ubuntu2 [186 kB] 10958s Get:180 http://ftpmaster.internal/ubuntu noble-proposed/main armhf eject armhf 2.39.3-9ubuntu2 [43.2 kB] 10958s Get:181 http://ftpmaster.internal/ubuntu noble-proposed/main armhf locales all 2.39-0ubuntu6 [4232 kB] 10965s Get:182 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnetplan1 armhf 1.0-1 [113 kB] 10965s Get:183 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-netplan armhf 1.0-1 [22.5 kB] 10965s Get:184 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan-generator armhf 1.0-1 [58.7 kB] 10965s Get:185 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dbus armhf 1.3.2-5build2 [94.7 kB] 10965s Get:186 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan.io armhf 1.0-1 [64.3 kB] 10965s Get:187 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-tiny armhf 2:9.1.0016-1ubuntu5 [665 kB] 10966s Get:188 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-common all 2:9.1.0016-1ubuntu5 [385 kB] 10967s Get:189 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-bin armhf 0.142ubuntu22 [20.1 kB] 10967s Get:190 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreiserfscore0t64 armhf 1:3.6.27-7.1 [66.2 kB] 10967s Get:191 http://ftpmaster.internal/ubuntu noble-proposed/main armhf file armhf 1:5.45-3 [21.1 kB] 10967s Get:192 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic-mgc armhf 1:5.45-3 [307 kB] 10968s Get:193 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic1t64 armhf 1:5.45-3 [81.4 kB] 10968s Get:194 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-nvme3 armhf 3.1.0-1build1 [17.5 kB] 10968s Get:195 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnvme1t64 armhf 1.8-3 [67.5 kB] 10968s Get:196 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libplymouth5 armhf 24.004.60-1ubuntu5 [140 kB] 10968s Get:197 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpng16-16t64 armhf 1.6.43-3 [166 kB] 10969s Get:198 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-host armhf 1:9.18.24-0ubuntu3 [47.4 kB] 10969s Get:199 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-dnsutils armhf 1:9.18.24-0ubuntu3 [149 kB] 10969s Get:200 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-libs armhf 1:9.18.24-0ubuntu3 [1148 kB] 10971s Get:201 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuv1t64 armhf 1.48.0-1.1 [82.9 kB] 10972s Ign:201 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuv1t64 armhf 1.48.0-1.1 10972s Get:202 http://ftpmaster.internal/ubuntu noble-proposed/main armhf uuid-runtime armhf 2.39.3-9ubuntu2 [41.7 kB] 10972s Get:203 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdebconfclient0 armhf 0.271ubuntu2 [10.8 kB] 10972s Get:204 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage-common all 3.5-1build4 [10.1 kB] 10972s Get:205 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage2 armhf 3.5-1build4 [84.5 kB] 10972s Get:206 http://ftpmaster.internal/ubuntu noble-proposed/main armhf install-info armhf 7.1-3build1 [60.5 kB] 10972s Get:207 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-base armhf 13.2.0-19ubuntu1 [47.7 kB] 10972s Get:208 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libss2 armhf 1.47.0-2.4~exp1ubuntu2 [14.7 kB] 10972s Get:209 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dmsetup armhf 2:1.02.185-3ubuntu2 [81.1 kB] 10972s Get:210 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-girepository-2.0 armhf 1.79.1-1ubuntu6 [24.8 kB] 10972s Get:211 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-glib-2.0 armhf 2.79.3-3ubuntu5 [182 kB] 10973s Get:212 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgirepository-1.0-1 armhf 1.79.1-1ubuntu6 [106 kB] 10973s Get:213 http://ftpmaster.internal/ubuntu noble-proposed/main armhf krb5-locales all 1.20.1-5.1build3 [13.8 kB] 10973s Get:214 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbsd0 armhf 0.12.1-1 [36.6 kB] 10973s Get:215 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-data all 2.79.3-3ubuntu5 [46.6 kB] 10973s Get:216 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libslang2 armhf 2.3.3-3build1 [478 kB] 10973s Get:217 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gi armhf 3.47.0-3build1 [219 kB] 10974s Get:218 http://ftpmaster.internal/ubuntu noble/main armhf xdg-user-dirs armhf 0.18-1 [17.3 kB] 10974s Get:219 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xxd armhf 2:9.1.0016-1ubuntu5 [62.4 kB] 10974s Get:220 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apparmor armhf 4.0.0-beta3-0ubuntu2 [562 kB] 10974s Get:221 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ftp all 20230507-2build1 [4724 B] 10974s Get:222 http://ftpmaster.internal/ubuntu noble-proposed/main armhf inetutils-telnet armhf 2:2.5-3ubuntu3 [90.7 kB] 10974s Get:223 http://ftpmaster.internal/ubuntu noble-proposed/main armhf info armhf 7.1-3build1 [127 kB] 10974s Get:224 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmuu1 armhf 2:1.1.3-3build1 [8004 B] 10974s Get:225 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lshw armhf 02.19.git.2021.06.19.996aaad9c7-2build2 [310 kB] 10974s Get:226 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mtr-tiny armhf 0.95-1.1build1 [51.7 kB] 10974s Get:227 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth-theme-ubuntu-text armhf 24.004.60-1ubuntu5 [9826 B] 10974s Get:228 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth armhf 24.004.60-1ubuntu5 [143 kB] 10974s Get:229 http://ftpmaster.internal/ubuntu noble-proposed/main armhf psmisc armhf 23.7-1 [176 kB] 10975s Get:230 http://ftpmaster.internal/ubuntu noble-proposed/main armhf telnet all 0.17+2.5-3ubuntu3 [3682 B] 10975s Get:231 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xz-utils armhf 5.6.0-0.2 [271 kB] 10975s Get:232 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-standard armhf 1.536build1 [10.7 kB] 10975s Get:233 http://ftpmaster.internal/ubuntu noble-proposed/main armhf usb.ids all 2024.03.18-1 [223 kB] 10975s Get:234 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bolt armhf 0.9.6-2build1 [138 kB] 10975s Get:235 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cryptsetup-bin armhf 2:2.7.0-1ubuntu2 [214 kB] 10975s Get:236 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg-dev all 1.22.6ubuntu4 [1074 kB] 10976s Get:237 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdpkg-perl all 1.22.6ubuntu4 [268 kB] 10976s Get:238 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-l10n all 2.4.4-2ubuntu15 [65.8 kB] 10976s Get:239 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ibverbs-providers armhf 50.0-2build1 [27.4 kB] 10976s Get:240 http://ftpmaster.internal/ubuntu noble-proposed/main armhf jq armhf 1.7.1-3 [65.2 kB] 10976s Get:241 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjq1 armhf 1.7.1-3 [156 kB] 10976s Get:242 http://ftpmaster.internal/ubuntu noble/main armhf libatm1t64 armhf 1:2.5.1-5.1 [20.0 kB] 10976s Get:243 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-crypto3 armhf 3.1.0-1build1 [20.3 kB] 10976s Get:244 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-loop3 armhf 3.1.0-1build1 [6502 B] 10976s Get:245 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-mdraid3 armhf 3.1.0-1build1 [13.3 kB] 10976s Get:246 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-part3 armhf 3.1.0-1build1 [16.4 kB] 10976s Get:247 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-swap3 armhf 3.1.0-1build1 [8894 B] 10976s Get:248 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev3 armhf 3.1.0-1build1 [42.9 kB] 10976s Get:249 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libevent-core-2.1-7 armhf 2.1.12-stable-9build1 [82.3 kB] 10976s Get:250 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libftdi1-2 armhf 1.5-6build4 [25.7 kB] 10976s Get:251 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap-common all 2.6.7+dfsg-1~exp1ubuntu6 [31.3 kB] 10976s Get:252 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules armhf 2.1.28+dfsg1-4ubuntu4 [61.4 kB] 10976s Get:253 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-lib2to3 all 3.12.2-3ubuntu2 [79.3 kB] 10976s Get:254 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-markupsafe armhf 2.1.5-1build1 [12.1 kB] 10976s Get:255 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-openssl all 24.0.0-4 [47.9 kB] 10976s Get:256 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pyrsistent armhf 0.20.0-1build1 [53.0 kB] 10976s Get:257 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-typing-extensions all 4.10.0-1 [60.7 kB] 10976s Get:258 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kpartx armhf 0.9.4-5ubuntu5 [31.4 kB] 10976s Get:201 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuv1t64 armhf 1.48.0-1.1 [82.9 kB] 10980s Preconfiguring packages ... 10981s Fetched 87.3 MB in 1min 32s (954 kB/s) 10981s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 10981s Preparing to unpack .../bsdutils_1%3a2.39.3-9ubuntu2_armhf.deb ... 10981s Unpacking bsdutils (1:2.39.3-9ubuntu2) over (1:2.39.3-6ubuntu2) ... 10981s Setting up bsdutils (1:2.39.3-9ubuntu2) ... 10981s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 10981s Preparing to unpack .../gcc-14-base_14-20240315-1ubuntu1_armhf.deb ... 10981s Unpacking gcc-14-base:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 10981s Setting up gcc-14-base:armhf (14-20240315-1ubuntu1) ... 10981s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 10981s Preparing to unpack .../libgcc-s1_14-20240315-1ubuntu1_armhf.deb ... 10981s Unpacking libgcc-s1:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 10981s Setting up libgcc-s1:armhf (14-20240315-1ubuntu1) ... 10981s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 10981s Preparing to unpack .../libstdc++6_14-20240315-1ubuntu1_armhf.deb ... 10981s Unpacking libstdc++6:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 10981s Setting up libstdc++6:armhf (14-20240315-1ubuntu1) ... 10982s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 10982s Preparing to unpack .../libc6_2.39-0ubuntu6_armhf.deb ... 10982s Unpacking libc6:armhf (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 10982s Setting up libc6:armhf (2.39-0ubuntu6) ... 10983s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 10983s Preparing to unpack .../openssl_3.0.13-0ubuntu2_armhf.deb ... 10983s Unpacking openssl (3.0.13-0ubuntu2) over (3.0.10-1ubuntu4) ... 10983s Preparing to unpack .../zlib1g_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 10983s Unpacking zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) over (1:1.3.dfsg-3ubuntu1) ... 10984s Setting up zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) ... 10984s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 10984s Preparing to unpack .../0-librtmp1_2.4+20151223.gitfa8646d.1-2build6_armhf.deb ... 10984s Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) over (2.4+20151223.gitfa8646d.1-2build4) ... 10984s Preparing to unpack .../1-python3.12_3.12.2-4build3_armhf.deb ... 10984s Unpacking python3.12 (3.12.2-4build3) over (3.12.2-1) ... 10984s Preparing to unpack .../2-libexpat1_2.6.1-2_armhf.deb ... 10984s Unpacking libexpat1:armhf (2.6.1-2) over (2.6.0-1) ... 10984s Preparing to unpack .../3-python3.12-minimal_3.12.2-4build3_armhf.deb ... 10984s Unpacking python3.12-minimal (3.12.2-4build3) over (3.12.2-1) ... 10984s Preparing to unpack .../4-libpython3.12-stdlib_3.12.2-4build3_armhf.deb ... 10984s Unpacking libpython3.12-stdlib:armhf (3.12.2-4build3) over (3.12.2-1) ... 10985s Preparing to unpack .../5-libpython3.12-minimal_3.12.2-4build3_armhf.deb ... 10985s Unpacking libpython3.12-minimal:armhf (3.12.2-4build3) over (3.12.2-1) ... 10985s Preparing to unpack .../6-parted_3.6-3.1build2_armhf.deb ... 10985s Unpacking parted (3.6-3.1build2) over (3.6-3) ... 10986s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 10986s Removing libparted2:armhf (3.6-3) ... 10986s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10986s Preparing to unpack .../libblkid1_2.39.3-9ubuntu2_armhf.deb ... 10986s Unpacking libblkid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 10986s Setting up libblkid1:armhf (2.39.3-9ubuntu2) ... 10986s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10986s Preparing to unpack .../libselinux1_3.5-2build3_armhf.deb ... 10986s Unpacking libselinux1:armhf (3.5-2build3) over (3.5-2build1) ... 10986s Setting up libselinux1:armhf (3.5-2build3) ... 10986s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10986s Preparing to unpack .../systemd-dev_255.4-1ubuntu5_all.deb ... 10986s Unpacking systemd-dev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 10986s Preparing to unpack .../systemd-timesyncd_255.4-1ubuntu5_armhf.deb ... 10986s Unpacking systemd-timesyncd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 10986s Preparing to unpack .../dbus-session-bus-common_1.14.10-4ubuntu2_all.deb ... 10986s Unpacking dbus-session-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 10986s Preparing to unpack .../libaudit-common_1%3a3.1.2-2.1_all.deb ... 10986s Unpacking libaudit-common (1:3.1.2-2.1) over (1:3.1.2-2) ... 10986s Setting up libaudit-common (1:3.1.2-2.1) ... 10987s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10987s Preparing to unpack .../libcap-ng0_0.8.4-2build1_armhf.deb ... 10987s Unpacking libcap-ng0:armhf (0.8.4-2build1) over (0.8.4-2) ... 10987s Setting up libcap-ng0:armhf (0.8.4-2build1) ... 10987s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10987s Preparing to unpack .../libaudit1_1%3a3.1.2-2.1_armhf.deb ... 10987s Unpacking libaudit1:armhf (1:3.1.2-2.1) over (1:3.1.2-2) ... 10987s Setting up libaudit1:armhf (1:3.1.2-2.1) ... 10987s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10987s Preparing to unpack .../libpam0g_1.5.3-5ubuntu3_armhf.deb ... 10987s Unpacking libpam0g:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 10987s Setting up libpam0g:armhf (1.5.3-5ubuntu3) ... 10988s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10988s Preparing to unpack .../liblzma5_5.6.0-0.2_armhf.deb ... 10988s Unpacking liblzma5:armhf (5.6.0-0.2) over (5.4.5-0.3) ... 10988s Setting up liblzma5:armhf (5.6.0-0.2) ... 10988s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10988s Preparing to unpack .../libldap2_2.6.7+dfsg-1~exp1ubuntu6_armhf.deb ... 10988s Unpacking libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 10988s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 10988s Removing udisks2 (2.10.1-1ubuntu2) ... 10989s dpkg: libglib2.0-0:armhf: dependency problems, but removing anyway as you requested: 10989s shared-mime-info depends on libglib2.0-0 (>= 2.75.3). 10989s python3-gi depends on libglib2.0-0 (>= 2.77.0). 10989s python3-dbus depends on libglib2.0-0 (>= 2.16.0). 10989s netplan.io depends on libglib2.0-0 (>= 2.70.0). 10989s netplan-generator depends on libglib2.0-0 (>= 2.70.0). 10989s libxmlb2:armhf depends on libglib2.0-0 (>= 2.54.0). 10989s libvolume-key1:armhf depends on libglib2.0-0 (>= 2.18.0). 10989s libudisks2-0:armhf depends on libglib2.0-0 (>= 2.75.3). 10989s libqrtr-glib0:armhf depends on libglib2.0-0 (>= 2.56). 10989s libqmi-proxy depends on libglib2.0-0 (>= 2.30.0). 10989s libqmi-glib5:armhf depends on libglib2.0-0 (>= 2.54.0). 10989s libpolkit-gobject-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 10989s libpolkit-agent-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 10989s libnetplan0:armhf depends on libglib2.0-0 (>= 2.75.3). 10989s libmm-glib0:armhf depends on libglib2.0-0 (>= 2.62.0). 10989s libmbim-proxy depends on libglib2.0-0 (>= 2.56). 10989s libmbim-glib4:armhf depends on libglib2.0-0 (>= 2.56). 10989s libjson-glib-1.0-0:armhf depends on libglib2.0-0 (>= 2.75.3). 10989s libjcat1:armhf depends on libglib2.0-0 (>= 2.75.3). 10989s libgusb2:armhf depends on libglib2.0-0 (>= 2.75.3). 10989s libgudev-1.0-0:armhf depends on libglib2.0-0 (>= 2.38.0). 10989s libgirepository-1.0-1:armhf depends on libglib2.0-0 (>= 2.79.0). 10989s libfwupd2:armhf depends on libglib2.0-0 (>= 2.79.0). 10989s libblockdev3:armhf depends on libglib2.0-0 (>= 2.42.2). 10989s libblockdev-utils3:armhf depends on libglib2.0-0 (>= 2.75.3). 10989s libblockdev-swap3:armhf depends on libglib2.0-0 (>= 2.42.2). 10989s libblockdev-part3:armhf depends on libglib2.0-0 (>= 2.42.2). 10989s libblockdev-nvme3:armhf depends on libglib2.0-0 (>= 2.42.2). 10989s libblockdev-mdraid3:armhf depends on libglib2.0-0 (>= 2.42.2). 10989s libblockdev-loop3:armhf depends on libglib2.0-0 (>= 2.42.2). 10989s libblockdev-fs3:armhf depends on libglib2.0-0 (>= 2.42.2). 10989s libblockdev-crypto3:armhf depends on libglib2.0-0 (>= 2.42.2). 10989s gir1.2-glib-2.0:armhf depends on libglib2.0-0 (= 2.79.2-1~ubuntu1). 10989s fwupd depends on libglib2.0-0 (>= 2.79.0). 10989s bolt depends on libglib2.0-0 (>= 2.56.0). 10989s 10989s Removing libglib2.0-0:armhf (2.79.2-1~ubuntu1) ... 10989s Selecting previously unselected package libglib2.0-0t64:armhf. 10989s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58560 files and directories currently installed.) 10989s Preparing to unpack .../libglib2.0-0t64_2.79.3-3ubuntu5_armhf.deb ... 10989s libglib2.0-0t64.preinst: Removing /var/lib/dpkg/info/libglib2.0-0:armhf.postrm to avoid loss of /usr/share/glib-2.0/schemas/gschemas.compiled... 10989s removed '/var/lib/dpkg/info/libglib2.0-0:armhf.postrm' 10989s Unpacking libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 10989s Preparing to unpack .../libvolume-key1_0.3.12-7build1_armhf.deb ... 10989s Unpacking libvolume-key1:armhf (0.3.12-7build1) over (0.3.12-5build2) ... 10989s dpkg: libgpgme11:armhf: dependency problems, but removing anyway as you requested: 10989s libjcat1:armhf depends on libgpgme11 (>= 1.2.0). 10989s 10989s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58585 files and directories currently installed.) 10989s Removing libgpgme11:armhf (1.18.0-4ubuntu1) ... 10989s Selecting previously unselected package libgpgme11t64:armhf. 10989s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58579 files and directories currently installed.) 10989s Preparing to unpack .../libgpgme11t64_1.18.0-4.1ubuntu3_armhf.deb ... 10989s Unpacking libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 10989s Preparing to unpack .../libjcat1_0.2.0-2build2_armhf.deb ... 10989s Unpacking libjcat1:armhf (0.2.0-2build2) over (0.2.0-2) ... 10989s dpkg: libarchive13:armhf: dependency problems, but removing anyway as you requested: 10989s fwupd depends on libarchive13 (>= 3.2.1). 10989s 10990s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58586 files and directories currently installed.) 10990s Removing libarchive13:armhf (3.7.2-1ubuntu2) ... 10990s Selecting previously unselected package libarchive13t64:armhf. 10990s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58580 files and directories currently installed.) 10990s Preparing to unpack .../00-libarchive13t64_3.7.2-1.1ubuntu1_armhf.deb ... 10990s Unpacking libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 10990s Preparing to unpack .../01-fwupd_1.9.15-1_armhf.deb ... 10990s Unpacking fwupd (1.9.15-1) over (1.9.14-1) ... 10990s Preparing to unpack .../02-ubuntu-pro-client-l10n_31.2_armhf.deb ... 10990s Unpacking ubuntu-pro-client-l10n (31.2) over (31.1) ... 10990s Preparing to unpack .../03-ubuntu-pro-client_31.2_armhf.deb ... 10991s Unpacking ubuntu-pro-client (31.2) over (31.1) ... 10992s Preparing to unpack .../04-python3.11_3.11.8-1build4_armhf.deb ... 10992s Unpacking python3.11 (3.11.8-1build4) over (3.11.8-1) ... 10992s Preparing to unpack .../05-python3.11-minimal_3.11.8-1build4_armhf.deb ... 10992s Unpacking python3.11-minimal (3.11.8-1build4) over (3.11.8-1) ... 10992s Preparing to unpack .../06-libpython3.11-minimal_3.11.8-1build4_armhf.deb ... 10992s Unpacking libpython3.11-minimal:armhf (3.11.8-1build4) over (3.11.8-1) ... 10993s Preparing to unpack .../07-libsasl2-modules-db_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 10993s Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 10993s Preparing to unpack .../08-libtext-iconv-perl_1.7-8build2_armhf.deb ... 10993s Unpacking libtext-iconv-perl:armhf (1.7-8build2) over (1.7-8build1) ... 10993s Preparing to unpack .../09-libtext-charwidth-perl_0.04-11build2_armhf.deb ... 10993s Unpacking libtext-charwidth-perl:armhf (0.04-11build2) over (0.04-11build1) ... 10993s Preparing to unpack .../10-perl-base_5.38.2-3.2_armhf.deb ... 10993s Unpacking perl-base (5.38.2-3.2) over (5.38.2-3) ... 10993s Setting up perl-base (5.38.2-3.2) ... 10994s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 10994s Preparing to unpack .../liblocale-gettext-perl_1.07-6ubuntu3_armhf.deb ... 10994s Unpacking liblocale-gettext-perl (1.07-6ubuntu3) over (1.07-6build1) ... 10994s Preparing to unpack .../perl-modules-5.38_5.38.2-3.2_all.deb ... 10994s Unpacking perl-modules-5.38 (5.38.2-3.2) over (5.38.2-3) ... 10995s Preparing to unpack .../python3-gdbm_3.12.2-3ubuntu2_armhf.deb ... 10995s Unpacking python3-gdbm:armhf (3.12.2-3ubuntu2) over (3.11.5-1) ... 10995s Preparing to unpack .../man-db_2.12.0-3build4_armhf.deb ... 10995s Unpacking man-db (2.12.0-3build4) over (2.12.0-3) ... 10995s dpkg: libgdbm-compat4:armhf: dependency problems, but removing anyway as you requested: 10995s libperl5.38:armhf depends on libgdbm-compat4 (>= 1.18-3). 10995s 10995s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 10995s Removing libgdbm-compat4:armhf (1.23-5) ... 10995s dpkg: libgdbm6:armhf: dependency problems, but removing anyway as you requested: 10995s libperl5.38:armhf depends on libgdbm6 (>= 1.21). 10995s 10995s Removing libgdbm6:armhf (1.23-5) ... 10995s Selecting previously unselected package libgdbm6t64:armhf. 10995s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58577 files and directories currently installed.) 10995s Preparing to unpack .../libgdbm6t64_1.23-5.1_armhf.deb ... 10995s Unpacking libgdbm6t64:armhf (1.23-5.1) ... 10995s Selecting previously unselected package libgdbm-compat4t64:armhf. 10995s Preparing to unpack .../libgdbm-compat4t64_1.23-5.1_armhf.deb ... 10995s Unpacking libgdbm-compat4t64:armhf (1.23-5.1) ... 10995s dpkg: libperl5.38:armhf: dependency problems, but removing anyway as you requested: 10995s perl depends on libperl5.38 (= 5.38.2-3). 10995s 10995s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 10995s Removing libperl5.38:armhf (5.38.2-3) ... 10996s Selecting previously unselected package libperl5.38t64:armhf. 10996s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58070 files and directories currently installed.) 10996s Preparing to unpack .../libperl5.38t64_5.38.2-3.2_armhf.deb ... 10996s Unpacking libperl5.38t64:armhf (5.38.2-3.2) ... 10996s Preparing to unpack .../perl_5.38.2-3.2_armhf.deb ... 10996s Unpacking perl (5.38.2-3.2) over (5.38.2-3) ... 10996s dpkg: libdb5.3:armhf: dependency problems, but removing anyway as you requested: 10996s libpython3.11-stdlib:armhf depends on libdb5.3. 10996s libpam-modules:armhf depends on libdb5.3. 10996s iproute2 depends on libdb5.3. 10996s apt-utils depends on libdb5.3. 10996s 10997s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 10997s Removing libdb5.3:armhf (5.3.28+dfsg2-4) ... 10997s Selecting previously unselected package libdb5.3t64:armhf. 10997s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58583 files and directories currently installed.) 10997s Preparing to unpack .../libdb5.3t64_5.3.28+dfsg2-5build1_armhf.deb ... 10997s Unpacking libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 10997s Preparing to unpack .../libpython3.11-stdlib_3.11.8-1build4_armhf.deb ... 10997s Unpacking libpython3.11-stdlib:armhf (3.11.8-1build4) over (3.11.8-1) ... 10997s Preparing to unpack .../keyboxd_2.4.4-2ubuntu15_armhf.deb ... 10997s Unpacking keyboxd (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10997s dpkg: libnpth0:armhf: dependency problems, but removing anyway as you requested: 10997s gpgv depends on libnpth0 (>= 0.90). 10997s gpgsm depends on libnpth0 (>= 0.90). 10997s gpg-agent depends on libnpth0 (>= 0.90). 10997s gpg depends on libnpth0 (>= 0.90). 10997s dirmngr depends on libnpth0 (>= 0.90). 10997s 10997s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 10997s Removing libnpth0:armhf (1.6-3build2) ... 10997s Selecting previously unselected package libnpth0t64:armhf. 10998s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58582 files and directories currently installed.) 10998s Preparing to unpack .../libnpth0t64_1.6-3.1_armhf.deb ... 10998s Unpacking libnpth0t64:armhf (1.6-3.1) ... 10998s Setting up libnpth0t64:armhf (1.6-3.1) ... 10998s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 10998s Preparing to unpack .../gpgv_2.4.4-2ubuntu15_armhf.deb ... 10998s Unpacking gpgv (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10998s Setting up gpgv (2.4.4-2ubuntu15) ... 10998s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 10998s Preparing to unpack .../gpg_2.4.4-2ubuntu15_armhf.deb ... 10998s Unpacking gpg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10998s Preparing to unpack .../gpg-wks-client_2.4.4-2ubuntu15_armhf.deb ... 10998s Unpacking gpg-wks-client (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10998s Preparing to unpack .../gnupg-utils_2.4.4-2ubuntu15_armhf.deb ... 10998s Unpacking gnupg-utils (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10998s Preparing to unpack .../gpg-agent_2.4.4-2ubuntu15_armhf.deb ... 10998s Unpacking gpg-agent (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10998s Preparing to unpack .../gpgsm_2.4.4-2ubuntu15_armhf.deb ... 10998s Unpacking gpgsm (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10998s dpkg: libreadline8:armhf: dependency problems, but removing anyway as you requested: 10998s gpgconf depends on libreadline8 (>= 6.0). 10998s gawk depends on libreadline8 (>= 6.0). 10998s fdisk depends on libreadline8 (>= 6.0). 10998s 10998s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 10998s Removing libreadline8:armhf (8.2-3) ... 10998s Selecting previously unselected package libreadline8t64:armhf. 10999s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58576 files and directories currently installed.) 10999s Preparing to unpack .../libreadline8t64_8.2-3.1_armhf.deb ... 10999s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8 to /lib/arm-linux-gnueabihf/libhistory.so.8.usr-is-merged by libreadline8t64' 10999s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8.2 to /lib/arm-linux-gnueabihf/libhistory.so.8.2.usr-is-merged by libreadline8t64' 10999s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8 to /lib/arm-linux-gnueabihf/libreadline.so.8.usr-is-merged by libreadline8t64' 10999s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8.2 to /lib/arm-linux-gnueabihf/libreadline.so.8.2.usr-is-merged by libreadline8t64' 10999s Unpacking libreadline8t64:armhf (8.2-3.1) ... 10999s Setting up libreadline8t64:armhf (8.2-3.1) ... 10999s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 10999s Preparing to unpack .../0-gawk_1%3a5.2.1-2build2_armhf.deb ... 10999s Unpacking gawk (1:5.2.1-2build2) over (1:5.2.1-2) ... 10999s Preparing to unpack .../1-fdisk_2.39.3-9ubuntu2_armhf.deb ... 10999s Unpacking fdisk (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 10999s Preparing to unpack .../2-gpgconf_2.4.4-2ubuntu15_armhf.deb ... 10999s Unpacking gpgconf (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10999s Preparing to unpack .../3-dirmngr_2.4.4-2ubuntu15_armhf.deb ... 10999s Unpacking dirmngr (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10999s Preparing to unpack .../4-gnupg_2.4.4-2ubuntu15_all.deb ... 10999s Unpacking gnupg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 10999s Preparing to unpack .../5-python3-apt_2.7.6build1_armhf.deb ... 11000s Unpacking python3-apt (2.7.6build1) over (2.7.6) ... 11000s Preparing to unpack .../6-apt-utils_2.7.13ubuntu1_armhf.deb ... 11000s Unpacking apt-utils (2.7.13ubuntu1) over (2.7.12) ... 11000s dpkg: libapt-pkg6.0:armhf: dependency problems, but removing anyway as you requested: 11000s apt depends on libapt-pkg6.0 (>= 2.7.12). 11000s 11000s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58594 files and directories currently installed.) 11000s Removing libapt-pkg6.0:armhf (2.7.12) ... 11000s dpkg: libnettle8:armhf: dependency problems, but removing anyway as you requested: 11000s libhogweed6:armhf depends on libnettle8. 11000s libgnutls30:armhf depends on libnettle8 (>= 3.9~). 11000s libcurl3-gnutls:armhf depends on libnettle8. 11000s 11000s Removing libnettle8:armhf (3.9.1-2) ... 11000s Selecting previously unselected package libapt-pkg6.0t64:armhf. 11000s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58538 files and directories currently installed.) 11000s Preparing to unpack .../libapt-pkg6.0t64_2.7.13ubuntu1_armhf.deb ... 11000s Unpacking libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 11000s Setting up libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 11000s Selecting previously unselected package libnettle8t64:armhf. 11000s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 11000s Preparing to unpack .../libnettle8t64_3.9.1-2.2_armhf.deb ... 11000s Unpacking libnettle8t64:armhf (3.9.1-2.2) ... 11000s Setting up libnettle8t64:armhf (3.9.1-2.2) ... 11000s dpkg: libhogweed6:armhf: dependency problems, but removing anyway as you requested: 11000s libgnutls30:armhf depends on libhogweed6 (>= 3.6). 11000s 11000s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 11000s Removing libhogweed6:armhf (3.9.1-2) ... 11000s Selecting previously unselected package libhogweed6t64:armhf. 11000s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58591 files and directories currently installed.) 11001s Preparing to unpack .../libhogweed6t64_3.9.1-2.2_armhf.deb ... 11001s Unpacking libhogweed6t64:armhf (3.9.1-2.2) ... 11001s Setting up libhogweed6t64:armhf (3.9.1-2.2) ... 11001s dpkg: libgnutls30:armhf: dependency problems, but removing anyway as you requested: 11001s libcurl3-gnutls:armhf depends on libgnutls30 (>= 3.8.2). 11001s apt depends on libgnutls30 (>= 3.8.1). 11001s 11001s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58597 files and directories currently installed.) 11001s Removing libgnutls30:armhf (3.8.3-1ubuntu1) ... 11001s Selecting previously unselected package libgnutls30t64:armhf. 11001s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 11001s Preparing to unpack .../libgnutls30t64_3.8.3-1.1ubuntu2_armhf.deb ... 11001s Unpacking libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 11001s Setting up libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 11001s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 11001s Preparing to unpack .../apt_2.7.13ubuntu1_armhf.deb ... 11001s Unpacking apt (2.7.13ubuntu1) over (2.7.12) ... 11001s Setting up apt (2.7.13ubuntu1) ... 11003s dpkg: libcurl3-gnutls:armhf: dependency problems, but removing anyway as you requested: 11003s libfwupd2:armhf depends on libcurl3-gnutls (>= 7.63.0). 11003s 11003s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 11003s Removing libcurl3-gnutls:armhf (8.5.0-2ubuntu2) ... 11003s Selecting previously unselected package libcurl3t64-gnutls:armhf. 11003s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58609 files and directories currently installed.) 11003s Preparing to unpack .../libcurl3t64-gnutls_8.5.0-2ubuntu7_armhf.deb ... 11003s Unpacking libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 11003s Preparing to unpack .../libfwupd2_1.9.15-1_armhf.deb ... 11003s Unpacking libfwupd2:armhf (1.9.15-1) over (1.9.14-1) ... 11003s dpkg: libpsl5:armhf: dependency problems, but removing anyway as you requested: 11003s wget depends on libpsl5 (>= 0.16.0). 11003s libcurl4:armhf depends on libpsl5 (>= 0.16.0). 11003s 11003s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 11003s Removing libpsl5:armhf (0.21.2-1build1) ... 11003s Selecting previously unselected package libpsl5t64:armhf. 11003s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58611 files and directories currently installed.) 11003s Preparing to unpack .../libpsl5t64_0.21.2-1.1_armhf.deb ... 11003s Unpacking libpsl5t64:armhf (0.21.2-1.1) ... 11004s Preparing to unpack .../wget_1.21.4-1ubuntu2_armhf.deb ... 11004s Unpacking wget (1.21.4-1ubuntu2) over (1.21.4-1ubuntu1) ... 11004s Preparing to unpack .../tnftp_20230507-2build1_armhf.deb ... 11004s Unpacking tnftp (20230507-2build1) over (20230507-2) ... 11004s dpkg: libpcap0.8:armhf: dependency problems, but removing anyway as you requested: 11004s tcpdump depends on libpcap0.8 (>= 1.9.1). 11004s 11004s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58617 files and directories currently installed.) 11004s Removing libpcap0.8:armhf (1.10.4-4ubuntu3) ... 11004s Selecting previously unselected package libpcap0.8t64:armhf. 11004s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58606 files and directories currently installed.) 11004s Preparing to unpack .../0-libpcap0.8t64_1.10.4-4.1ubuntu1_armhf.deb ... 11004s Unpacking libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 11004s Preparing to unpack .../1-tcpdump_4.99.4-3ubuntu2_armhf.deb ... 11004s Unpacking tcpdump (4.99.4-3ubuntu2) over (4.99.4-3ubuntu1) ... 11004s Preparing to unpack .../2-libsystemd-shared_255.4-1ubuntu5_armhf.deb ... 11004s Unpacking libsystemd-shared:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11004s Preparing to unpack .../3-systemd-resolved_255.4-1ubuntu5_armhf.deb ... 11004s Unpacking systemd-resolved (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11004s Preparing to unpack .../4-sudo_1.9.15p5-3ubuntu3_armhf.deb ... 11004s Unpacking sudo (1.9.15p5-3ubuntu3) over (1.9.15p5-3ubuntu1) ... 11005s Preparing to unpack .../5-rsync_3.2.7-1build1_armhf.deb ... 11005s Unpacking rsync (3.2.7-1build1) over (3.2.7-1) ... 11005s Preparing to unpack .../6-python3-cryptography_41.0.7-4build2_armhf.deb ... 11005s Unpacking python3-cryptography (41.0.7-4build2) over (41.0.7-3) ... 11005s Preparing to unpack .../7-openssh-sftp-server_1%3a9.6p1-3ubuntu10_armhf.deb ... 11005s Unpacking openssh-sftp-server (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 11005s Preparing to unpack .../8-openssh-client_1%3a9.6p1-3ubuntu10_armhf.deb ... 11005s Unpacking openssh-client (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 11005s Preparing to unpack .../9-openssh-server_1%3a9.6p1-3ubuntu10_armhf.deb ... 11006s Unpacking openssh-server (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 11006s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 11006s Removing linux-headers-generic (6.8.0-11.11+1) ... 11006s Removing linux-headers-6.8.0-11-generic (6.8.0-11.11) ... 11007s dpkg: libssl3:armhf: dependency problems, but removing anyway as you requested: 11007s systemd depends on libssl3 (>= 3.0.0). 11007s libssh-4:armhf depends on libssl3 (>= 3.0.0). 11007s libsasl2-modules:armhf depends on libssl3 (>= 3.0.0). 11007s libsasl2-2:armhf depends on libssl3 (>= 3.0.0). 11007s libnvme1 depends on libssl3 (>= 3.0.0). 11007s libkrb5-3:armhf depends on libssl3 (>= 3.0.0). 11007s libkmod2:armhf depends on libssl3 (>= 3.0.0). 11007s libfido2-1:armhf depends on libssl3 (>= 3.0.0). 11007s libcurl4:armhf depends on libssl3 (>= 3.0.0). 11007s libcryptsetup12:armhf depends on libssl3 (>= 3.0.0). 11007s kmod depends on libssl3 (>= 3.0.0). 11007s dhcpcd-base depends on libssl3 (>= 3.0.0). 11007s bind9-libs:armhf depends on libssl3 (>= 3.0.0). 11007s 11007s Removing libssl3:armhf (3.0.10-1ubuntu4) ... 11008s Selecting previously unselected package libssl3t64:armhf. 11008s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47465 files and directories currently installed.) 11008s Preparing to unpack .../libssl3t64_3.0.13-0ubuntu2_armhf.deb ... 11008s Unpacking libssl3t64:armhf (3.0.13-0ubuntu2) ... 11008s Setting up libssl3t64:armhf (3.0.13-0ubuntu2) ... 11008s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 11008s Preparing to unpack .../libudev1_255.4-1ubuntu5_armhf.deb ... 11008s Unpacking libudev1:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11008s Setting up libudev1:armhf (255.4-1ubuntu5) ... 11008s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 11008s Preparing to unpack .../systemd_255.4-1ubuntu5_armhf.deb ... 11008s Unpacking systemd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11009s Preparing to unpack .../udev_255.4-1ubuntu5_armhf.deb ... 11009s Unpacking udev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11010s Preparing to unpack .../libsystemd0_255.4-1ubuntu5_armhf.deb ... 11010s Unpacking libsystemd0:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11010s Setting up libsystemd0:armhf (255.4-1ubuntu5) ... 11010s Setting up libsystemd-shared:armhf (255.4-1ubuntu5) ... 11010s Setting up systemd-dev (255.4-1ubuntu5) ... 11010s Setting up systemd (255.4-1ubuntu5) ... 11011s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 11011s Preparing to unpack .../systemd-sysv_255.4-1ubuntu5_armhf.deb ... 11011s Unpacking systemd-sysv (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11011s Preparing to unpack .../libnss-systemd_255.4-1ubuntu5_armhf.deb ... 11011s Unpacking libnss-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11011s Preparing to unpack .../libpam-systemd_255.4-1ubuntu5_armhf.deb ... 11011s Unpacking libpam-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 11011s Preparing to unpack .../libpam-modules-bin_1.5.3-5ubuntu3_armhf.deb ... 11011s Unpacking libpam-modules-bin (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 11011s Setting up libpam-modules-bin (1.5.3-5ubuntu3) ... 11012s pam_namespace.service is a disabled or a static unit not running, not starting it. 11012s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 11012s Preparing to unpack .../libpam-modules_1.5.3-5ubuntu3_armhf.deb ... 11012s Unpacking libpam-modules:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 11013s Setting up libpam-modules:armhf (1.5.3-5ubuntu3) ... 11013s Installing new version of config file /etc/security/namespace.init ... 11013s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 11013s Preparing to unpack .../libpam-runtime_1.5.3-5ubuntu3_all.deb ... 11013s Unpacking libpam-runtime (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 11013s Setting up libpam-runtime (1.5.3-5ubuntu3) ... 11013s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 11013s Preparing to unpack .../0-dbus-user-session_1.14.10-4ubuntu2_armhf.deb ... 11013s Unpacking dbus-user-session (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 11013s Preparing to unpack .../1-libapparmor1_4.0.0-beta3-0ubuntu2_armhf.deb ... 11013s Unpacking libapparmor1:armhf (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 11013s Preparing to unpack .../2-dbus-bin_1.14.10-4ubuntu2_armhf.deb ... 11013s Unpacking dbus-bin (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 11013s Preparing to unpack .../3-dbus-system-bus-common_1.14.10-4ubuntu2_all.deb ... 11013s Unpacking dbus-system-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 11013s Preparing to unpack .../4-dbus_1.14.10-4ubuntu2_armhf.deb ... 11014s Unpacking dbus (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 11014s Preparing to unpack .../5-dbus-daemon_1.14.10-4ubuntu2_armhf.deb ... 11014s Unpacking dbus-daemon (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 11014s Preparing to unpack .../6-libdbus-1-3_1.14.10-4ubuntu2_armhf.deb ... 11014s Unpacking libdbus-1-3:armhf (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 11014s Preparing to unpack .../7-kmod_31+20240202-2ubuntu4_armhf.deb ... 11014s Unpacking kmod (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 11014s dpkg: warning: unable to delete old directory '/lib/modprobe.d': Directory not empty 11014s Preparing to unpack .../8-libkmod2_31+20240202-2ubuntu4_armhf.deb ... 11014s Unpacking libkmod2:armhf (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 11014s Preparing to unpack .../9-libmount1_2.39.3-9ubuntu2_armhf.deb ... 11014s Unpacking libmount1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11014s Setting up libmount1:armhf (2.39.3-9ubuntu2) ... 11014s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 11014s Preparing to unpack .../libseccomp2_2.5.5-1ubuntu2_armhf.deb ... 11014s Unpacking libseccomp2:armhf (2.5.5-1ubuntu2) over (2.5.5-1ubuntu1) ... 11014s Setting up libseccomp2:armhf (2.5.5-1ubuntu2) ... 11014s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 11014s Preparing to unpack .../libuuid1_2.39.3-9ubuntu2_armhf.deb ... 11014s Unpacking libuuid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11014s Setting up libuuid1:armhf (2.39.3-9ubuntu2) ... 11014s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 11015s Preparing to unpack .../0-libcryptsetup12_2%3a2.7.0-1ubuntu2_armhf.deb ... 11015s Unpacking libcryptsetup12:armhf (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 11015s Preparing to unpack .../1-libfdisk1_2.39.3-9ubuntu2_armhf.deb ... 11015s Unpacking libfdisk1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11015s Preparing to unpack .../2-mount_2.39.3-9ubuntu2_armhf.deb ... 11015s Unpacking mount (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11015s Preparing to unpack .../3-libdevmapper1.02.1_2%3a1.02.185-3ubuntu2_armhf.deb ... 11015s Unpacking libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 11015s Selecting previously unselected package libparted2t64:armhf. 11015s Preparing to unpack .../4-libparted2t64_3.6-3.1build2_armhf.deb ... 11015s Unpacking libparted2t64:armhf (3.6-3.1build2) ... 11015s Preparing to unpack .../5-libsqlite3-0_3.45.1-1ubuntu1_armhf.deb ... 11015s Unpacking libsqlite3-0:armhf (3.45.1-1ubuntu1) over (3.45.1-1) ... 11015s Preparing to unpack .../6-pinentry-curses_1.2.1-3ubuntu4_armhf.deb ... 11015s Unpacking pinentry-curses (1.2.1-3ubuntu4) over (1.2.1-3ubuntu1) ... 11015s Preparing to unpack .../7-libsmartcols1_2.39.3-9ubuntu2_armhf.deb ... 11015s Unpacking libsmartcols1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11015s Setting up libsmartcols1:armhf (2.39.3-9ubuntu2) ... 11015s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47482 files and directories currently installed.) 11015s Preparing to unpack .../0-readline-common_8.2-3.1_all.deb ... 11015s Unpacking readline-common (8.2-3.1) over (8.2-3) ... 11015s Preparing to unpack .../1-python3-yaml_6.0.1-2build1_armhf.deb ... 11016s Unpacking python3-yaml (6.0.1-2build1) over (6.0.1-2) ... 11016s Preparing to unpack .../2-python-apt-common_2.7.6build1_all.deb ... 11016s Unpacking python-apt-common (2.7.6build1) over (2.7.6) ... 11016s Preparing to unpack .../3-python3-setuptools_68.1.2-2ubuntu1_all.deb ... 11016s Unpacking python3-setuptools (68.1.2-2ubuntu1) over (68.1.2-2) ... 11016s Preparing to unpack .../4-python3-pkg-resources_68.1.2-2ubuntu1_all.deb ... 11017s Unpacking python3-pkg-resources (68.1.2-2ubuntu1) over (68.1.2-2) ... 11017s Preparing to unpack .../5-dpkg_1.22.6ubuntu4_armhf.deb ... 11017s Unpacking dpkg (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 11017s Setting up dpkg (1.22.6ubuntu4) ... 11018s Setting up libpython3.12-minimal:armhf (3.12.2-4build3) ... 11018s Setting up libexpat1:armhf (2.6.1-2) ... 11018s Setting up python3.12-minimal (3.12.2-4build3) ... 11020s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 11020s Preparing to unpack .../python3-minimal_3.12.2-0ubuntu1_armhf.deb ... 11020s Unpacking python3-minimal (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 11020s Setting up python3-minimal (3.12.2-0ubuntu1) ... 11021s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 11021s Preparing to unpack .../00-python3_3.12.2-0ubuntu1_armhf.deb ... 11021s Unpacking python3 (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 11021s Preparing to unpack .../01-libpython3-stdlib_3.12.2-0ubuntu1_armhf.deb ... 11021s Unpacking libpython3-stdlib:armhf (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 11021s Preparing to unpack .../02-bsdextrautils_2.39.3-9ubuntu2_armhf.deb ... 11021s Unpacking bsdextrautils (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11021s Preparing to unpack .../03-groff-base_1.23.0-3build1_armhf.deb ... 11021s Unpacking groff-base (1.23.0-3build1) over (1.23.0-3) ... 11021s Preparing to unpack .../04-libsasl2-2_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 11021s Unpacking libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 11021s Preparing to unpack .../05-libjson-glib-1.0-common_1.8.0-2build1_all.deb ... 11021s Unpacking libjson-glib-1.0-common (1.8.0-2build1) over (1.8.0-2) ... 11022s Preparing to unpack .../06-libjson-glib-1.0-0_1.8.0-2build1_armhf.deb ... 11022s Unpacking libjson-glib-1.0-0:armhf (1.8.0-2build1) over (1.8.0-2) ... 11022s Preparing to unpack .../07-libxml2_2.9.14+dfsg-1.3ubuntu2_armhf.deb ... 11022s Unpacking libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) over (2.9.14+dfsg-1.3ubuntu1) ... 11022s Preparing to unpack .../08-libgudev-1.0-0_1%3a238-3ubuntu2_armhf.deb ... 11022s Unpacking libgudev-1.0-0:armhf (1:238-3ubuntu2) over (1:238-3) ... 11022s Preparing to unpack .../09-libusb-1.0-0_2%3a1.0.27-1_armhf.deb ... 11022s Unpacking libusb-1.0-0:armhf (2:1.0.27-1) over (2:1.0.26-1) ... 11022s Preparing to unpack .../10-libgusb2_0.4.8-1build1_armhf.deb ... 11022s Unpacking libgusb2:armhf (0.4.8-1build1) over (0.4.8-1) ... 11022s Preparing to unpack .../11-libmbim-proxy_1.31.2-0ubuntu2_armhf.deb ... 11022s Unpacking libmbim-proxy (1.31.2-0ubuntu2) over (1.30.0-1) ... 11022s Preparing to unpack .../12-libmbim-glib4_1.31.2-0ubuntu2_armhf.deb ... 11022s Unpacking libmbim-glib4:armhf (1.31.2-0ubuntu2) over (1.30.0-1) ... 11022s Preparing to unpack .../13-libmm-glib0_1.23.4-0ubuntu1_armhf.deb ... 11022s Unpacking libmm-glib0:armhf (1.23.4-0ubuntu1) over (1.22.0-3) ... 11022s Preparing to unpack .../14-libpolkit-agent-1-0_124-1ubuntu1_armhf.deb ... 11022s Unpacking libpolkit-agent-1-0:armhf (124-1ubuntu1) over (124-1) ... 11022s Preparing to unpack .../15-libpolkit-gobject-1-0_124-1ubuntu1_armhf.deb ... 11022s Unpacking libpolkit-gobject-1-0:armhf (124-1ubuntu1) over (124-1) ... 11022s Preparing to unpack .../16-libqmi-proxy_1.35.2-0ubuntu1_armhf.deb ... 11022s Unpacking libqmi-proxy (1.35.2-0ubuntu1) over (1.34.0-2) ... 11022s Preparing to unpack .../17-libqrtr-glib0_1.2.2-1ubuntu3_armhf.deb ... 11022s Unpacking libqrtr-glib0:armhf (1.2.2-1ubuntu3) over (1.2.2-1ubuntu2) ... 11022s Preparing to unpack .../18-libqmi-glib5_1.35.2-0ubuntu1_armhf.deb ... 11022s Unpacking libqmi-glib5:armhf (1.35.2-0ubuntu1) over (1.34.0-2) ... 11022s Preparing to unpack .../19-libxmlb2_0.3.15-1build1_armhf.deb ... 11022s Unpacking libxmlb2:armhf (0.3.15-1build1) over (0.3.15-1) ... 11022s Preparing to unpack .../20-shared-mime-info_2.4-1build1_armhf.deb ... 11022s Unpacking shared-mime-info (2.4-1build1) over (2.4-1) ... 11023s Preparing to unpack .../21-libbrotli1_1.1.0-2build1_armhf.deb ... 11023s Unpacking libbrotli1:armhf (1.1.0-2build1) over (1.1.0-2) ... 11023s Preparing to unpack .../22-libgssapi-krb5-2_1.20.1-5.1build3_armhf.deb ... 11023s Unpacking libgssapi-krb5-2:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 11023s Preparing to unpack .../23-libkrb5-3_1.20.1-5.1build3_armhf.deb ... 11023s Unpacking libkrb5-3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 11023s Preparing to unpack .../24-libkrb5support0_1.20.1-5.1build3_armhf.deb ... 11023s Unpacking libkrb5support0:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 11023s Preparing to unpack .../25-libk5crypto3_1.20.1-5.1build3_armhf.deb ... 11023s Unpacking libk5crypto3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 11023s Preparing to unpack .../26-libcom-err2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 11023s Unpacking libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 11023s Preparing to unpack .../27-libnghttp2-14_1.59.0-1build1_armhf.deb ... 11023s Unpacking libnghttp2-14:armhf (1.59.0-1build1) over (1.59.0-1) ... 11023s Preparing to unpack .../28-libssh-4_0.10.6-2build1_armhf.deb ... 11023s Unpacking libssh-4:armhf (0.10.6-2build1) over (0.10.6-2) ... 11023s Preparing to unpack .../29-libibverbs1_50.0-2build1_armhf.deb ... 11023s Unpacking libibverbs1:armhf (50.0-2build1) over (50.0-2) ... 11023s Preparing to unpack .../30-libfido2-1_1.14.0-1build1_armhf.deb ... 11023s Unpacking libfido2-1:armhf (1.14.0-1build1) over (1.14.0-1) ... 11023s Preparing to unpack .../31-coreutils_9.4-3ubuntu3_armhf.deb ... 11023s Unpacking coreutils (9.4-3ubuntu3) over (9.4-2ubuntu4) ... 11024s Setting up coreutils (9.4-3ubuntu3) ... 11024s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 11024s Preparing to unpack .../debianutils_5.17_armhf.deb ... 11024s Unpacking debianutils (5.17) over (5.16) ... 11024s Setting up debianutils (5.17) ... 11024s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 11024s Preparing to unpack .../util-linux_2.39.3-9ubuntu2_armhf.deb ... 11024s Unpacking util-linux (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11024s Setting up util-linux (2.39.3-9ubuntu2) ... 11026s fstrim.service is a disabled or a static unit not running, not starting it. 11026s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 11026s Preparing to unpack .../libc-bin_2.39-0ubuntu6_armhf.deb ... 11026s Unpacking libc-bin (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 11026s Setting up libc-bin (2.39-0ubuntu6) ... 11026s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 11026s Removing libatm1:armhf (1:2.5.1-5) ... 11027s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 11027s Preparing to unpack .../curl_8.5.0-2ubuntu7_armhf.deb ... 11027s Unpacking curl (8.5.0-2ubuntu7) over (8.5.0-2ubuntu2) ... 11027s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 11027s Removing libcurl4:armhf (8.5.0-2ubuntu2) ... 11027s Selecting previously unselected package libcurl4t64:armhf. 11027s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47471 files and directories currently installed.) 11027s Preparing to unpack .../libcurl4t64_8.5.0-2ubuntu7_armhf.deb ... 11027s Unpacking libcurl4t64:armhf (8.5.0-2ubuntu7) ... 11027s Preparing to unpack .../libbpf1_1%3a1.3.0-2build1_armhf.deb ... 11027s Unpacking libbpf1:armhf (1:1.3.0-2build1) over (1:1.3.0-2) ... 11027s Preparing to unpack .../iproute2_6.1.0-1ubuntu5_armhf.deb ... 11027s Unpacking iproute2 (6.1.0-1ubuntu5) over (6.1.0-1ubuntu2) ... 11027s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47477 files and directories currently installed.) 11027s Removing libelf1:armhf (0.190-1) ... 11027s Selecting previously unselected package libelf1t64:armhf. 11027s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47472 files and directories currently installed.) 11027s Preparing to unpack .../libelf1t64_0.190-1.1build2_armhf.deb ... 11027s Unpacking libelf1t64:armhf (0.190-1.1build2) ... 11027s Preparing to unpack .../lsof_4.95.0-1build2_armhf.deb ... 11027s Unpacking lsof (4.95.0-1build2) over (4.95.0-1build1) ... 11028s Preparing to unpack .../libnsl2_1.3.0-3build2_armhf.deb ... 11028s Unpacking libnsl2:armhf (1.3.0-3build2) over (1.3.0-3) ... 11028s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47477 files and directories currently installed.) 11028s Removing libtirpc3:armhf (1.3.4+ds-1build1) ... 11028s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47471 files and directories currently installed.) 11028s Preparing to unpack .../0-libtirpc-common_1.3.4+ds-1.1_all.deb ... 11028s Unpacking libtirpc-common (1.3.4+ds-1.1) over (1.3.4+ds-1build1) ... 11028s Selecting previously unselected package libtirpc3t64:armhf. 11028s Preparing to unpack .../1-libtirpc3t64_1.3.4+ds-1.1_armhf.deb ... 11028s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3 to /lib/arm-linux-gnueabihf/libtirpc.so.3.usr-is-merged by libtirpc3t64' 11028s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0 to /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' 11028s Unpacking libtirpc3t64:armhf (1.3.4+ds-1.1) ... 11028s Preparing to unpack .../2-libblockdev-utils3_3.1.0-1build1_armhf.deb ... 11028s Unpacking libblockdev-utils3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11028s Preparing to unpack .../3-libblockdev-fs3_3.1.0-1build1_armhf.deb ... 11028s Unpacking libblockdev-fs3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11028s Preparing to unpack .../4-logsave_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 11028s Unpacking logsave (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 11028s Preparing to unpack .../5-ubuntu-minimal_1.536build1_armhf.deb ... 11028s Unpacking ubuntu-minimal (1.536build1) over (1.536) ... 11028s Preparing to unpack .../6-initramfs-tools_0.142ubuntu22_all.deb ... 11028s Unpacking initramfs-tools (0.142ubuntu22) over (0.142ubuntu20) ... 11028s Preparing to unpack .../7-initramfs-tools-core_0.142ubuntu22_all.deb ... 11028s Unpacking initramfs-tools-core (0.142ubuntu22) over (0.142ubuntu20) ... 11029s Preparing to unpack .../8-e2fsprogs-l10n_1.47.0-2.4~exp1ubuntu2_all.deb ... 11029s Unpacking e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 11029s dpkg: libext2fs2:armhf: dependency problems, but removing anyway as you requested: 11029s e2fsprogs depends on libext2fs2 (= 1.47.0-2ubuntu1). 11029s btrfs-progs depends on libext2fs2 (>= 1.42). 11029s 11029s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47483 files and directories currently installed.) 11029s Removing libext2fs2:armhf (1.47.0-2ubuntu1) ... 11029s Selecting previously unselected package libext2fs2t64:armhf. 11029s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 11029s Preparing to unpack .../libext2fs2t64_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 11029s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2 to /lib/arm-linux-gnueabihf/libe2p.so.2.usr-is-merged by libext2fs2t64' 11029s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2.3 to /lib/arm-linux-gnueabihf/libe2p.so.2.3.usr-is-merged by libext2fs2t64' 11029s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2 to /lib/arm-linux-gnueabihf/libext2fs.so.2.usr-is-merged by libext2fs2t64' 11029s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2.4 to /lib/arm-linux-gnueabihf/libext2fs.so.2.4.usr-is-merged by libext2fs2t64' 11029s Unpacking libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 11029s Setting up libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) ... 11029s Setting up libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 11029s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47492 files and directories currently installed.) 11029s Preparing to unpack .../00-e2fsprogs_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 11029s Unpacking e2fsprogs (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 11029s Preparing to unpack .../01-btrfs-progs_6.6.3-1.1build1_armhf.deb ... 11029s Unpacking btrfs-progs (6.6.3-1.1build1) over (6.6.3-1.1) ... 11029s Preparing to unpack .../02-dhcpcd-base_1%3a10.0.6-1ubuntu2_armhf.deb ... 11029s Unpacking dhcpcd-base (1:10.0.6-1ubuntu2) over (1:10.0.6-1ubuntu1) ... 11030s Preparing to unpack .../03-eject_2.39.3-9ubuntu2_armhf.deb ... 11030s Unpacking eject (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11030s Preparing to unpack .../04-locales_2.39-0ubuntu6_all.deb ... 11030s Unpacking locales (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 11030s Selecting previously unselected package libnetplan1:armhf. 11030s Preparing to unpack .../05-libnetplan1_1.0-1_armhf.deb ... 11030s Unpacking libnetplan1:armhf (1.0-1) ... 11030s Preparing to unpack .../06-python3-netplan_1.0-1_armhf.deb ... 11030s Unpacking python3-netplan (1.0-1) over (0.107.1-3) ... 11030s Preparing to unpack .../07-netplan-generator_1.0-1_armhf.deb ... 11030s Adding 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 11030s Unpacking netplan-generator (1.0-1) over (0.107.1-3) ... 11030s Preparing to unpack .../08-python3-dbus_1.3.2-5build2_armhf.deb ... 11031s Unpacking python3-dbus (1.3.2-5build2) over (1.3.2-5build1) ... 11031s Preparing to unpack .../09-netplan.io_1.0-1_armhf.deb ... 11031s Unpacking netplan.io (1.0-1) over (0.107.1-3) ... 11031s Preparing to unpack .../10-vim-tiny_2%3a9.1.0016-1ubuntu5_armhf.deb ... 11031s Unpacking vim-tiny (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 11031s Preparing to unpack .../11-vim-common_2%3a9.1.0016-1ubuntu5_all.deb ... 11031s Unpacking vim-common (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 11031s Preparing to unpack .../12-initramfs-tools-bin_0.142ubuntu22_armhf.deb ... 11031s Unpacking initramfs-tools-bin (0.142ubuntu22) over (0.142ubuntu20) ... 11031s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47496 files and directories currently installed.) 11031s Removing libreiserfscore0 (1:3.6.27-7) ... 11031s Selecting previously unselected package libreiserfscore0t64. 11031s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 11031s Preparing to unpack .../libreiserfscore0t64_1%3a3.6.27-7.1_armhf.deb ... 11031s Unpacking libreiserfscore0t64 (1:3.6.27-7.1) ... 11031s Preparing to unpack .../file_1%3a5.45-3_armhf.deb ... 11031s Unpacking file (1:5.45-3) over (1:5.45-2) ... 11032s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47497 files and directories currently installed.) 11032s Removing libmagic1:armhf (1:5.45-2) ... 11032s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47487 files and directories currently installed.) 11032s Preparing to unpack .../libmagic-mgc_1%3a5.45-3_armhf.deb ... 11032s Unpacking libmagic-mgc (1:5.45-3) over (1:5.45-2) ... 11032s Selecting previously unselected package libmagic1t64:armhf. 11032s Preparing to unpack .../libmagic1t64_1%3a5.45-3_armhf.deb ... 11032s Unpacking libmagic1t64:armhf (1:5.45-3) ... 11032s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47498 files and directories currently installed.) 11032s Removing libnetplan0:armhf (0.107.1-3) ... 11032s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47494 files and directories currently installed.) 11032s Preparing to unpack .../libblockdev-nvme3_3.1.0-1build1_armhf.deb ... 11032s Unpacking libblockdev-nvme3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11032s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47494 files and directories currently installed.) 11032s Removing libnvme1 (1.8-2) ... 11032s Selecting previously unselected package libnvme1t64. 11032s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47487 files and directories currently installed.) 11032s Preparing to unpack .../libnvme1t64_1.8-3_armhf.deb ... 11032s Unpacking libnvme1t64 (1.8-3) ... 11032s Preparing to unpack .../libplymouth5_24.004.60-1ubuntu5_armhf.deb ... 11032s Unpacking libplymouth5:armhf (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 11033s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47495 files and directories currently installed.) 11033s Removing libpng16-16:armhf (1.6.43-1) ... 11033s Selecting previously unselected package libpng16-16t64:armhf. 11033s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47485 files and directories currently installed.) 11033s Preparing to unpack .../libpng16-16t64_1.6.43-3_armhf.deb ... 11033s Unpacking libpng16-16t64:armhf (1.6.43-3) ... 11033s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47496 files and directories currently installed.) 11033s Removing libudisks2-0:armhf (2.10.1-1ubuntu2) ... 11033s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 11033s Preparing to unpack .../bind9-host_1%3a9.18.24-0ubuntu3_armhf.deb ... 11033s Unpacking bind9-host (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 11033s Preparing to unpack .../bind9-dnsutils_1%3a9.18.24-0ubuntu3_armhf.deb ... 11033s Unpacking bind9-dnsutils (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 11033s Preparing to unpack .../bind9-libs_1%3a9.18.24-0ubuntu3_armhf.deb ... 11033s Unpacking bind9-libs:armhf (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 11033s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 11033s Removing libuv1:armhf (1.48.0-1) ... 11033s Selecting previously unselected package libuv1t64:armhf. 11033s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47486 files and directories currently installed.) 11033s Preparing to unpack .../libuv1t64_1.48.0-1.1_armhf.deb ... 11033s Unpacking libuv1t64:armhf (1.48.0-1.1) ... 11033s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47492 files and directories currently installed.) 11033s Removing python3-distutils (3.11.5-1) ... 11034s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 11034s Preparing to unpack .../uuid-runtime_2.39.3-9ubuntu2_armhf.deb ... 11034s Unpacking uuid-runtime (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 11034s Preparing to unpack .../libdebconfclient0_0.271ubuntu2_armhf.deb ... 11034s Unpacking libdebconfclient0:armhf (0.271ubuntu2) over (0.271ubuntu1) ... 11034s Setting up libdebconfclient0:armhf (0.271ubuntu2) ... 11034s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 11034s Preparing to unpack .../libsemanage-common_3.5-1build4_all.deb ... 11034s Unpacking libsemanage-common (3.5-1build4) over (3.5-1build2) ... 11034s Setting up libsemanage-common (3.5-1build4) ... 11034s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 11034s Preparing to unpack .../libsemanage2_3.5-1build4_armhf.deb ... 11034s Unpacking libsemanage2:armhf (3.5-1build4) over (3.5-1build2) ... 11034s Setting up libsemanage2:armhf (3.5-1build4) ... 11034s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 11034s Preparing to unpack .../install-info_7.1-3build1_armhf.deb ... 11034s Unpacking install-info (7.1-3build1) over (7.1-3) ... 11034s Setting up install-info (7.1-3build1) ... 11035s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 11035s Preparing to unpack .../00-gcc-13-base_13.2.0-19ubuntu1_armhf.deb ... 11035s Unpacking gcc-13-base:armhf (13.2.0-19ubuntu1) over (13.2.0-17ubuntu2) ... 11035s Preparing to unpack .../01-libss2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 11035s Unpacking libss2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 11035s Preparing to unpack .../02-dmsetup_2%3a1.02.185-3ubuntu2_armhf.deb ... 11035s Unpacking dmsetup (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 11035s Preparing to unpack .../03-gir1.2-girepository-2.0_1.79.1-1ubuntu6_armhf.deb ... 11035s Unpacking gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 11035s Preparing to unpack .../04-gir1.2-glib-2.0_2.79.3-3ubuntu5_armhf.deb ... 11035s Unpacking gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 11035s Preparing to unpack .../05-libgirepository-1.0-1_1.79.1-1ubuntu6_armhf.deb ... 11035s Unpacking libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 11035s Preparing to unpack .../06-krb5-locales_1.20.1-5.1build3_all.deb ... 11035s Unpacking krb5-locales (1.20.1-5.1build3) over (1.20.1-5build1) ... 11035s Preparing to unpack .../07-libbsd0_0.12.1-1_armhf.deb ... 11035s Unpacking libbsd0:armhf (0.12.1-1) over (0.11.8-1) ... 11035s Preparing to unpack .../08-libglib2.0-data_2.79.3-3ubuntu5_all.deb ... 11035s Unpacking libglib2.0-data (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 11035s Preparing to unpack .../09-libslang2_2.3.3-3build1_armhf.deb ... 11035s Unpacking libslang2:armhf (2.3.3-3build1) over (2.3.3-3) ... 11035s Preparing to unpack .../10-python3-gi_3.47.0-3build1_armhf.deb ... 11036s Unpacking python3-gi (3.47.0-3build1) over (3.47.0-3) ... 11036s Selecting previously unselected package xdg-user-dirs. 11036s Preparing to unpack .../11-xdg-user-dirs_0.18-1_armhf.deb ... 11036s Unpacking xdg-user-dirs (0.18-1) ... 11036s Preparing to unpack .../12-xxd_2%3a9.1.0016-1ubuntu5_armhf.deb ... 11036s Unpacking xxd (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 11036s Preparing to unpack .../13-apparmor_4.0.0-beta3-0ubuntu2_armhf.deb ... 11037s Unpacking apparmor (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 11038s Preparing to unpack .../14-ftp_20230507-2build1_all.deb ... 11038s Unpacking ftp (20230507-2build1) over (20230507-2) ... 11038s Preparing to unpack .../15-inetutils-telnet_2%3a2.5-3ubuntu3_armhf.deb ... 11038s Unpacking inetutils-telnet (2:2.5-3ubuntu3) over (2:2.5-3ubuntu1) ... 11038s Preparing to unpack .../16-info_7.1-3build1_armhf.deb ... 11038s Unpacking info (7.1-3build1) over (7.1-3) ... 11038s Preparing to unpack .../17-libxmuu1_2%3a1.1.3-3build1_armhf.deb ... 11038s Unpacking libxmuu1:armhf (2:1.1.3-3build1) over (2:1.1.3-3) ... 11038s Preparing to unpack .../18-lshw_02.19.git.2021.06.19.996aaad9c7-2build2_armhf.deb ... 11038s Unpacking lshw (02.19.git.2021.06.19.996aaad9c7-2build2) over (02.19.git.2021.06.19.996aaad9c7-2build1) ... 11039s Preparing to unpack .../19-mtr-tiny_0.95-1.1build1_armhf.deb ... 11039s Unpacking mtr-tiny (0.95-1.1build1) over (0.95-1.1) ... 11039s Preparing to unpack .../20-plymouth-theme-ubuntu-text_24.004.60-1ubuntu5_armhf.deb ... 11039s Unpacking plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 11039s Preparing to unpack .../21-plymouth_24.004.60-1ubuntu5_armhf.deb ... 11039s Unpacking plymouth (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 11039s Preparing to unpack .../22-psmisc_23.7-1_armhf.deb ... 11039s Unpacking psmisc (23.7-1) over (23.6-2) ... 11039s Preparing to unpack .../23-telnet_0.17+2.5-3ubuntu3_all.deb ... 11039s Unpacking telnet (0.17+2.5-3ubuntu3) over (0.17+2.5-3ubuntu1) ... 11039s Preparing to unpack .../24-xz-utils_5.6.0-0.2_armhf.deb ... 11039s Unpacking xz-utils (5.6.0-0.2) over (5.4.5-0.3) ... 11040s Preparing to unpack .../25-ubuntu-standard_1.536build1_armhf.deb ... 11040s Unpacking ubuntu-standard (1.536build1) over (1.536) ... 11040s Preparing to unpack .../26-usb.ids_2024.03.18-1_all.deb ... 11040s Unpacking usb.ids (2024.03.18-1) over (2024.01.30-1) ... 11040s Preparing to unpack .../27-bolt_0.9.6-2build1_armhf.deb ... 11040s Unpacking bolt (0.9.6-2build1) over (0.9.6-2) ... 11040s Preparing to unpack .../28-cryptsetup-bin_2%3a2.7.0-1ubuntu2_armhf.deb ... 11040s Unpacking cryptsetup-bin (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 11040s Preparing to unpack .../29-dpkg-dev_1.22.6ubuntu4_all.deb ... 11040s Unpacking dpkg-dev (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 11040s Preparing to unpack .../30-libdpkg-perl_1.22.6ubuntu4_all.deb ... 11040s Unpacking libdpkg-perl (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 11040s Preparing to unpack .../31-gnupg-l10n_2.4.4-2ubuntu15_all.deb ... 11040s Unpacking gnupg-l10n (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 11041s Preparing to unpack .../32-ibverbs-providers_50.0-2build1_armhf.deb ... 11041s Unpacking ibverbs-providers:armhf (50.0-2build1) over (50.0-2) ... 11041s Preparing to unpack .../33-jq_1.7.1-3_armhf.deb ... 11041s Unpacking jq (1.7.1-3) over (1.7.1-2) ... 11041s Preparing to unpack .../34-libjq1_1.7.1-3_armhf.deb ... 11041s Unpacking libjq1:armhf (1.7.1-3) over (1.7.1-2) ... 11041s Selecting previously unselected package libatm1t64:armhf. 11041s Preparing to unpack .../35-libatm1t64_1%3a2.5.1-5.1_armhf.deb ... 11041s Unpacking libatm1t64:armhf (1:2.5.1-5.1) ... 11041s Preparing to unpack .../36-libblockdev-crypto3_3.1.0-1build1_armhf.deb ... 11041s Unpacking libblockdev-crypto3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11041s Preparing to unpack .../37-libblockdev-loop3_3.1.0-1build1_armhf.deb ... 11041s Unpacking libblockdev-loop3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11041s Preparing to unpack .../38-libblockdev-mdraid3_3.1.0-1build1_armhf.deb ... 11041s Unpacking libblockdev-mdraid3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11041s Preparing to unpack .../39-libblockdev-part3_3.1.0-1build1_armhf.deb ... 11041s Unpacking libblockdev-part3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11041s Preparing to unpack .../40-libblockdev-swap3_3.1.0-1build1_armhf.deb ... 11041s Unpacking libblockdev-swap3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11041s Preparing to unpack .../41-libblockdev3_3.1.0-1build1_armhf.deb ... 11041s Unpacking libblockdev3:armhf (3.1.0-1build1) over (3.1.0-1) ... 11041s Preparing to unpack .../42-libevent-core-2.1-7_2.1.12-stable-9build1_armhf.deb ... 11041s Unpacking libevent-core-2.1-7:armhf (2.1.12-stable-9build1) over (2.1.12-stable-9) ... 11041s Preparing to unpack .../43-libftdi1-2_1.5-6build4_armhf.deb ... 11041s Unpacking libftdi1-2:armhf (1.5-6build4) over (1.5-6build3) ... 11042s Preparing to unpack .../44-libldap-common_2.6.7+dfsg-1~exp1ubuntu6_all.deb ... 11042s Unpacking libldap-common (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 11042s Preparing to unpack .../45-libsasl2-modules_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 11042s Unpacking libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 11042s Preparing to unpack .../46-python3-lib2to3_3.12.2-3ubuntu2_all.deb ... 11042s Unpacking python3-lib2to3 (3.12.2-3ubuntu2) over (3.11.5-1) ... 11042s Preparing to unpack .../47-python3-markupsafe_2.1.5-1build1_armhf.deb ... 11042s Unpacking python3-markupsafe (2.1.5-1build1) over (2.1.5-1) ... 11042s Preparing to unpack .../48-python3-openssl_24.0.0-4_all.deb ... 11042s Unpacking python3-openssl (24.0.0-4) over (23.2.0-1) ... 11043s Preparing to unpack .../49-python3-pyrsistent_0.20.0-1build1_armhf.deb ... 11043s Unpacking python3-pyrsistent:armhf (0.20.0-1build1) over (0.20.0-1) ... 11043s Preparing to unpack .../50-python3-typing-extensions_4.10.0-1_all.deb ... 11043s Unpacking python3-typing-extensions (4.10.0-1) over (4.9.0-1) ... 11043s Preparing to unpack .../51-kpartx_0.9.4-5ubuntu5_armhf.deb ... 11043s Unpacking kpartx (0.9.4-5ubuntu5) over (0.9.4-5ubuntu3) ... 11043s Setting up pinentry-curses (1.2.1-3ubuntu4) ... 11043s Setting up libtext-iconv-perl:armhf (1.7-8build2) ... 11043s Setting up libtext-charwidth-perl:armhf (0.04-11build2) ... 11043s Setting up libibverbs1:armhf (50.0-2build1) ... 11043s Setting up systemd-sysv (255.4-1ubuntu5) ... 11043s Setting up libapparmor1:armhf (4.0.0-beta3-0ubuntu2) ... 11043s Setting up libatm1t64:armhf (1:2.5.1-5.1) ... 11043s Setting up libgdbm6t64:armhf (1.23-5.1) ... 11043s Setting up bsdextrautils (2.39.3-9ubuntu2) ... 11043s Setting up libgdbm-compat4t64:armhf (1.23-5.1) ... 11043s Setting up xdg-user-dirs (0.18-1) ... 11043s Setting up ibverbs-providers:armhf (50.0-2build1) ... 11043s Setting up libmagic-mgc (1:5.45-3) ... 11043s Setting up gawk (1:5.2.1-2build2) ... 11043s Setting up psmisc (23.7-1) ... 11043s Setting up libjq1:armhf (1.7.1-3) ... 11043s Setting up libtirpc-common (1.3.4+ds-1.1) ... 11043s Setting up libbrotli1:armhf (1.1.0-2build1) ... 11043s Setting up libsqlite3-0:armhf (3.45.1-1ubuntu1) ... 11043s Setting up libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) ... 11043s Setting up libuv1t64:armhf (1.48.0-1.1) ... 11043s Setting up libmagic1t64:armhf (1:5.45-3) ... 11043s Setting up libpsl5t64:armhf (0.21.2-1.1) ... 11043s Setting up libnghttp2-14:armhf (1.59.0-1build1) ... 11043s Setting up libreiserfscore0t64 (1:3.6.27-7.1) ... 11043s Setting up libnss-systemd:armhf (255.4-1ubuntu5) ... 11043s Setting up krb5-locales (1.20.1-5.1build3) ... 11043s Setting up file (1:5.45-3) ... 11043s Setting up lshw (02.19.git.2021.06.19.996aaad9c7-2build2) ... 11043s Setting up locales (2.39-0ubuntu6) ... 11045s Generating locales (this might take a while)... 11050s en_US.UTF-8... done 11050s Generation complete. 11051s Setting up libldap-common (2.6.7+dfsg-1~exp1ubuntu6) ... 11051s Setting up xxd (2:9.1.0016-1ubuntu5) ... 11051s Setting up libelf1t64:armhf (0.190-1.1build2) ... 11051s Setting up libkrb5support0:armhf (1.20.1-5.1build3) ... 11051s Setting up eject (2.39.3-9ubuntu2) ... 11051s Setting up apparmor (4.0.0-beta3-0ubuntu2) ... 11051s Installing new version of config file /etc/apparmor.d/abstractions/authentication ... 11051s Installing new version of config file /etc/apparmor.d/abstractions/crypto ... 11051s Installing new version of config file /etc/apparmor.d/abstractions/kde-open5 ... 11051s Installing new version of config file /etc/apparmor.d/abstractions/openssl ... 11051s Installing new version of config file /etc/apparmor.d/code ... 11051s Installing new version of config file /etc/apparmor.d/firefox ... 11051s apparmor_parser: Unable to replace "lsb_release". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11051s 11051s apparmor_parser: Unable to replace "kmod". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11051s 11051s apparmor_parser: Unable to replace "nvidia_modprobe". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11051s 11053s sysctl: cannot stat /proc/sys/kernel/apparmor_restrict_unprivileged_userns: No such file or directory 11053s Reloading AppArmor profiles 11053s /sbin/apparmor_parser: Unable to replace "1password". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "Discord". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "MongoDB Compass". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "brave". /sbin/apparmor_parser: Unable to replace "busybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "buildah". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "cam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "ch-checkns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "ch-run". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "chrome". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "vscode". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "crun". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "devhelp". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "element-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "epiphany". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "evolution". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "firefox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "geary". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "flatpak". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "github-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "goldendict". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "ipa_verify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "kchmviewer". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "keybase". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lc-compliance". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "libcamerify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "linux-sandbox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "loupe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lxc-attach". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lxc-create". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lxc-destroy". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lxc-execute". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lxc-stop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lxc-unshare". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lxc-usernsexec". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "mmdebstrap". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "msedge". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "nautilus". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "notepadqq". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "obsidian". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "opam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "pageedit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "opera". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "podman". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "privacybrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "qcam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "qmapshack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "rootlesskit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "qutebrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "rpm". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "rssguard". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-abort". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "polypane". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "runc". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-adduser". /sbin/apparmor_parser: Unable to replace "sbuild-apt". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-checkpackages". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-clean". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-destroychroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-hold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-shell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-createchroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-unhold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-upgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-update". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "signal-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "scide". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "slirp4netns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "steam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "surfshark". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "stress-ng". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "systemd-coredump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "sbuild-distupgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "slack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "thunderbird". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "toybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "tup". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "trinity". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "plasmashell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "userbindmount". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "unprivileged_userns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "tuxedo-control-center". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "uwsgi-core". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "vdens". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "lsb_release". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "kmod". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "nvidia_modprobe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "vivaldi-bin". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "vpnns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "wpcom". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "virtiofsd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "/usr/bin/man". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "unix-chkpwd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "rsyslogd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "ubuntu_pro_apt_news". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s /sbin/apparmor_parser: Unable to replace "tcpdump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11053s 11053s Error: At least one profile failed to load 11053s Setting up libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 11053s No schema files found: doing nothing. 11053s Setting up libglib2.0-data (2.79.3-3ubuntu5) ... 11053s Setting up vim-common (2:9.1.0016-1ubuntu5) ... 11053s Setting up gcc-13-base:armhf (13.2.0-19ubuntu1) ... 11053s Setting up libqrtr-glib0:armhf (1.2.2-1ubuntu3) ... 11053s Setting up libslang2:armhf (2.3.3-3build1) ... 11053s Setting up libnvme1t64 (1.8-3) ... 11053s Setting up mtr-tiny (0.95-1.1build1) ... 11053s Setting up gnupg-l10n (2.4.4-2ubuntu15) ... 11053s Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) ... 11053s Setting up libdbus-1-3:armhf (1.14.10-4ubuntu2) ... 11053s Setting up xz-utils (5.6.0-0.2) ... 11053s Setting up perl-modules-5.38 (5.38.2-3.2) ... 11053s Setting up libpng16-16t64:armhf (1.6.43-3) ... 11053s Setting up systemd-timesyncd (255.4-1ubuntu5) ... 11054s Setting up libevent-core-2.1-7:armhf (2.1.12-stable-9build1) ... 11054s Setting up libss2:armhf (1.47.0-2.4~exp1ubuntu2) ... 11054s Setting up usb.ids (2024.03.18-1) ... 11054s Setting up sudo (1.9.15p5-3ubuntu3) ... 11054s Setting up dhcpcd-base (1:10.0.6-1ubuntu2) ... 11054s Setting up gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) ... 11054s Setting up libk5crypto3:armhf (1.20.1-5.1build3) ... 11054s Setting up logsave (1.47.0-2.4~exp1ubuntu2) ... 11054s Setting up libfdisk1:armhf (2.39.3-9ubuntu2) ... 11054s Setting up libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 11054s Setting up libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) ... 11054s Setting up python-apt-common (2.7.6build1) ... 11054s Setting up mount (2.39.3-9ubuntu2) ... 11054s Setting up dmsetup (2:1.02.185-3ubuntu2) ... 11054s Setting up uuid-runtime (2.39.3-9ubuntu2) ... 11056s uuidd.service is a disabled or a static unit not running, not starting it. 11056s Setting up libmm-glib0:armhf (1.23.4-0ubuntu1) ... 11056s Setting up groff-base (1.23.0-3build1) ... 11056s Setting up libplymouth5:armhf (24.004.60-1ubuntu5) ... 11056s Setting up dbus-session-bus-common (1.14.10-4ubuntu2) ... 11056s Setting up jq (1.7.1-3) ... 11056s Setting up gpgconf (2.4.4-2ubuntu15) ... 11056s Setting up libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 11056s Setting up libcryptsetup12:armhf (2:2.7.0-1ubuntu2) ... 11056s Setting up libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) ... 11056s Setting up libjson-glib-1.0-common (1.8.0-2build1) ... 11056s Setting up libkrb5-3:armhf (1.20.1-5.1build3) ... 11056s Setting up libpython3.11-minimal:armhf (3.11.8-1build4) ... 11056s Setting up libusb-1.0-0:armhf (2:1.0.27-1) ... 11056s Setting up libperl5.38t64:armhf (5.38.2-3.2) ... 11056s Setting up tnftp (20230507-2build1) ... 11056s Setting up dbus-system-bus-common (1.14.10-4ubuntu2) ... 11056s Setting up libfido2-1:armhf (1.14.0-1build1) ... 11056s Setting up openssl (3.0.13-0ubuntu2) ... 11056s Setting up libbsd0:armhf (0.12.1-1) ... 11056s Setting up readline-common (8.2-3.1) ... 11056s Setting up libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) ... 11056s Setting up libxmuu1:armhf (2:1.1.3-3build1) ... 11056s Setting up dbus-bin (1.14.10-4ubuntu2) ... 11056s Setting up info (7.1-3build1) ... 11056s Setting up liblocale-gettext-perl (1.07-6ubuntu3) ... 11056s Setting up gpg (2.4.4-2ubuntu15) ... 11056s Setting up libgudev-1.0-0:armhf (1:238-3ubuntu2) ... 11056s Setting up libpolkit-gobject-1-0:armhf (124-1ubuntu1) ... 11056s Setting up libbpf1:armhf (1:1.3.0-2build1) ... 11056s Setting up libmbim-glib4:armhf (1.31.2-0ubuntu2) ... 11056s Setting up rsync (3.2.7-1build1) ... 11058s rsync.service is a disabled or a static unit not running, not starting it. 11058s Setting up libkmod2:armhf (31+20240202-2ubuntu4) ... 11058s Setting up bolt (0.9.6-2build1) ... 11059s bolt.service is a disabled or a static unit not running, not starting it. 11059s Setting up gnupg-utils (2.4.4-2ubuntu15) ... 11059s Setting up initramfs-tools-bin (0.142ubuntu22) ... 11059s Setting up cryptsetup-bin (2:2.7.0-1ubuntu2) ... 11059s Setting up python3.11-minimal (3.11.8-1build4) ... 11061s Setting up tcpdump (4.99.4-3ubuntu2) ... 11061s apparmor_parser: Unable to replace "tcpdump". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11061s 11061s Setting up apt-utils (2.7.13ubuntu1) ... 11061s Setting up gpg-agent (2.4.4-2ubuntu15) ... 11063s Setting up libpython3.12-stdlib:armhf (3.12.2-4build3) ... 11063s Setting up wget (1.21.4-1ubuntu2) ... 11063s Setting up libxmlb2:armhf (0.3.15-1build1) ... 11063s Setting up btrfs-progs (6.6.3-1.1build1) ... 11063s Setting up libpython3.11-stdlib:armhf (3.11.8-1build4) ... 11063s Setting up python3.12 (3.12.2-4build3) ... 11065s Setting up gpgsm (2.4.4-2ubuntu15) ... 11065s Setting up inetutils-telnet (2:2.5-3ubuntu3) ... 11065s Setting up e2fsprogs (1.47.0-2.4~exp1ubuntu2) ... 11065s update-initramfs: deferring update (trigger activated) 11067s e2scrub_all.service is a disabled or a static unit not running, not starting it. 11067s Setting up libparted2t64:armhf (3.6-3.1build2) ... 11067s Setting up dbus-daemon (1.14.10-4ubuntu2) ... 11067s Setting up libmbim-proxy (1.31.2-0ubuntu2) ... 11067s Setting up vim-tiny (2:9.1.0016-1ubuntu5) ... 11067s Setting up kmod (31+20240202-2ubuntu4) ... 11067s Setting up libnetplan1:armhf (1.0-1) ... 11067s Setting up man-db (2.12.0-3build4) ... 11068s Updating database of manual pages ... 11070s apparmor_parser: Unable to replace "/usr/bin/man". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11070s 11071s man-db.service is a disabled or a static unit not running, not starting it. 11071s Setting up fdisk (2.39.3-9ubuntu2) ... 11071s Setting up libjson-glib-1.0-0:armhf (1.8.0-2build1) ... 11071s Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) ... 11071s Setting up libftdi1-2:armhf (1.5-6build4) ... 11071s Setting up perl (5.38.2-3.2) ... 11071s Setting up gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) ... 11071s Setting up dbus (1.14.10-4ubuntu2) ... 11071s A reboot is required to replace the running dbus-daemon. 11071s Please reboot the system when convenient. 11072s Setting up shared-mime-info (2.4-1build1) ... 11073s Setting up libblockdev-utils3:armhf (3.1.0-1build1) ... 11073s Setting up libgssapi-krb5-2:armhf (1.20.1-5.1build3) ... 11073s Setting up udev (255.4-1ubuntu5) ... 11075s Setting up ftp (20230507-2build1) ... 11075s Setting up keyboxd (2.4.4-2ubuntu15) ... 11075s Setting up libdpkg-perl (1.22.6ubuntu4) ... 11075s Setting up libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) ... 11075s Setting up libssh-4:armhf (0.10.6-2build1) ... 11075s Setting up libblockdev-nvme3:armhf (3.1.0-1build1) ... 11075s Setting up libblockdev-fs3:armhf (3.1.0-1build1) ... 11075s Setting up kpartx (0.9.4-5ubuntu5) ... 11075s Setting up libpam-systemd:armhf (255.4-1ubuntu5) ... 11075s Setting up libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 11075s Setting up libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 11075s Setting up netplan-generator (1.0-1) ... 11076s Removing 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 11076s Setting up initramfs-tools-core (0.142ubuntu22) ... 11076s Setting up libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 11076s Setting up libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) ... 11076s Setting up libpython3-stdlib:armhf (3.12.2-0ubuntu1) ... 11076s Setting up systemd-resolved (255.4-1ubuntu5) ... 11077s Setting up python3.11 (3.11.8-1build4) ... 11079s Setting up telnet (0.17+2.5-3ubuntu3) ... 11079s Setting up initramfs-tools (0.142ubuntu22) ... 11079s update-initramfs: deferring update (trigger activated) 11079s Setting up libblockdev-mdraid3:armhf (3.1.0-1build1) ... 11079s Setting up libcurl4t64:armhf (8.5.0-2ubuntu7) ... 11079s Setting up bind9-libs:armhf (1:9.18.24-0ubuntu3) ... 11079s Setting up libtirpc3t64:armhf (1.3.4+ds-1.1) ... 11079s Setting up e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) ... 11079s Setting up libblockdev-swap3:armhf (3.1.0-1build1) ... 11079s Setting up plymouth (24.004.60-1ubuntu5) ... 11080s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 11080s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 11081s Setting up iproute2 (6.1.0-1ubuntu5) ... 11081s Setting up openssh-client (1:9.6p1-3ubuntu10) ... 11081s Setting up libgusb2:armhf (0.4.8-1build1) ... 11081s Setting up libblockdev-loop3:armhf (3.1.0-1build1) ... 11081s Setting up libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 11081s Setting up parted (3.6-3.1build2) ... 11081s Setting up libqmi-glib5:armhf (1.35.2-0ubuntu1) ... 11081s Setting up python3 (3.12.2-0ubuntu1) ... 11082s Setting up python3-markupsafe (2.1.5-1build1) ... 11082s Setting up libblockdev3:armhf (3.1.0-1build1) ... 11082s Setting up libjcat1:armhf (0.2.0-2build2) ... 11082s Setting up dpkg-dev (1.22.6ubuntu4) ... 11082s Setting up libblockdev-part3:armhf (3.1.0-1build1) ... 11082s Setting up dirmngr (2.4.4-2ubuntu15) ... 11082s Setting up dbus-user-session (1.14.10-4ubuntu2) ... 11082s Setting up plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) ... 11083s update-initramfs: deferring update (trigger activated) 11083s Setting up python3-cryptography (41.0.7-4build2) ... 11083s Setting up python3-gi (3.47.0-3build1) ... 11084s Setting up python3-typing-extensions (4.10.0-1) ... 11084s Setting up lsof (4.95.0-1build2) ... 11084s Setting up python3-pyrsistent:armhf (0.20.0-1build1) ... 11084s Setting up libnsl2:armhf (1.3.0-3build2) ... 11084s Setting up gnupg (2.4.4-2ubuntu15) ... 11084s Setting up python3-netplan (1.0-1) ... 11084s Setting up curl (8.5.0-2ubuntu7) ... 11084s Setting up libvolume-key1:armhf (0.3.12-7build1) ... 11084s Setting up bind9-host (1:9.18.24-0ubuntu3) ... 11084s Setting up python3-lib2to3 (3.12.2-3ubuntu2) ... 11085s Setting up python3-pkg-resources (68.1.2-2ubuntu1) ... 11086s Setting up openssh-sftp-server (1:9.6p1-3ubuntu10) ... 11086s Setting up python3-dbus (1.3.2-5build2) ... 11086s Setting up python3-setuptools (68.1.2-2ubuntu1) ... 11087s Setting up gpg-wks-client (2.4.4-2ubuntu15) ... 11087s Setting up openssh-server (1:9.6p1-3ubuntu10) ... 11088s Replacing config file /etc/ssh/sshd_config with new version 11091s Created symlink /etc/systemd/system/ssh.service.requires/ssh.socket → /usr/lib/systemd/system/ssh.socket. 11093s Setting up libblockdev-crypto3:armhf (3.1.0-1build1) ... 11093s Setting up python3-gdbm:armhf (3.12.2-3ubuntu2) ... 11093s Setting up python3-apt (2.7.6build1) ... 11094s Setting up python3-openssl (24.0.0-4) ... 11094s Setting up libfwupd2:armhf (1.9.15-1) ... 11094s Setting up python3-yaml (6.0.1-2build1) ... 11095s Setting up libqmi-proxy (1.35.2-0ubuntu1) ... 11095s Setting up netplan.io (1.0-1) ... 11095s Setting up bind9-dnsutils (1:9.18.24-0ubuntu3) ... 11095s Setting up ubuntu-pro-client (31.2) ... 11095s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 11095s 11098s Setting up fwupd (1.9.15-1) ... 11099s fwupd-offline-update.service is a disabled or a static unit not running, not starting it. 11099s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 11099s fwupd.service is a disabled or a static unit not running, not starting it. 11099s Setting up ubuntu-pro-client-l10n (31.2) ... 11099s Setting up ubuntu-minimal (1.536build1) ... 11099s Setting up ubuntu-standard (1.536build1) ... 11099s Processing triggers for libc-bin (2.39-0ubuntu6) ... 11100s Processing triggers for ufw (0.36.2-5) ... 11100s Processing triggers for install-info (7.1-3build1) ... 11100s Processing triggers for initramfs-tools (0.142ubuntu22) ... 11104s Reading package lists... 11105s Building dependency tree... 11105s Reading state information... 11106s The following packages will be REMOVED: 11106s libatasmart4* libblockdev-crypto3* libblockdev-fs3* libblockdev-loop3* 11106s libblockdev-mdraid3* libblockdev-nvme3* libblockdev-part3* 11106s libblockdev-swap3* libblockdev-utils3* libblockdev3* libbytesize-common* 11106s libbytesize1* libnspr4* libnss3* libnvme1t64* libpolkit-agent-1-0* 11106s libvolume-key1* linux-headers-6.8.0-11* python3-lib2to3* 11107s 0 upgraded, 0 newly installed, 19 to remove and 1 not upgraded. 11107s After this operation, 89.7 MB disk space will be freed. 11107s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47405 files and directories currently installed.) 11107s Removing libatasmart4:armhf (0.19-5build2) ... 11107s Removing libblockdev-crypto3:armhf (3.1.0-1build1) ... 11107s Removing libblockdev-fs3:armhf (3.1.0-1build1) ... 11107s Removing libblockdev-loop3:armhf (3.1.0-1build1) ... 11107s Removing libblockdev-mdraid3:armhf (3.1.0-1build1) ... 11107s Removing libblockdev-nvme3:armhf (3.1.0-1build1) ... 11107s Removing libblockdev-part3:armhf (3.1.0-1build1) ... 11107s Removing libblockdev-swap3:armhf (3.1.0-1build1) ... 11107s Removing libblockdev3:armhf (3.1.0-1build1) ... 11108s Removing libblockdev-utils3:armhf (3.1.0-1build1) ... 11108s Removing libbytesize1:armhf (2.10-1ubuntu1) ... 11108s Removing libbytesize-common (2.10-1ubuntu1) ... 11108s Removing libvolume-key1:armhf (0.3.12-7build1) ... 11108s Removing libnss3:armhf (2:3.98-1) ... 11108s Removing libnspr4:armhf (2:4.35-1.1) ... 11108s Removing libnvme1t64 (1.8-3) ... 11108s Removing libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 11108s Removing linux-headers-6.8.0-11 (6.8.0-11.11) ... 11110s Removing python3-lib2to3 (3.12.2-3ubuntu2) ... 11111s Processing triggers for libc-bin (2.39-0ubuntu6) ... 11111s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 27134 files and directories currently installed.) 11111s Purging configuration files for libblockdev3:armhf (3.1.0-1build1) ... 11114s autopkgtest [18:17:18]: rebooting testbed after setup commands that affected boot 11203s Reading package lists... 11204s Building dependency tree... 11204s Reading state information... 11205s Starting pkgProblemResolver with broken count: 0 11205s Starting 2 pkgProblemResolver with broken count: 0 11205s Done 11207s The following additional packages will be installed: 11207s cpp cpp-13 cpp-13-arm-linux-gnueabihf cpp-arm-linux-gnueabihf gcc gcc-13 11207s gcc-13-arm-linux-gnueabihf gcc-arm-linux-gnueabihf libasan8 libatomic1 11207s libblas3 libcc1-0 libgcc-13-dev libgfortran5 libgomp1 libisl23 liblapack3 11207s libmpc3 libopenblas0 libopenblas0-pthread libubsan1 python3-all 11207s python3-dateutil python3-hypothesis python3-iniconfig python3-numpy 11207s python3-packaging python3-pluggy python3-pytest python3-sortedcontainers 11207s Suggested packages: 11207s cpp-doc gcc-13-locales cpp-13-doc gcc-multilib manpages-dev autoconf 11207s automake libtool flex bison gdb gcc-doc gcc-13-doc gdb-arm-linux-gnueabihf 11207s python-hypothesis-doc gfortran python3-dev python-sortedcontainers-doc 11207s Recommended packages: 11207s libc6-dev | libc-dev libc6-dev libc-dev python3-click 11207s The following NEW packages will be installed: 11207s autopkgtest-satdep cpp cpp-13 cpp-13-arm-linux-gnueabihf 11207s cpp-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 11207s gcc-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libcc1-0 libgcc-13-dev 11207s libgfortran5 libgomp1 libisl23 liblapack3 libmpc3 libopenblas0 11207s libopenblas0-pthread libubsan1 python3-all python3-dateutil 11207s python3-hypothesis python3-iniconfig python3-numpy python3-packaging 11207s python3-pluggy python3-pytest python3-sortedcontainers 11208s 0 upgraded, 31 newly installed, 0 to remove and 1 not upgraded. 11208s Need to get 41.6 MB/41.6 MB of archives. 11208s After this operation, 121 MB of additional disk space will be used. 11208s Get:1 /tmp/autopkgtest.b6ixTN/2-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [768 B] 11208s Get:2 http://ftpmaster.internal/ubuntu noble/main armhf libisl23 armhf 0.26-3 [595 kB] 11209s Get:3 http://ftpmaster.internal/ubuntu noble/main armhf libmpc3 armhf 1.3.1-1 [46.4 kB] 11209s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [8753 kB] 11210s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13 armhf 13.2.0-19ubuntu1 [1036 B] 11210s Get:6 http://ftpmaster.internal/ubuntu noble/main armhf cpp-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [5320 B] 11210s Get:7 http://ftpmaster.internal/ubuntu noble/main armhf cpp armhf 4:13.2.0-7ubuntu1 [22.4 kB] 11210s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcc1-0 armhf 14-20240315-1ubuntu1 [39.0 kB] 11210s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgomp1 armhf 14-20240315-1ubuntu1 [125 kB] 11210s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libatomic1 armhf 14-20240315-1ubuntu1 [7824 B] 11210s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libasan8 armhf 14-20240315-1ubuntu1 [2941 kB] 11210s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libubsan1 armhf 14-20240315-1ubuntu1 [1152 kB] 11210s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-13-dev armhf 13.2.0-19ubuntu1 [900 kB] 11210s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [16.8 MB] 11211s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13 armhf 13.2.0-19ubuntu1 [448 kB] 11211s Get:16 http://ftpmaster.internal/ubuntu noble/main armhf gcc-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [1220 B] 11211s Get:17 http://ftpmaster.internal/ubuntu noble/main armhf gcc armhf 4:13.2.0-7ubuntu1 [5022 B] 11211s Get:18 http://ftpmaster.internal/ubuntu noble/main armhf libblas3 armhf 3.12.0-3 [123 kB] 11211s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgfortran5 armhf 14-20240315-1ubuntu1 [312 kB] 11211s Get:20 http://ftpmaster.internal/ubuntu noble/universe armhf libopenblas0-pthread armhf 0.3.26+ds-1 [2797 kB] 11212s Get:21 http://ftpmaster.internal/ubuntu noble/main armhf liblapack3 armhf 3.12.0-3 [2085 kB] 11212s Get:22 http://ftpmaster.internal/ubuntu noble/universe armhf libopenblas0 armhf 0.3.26+ds-1 [6170 B] 11212s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-all armhf 3.12.2-0ubuntu1 [886 B] 11212s Get:24 http://ftpmaster.internal/ubuntu noble/main armhf python3-dateutil all 2.8.2-3 [79.2 kB] 11212s Get:25 http://ftpmaster.internal/ubuntu noble/main armhf python3-sortedcontainers all 2.4.0-2 [27.6 kB] 11212s Get:26 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf python3-hypothesis all 6.98.15-1 [311 kB] 11212s Get:27 http://ftpmaster.internal/ubuntu noble/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 11212s Get:28 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-numpy armhf 1:1.24.2-3ubuntu1 [3610 kB] 11212s Get:29 http://ftpmaster.internal/ubuntu noble/main armhf python3-packaging all 23.2-1 [40.6 kB] 11212s Get:30 http://ftpmaster.internal/ubuntu noble/universe armhf python3-pluggy all 1.4.0-1 [20.4 kB] 11212s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf python3-pytest all 8.0.2-1 [248 kB] 11213s Fetched 41.6 MB in 4s (9672 kB/s) 11214s Selecting previously unselected package libisl23:armhf. 11214s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 27130 files and directories currently installed.) 11214s Preparing to unpack .../00-libisl23_0.26-3_armhf.deb ... 11214s Unpacking libisl23:armhf (0.26-3) ... 11214s Selecting previously unselected package libmpc3:armhf. 11214s Preparing to unpack .../01-libmpc3_1.3.1-1_armhf.deb ... 11214s Unpacking libmpc3:armhf (1.3.1-1) ... 11214s Selecting previously unselected package cpp-13-arm-linux-gnueabihf. 11214s Preparing to unpack .../02-cpp-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 11214s Unpacking cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 11214s Selecting previously unselected package cpp-13. 11214s Preparing to unpack .../03-cpp-13_13.2.0-19ubuntu1_armhf.deb ... 11214s Unpacking cpp-13 (13.2.0-19ubuntu1) ... 11214s Selecting previously unselected package cpp-arm-linux-gnueabihf. 11214s Preparing to unpack .../04-cpp-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 11214s Unpacking cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 11214s Selecting previously unselected package cpp. 11214s Preparing to unpack .../05-cpp_4%3a13.2.0-7ubuntu1_armhf.deb ... 11215s Unpacking cpp (4:13.2.0-7ubuntu1) ... 11215s Selecting previously unselected package libcc1-0:armhf. 11215s Preparing to unpack .../06-libcc1-0_14-20240315-1ubuntu1_armhf.deb ... 11215s Unpacking libcc1-0:armhf (14-20240315-1ubuntu1) ... 11215s Selecting previously unselected package libgomp1:armhf. 11215s Preparing to unpack .../07-libgomp1_14-20240315-1ubuntu1_armhf.deb ... 11215s Unpacking libgomp1:armhf (14-20240315-1ubuntu1) ... 11215s Selecting previously unselected package libatomic1:armhf. 11215s Preparing to unpack .../08-libatomic1_14-20240315-1ubuntu1_armhf.deb ... 11215s Unpacking libatomic1:armhf (14-20240315-1ubuntu1) ... 11215s Selecting previously unselected package libasan8:armhf. 11215s Preparing to unpack .../09-libasan8_14-20240315-1ubuntu1_armhf.deb ... 11215s Unpacking libasan8:armhf (14-20240315-1ubuntu1) ... 11215s Selecting previously unselected package libubsan1:armhf. 11215s Preparing to unpack .../10-libubsan1_14-20240315-1ubuntu1_armhf.deb ... 11215s Unpacking libubsan1:armhf (14-20240315-1ubuntu1) ... 11215s Selecting previously unselected package libgcc-13-dev:armhf. 11215s Preparing to unpack .../11-libgcc-13-dev_13.2.0-19ubuntu1_armhf.deb ... 11215s Unpacking libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 11215s Selecting previously unselected package gcc-13-arm-linux-gnueabihf. 11215s Preparing to unpack .../12-gcc-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 11215s Unpacking gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 11216s Selecting previously unselected package gcc-13. 11216s Preparing to unpack .../13-gcc-13_13.2.0-19ubuntu1_armhf.deb ... 11216s Unpacking gcc-13 (13.2.0-19ubuntu1) ... 11216s Selecting previously unselected package gcc-arm-linux-gnueabihf. 11216s Preparing to unpack .../14-gcc-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 11216s Unpacking gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 11217s Selecting previously unselected package gcc. 11217s Preparing to unpack .../15-gcc_4%3a13.2.0-7ubuntu1_armhf.deb ... 11217s Unpacking gcc (4:13.2.0-7ubuntu1) ... 11217s Selecting previously unselected package libblas3:armhf. 11217s Preparing to unpack .../16-libblas3_3.12.0-3_armhf.deb ... 11217s Unpacking libblas3:armhf (3.12.0-3) ... 11217s Selecting previously unselected package libgfortran5:armhf. 11217s Preparing to unpack .../17-libgfortran5_14-20240315-1ubuntu1_armhf.deb ... 11217s Unpacking libgfortran5:armhf (14-20240315-1ubuntu1) ... 11217s Selecting previously unselected package libopenblas0-pthread:armhf. 11217s Preparing to unpack .../18-libopenblas0-pthread_0.3.26+ds-1_armhf.deb ... 11217s Unpacking libopenblas0-pthread:armhf (0.3.26+ds-1) ... 11217s Selecting previously unselected package liblapack3:armhf. 11217s Preparing to unpack .../19-liblapack3_3.12.0-3_armhf.deb ... 11217s Unpacking liblapack3:armhf (3.12.0-3) ... 11217s Selecting previously unselected package libopenblas0:armhf. 11217s Preparing to unpack .../20-libopenblas0_0.3.26+ds-1_armhf.deb ... 11217s Unpacking libopenblas0:armhf (0.3.26+ds-1) ... 11217s Selecting previously unselected package python3-all. 11217s Preparing to unpack .../21-python3-all_3.12.2-0ubuntu1_armhf.deb ... 11217s Unpacking python3-all (3.12.2-0ubuntu1) ... 11217s Selecting previously unselected package python3-dateutil. 11217s Preparing to unpack .../22-python3-dateutil_2.8.2-3_all.deb ... 11217s Unpacking python3-dateutil (2.8.2-3) ... 11217s Selecting previously unselected package python3-sortedcontainers. 11217s Preparing to unpack .../23-python3-sortedcontainers_2.4.0-2_all.deb ... 11217s Unpacking python3-sortedcontainers (2.4.0-2) ... 11217s Selecting previously unselected package python3-hypothesis. 11218s Preparing to unpack .../24-python3-hypothesis_6.98.15-1_all.deb ... 11218s Unpacking python3-hypothesis (6.98.15-1) ... 11218s Selecting previously unselected package python3-iniconfig. 11218s Preparing to unpack .../25-python3-iniconfig_1.1.1-2_all.deb ... 11218s Unpacking python3-iniconfig (1.1.1-2) ... 11218s Selecting previously unselected package python3-numpy. 11218s Preparing to unpack .../26-python3-numpy_1%3a1.24.2-3ubuntu1_armhf.deb ... 11218s Unpacking python3-numpy (1:1.24.2-3ubuntu1) ... 11218s Selecting previously unselected package python3-packaging. 11219s Preparing to unpack .../27-python3-packaging_23.2-1_all.deb ... 11219s Unpacking python3-packaging (23.2-1) ... 11219s Selecting previously unselected package python3-pluggy. 11219s Preparing to unpack .../28-python3-pluggy_1.4.0-1_all.deb ... 11219s Unpacking python3-pluggy (1.4.0-1) ... 11219s Selecting previously unselected package python3-pytest. 11219s Preparing to unpack .../29-python3-pytest_8.0.2-1_all.deb ... 11219s Unpacking python3-pytest (8.0.2-1) ... 11219s Selecting previously unselected package autopkgtest-satdep. 11219s Preparing to unpack .../30-2-autopkgtest-satdep.deb ... 11219s Unpacking autopkgtest-satdep (0) ... 11219s Setting up python3-iniconfig (1.1.1-2) ... 11219s Setting up python3-all (3.12.2-0ubuntu1) ... 11219s Setting up python3-sortedcontainers (2.4.0-2) ... 11220s Setting up libgomp1:armhf (14-20240315-1ubuntu1) ... 11220s Setting up libblas3:armhf (3.12.0-3) ... 11220s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 11220s Setting up python3-packaging (23.2-1) ... 11220s Setting up libmpc3:armhf (1.3.1-1) ... 11220s Setting up libatomic1:armhf (14-20240315-1ubuntu1) ... 11220s Setting up libgfortran5:armhf (14-20240315-1ubuntu1) ... 11220s Setting up python3-pluggy (1.4.0-1) ... 11221s Setting up libubsan1:armhf (14-20240315-1ubuntu1) ... 11221s Setting up libasan8:armhf (14-20240315-1ubuntu1) ... 11221s Setting up python3-dateutil (2.8.2-3) ... 11221s Setting up libisl23:armhf (0.26-3) ... 11221s Setting up libcc1-0:armhf (14-20240315-1ubuntu1) ... 11221s Setting up liblapack3:armhf (3.12.0-3) ... 11221s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 11221s Setting up libopenblas0-pthread:armhf (0.3.26+ds-1) ... 11221s update-alternatives: using /usr/lib/arm-linux-gnueabihf/openblas-pthread/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 11221s update-alternatives: using /usr/lib/arm-linux-gnueabihf/openblas-pthread/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 11221s update-alternatives: using /usr/lib/arm-linux-gnueabihf/openblas-pthread/libopenblas.so.0 to provide /usr/lib/arm-linux-gnueabihf/libopenblas.so.0 (libopenblas.so.0-arm-linux-gnueabihf) in auto mode 11221s Setting up cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 11221s Setting up python3-pytest (8.0.2-1) ... 11222s Setting up python3-hypothesis (6.98.15-1) ... 11224s Setting up python3-numpy (1:1.24.2-3ubuntu1) ... 11230s Setting up libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 11230s Setting up libopenblas0:armhf (0.3.26+ds-1) ... 11230s Setting up cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 11230s Setting up cpp-13 (13.2.0-19ubuntu1) ... 11230s Setting up gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 11230s Setting up gcc-13 (13.2.0-19ubuntu1) ... 11230s Setting up cpp (4:13.2.0-7ubuntu1) ... 11230s Setting up gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 11230s Setting up gcc (4:13.2.0-7ubuntu1) ... 11231s Setting up autopkgtest-satdep (0) ... 11231s Processing triggers for man-db (2.12.0-3build4) ... 11232s Processing triggers for libc-bin (2.39-0ubuntu6) ... 11249s (Reading database ... 28689 files and directories currently installed.) 11249s Removing autopkgtest-satdep (0) ... 11273s autopkgtest [18:19:57]: test openblas: [----------------------- 11276s === python3.12 === 11277s /usr/lib/python3/dist-packages/numpy/_pytesttester.py:143: DeprecationWarning: 11277s 11277s `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 11277s of the deprecation of `distutils` itself. It will be removed for 11277s Python >= 3.12. For older Python versions it will remain present. 11277s It is recommended to use `setuptools < 60.0` for those Python versions. 11277s For more details, see: 11277s https://numpy.org/devdocs/reference/distutils_status_migration.html 11277s 11277s 11277s from numpy.distutils import cpuinfo 11308s NumPy version 1.24.2 11308s NumPy relaxed strides checking option: True 11308s NumPy CPU features: NEON* NEON_FP16* NEON_VFPV4* ASIMD* ASIMDHP? ASIMDDP? ASIMDFHM? 11308s ============================= test session starts ============================== 11308s platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.4.0 11308s rootdir: /tmp/autopkgtest.b6ixTN/autopkgtest_tmp 11308s plugins: hypothesis-6.98.15 11308s collected 28260 items / 1315 deselected / 26945 selected 11308s 11312s array_api/tests/test_array_object.py ........................ [ 0%] 11312s array_api/tests/test_creation_functions.py .............. [ 0%] 11312s array_api/tests/test_data_type_functions.py .... [ 0%] 11312s array_api/tests/test_elementwise_functions.py .. [ 0%] 11314s array_api/tests/test_set_functions.py .. [ 0%] 11314s array_api/tests/test_sorting_functions.py .... [ 0%] 11314s array_api/tests/test_validation.py ... [ 0%] 11314s compat/tests/test_compat.py . [ 0%] 11314s core/tests/test__exceptions.py ........... [ 0%] 11314s core/tests/test_abc.py ..... [ 0%] 11315s core/tests/test_api.py ................................................. [ 0%] 11316s ............ [ 0%] 11316s core/tests/test_argparse.py ..... [ 0%] 11316s core/tests/test_array_coercion.py ...................................... [ 0%] 11317s .......................x................................................ [ 0%] 11317s ........................................................................ [ 1%] 11317s .s.......... [ 1%] 11318s core/tests/test_arraymethod.py ........................................s [ 1%] 11318s [ 1%] 11320s core/tests/test_arrayprint.py ..x....................................... [ 1%] 11320s .... [ 1%] 11320s core/tests/test_casting_floatingpoint_errors.py ........................ [ 1%] 11321s ........................................................................ [ 1%] 11321s ........................................................................ [ 2%] 11322s .............. [ 2%] 11322s core/tests/test_casting_unittests.py ................................... [ 2%] 11323s ........................................................................ [ 2%] 11323s ........................................................................ [ 2%] 11324s ........................................................................ [ 3%] 11324s .................................... [ 3%] 11324s core/tests/test_conversion_utils.py ........................... [ 3%] 11324s core/tests/test_cpu_dispatcher.py . [ 3%] 11324s core/tests/test_cpu_features.py sssF [ 3%] 11324s core/tests/test_custom_dtypes.py ............................. [ 3%] 11324s core/tests/test_cython.py ssssss [ 3%] 11325s core/tests/test_datetime.py ............................................ [ 3%] 11325s ........................................................................ [ 3%] 11326s ...........F............................................................ [ 4%] 11328s ...........................................x..........x..x..........x... [ 4%] 11328s [ 4%] 11328s core/tests/test_defchararray.py ........................................ [ 4%] 11328s ........................................... [ 4%] 11329s core/tests/test_deprecations.py .....F.................................. [ 4%] 11330s .................ssssssss............................................... [ 5%] 11330s ................................ [ 5%] 11330s core/tests/test_dlpack.py .............................................. [ 5%] 11330s ............ [ 5%] 11330s core/tests/test_dtype.py ............................................... [ 5%] 11347s ............................................ssssFFFFFFFFFFFFFFFFFFFFFFFF [ 6%] 11355s FFFF.................................................................... [ 6%] 11355s ........................................................................ [ 6%] 11356s ........................................................................ [ 6%] 11356s ........................................................................ [ 7%] 11356s ........................................................................ [ 7%] 11357s ........................................................................ [ 7%] 11357s ........................................................................ [ 7%] 11357s ........................................................................ [ 8%] 11358s ........................................................................ [ 8%] 11358s ........................................................................ [ 8%] 11358s ........................................................................ [ 8%] 11359s ........................................................................ [ 9%] 11359s ..............................s [ 9%] 11363s core/tests/test_einsum.py .............................................. [ 9%] 11364s .................. [ 9%] 11364s core/tests/test_errstate.py .... [ 9%] 11366s core/tests/test_extint128.py ............ [ 9%] 11367s core/tests/test_function_base.py .............................. [ 9%] 11367s core/tests/test_getlimits.py .............. [ 9%] 11368s core/tests/test_half.py ..................................... [ 9%] 11368s core/tests/test_hashtable.py ......... [ 9%] 11368s core/tests/test_indexerrors.py ........ [ 9%] 11368s core/tests/test_indexing.py ............................................ [ 10%] 11369s ....................................... [ 10%] 11369s core/tests/test_item_selection.py ..... [ 10%] 11370s core/tests/test_longdouble.py .s.....................sssssss.... [ 10%] 11370s core/tests/test_machar.py . [ 10%] 11378s core/tests/test_mem_overlap.py .................. [ 10%] 11380s core/tests/test_mem_policy.py EEEEEEEEE [ 10%] 11380s core/tests/test_memmap.py ................... [ 10%] 11381s core/tests/test_multiarray.py .......................................... [ 10%] 11381s ..............................s......................................... [ 11%] 11386s .............xx......................................................... [ 11%] 11387s ........................................................................ [ 11%] 11388s ........................................................................ [ 11%] 11391s .............................s.......................................... [ 12%] 11392s ........................................................................ [ 12%] 11392s ........................................................................ [ 12%] 11394s ........................................................................ [ 12%] 11396s ........................................................................ [ 13%] 11399s ........................................................................ [ 13%] 11400s ..............................................................s.s.s.s.s. [ 13%] 11401s s.....s.s.....s.s.s.s.......s.s.s.s..................................... [ 13%] 11405s ........................................................................ [ 14%] 11406s ........................................................................ [ 14%] 11407s ........................................................................ [ 14%] 11410s ........................................................................ [ 15%] 11418s ........................................................................ [ 15%] 11422s ........................................................................ [ 15%] 11423s ........................ [ 15%] 11423s core/tests/test_nditer.py .............................................. [ 15%] 11424s ........................................................................ [ 16%] 11424s ........................................................................ [ 16%] 11425s ........................................................................ [ 16%] 11425s ........................................................................ [ 16%] 11426s ........................................................................ [ 17%] 11426s ........................................................................ [ 17%] 11426s ........................................................................ [ 17%] 11427s ........................................................................ [ 17%] 11427s ........................................................................ [ 18%] 11430s ........................................................................ [ 18%] 11430s ................................... [ 18%] 11431s core/tests/test_nep50_promotions.py .......................... [ 18%] 11431s core/tests/test_numeric.py ..............................x...x.......... [ 18%] 11432s ........................................................................ [ 19%] 11433s ........................................................................ [ 19%] 11437s ..........................................................xx............ [ 19%] 11441s ........................................................................ [ 19%] 11441s .................... [ 20%] 11441s core/tests/test_numerictypes.py ........................................ [ 20%] 11442s ........................................................................ [ 20%] 11442s ...... [ 20%] 11442s core/tests/test_overrides.py ........................................... [ 20%] 11442s ........................................................................ [ 20%] 11443s ........... [ 20%] 11443s core/tests/test_print.py ...................sss [ 21%] 11443s core/tests/test_protocols.py .. [ 21%] 11443s core/tests/test_records.py ......................................... [ 21%] 11443s core/tests/test_regression.py .......................................... [ 21%] 11443s ........................................................................ [ 21%] 11444s ................................................F....................... [ 21%] 11449s ........................................................................ [ 22%] 11449s ......s..s.............................................................. [ 22%] 11450s ........................................................................ [ 22%] 11450s ............ [ 22%] 11450s core/tests/test_scalar_ctors.py ........................................ [ 22%] 11450s ........................................................................ [ 23%] 11451s .................................................. [ 23%] 11451s core/tests/test_scalar_methods.py ............................s......... [ 23%] 11451s ................................................................sss..... [ 23%] 11451s ...... [ 23%] 11451s core/tests/test_scalarbuffer.py ........................................ [ 23%] 11452s ...................................... [ 24%] 11452s core/tests/test_scalarinherit.py ..... [ 24%] 11456s core/tests/test_scalarmath.py .........................ss............... [ 24%] 11457s ........................................................................ [ 24%] 11458s ........................................................................ [ 24%] 11458s ......................ssssss............................................ [ 25%] 11458s ........................................................................ [ 25%] 11458s ...... [ 25%] 11458s core/tests/test_scalarprint.py .....s [ 25%] 11459s core/tests/test_shape_base.py .......................................... [ 25%] 11459s ........................................................................ [ 25%] 11460s ........................................................................ [ 26%] 11460s ........................ [ 26%] 11460s core/tests/test_simd.py ................................................ [ 26%] 11461s ........................................................................ [ 26%] 11461s ..............................ssssssssssssssssssssssssssssssssssssssssss [ 26%] 11462s .s...................................................................... [ 27%] 11462s ........................................................................ [ 27%] 11463s ........................................................................ [ 27%] 11464s ........................................................................ [ 27%] 11465s ........................................................................ [ 28%] 11465s ......................................ssssssssssssssssssssssssssssssssss [ 28%] 11466s ssssssssss.............................................................. [ 28%] 11466s ........................................................................ [ 28%] 11466s ................ssssssssssssssssssssssssssssssssssssssssss.s............ [ 29%] 11467s ........................................................................ [ 29%] 11467s ........................................................................ [ 29%] 11468s ........................................................................ [ 30%] 11469s ........................................................................ [ 30%] 11470s ........................................................................ [ 30%] 11471s ........................ssssssssssssssssssssssssssssssssssssssssssssssss [ 30%] 11471s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 11471s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 11472s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 11472s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 11472s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 11472s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 11472s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 11473s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 11473s ssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 33%] 11473s core/tests/test_simd_module.py .................................... [ 33%] 11477s core/tests/test_strings.py ............................................. [ 33%] 11483s ........................................................................ [ 33%] 11484s ................. [ 33%] 11484s core/tests/test_ufunc.py ............................................... [ 33%] 11485s ........................................................................ [ 34%] 11487s .........................F.............................................. [ 34%] 11488s ........................................................................ [ 34%] 11489s ........................................................................ [ 35%] 11490s ........................................................................ [ 35%] 11493s ..................................................xxxxxxx............. [ 35%] 11494s core/tests/test_umath.py ............................................... [ 35%] 11496s ........................................................................ [ 36%] 11497s ........................................................................ [ 36%] 11502s ........................................................................ [ 36%] 11507s ........................................................................ [ 36%] 11511s ........................................................................ [ 37%] 11512s ........................................................................ [ 37%] 11513s ........................................................................ [ 37%] 11513s ........................................................................ [ 37%] 11514s ........................................................................ [ 38%] 11515s ........................................................................ [ 38%] 11515s ........................................................................ [ 38%] 11516s ........................................................................ [ 38%] 11517s ........................................................................ [ 39%] 11518s ........................................................................ [ 39%] 11518s ........................................................................ [ 39%] 11519s ........................................................................ [ 40%] 11519s ........................................................................ [ 40%] 11519s ........................................................................ [ 40%] 11520s ........................................................................ [ 40%] 11521s ........................................................................ [ 41%] 11522s ........................................................................ [ 41%] 11522s ........................................................................ [ 41%] 11523s ........................................................................ [ 41%] 11523s ........................................................................ [ 42%] 11524s ........................................................................ [ 42%] 11525s ........................................................................ [ 42%] 11525s ........................................................................ [ 42%] 11526s ........................................................................ [ 43%] 11527s ........................................................................ [ 43%] 11528s ........................................................................ [ 43%] 11528s ........................................................................ [ 44%] 11529s ........................................................................ [ 44%] 11529s ........................................................................ [ 44%] 11530s ............................................................F........... [ 44%] 11531s ........................................................................ [ 45%] 11532s ....................................F................................... [ 45%] 11532s ........................................................................ [ 45%] 11533s ............F........................................................... [ 45%] 11534s ............................................................F........... [ 46%] 11535s ........................................................................ [ 46%] 11536s ....................................F................................... [ 46%] 11536s ........................................................................ [ 46%] 11537s ............F........................................................... [ 47%] 11538s ........................................................................ [ 47%] 11538s ........................................................................ [ 47%] 11538s ........................................................................ [ 48%] 11539s ........................................................................ [ 48%] 11539s ........................................................................ [ 48%] 11540s ........................................................................ [ 48%] 11540s ........................................................................ [ 49%] 11542s ........................................................................ [ 49%] 11542s ........................................................................ [ 49%] 11543s ........................................................................ [ 49%] 11546s ........................................................................ [ 50%] 11550s ........................................................................ [ 50%] 11551s ............s...s....................................................... [ 50%] 11552s ........................................................................ [ 50%] 11553s ........s............................................................... [ 51%] 11555s ........................................................................ [ 51%] 11556s ...........................................ssssssssssssss............... [ 51%] 11557s ........................................................................ [ 52%] 11557s ......................................... [ 52%] 11558s core/tests/test_umath_accuracy.py s..................................... [ 52%] 11558s ... [ 52%] 11559s core/tests/test_umath_complex.py ..s............s....................... [ 52%] 11559s ........................................................................ [ 52%] 11560s ........................................................................ [ 53%] 11560s ........................................................................ [ 53%] 11561s ........................................................................ [ 53%] 11561s ...... [ 53%] 11561s core/tests/test_unicode.py ............................................. [ 53%] 11561s ............................... [ 53%] 11564s distutils/tests/test_ccompiler_opt.py .................................. [ 53%] 11570s ........................................................................ [ 54%] 11574s ........................................................................ [ 54%] 11577s ........................................................................ [ 54%] 11578s ....................... [ 54%] 11578s distutils/tests/test_ccompiler_opt_conf.py . [ 54%] 11579s distutils/tests/test_exec_command.py ... [ 54%] 11579s distutils/tests/test_fcompiler.py . [ 54%] 11579s distutils/tests/test_fcompiler_gnu.py .... [ 54%] 11579s distutils/tests/test_fcompiler_intel.py .. [ 54%] 11579s distutils/tests/test_fcompiler_nagfor.py . [ 54%] 11579s distutils/tests/test_from_template.py . [ 54%] 11579s distutils/tests/test_log.py .... [ 54%] 11579s distutils/tests/test_mingw32ccompiler.py s [ 54%] 11580s distutils/tests/test_misc_util.py ....... [ 54%] 11580s distutils/tests/test_npy_pkg_config.py .... [ 54%] 11581s distutils/tests/test_shell_utils.py sssssssssssssss...............ssssss [ 55%] 11582s sssssssss............... [ 55%] 11582s distutils/tests/test_system_info.py ....ss.. [ 55%] 11584s f2py/tests/test_abstract_interface.py ss [ 55%] 11591s f2py/tests/test_array_from_pyobj.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 11616s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 11657s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 11706s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 11766s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 11841s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 11944s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 12065s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 57%] 12147s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 57%] 12147s f2py/tests/test_block_docstring.py s [ 57%] 12147s f2py/tests/test_callback.py ssssssssssssssss [ 57%] 12147s f2py/tests/test_character.py sssssssssssssssssssssssssssssssssssssssssss [ 57%] 12147s [ 57%] 12147s f2py/tests/test_common.py s [ 57%] 12147s f2py/tests/test_compile_function.py sssssss [ 57%] 12148s f2py/tests/test_crackfortran.py s.....sss....ssssssssssssssssss......s [ 57%] 12148s f2py/tests/test_docs.py sss [ 57%] 12148s f2py/tests/test_f2cmap.py s [ 57%] 12150s f2py/tests/test_f2py2e.py ..x.............x.........x.................. [ 57%] 12150s f2py/tests/test_kind.py s [ 57%] 12150s f2py/tests/test_mixed.py ss [ 57%] 12150s f2py/tests/test_module_doc.py s [ 57%] 12150s f2py/tests/test_quoted_character.py s [ 58%] 12150s f2py/tests/test_regression.py . [ 58%] 12150s f2py/tests/test_return_character.py sssssssssssssss [ 58%] 12150s f2py/tests/test_return_complex.py ssssssssssssssss [ 58%] 12150s f2py/tests/test_return_integer.py ssssssssssssssssssss [ 58%] 12150s f2py/tests/test_return_real.py ssssssssssssssssssss [ 58%] 12150s f2py/tests/test_semicolon_split.py ss [ 58%] 12150s f2py/tests/test_string.py sss [ 58%] 12150s f2py/tests/test_symbolic.py ........... [ 58%] 12150s f2py/tests/test_value_attrspec.py s [ 58%] 12152s fft/tests/test_helper.py ........ [ 58%] 12153s fft/tests/test_pocketfft.py ............................................ [ 58%] 12156s .................................... [ 58%] 12156s lib/tests/test__datasource.py .......................... [ 58%] 12156s lib/tests/test__iotools.py ........................ [ 58%] 12156s lib/tests/test__version.py ........ [ 58%] 12157s lib/tests/test_arraypad.py ............................................. [ 59%] 12158s ..................................x..................................... [ 59%] 12159s ........................................................................ [ 59%] 12159s ........................................................................ [ 59%] 12160s ........................................................................ [ 60%] 12160s ........................................................................ [ 60%] 12161s ........................................................................ [ 60%] 12162s ........................................................................ [ 60%] 12162s ................................... [ 61%] 12163s lib/tests/test_arraysetops.py .......................................... [ 61%] 12164s ................................ [ 61%] 12164s lib/tests/test_arrayterator.py . [ 61%] 12164s lib/tests/test_financial_expired.py . [ 61%] 12215s lib/tests/test_format.py .....................FFF................. [ 61%] 12216s lib/tests/test_function_base.py ........................................ [ 61%] 12217s ........................................................................ [ 61%] 12238s .............................................x.......................... [ 62%] 12238s ........................................................................ [ 62%] 12239s ........................................................................ [ 62%] 12239s ........................................................................ [ 62%] 12240s ........................................................................ [ 63%] 12240s ........................................................................ [ 63%] 12240s ........................................................................ [ 63%] 12241s ........................................................................ [ 64%] 12241s ........................................................................ [ 64%] 12244s ......................................X................................. [ 64%] 12244s ................................... [ 64%] 12247s lib/tests/test_histograms.py ........................................... [ 64%] 12247s .............. [ 64%] 12247s lib/tests/test_index_tricks.py ......................................... [ 65%] 12247s ...... [ 65%] 12249s lib/tests/test_io.py ................................................... [ 65%] 12249s ........................................................................ [ 65%] 12250s ........................................................................ [ 65%] 12260s .... [ 65%] 12260s lib/tests/test_loadtxt.py .............................................. [ 65%] 12261s ........................................................................ [ 66%] 12261s ........................................................................ [ 66%] 12262s .......................x...x.............s.....x........................ [ 66%] 12263s .................. [ 66%] 12263s lib/tests/test_mixins.py ........... [ 66%] 12264s lib/tests/test_nanfunctions.py .....................ss.ss.ss.ss.ss.ss.ss [ 67%] 12264s ..........................................ss.ss.ss.ss.ss.ss.ss.......... [ 67%] 12265s ........................................................................ [ 67%] 12265s ........................................................................ [ 67%] 12265s ........................................................................ [ 68%] 12266s ........................................................................ [ 68%] 12266s ........................................................................ [ 68%] 12267s ........................................................................ [ 68%] 12267s ........................................................................ [ 69%] 12268s ........................................................................ [ 69%] 12268s ........................................................................ [ 69%] 12269s ..............................ss.ss.ss.ss.ss.ss.ss...................... [ 69%] 12270s .....................ss.ss.ss.ss.ss.ss.ss............................... [ 70%] 12271s ........ss.ss.ss.ss.ss.ss.ss............................................ [ 70%] 12274s ........................................................................ [ 70%] 12275s ..ss.ss.ss.ss.ss.ss.ss.............................ss.ss.ss.ss.ss.ss.ss. [ 71%] 12275s ......................... [ 71%] 12276s lib/tests/test_packbits.py ............................................. [ 71%] 12277s ........................................................................ [ 71%] 12278s ........................................................................ [ 71%] 12278s ........................................................................ [ 72%] 12278s ................... [ 72%] 12279s lib/tests/test_polynomial.py ..................................... [ 72%] 12279s lib/tests/test_recfunctions.py ......................................... [ 72%] 12279s .......... [ 72%] 12281s lib/tests/test_regression.py ........................... [ 72%] 12281s lib/tests/test_shape_base.py ..............................s............ [ 72%] 12282s ................................. [ 72%] 12282s lib/tests/test_stride_tricks.py .......................... [ 72%] 12282s lib/tests/test_twodim_base.py ..................................... [ 73%] 12283s lib/tests/test_type_check.py ........................................... [ 73%] 12283s ......... [ 73%] 12283s lib/tests/test_ufunclike.py ...... [ 73%] 12285s lib/tests/test_utils.py ................. [ 73%] 12285s linalg/tests/test_deprecations.py . [ 73%] 12292s linalg/tests/test_linalg.py ............................................ [ 73%] 12301s ..x..................................................................... [ 73%] 12302s ........................................................................ [ 74%] 12305s ........................................................................ [ 74%] 12307s ........................................................................ [ 74%] 12309s ..............................................sx [ 74%] 12309s linalg/tests/test_regression.py ......... [ 74%] 12309s ma/tests/test_core.py .................................................. [ 75%] 12310s ........................................................................ [ 75%] 12311s ........................................................................ [ 75%] 12311s ........................................................................ [ 75%] 12312s ........................................................................ [ 76%] 12313s ........................................................................ [ 76%] 12314s ........................................................................ [ 76%] 12315s ........................................................................ [ 76%] 12315s ........................................................................ [ 77%] 12316s ........................................................................ [ 77%] 12317s ........................................................................ [ 77%] 12317s ........................................................................ [ 77%] 12318s ........................................................................ [ 78%] 12319s ........................................................................ [ 78%] 12319s ........................................................................ [ 78%] 12320s ........................................................................ [ 79%] 12321s ........................................................................ [ 79%] 12322s ........................................................................ [ 79%] 12322s ........................................................................ [ 79%] 12323s ........................................................................ [ 80%] 12324s ........................................................................ [ 80%] 12325s ........................................................................ [ 80%] 12325s ........................................................................ [ 80%] 12326s ........................................................................ [ 81%] 12327s ........................................................................ [ 81%] 12328s ........................................................................ [ 81%] 12328s ........................................................................ [ 81%] 12329s ........................................................................ [ 82%] 12330s ........................................................................ [ 82%] 12330s ........................................................................ [ 82%] 12331s ........................................................................ [ 83%] 12332s ........................................................................ [ 83%] 12333s ........................................................................ [ 83%] 12334s ........................................................................ [ 83%] 12334s ........................................................................ [ 84%] 12335s ........................................................................ [ 84%] 12336s ........................................................................ [ 84%] 12337s ........................................................................ [ 84%] 12338s ........................................................................ [ 85%] 12338s ........................................................................ [ 85%] 12339s ........................................................................ [ 85%] 12340s ........................................................................ [ 86%] 12341s ........................................................................ [ 86%] 12343s ........................................................................ [ 86%] 12343s ........................................................................ [ 86%] 12343s ........................................................................ [ 87%] 12344s ........................................................................ [ 87%] 12345s ........................................................................ [ 87%] 12346s ........................................................................ [ 87%] 12347s ........................................................................ [ 88%] 12348s ........................................................................ [ 88%] 12351s ........................................................................ [ 88%] 12354s ........................................xx.............................. [ 88%] 12354s ........................................................................ [ 89%] 12355s ........................................................................ [ 89%] 12356s ........................................................................ [ 89%] 12356s ......................................................... [ 89%] 12356s ma/tests/test_deprecations.py ..... [ 89%] 12357s ma/tests/test_extras.py ................................................ [ 90%] 12358s ................................................... [ 90%] 12358s ma/tests/test_mrecords.py ........................ [ 90%] 12359s ma/tests/test_old_ma.py ......................................... [ 90%] 12359s ma/tests/test_regression.py ............. [ 90%] 12359s ma/tests/test_subclassing.py ............... [ 90%] 12360s matrixlib/tests/test_defmatrix.py ...................................... [ 90%] 12360s ..... [ 90%] 12360s matrixlib/tests/test_interaction.py ....................... [ 90%] 12360s matrixlib/tests/test_masked_matrix.py .............. [ 90%] 12360s matrixlib/tests/test_matrix_linalg.py .................................. [ 91%] 12362s .................................................................... [ 91%] 12362s matrixlib/tests/test_multiarray.py .. [ 91%] 12362s matrixlib/tests/test_numeric.py .. [ 91%] 12362s matrixlib/tests/test_regression.py .... [ 91%] 12363s polynomial/tests/test_chebyshev.py ..................................... [ 91%] 12363s .... [ 91%] 12363s polynomial/tests/test_classes.py ....................................... [ 91%] 12364s ........................................................................ [ 91%] 12365s ........................................................................ [ 92%] 12366s ...................................................... [ 92%] 12366s polynomial/tests/test_hermite.py .................................. [ 92%] 12367s polynomial/tests/test_hermite_e.py .................................. [ 92%] 12368s polynomial/tests/test_laguerre.py .................................. [ 92%] 12368s polynomial/tests/test_legendre.py ...................................... [ 92%] 12368s [ 92%] 12369s polynomial/tests/test_polynomial.py ................................... [ 93%] 12369s polynomial/tests/test_polyutils.py ......... [ 93%] 12369s polynomial/tests/test_printing.py ...................................... [ 93%] 12369s ..................................... [ 93%] 12369s polynomial/tests/test_symbol.py ........................................ [ 93%] 12369s ............ [ 93%] 12370s random/tests/test_direct.py ..............s................s............ [ 93%] 12370s .....s.................s.................s.... [ 93%] 12370s random/tests/test_extending.py ss [ 93%] 12370s random/tests/test_generator_mt19937.py ................................. [ 94%] 12372s ........................................................................ [ 94%] 12374s ........................................................................ [ 94%] 12375s ........................................................................ [ 94%] 12377s ...........................FFF........................ [ 95%] 12382s random/tests/test_generator_mt19937_regressions.py ............ [ 95%] 12383s random/tests/test_random.py ............................................ [ 95%] 12383s ........................................................................ [ 95%] 12385s ..................FFF.... [ 95%] 12385s random/tests/test_randomstate.py .................................s..... [ 95%] 12386s ........................................................................ [ 96%] 12395s .......................................FFF.......................... [ 96%] 12400s random/tests/test_randomstate_regression.py ..............s.... [ 96%] 12405s random/tests/test_regression.py ........... [ 96%] 12405s random/tests/test_seed_sequence.py .. [ 96%] 12405s random/tests/test_smoke.py .s........................................... [ 96%] 12406s ........................................................................ [ 96%] 12407s ........................................................................ [ 97%] 12408s ........................................................................ [ 97%] 12409s ...............................ss....................................... [ 97%] 12410s ........................................................................ [ 97%] 12411s ........................................................................ [ 98%] 12413s ....................................................................... [ 98%] 12413s testing/tests/test_utils.py ............................................ [ 98%] 12415s ..................................................sss................... [ 98%] 12442s ......................... [ 98%] 12442s tests/test__all__.py . [ 98%] 12451s tests/test_ctypeslib.py ss..................... [ 99%] 12451s tests/test_lazyloading.py . [ 99%] 12451s tests/test_matlib.py ........ [ 99%] 12451s tests/test_numpy_version.py .. [ 99%] 12453s tests/test_public_api.py ..........X [ 99%] 12453s tests/test_reloading.py ..s [ 99%] 12456s tests/test_scripts.py XXX. [ 99%] 12456s typing/tests/test_generic_alias.py ..................................... [ 99%] 12457s ........................................................................ [ 99%] 12458s ........................................................................ [ 99%] 12458s ....................... [ 99%] 12458s typing/tests/test_isfile.py . [ 99%] 12462s typing/tests/test_runtime.py .....................x... [100%] 12462s 12462s ==================================== ERRORS ==================================== 12462s ______________________ ERROR at setup of test_set_policy _______________________ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s > mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_set_policy0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s libraries = [] 12462s library_dirs = [] 12462s link_extra = None 12462s new_compiler = 12462s objects = [] 12462s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12462s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_set_policy0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = (['source.c'],) 12462s func = 12462s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12462s self = 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12462s single_compile(o) 12462s FCompiler = 12462s build = {'source.o': ('source.c', '.c')} 12462s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s debug = 0 12462s depends = None 12462s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12462s extra_postargs = [] 12462s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12462s has_f90_header = 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s is_f_file = 12462s jobs = 8 12462s macros = [] 12462s o = ('source.o', ('source.c', '.c')) 12462s objects = ['source.o'] 12462s output_dir = None 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s single_compile = .single_compile at 0xdbb564d8> 12462s sources = ['source.c'] 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12462s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12462s args = ('source.o', ('source.c', '.c')) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ext = '.c' 12462s extra_postargs = [] 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12462s func = 12462s kw = {} 12462s self = 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s self = 12462s obj = 'source.o', src = 'source.c', ext = '.c' 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s extra_postargs = [] 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s 12462s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12462s """Compile a single source files with a Unix-style compiler.""" 12462s # HP ad-hoc fix, see ticket 1383 12462s ccomp = self.compiler_so 12462s if ccomp[0] == 'aCC': 12462s # remove flags that will trigger ANSI-C mode for aCC 12462s if '-Ae' in ccomp: 12462s ccomp.remove('-Ae') 12462s if '-Aa' in ccomp: 12462s ccomp.remove('-Aa') 12462s # add flags for (almost) sane C++ handling 12462s ccomp += ['-AA'] 12462s self.compiler_so = ccomp 12462s # ensure OPT environment variable is read 12462s if 'OPT' in os.environ: 12462s # XXX who uses this? 12462s from sysconfig import get_config_vars 12462s opt = shlex.join(shlex.split(os.environ['OPT'])) 12462s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12462s ccomp_s = shlex.join(self.compiler_so) 12462s if opt not in ccomp_s: 12462s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12462s self.compiler_so = shlex.split(ccomp_s) 12462s llink_s = shlex.join(self.linker_so) 12462s if opt not in llink_s: 12462s self.linker_so = self.linker_so + shlex.split(opt) 12462s 12462s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12462s 12462s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12462s # all headers needed by a c file as a side effect of compilation (-MMD) 12462s if getattr(self, '_auto_depends', False): 12462s deps = ['-MMD', '-MF', obj + '.d'] 12462s else: 12462s deps = [] 12462s 12462s try: 12462s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12462s extra_postargs, display = display) 12462s except DistutilsExecError as e: 12462s msg = str(e) 12462s > raise CompileError(msg) from None 12462s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12462s 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s deps = ['-MMD', '-MF', 'source.o.d'] 12462s display = 'arm-linux-gnueabihf-gcc: source.c' 12462s ext = '.c' 12462s extra_postargs = [] 12462s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s 12462s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12462s 12462s The above exception was the direct cause of the following exception: 12462s 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_set_policy0') 12462s 12462s @pytest.fixture 12462s def get_module(tmp_path): 12462s """ Add a memory policy that returns a false pointer 64 bytes into the 12462s actual allocation, and fill the prefix with some text. Then check at each 12462s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12462s free/calloc go via the functions here. 12462s """ 12462s if sys.platform.startswith('cygwin'): 12462s pytest.skip('link fails on cygwin') 12462s if IS_WASM: 12462s pytest.skip("Can't build module inside Wasm") 12462s functions = [ 12462s ("get_default_policy", "METH_NOARGS", """ 12462s Py_INCREF(PyDataMem_DefaultHandler); 12462s return PyDataMem_DefaultHandler; 12462s """), 12462s ("set_secret_data_policy", "METH_NOARGS", """ 12462s PyObject *secret_data = 12462s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12462s if (secret_data == NULL) { 12462s return NULL; 12462s } 12462s PyObject *old = PyDataMem_SetHandler(secret_data); 12462s Py_DECREF(secret_data); 12462s return old; 12462s """), 12462s ("set_old_policy", "METH_O", """ 12462s PyObject *old; 12462s if (args != NULL && PyCapsule_CheckExact(args)) { 12462s old = PyDataMem_SetHandler(args); 12462s } 12462s else { 12462s old = PyDataMem_SetHandler(NULL); 12462s } 12462s return old; 12462s """), 12462s ("get_array", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12462s buf, NPY_ARRAY_WRITEABLE, NULL); 12462s """), 12462s ("set_own", "METH_O", """ 12462s if (!PyArray_Check(args)) { 12462s PyErr_SetString(PyExc_ValueError, 12462s "need an ndarray"); 12462s return NULL; 12462s } 12462s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12462s // Maybe try this too? 12462s // PyArray_BASE(PyArrayObject *)args) = NULL; 12462s Py_RETURN_NONE; 12462s """), 12462s ("get_array_with_base", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12462s NULL, buf, 12462s NPY_ARRAY_WRITEABLE, NULL); 12462s if (arr == NULL) return NULL; 12462s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12462s (PyCapsule_Destructor)&warn_on_free); 12462s if (obj == NULL) { 12462s Py_DECREF(arr); 12462s return NULL; 12462s } 12462s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12462s Py_DECREF(arr); 12462s Py_DECREF(obj); 12462s return NULL; 12462s } 12462s return arr; 12462s 12462s """), 12462s ] 12462s prologue = ''' 12462s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12462s #include 12462s /* 12462s * This struct allows the dynamic configuration of the allocator funcs 12462s * of the `secret_data_allocator`. It is provided here for 12462s * demonstration purposes, as a valid `ctx` use-case scenario. 12462s */ 12462s typedef struct { 12462s void *(*malloc)(size_t); 12462s void *(*calloc)(size_t, size_t); 12462s void *(*realloc)(void *, size_t); 12462s void (*free)(void *); 12462s } SecretDataAllocatorFuncs; 12462s 12462s NPY_NO_EXPORT void * 12462s shift_alloc(void *ctx, size_t sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->malloc(sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_zero(void *ctx, size_t sz, size_t cnt) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->calloc(sz + 64, cnt); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld via zero", 12462s (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void 12462s shift_free(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p == NULL) { 12462s return ; 12462s } 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_free, " 12462s "no appropriate prefix\\n"); 12462s /* Make C runtime crash by calling free on the wrong address */ 12462s funcs->free((char *)p + 10); 12462s /* funcs->free(real); */ 12462s } 12462s else { 12462s npy_uintp i = (npy_uintp)atoi(real +20); 12462s if (i != sz) { 12462s fprintf(stderr, "uh-oh, unmatched shift_free" 12462s "(ptr, %ld) but allocated %ld\\n", sz, i); 12462s /* This happens in some places, only print */ 12462s funcs->free(real); 12462s } 12462s else { 12462s funcs->free(real); 12462s } 12462s } 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p != NULL) { 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12462s return realloc(p, sz); 12462s } 12462s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12462s } 12462s else { 12462s char *real = (char *)funcs->realloc(p, sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated " 12462s "%ld via realloc", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s } 12462s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12462s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12462s malloc, 12462s calloc, 12462s realloc, 12462s free 12462s }; 12462s static PyDataMem_Handler secret_data_handler = { 12462s "secret_data_allocator", 12462s 1, 12462s { 12462s &secret_data_handler_ctx, /* ctx */ 12462s shift_alloc, /* malloc */ 12462s shift_zero, /* calloc */ 12462s shift_realloc, /* realloc */ 12462s shift_free /* free */ 12462s } 12462s }; 12462s void warn_on_free(void *capsule) { 12462s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12462s void * obj = PyCapsule_GetPointer(capsule, 12462s PyCapsule_GetName(capsule)); 12462s free(obj); 12462s }; 12462s ''' 12462s more_init = "import_array();" 12462s try: 12462s import mem_policy 12462s return mem_policy 12462s except ImportError: 12462s pass 12462s # if it does not exist, build and load it 12462s > return extbuild.build_and_import_extension('mem_policy', 12462s functions, 12462s prologue=prologue, 12462s include_dirs=[np.get_include()], 12462s build_dir=tmp_path, 12462s more_init=more_init) 12462s 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_set_policy0') 12462s 12462s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s except CompileError as e: 12462s # shorten the exception chain 12462s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12462s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_set_policy0: 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_set_policy0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s | ^~~~~~~~~~ 12462s compilation terminated. 12462s _______________ ERROR at setup of test_default_policy_singleton ________________ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s > mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_default_policy_singleton0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s libraries = [] 12462s library_dirs = [] 12462s link_extra = None 12462s new_compiler = 12462s objects = [] 12462s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12462s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_default_policy_singleton0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = (['source.c'],) 12462s func = 12462s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12462s self = 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12462s single_compile(o) 12462s FCompiler = 12462s build = {'source.o': ('source.c', '.c')} 12462s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s debug = 0 12462s depends = None 12462s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12462s extra_postargs = [] 12462s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12462s has_f90_header = 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s is_f_file = 12462s jobs = 8 12462s macros = [] 12462s o = ('source.o', ('source.c', '.c')) 12462s objects = ['source.o'] 12462s output_dir = None 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s single_compile = .single_compile at 0xdbbc5618> 12462s sources = ['source.c'] 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12462s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12462s args = ('source.o', ('source.c', '.c')) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ext = '.c' 12462s extra_postargs = [] 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12462s func = 12462s kw = {} 12462s self = 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s self = 12462s obj = 'source.o', src = 'source.c', ext = '.c' 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s extra_postargs = [] 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s 12462s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12462s """Compile a single source files with a Unix-style compiler.""" 12462s # HP ad-hoc fix, see ticket 1383 12462s ccomp = self.compiler_so 12462s if ccomp[0] == 'aCC': 12462s # remove flags that will trigger ANSI-C mode for aCC 12462s if '-Ae' in ccomp: 12462s ccomp.remove('-Ae') 12462s if '-Aa' in ccomp: 12462s ccomp.remove('-Aa') 12462s # add flags for (almost) sane C++ handling 12462s ccomp += ['-AA'] 12462s self.compiler_so = ccomp 12462s # ensure OPT environment variable is read 12462s if 'OPT' in os.environ: 12462s # XXX who uses this? 12462s from sysconfig import get_config_vars 12462s opt = shlex.join(shlex.split(os.environ['OPT'])) 12462s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12462s ccomp_s = shlex.join(self.compiler_so) 12462s if opt not in ccomp_s: 12462s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12462s self.compiler_so = shlex.split(ccomp_s) 12462s llink_s = shlex.join(self.linker_so) 12462s if opt not in llink_s: 12462s self.linker_so = self.linker_so + shlex.split(opt) 12462s 12462s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12462s 12462s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12462s # all headers needed by a c file as a side effect of compilation (-MMD) 12462s if getattr(self, '_auto_depends', False): 12462s deps = ['-MMD', '-MF', obj + '.d'] 12462s else: 12462s deps = [] 12462s 12462s try: 12462s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12462s extra_postargs, display = display) 12462s except DistutilsExecError as e: 12462s msg = str(e) 12462s > raise CompileError(msg) from None 12462s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12462s 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s deps = ['-MMD', '-MF', 'source.o.d'] 12462s display = 'arm-linux-gnueabihf-gcc: source.c' 12462s ext = '.c' 12462s extra_postargs = [] 12462s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s 12462s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12462s 12462s The above exception was the direct cause of the following exception: 12462s 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_default_policy_singleton0') 12462s 12462s @pytest.fixture 12462s def get_module(tmp_path): 12462s """ Add a memory policy that returns a false pointer 64 bytes into the 12462s actual allocation, and fill the prefix with some text. Then check at each 12462s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12462s free/calloc go via the functions here. 12462s """ 12462s if sys.platform.startswith('cygwin'): 12462s pytest.skip('link fails on cygwin') 12462s if IS_WASM: 12462s pytest.skip("Can't build module inside Wasm") 12462s functions = [ 12462s ("get_default_policy", "METH_NOARGS", """ 12462s Py_INCREF(PyDataMem_DefaultHandler); 12462s return PyDataMem_DefaultHandler; 12462s """), 12462s ("set_secret_data_policy", "METH_NOARGS", """ 12462s PyObject *secret_data = 12462s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12462s if (secret_data == NULL) { 12462s return NULL; 12462s } 12462s PyObject *old = PyDataMem_SetHandler(secret_data); 12462s Py_DECREF(secret_data); 12462s return old; 12462s """), 12462s ("set_old_policy", "METH_O", """ 12462s PyObject *old; 12462s if (args != NULL && PyCapsule_CheckExact(args)) { 12462s old = PyDataMem_SetHandler(args); 12462s } 12462s else { 12462s old = PyDataMem_SetHandler(NULL); 12462s } 12462s return old; 12462s """), 12462s ("get_array", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12462s buf, NPY_ARRAY_WRITEABLE, NULL); 12462s """), 12462s ("set_own", "METH_O", """ 12462s if (!PyArray_Check(args)) { 12462s PyErr_SetString(PyExc_ValueError, 12462s "need an ndarray"); 12462s return NULL; 12462s } 12462s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12462s // Maybe try this too? 12462s // PyArray_BASE(PyArrayObject *)args) = NULL; 12462s Py_RETURN_NONE; 12462s """), 12462s ("get_array_with_base", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12462s NULL, buf, 12462s NPY_ARRAY_WRITEABLE, NULL); 12462s if (arr == NULL) return NULL; 12462s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12462s (PyCapsule_Destructor)&warn_on_free); 12462s if (obj == NULL) { 12462s Py_DECREF(arr); 12462s return NULL; 12462s } 12462s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12462s Py_DECREF(arr); 12462s Py_DECREF(obj); 12462s return NULL; 12462s } 12462s return arr; 12462s 12462s """), 12462s ] 12462s prologue = ''' 12462s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12462s #include 12462s /* 12462s * This struct allows the dynamic configuration of the allocator funcs 12462s * of the `secret_data_allocator`. It is provided here for 12462s * demonstration purposes, as a valid `ctx` use-case scenario. 12462s */ 12462s typedef struct { 12462s void *(*malloc)(size_t); 12462s void *(*calloc)(size_t, size_t); 12462s void *(*realloc)(void *, size_t); 12462s void (*free)(void *); 12462s } SecretDataAllocatorFuncs; 12462s 12462s NPY_NO_EXPORT void * 12462s shift_alloc(void *ctx, size_t sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->malloc(sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_zero(void *ctx, size_t sz, size_t cnt) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->calloc(sz + 64, cnt); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld via zero", 12462s (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void 12462s shift_free(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p == NULL) { 12462s return ; 12462s } 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_free, " 12462s "no appropriate prefix\\n"); 12462s /* Make C runtime crash by calling free on the wrong address */ 12462s funcs->free((char *)p + 10); 12462s /* funcs->free(real); */ 12462s } 12462s else { 12462s npy_uintp i = (npy_uintp)atoi(real +20); 12462s if (i != sz) { 12462s fprintf(stderr, "uh-oh, unmatched shift_free" 12462s "(ptr, %ld) but allocated %ld\\n", sz, i); 12462s /* This happens in some places, only print */ 12462s funcs->free(real); 12462s } 12462s else { 12462s funcs->free(real); 12462s } 12462s } 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p != NULL) { 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12462s return realloc(p, sz); 12462s } 12462s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12462s } 12462s else { 12462s char *real = (char *)funcs->realloc(p, sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated " 12462s "%ld via realloc", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s } 12462s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12462s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12462s malloc, 12462s calloc, 12462s realloc, 12462s free 12462s }; 12462s static PyDataMem_Handler secret_data_handler = { 12462s "secret_data_allocator", 12462s 1, 12462s { 12462s &secret_data_handler_ctx, /* ctx */ 12462s shift_alloc, /* malloc */ 12462s shift_zero, /* calloc */ 12462s shift_realloc, /* realloc */ 12462s shift_free /* free */ 12462s } 12462s }; 12462s void warn_on_free(void *capsule) { 12462s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12462s void * obj = PyCapsule_GetPointer(capsule, 12462s PyCapsule_GetName(capsule)); 12462s free(obj); 12462s }; 12462s ''' 12462s more_init = "import_array();" 12462s try: 12462s import mem_policy 12462s return mem_policy 12462s except ImportError: 12462s pass 12462s # if it does not exist, build and load it 12462s > return extbuild.build_and_import_extension('mem_policy', 12462s functions, 12462s prologue=prologue, 12462s include_dirs=[np.get_include()], 12462s build_dir=tmp_path, 12462s more_init=more_init) 12462s 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_default_policy_singleton0') 12462s 12462s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s except CompileError as e: 12462s # shorten the exception chain 12462s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12462s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_default_policy_singleton0: 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_default_policy_singleton0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s | ^~~~~~~~~~ 12462s compilation terminated. 12462s __________________ ERROR at setup of test_policy_propagation ___________________ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s > mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_policy_propagation0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s libraries = [] 12462s library_dirs = [] 12462s link_extra = None 12462s new_compiler = 12462s objects = [] 12462s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12462s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_policy_propagation0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = (['source.c'],) 12462s func = 12462s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12462s self = 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12462s single_compile(o) 12462s FCompiler = 12462s build = {'source.o': ('source.c', '.c')} 12462s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s debug = 0 12462s depends = None 12462s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12462s extra_postargs = [] 12462s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12462s has_f90_header = 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s is_f_file = 12462s jobs = 8 12462s macros = [] 12462s o = ('source.o', ('source.c', '.c')) 12462s objects = ['source.o'] 12462s output_dir = None 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s single_compile = .single_compile at 0xdbbba028> 12462s sources = ['source.c'] 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12462s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12462s args = ('source.o', ('source.c', '.c')) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ext = '.c' 12462s extra_postargs = [] 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12462s func = 12462s kw = {} 12462s self = 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s self = 12462s obj = 'source.o', src = 'source.c', ext = '.c' 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s extra_postargs = [] 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s 12462s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12462s """Compile a single source files with a Unix-style compiler.""" 12462s # HP ad-hoc fix, see ticket 1383 12462s ccomp = self.compiler_so 12462s if ccomp[0] == 'aCC': 12462s # remove flags that will trigger ANSI-C mode for aCC 12462s if '-Ae' in ccomp: 12462s ccomp.remove('-Ae') 12462s if '-Aa' in ccomp: 12462s ccomp.remove('-Aa') 12462s # add flags for (almost) sane C++ handling 12462s ccomp += ['-AA'] 12462s self.compiler_so = ccomp 12462s # ensure OPT environment variable is read 12462s if 'OPT' in os.environ: 12462s # XXX who uses this? 12462s from sysconfig import get_config_vars 12462s opt = shlex.join(shlex.split(os.environ['OPT'])) 12462s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12462s ccomp_s = shlex.join(self.compiler_so) 12462s if opt not in ccomp_s: 12462s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12462s self.compiler_so = shlex.split(ccomp_s) 12462s llink_s = shlex.join(self.linker_so) 12462s if opt not in llink_s: 12462s self.linker_so = self.linker_so + shlex.split(opt) 12462s 12462s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12462s 12462s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12462s # all headers needed by a c file as a side effect of compilation (-MMD) 12462s if getattr(self, '_auto_depends', False): 12462s deps = ['-MMD', '-MF', obj + '.d'] 12462s else: 12462s deps = [] 12462s 12462s try: 12462s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12462s extra_postargs, display = display) 12462s except DistutilsExecError as e: 12462s msg = str(e) 12462s > raise CompileError(msg) from None 12462s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12462s 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s deps = ['-MMD', '-MF', 'source.o.d'] 12462s display = 'arm-linux-gnueabihf-gcc: source.c' 12462s ext = '.c' 12462s extra_postargs = [] 12462s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s 12462s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12462s 12462s The above exception was the direct cause of the following exception: 12462s 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_policy_propagation0') 12462s 12462s @pytest.fixture 12462s def get_module(tmp_path): 12462s """ Add a memory policy that returns a false pointer 64 bytes into the 12462s actual allocation, and fill the prefix with some text. Then check at each 12462s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12462s free/calloc go via the functions here. 12462s """ 12462s if sys.platform.startswith('cygwin'): 12462s pytest.skip('link fails on cygwin') 12462s if IS_WASM: 12462s pytest.skip("Can't build module inside Wasm") 12462s functions = [ 12462s ("get_default_policy", "METH_NOARGS", """ 12462s Py_INCREF(PyDataMem_DefaultHandler); 12462s return PyDataMem_DefaultHandler; 12462s """), 12462s ("set_secret_data_policy", "METH_NOARGS", """ 12462s PyObject *secret_data = 12462s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12462s if (secret_data == NULL) { 12462s return NULL; 12462s } 12462s PyObject *old = PyDataMem_SetHandler(secret_data); 12462s Py_DECREF(secret_data); 12462s return old; 12462s """), 12462s ("set_old_policy", "METH_O", """ 12462s PyObject *old; 12462s if (args != NULL && PyCapsule_CheckExact(args)) { 12462s old = PyDataMem_SetHandler(args); 12462s } 12462s else { 12462s old = PyDataMem_SetHandler(NULL); 12462s } 12462s return old; 12462s """), 12462s ("get_array", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12462s buf, NPY_ARRAY_WRITEABLE, NULL); 12462s """), 12462s ("set_own", "METH_O", """ 12462s if (!PyArray_Check(args)) { 12462s PyErr_SetString(PyExc_ValueError, 12462s "need an ndarray"); 12462s return NULL; 12462s } 12462s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12462s // Maybe try this too? 12462s // PyArray_BASE(PyArrayObject *)args) = NULL; 12462s Py_RETURN_NONE; 12462s """), 12462s ("get_array_with_base", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12462s NULL, buf, 12462s NPY_ARRAY_WRITEABLE, NULL); 12462s if (arr == NULL) return NULL; 12462s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12462s (PyCapsule_Destructor)&warn_on_free); 12462s if (obj == NULL) { 12462s Py_DECREF(arr); 12462s return NULL; 12462s } 12462s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12462s Py_DECREF(arr); 12462s Py_DECREF(obj); 12462s return NULL; 12462s } 12462s return arr; 12462s 12462s """), 12462s ] 12462s prologue = ''' 12462s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12462s #include 12462s /* 12462s * This struct allows the dynamic configuration of the allocator funcs 12462s * of the `secret_data_allocator`. It is provided here for 12462s * demonstration purposes, as a valid `ctx` use-case scenario. 12462s */ 12462s typedef struct { 12462s void *(*malloc)(size_t); 12462s void *(*calloc)(size_t, size_t); 12462s void *(*realloc)(void *, size_t); 12462s void (*free)(void *); 12462s } SecretDataAllocatorFuncs; 12462s 12462s NPY_NO_EXPORT void * 12462s shift_alloc(void *ctx, size_t sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->malloc(sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_zero(void *ctx, size_t sz, size_t cnt) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->calloc(sz + 64, cnt); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld via zero", 12462s (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void 12462s shift_free(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p == NULL) { 12462s return ; 12462s } 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_free, " 12462s "no appropriate prefix\\n"); 12462s /* Make C runtime crash by calling free on the wrong address */ 12462s funcs->free((char *)p + 10); 12462s /* funcs->free(real); */ 12462s } 12462s else { 12462s npy_uintp i = (npy_uintp)atoi(real +20); 12462s if (i != sz) { 12462s fprintf(stderr, "uh-oh, unmatched shift_free" 12462s "(ptr, %ld) but allocated %ld\\n", sz, i); 12462s /* This happens in some places, only print */ 12462s funcs->free(real); 12462s } 12462s else { 12462s funcs->free(real); 12462s } 12462s } 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p != NULL) { 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12462s return realloc(p, sz); 12462s } 12462s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12462s } 12462s else { 12462s char *real = (char *)funcs->realloc(p, sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated " 12462s "%ld via realloc", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s } 12462s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12462s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12462s malloc, 12462s calloc, 12462s realloc, 12462s free 12462s }; 12462s static PyDataMem_Handler secret_data_handler = { 12462s "secret_data_allocator", 12462s 1, 12462s { 12462s &secret_data_handler_ctx, /* ctx */ 12462s shift_alloc, /* malloc */ 12462s shift_zero, /* calloc */ 12462s shift_realloc, /* realloc */ 12462s shift_free /* free */ 12462s } 12462s }; 12462s void warn_on_free(void *capsule) { 12462s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12462s void * obj = PyCapsule_GetPointer(capsule, 12462s PyCapsule_GetName(capsule)); 12462s free(obj); 12462s }; 12462s ''' 12462s more_init = "import_array();" 12462s try: 12462s import mem_policy 12462s return mem_policy 12462s except ImportError: 12462s pass 12462s # if it does not exist, build and load it 12462s > return extbuild.build_and_import_extension('mem_policy', 12462s functions, 12462s prologue=prologue, 12462s include_dirs=[np.get_include()], 12462s build_dir=tmp_path, 12462s more_init=more_init) 12462s 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_policy_propagation0') 12462s 12462s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s except CompileError as e: 12462s # shorten the exception chain 12462s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12462s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_policy_propagation0: 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_policy_propagation0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s | ^~~~~~~~~~ 12462s compilation terminated. 12462s ___________________ ERROR at setup of test_context_locality ____________________ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s > mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_context_locality0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s libraries = [] 12462s library_dirs = [] 12462s link_extra = None 12462s new_compiler = 12462s objects = [] 12462s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12462s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_context_locality0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = (['source.c'],) 12462s func = 12462s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12462s self = 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12462s single_compile(o) 12462s FCompiler = 12462s build = {'source.o': ('source.c', '.c')} 12462s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s debug = 0 12462s depends = None 12462s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12462s extra_postargs = [] 12462s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12462s has_f90_header = 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s is_f_file = 12462s jobs = 8 12462s macros = [] 12462s o = ('source.o', ('source.c', '.c')) 12462s objects = ['source.o'] 12462s output_dir = None 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s single_compile = .single_compile at 0xdbbbad48> 12462s sources = ['source.c'] 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12462s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12462s args = ('source.o', ('source.c', '.c')) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ext = '.c' 12462s extra_postargs = [] 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12462s func = 12462s kw = {} 12462s self = 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s self = 12462s obj = 'source.o', src = 'source.c', ext = '.c' 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s extra_postargs = [] 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s 12462s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12462s """Compile a single source files with a Unix-style compiler.""" 12462s # HP ad-hoc fix, see ticket 1383 12462s ccomp = self.compiler_so 12462s if ccomp[0] == 'aCC': 12462s # remove flags that will trigger ANSI-C mode for aCC 12462s if '-Ae' in ccomp: 12462s ccomp.remove('-Ae') 12462s if '-Aa' in ccomp: 12462s ccomp.remove('-Aa') 12462s # add flags for (almost) sane C++ handling 12462s ccomp += ['-AA'] 12462s self.compiler_so = ccomp 12462s # ensure OPT environment variable is read 12462s if 'OPT' in os.environ: 12462s # XXX who uses this? 12462s from sysconfig import get_config_vars 12462s opt = shlex.join(shlex.split(os.environ['OPT'])) 12462s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12462s ccomp_s = shlex.join(self.compiler_so) 12462s if opt not in ccomp_s: 12462s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12462s self.compiler_so = shlex.split(ccomp_s) 12462s llink_s = shlex.join(self.linker_so) 12462s if opt not in llink_s: 12462s self.linker_so = self.linker_so + shlex.split(opt) 12462s 12462s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12462s 12462s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12462s # all headers needed by a c file as a side effect of compilation (-MMD) 12462s if getattr(self, '_auto_depends', False): 12462s deps = ['-MMD', '-MF', obj + '.d'] 12462s else: 12462s deps = [] 12462s 12462s try: 12462s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12462s extra_postargs, display = display) 12462s except DistutilsExecError as e: 12462s msg = str(e) 12462s > raise CompileError(msg) from None 12462s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12462s 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s deps = ['-MMD', '-MF', 'source.o.d'] 12462s display = 'arm-linux-gnueabihf-gcc: source.c' 12462s ext = '.c' 12462s extra_postargs = [] 12462s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s 12462s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12462s 12462s The above exception was the direct cause of the following exception: 12462s 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_context_locality0') 12462s 12462s @pytest.fixture 12462s def get_module(tmp_path): 12462s """ Add a memory policy that returns a false pointer 64 bytes into the 12462s actual allocation, and fill the prefix with some text. Then check at each 12462s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12462s free/calloc go via the functions here. 12462s """ 12462s if sys.platform.startswith('cygwin'): 12462s pytest.skip('link fails on cygwin') 12462s if IS_WASM: 12462s pytest.skip("Can't build module inside Wasm") 12462s functions = [ 12462s ("get_default_policy", "METH_NOARGS", """ 12462s Py_INCREF(PyDataMem_DefaultHandler); 12462s return PyDataMem_DefaultHandler; 12462s """), 12462s ("set_secret_data_policy", "METH_NOARGS", """ 12462s PyObject *secret_data = 12462s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12462s if (secret_data == NULL) { 12462s return NULL; 12462s } 12462s PyObject *old = PyDataMem_SetHandler(secret_data); 12462s Py_DECREF(secret_data); 12462s return old; 12462s """), 12462s ("set_old_policy", "METH_O", """ 12462s PyObject *old; 12462s if (args != NULL && PyCapsule_CheckExact(args)) { 12462s old = PyDataMem_SetHandler(args); 12462s } 12462s else { 12462s old = PyDataMem_SetHandler(NULL); 12462s } 12462s return old; 12462s """), 12462s ("get_array", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12462s buf, NPY_ARRAY_WRITEABLE, NULL); 12462s """), 12462s ("set_own", "METH_O", """ 12462s if (!PyArray_Check(args)) { 12462s PyErr_SetString(PyExc_ValueError, 12462s "need an ndarray"); 12462s return NULL; 12462s } 12462s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12462s // Maybe try this too? 12462s // PyArray_BASE(PyArrayObject *)args) = NULL; 12462s Py_RETURN_NONE; 12462s """), 12462s ("get_array_with_base", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12462s NULL, buf, 12462s NPY_ARRAY_WRITEABLE, NULL); 12462s if (arr == NULL) return NULL; 12462s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12462s (PyCapsule_Destructor)&warn_on_free); 12462s if (obj == NULL) { 12462s Py_DECREF(arr); 12462s return NULL; 12462s } 12462s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12462s Py_DECREF(arr); 12462s Py_DECREF(obj); 12462s return NULL; 12462s } 12462s return arr; 12462s 12462s """), 12462s ] 12462s prologue = ''' 12462s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12462s #include 12462s /* 12462s * This struct allows the dynamic configuration of the allocator funcs 12462s * of the `secret_data_allocator`. It is provided here for 12462s * demonstration purposes, as a valid `ctx` use-case scenario. 12462s */ 12462s typedef struct { 12462s void *(*malloc)(size_t); 12462s void *(*calloc)(size_t, size_t); 12462s void *(*realloc)(void *, size_t); 12462s void (*free)(void *); 12462s } SecretDataAllocatorFuncs; 12462s 12462s NPY_NO_EXPORT void * 12462s shift_alloc(void *ctx, size_t sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->malloc(sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_zero(void *ctx, size_t sz, size_t cnt) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->calloc(sz + 64, cnt); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld via zero", 12462s (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void 12462s shift_free(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p == NULL) { 12462s return ; 12462s } 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_free, " 12462s "no appropriate prefix\\n"); 12462s /* Make C runtime crash by calling free on the wrong address */ 12462s funcs->free((char *)p + 10); 12462s /* funcs->free(real); */ 12462s } 12462s else { 12462s npy_uintp i = (npy_uintp)atoi(real +20); 12462s if (i != sz) { 12462s fprintf(stderr, "uh-oh, unmatched shift_free" 12462s "(ptr, %ld) but allocated %ld\\n", sz, i); 12462s /* This happens in some places, only print */ 12462s funcs->free(real); 12462s } 12462s else { 12462s funcs->free(real); 12462s } 12462s } 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p != NULL) { 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12462s return realloc(p, sz); 12462s } 12462s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12462s } 12462s else { 12462s char *real = (char *)funcs->realloc(p, sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated " 12462s "%ld via realloc", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s } 12462s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12462s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12462s malloc, 12462s calloc, 12462s realloc, 12462s free 12462s }; 12462s static PyDataMem_Handler secret_data_handler = { 12462s "secret_data_allocator", 12462s 1, 12462s { 12462s &secret_data_handler_ctx, /* ctx */ 12462s shift_alloc, /* malloc */ 12462s shift_zero, /* calloc */ 12462s shift_realloc, /* realloc */ 12462s shift_free /* free */ 12462s } 12462s }; 12462s void warn_on_free(void *capsule) { 12462s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12462s void * obj = PyCapsule_GetPointer(capsule, 12462s PyCapsule_GetName(capsule)); 12462s free(obj); 12462s }; 12462s ''' 12462s more_init = "import_array();" 12462s try: 12462s import mem_policy 12462s return mem_policy 12462s except ImportError: 12462s pass 12462s # if it does not exist, build and load it 12462s > return extbuild.build_and_import_extension('mem_policy', 12462s functions, 12462s prologue=prologue, 12462s include_dirs=[np.get_include()], 12462s build_dir=tmp_path, 12462s more_init=more_init) 12462s 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_context_locality0') 12462s 12462s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s except CompileError as e: 12462s # shorten the exception chain 12462s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12462s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_context_locality0: 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_context_locality0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s | ^~~~~~~~~~ 12462s compilation terminated. 12462s ____________________ ERROR at setup of test_thread_locality ____________________ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s > mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_thread_locality0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s libraries = [] 12462s library_dirs = [] 12462s link_extra = None 12462s new_compiler = 12462s objects = [] 12462s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12462s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_thread_locality0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = (['source.c'],) 12462s func = 12462s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12462s self = 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12462s single_compile(o) 12462s FCompiler = 12462s build = {'source.o': ('source.c', '.c')} 12462s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s debug = 0 12462s depends = None 12462s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12462s extra_postargs = [] 12462s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12462s has_f90_header = 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s is_f_file = 12462s jobs = 8 12462s macros = [] 12462s o = ('source.o', ('source.c', '.c')) 12462s objects = ['source.o'] 12462s output_dir = None 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s single_compile = .single_compile at 0xdbbc8b68> 12462s sources = ['source.c'] 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12462s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12462s args = ('source.o', ('source.c', '.c')) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ext = '.c' 12462s extra_postargs = [] 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12462s func = 12462s kw = {} 12462s self = 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s self = 12462s obj = 'source.o', src = 'source.c', ext = '.c' 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s extra_postargs = [] 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s 12462s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12462s """Compile a single source files with a Unix-style compiler.""" 12462s # HP ad-hoc fix, see ticket 1383 12462s ccomp = self.compiler_so 12462s if ccomp[0] == 'aCC': 12462s # remove flags that will trigger ANSI-C mode for aCC 12462s if '-Ae' in ccomp: 12462s ccomp.remove('-Ae') 12462s if '-Aa' in ccomp: 12462s ccomp.remove('-Aa') 12462s # add flags for (almost) sane C++ handling 12462s ccomp += ['-AA'] 12462s self.compiler_so = ccomp 12462s # ensure OPT environment variable is read 12462s if 'OPT' in os.environ: 12462s # XXX who uses this? 12462s from sysconfig import get_config_vars 12462s opt = shlex.join(shlex.split(os.environ['OPT'])) 12462s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12462s ccomp_s = shlex.join(self.compiler_so) 12462s if opt not in ccomp_s: 12462s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12462s self.compiler_so = shlex.split(ccomp_s) 12462s llink_s = shlex.join(self.linker_so) 12462s if opt not in llink_s: 12462s self.linker_so = self.linker_so + shlex.split(opt) 12462s 12462s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12462s 12462s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12462s # all headers needed by a c file as a side effect of compilation (-MMD) 12462s if getattr(self, '_auto_depends', False): 12462s deps = ['-MMD', '-MF', obj + '.d'] 12462s else: 12462s deps = [] 12462s 12462s try: 12462s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12462s extra_postargs, display = display) 12462s except DistutilsExecError as e: 12462s msg = str(e) 12462s > raise CompileError(msg) from None 12462s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12462s 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s deps = ['-MMD', '-MF', 'source.o.d'] 12462s display = 'arm-linux-gnueabihf-gcc: source.c' 12462s ext = '.c' 12462s extra_postargs = [] 12462s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s 12462s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12462s 12462s The above exception was the direct cause of the following exception: 12462s 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_thread_locality0') 12462s 12462s @pytest.fixture 12462s def get_module(tmp_path): 12462s """ Add a memory policy that returns a false pointer 64 bytes into the 12462s actual allocation, and fill the prefix with some text. Then check at each 12462s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12462s free/calloc go via the functions here. 12462s """ 12462s if sys.platform.startswith('cygwin'): 12462s pytest.skip('link fails on cygwin') 12462s if IS_WASM: 12462s pytest.skip("Can't build module inside Wasm") 12462s functions = [ 12462s ("get_default_policy", "METH_NOARGS", """ 12462s Py_INCREF(PyDataMem_DefaultHandler); 12462s return PyDataMem_DefaultHandler; 12462s """), 12462s ("set_secret_data_policy", "METH_NOARGS", """ 12462s PyObject *secret_data = 12462s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12462s if (secret_data == NULL) { 12462s return NULL; 12462s } 12462s PyObject *old = PyDataMem_SetHandler(secret_data); 12462s Py_DECREF(secret_data); 12462s return old; 12462s """), 12462s ("set_old_policy", "METH_O", """ 12462s PyObject *old; 12462s if (args != NULL && PyCapsule_CheckExact(args)) { 12462s old = PyDataMem_SetHandler(args); 12462s } 12462s else { 12462s old = PyDataMem_SetHandler(NULL); 12462s } 12462s return old; 12462s """), 12462s ("get_array", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12462s buf, NPY_ARRAY_WRITEABLE, NULL); 12462s """), 12462s ("set_own", "METH_O", """ 12462s if (!PyArray_Check(args)) { 12462s PyErr_SetString(PyExc_ValueError, 12462s "need an ndarray"); 12462s return NULL; 12462s } 12462s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12462s // Maybe try this too? 12462s // PyArray_BASE(PyArrayObject *)args) = NULL; 12462s Py_RETURN_NONE; 12462s """), 12462s ("get_array_with_base", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12462s NULL, buf, 12462s NPY_ARRAY_WRITEABLE, NULL); 12462s if (arr == NULL) return NULL; 12462s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12462s (PyCapsule_Destructor)&warn_on_free); 12462s if (obj == NULL) { 12462s Py_DECREF(arr); 12462s return NULL; 12462s } 12462s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12462s Py_DECREF(arr); 12462s Py_DECREF(obj); 12462s return NULL; 12462s } 12462s return arr; 12462s 12462s """), 12462s ] 12462s prologue = ''' 12462s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12462s #include 12462s /* 12462s * This struct allows the dynamic configuration of the allocator funcs 12462s * of the `secret_data_allocator`. It is provided here for 12462s * demonstration purposes, as a valid `ctx` use-case scenario. 12462s */ 12462s typedef struct { 12462s void *(*malloc)(size_t); 12462s void *(*calloc)(size_t, size_t); 12462s void *(*realloc)(void *, size_t); 12462s void (*free)(void *); 12462s } SecretDataAllocatorFuncs; 12462s 12462s NPY_NO_EXPORT void * 12462s shift_alloc(void *ctx, size_t sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->malloc(sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_zero(void *ctx, size_t sz, size_t cnt) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->calloc(sz + 64, cnt); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld via zero", 12462s (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void 12462s shift_free(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p == NULL) { 12462s return ; 12462s } 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_free, " 12462s "no appropriate prefix\\n"); 12462s /* Make C runtime crash by calling free on the wrong address */ 12462s funcs->free((char *)p + 10); 12462s /* funcs->free(real); */ 12462s } 12462s else { 12462s npy_uintp i = (npy_uintp)atoi(real +20); 12462s if (i != sz) { 12462s fprintf(stderr, "uh-oh, unmatched shift_free" 12462s "(ptr, %ld) but allocated %ld\\n", sz, i); 12462s /* This happens in some places, only print */ 12462s funcs->free(real); 12462s } 12462s else { 12462s funcs->free(real); 12462s } 12462s } 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p != NULL) { 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12462s return realloc(p, sz); 12462s } 12462s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12462s } 12462s else { 12462s char *real = (char *)funcs->realloc(p, sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated " 12462s "%ld via realloc", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s } 12462s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12462s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12462s malloc, 12462s calloc, 12462s realloc, 12462s free 12462s }; 12462s static PyDataMem_Handler secret_data_handler = { 12462s "secret_data_allocator", 12462s 1, 12462s { 12462s &secret_data_handler_ctx, /* ctx */ 12462s shift_alloc, /* malloc */ 12462s shift_zero, /* calloc */ 12462s shift_realloc, /* realloc */ 12462s shift_free /* free */ 12462s } 12462s }; 12462s void warn_on_free(void *capsule) { 12462s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12462s void * obj = PyCapsule_GetPointer(capsule, 12462s PyCapsule_GetName(capsule)); 12462s free(obj); 12462s }; 12462s ''' 12462s more_init = "import_array();" 12462s try: 12462s import mem_policy 12462s return mem_policy 12462s except ImportError: 12462s pass 12462s # if it does not exist, build and load it 12462s > return extbuild.build_and_import_extension('mem_policy', 12462s functions, 12462s prologue=prologue, 12462s include_dirs=[np.get_include()], 12462s build_dir=tmp_path, 12462s more_init=more_init) 12462s 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_thread_locality0') 12462s 12462s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s except CompileError as e: 12462s # shorten the exception chain 12462s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12462s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_thread_locality0: 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_thread_locality0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s | ^~~~~~~~~~ 12462s compilation terminated. 12462s ____________________ ERROR at setup of test_switch_owner[0] ____________________ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s > mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_0_0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s libraries = [] 12462s library_dirs = [] 12462s link_extra = None 12462s new_compiler = 12462s objects = [] 12462s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12462s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_0_0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = (['source.c'],) 12462s func = 12462s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12462s self = 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12462s single_compile(o) 12462s FCompiler = 12462s build = {'source.o': ('source.c', '.c')} 12462s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s debug = 0 12462s depends = None 12462s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12462s extra_postargs = [] 12462s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12462s has_f90_header = 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s is_f_file = 12462s jobs = 8 12462s macros = [] 12462s o = ('source.o', ('source.c', '.c')) 12462s objects = ['source.o'] 12462s output_dir = None 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s single_compile = .single_compile at 0xdbc90ac8> 12462s sources = ['source.c'] 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12462s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12462s args = ('source.o', ('source.c', '.c')) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ext = '.c' 12462s extra_postargs = [] 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12462s func = 12462s kw = {} 12462s self = 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s self = 12462s obj = 'source.o', src = 'source.c', ext = '.c' 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s extra_postargs = [] 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s 12462s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12462s """Compile a single source files with a Unix-style compiler.""" 12462s # HP ad-hoc fix, see ticket 1383 12462s ccomp = self.compiler_so 12462s if ccomp[0] == 'aCC': 12462s # remove flags that will trigger ANSI-C mode for aCC 12462s if '-Ae' in ccomp: 12462s ccomp.remove('-Ae') 12462s if '-Aa' in ccomp: 12462s ccomp.remove('-Aa') 12462s # add flags for (almost) sane C++ handling 12462s ccomp += ['-AA'] 12462s self.compiler_so = ccomp 12462s # ensure OPT environment variable is read 12462s if 'OPT' in os.environ: 12462s # XXX who uses this? 12462s from sysconfig import get_config_vars 12462s opt = shlex.join(shlex.split(os.environ['OPT'])) 12462s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12462s ccomp_s = shlex.join(self.compiler_so) 12462s if opt not in ccomp_s: 12462s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12462s self.compiler_so = shlex.split(ccomp_s) 12462s llink_s = shlex.join(self.linker_so) 12462s if opt not in llink_s: 12462s self.linker_so = self.linker_so + shlex.split(opt) 12462s 12462s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12462s 12462s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12462s # all headers needed by a c file as a side effect of compilation (-MMD) 12462s if getattr(self, '_auto_depends', False): 12462s deps = ['-MMD', '-MF', obj + '.d'] 12462s else: 12462s deps = [] 12462s 12462s try: 12462s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12462s extra_postargs, display = display) 12462s except DistutilsExecError as e: 12462s msg = str(e) 12462s > raise CompileError(msg) from None 12462s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12462s 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s deps = ['-MMD', '-MF', 'source.o.d'] 12462s display = 'arm-linux-gnueabihf-gcc: source.c' 12462s ext = '.c' 12462s extra_postargs = [] 12462s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s 12462s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12462s 12462s The above exception was the direct cause of the following exception: 12462s 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_0_0') 12462s 12462s @pytest.fixture 12462s def get_module(tmp_path): 12462s """ Add a memory policy that returns a false pointer 64 bytes into the 12462s actual allocation, and fill the prefix with some text. Then check at each 12462s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12462s free/calloc go via the functions here. 12462s """ 12462s if sys.platform.startswith('cygwin'): 12462s pytest.skip('link fails on cygwin') 12462s if IS_WASM: 12462s pytest.skip("Can't build module inside Wasm") 12462s functions = [ 12462s ("get_default_policy", "METH_NOARGS", """ 12462s Py_INCREF(PyDataMem_DefaultHandler); 12462s return PyDataMem_DefaultHandler; 12462s """), 12462s ("set_secret_data_policy", "METH_NOARGS", """ 12462s PyObject *secret_data = 12462s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12462s if (secret_data == NULL) { 12462s return NULL; 12462s } 12462s PyObject *old = PyDataMem_SetHandler(secret_data); 12462s Py_DECREF(secret_data); 12462s return old; 12462s """), 12462s ("set_old_policy", "METH_O", """ 12462s PyObject *old; 12462s if (args != NULL && PyCapsule_CheckExact(args)) { 12462s old = PyDataMem_SetHandler(args); 12462s } 12462s else { 12462s old = PyDataMem_SetHandler(NULL); 12462s } 12462s return old; 12462s """), 12462s ("get_array", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12462s buf, NPY_ARRAY_WRITEABLE, NULL); 12462s """), 12462s ("set_own", "METH_O", """ 12462s if (!PyArray_Check(args)) { 12462s PyErr_SetString(PyExc_ValueError, 12462s "need an ndarray"); 12462s return NULL; 12462s } 12462s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12462s // Maybe try this too? 12462s // PyArray_BASE(PyArrayObject *)args) = NULL; 12462s Py_RETURN_NONE; 12462s """), 12462s ("get_array_with_base", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12462s NULL, buf, 12462s NPY_ARRAY_WRITEABLE, NULL); 12462s if (arr == NULL) return NULL; 12462s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12462s (PyCapsule_Destructor)&warn_on_free); 12462s if (obj == NULL) { 12462s Py_DECREF(arr); 12462s return NULL; 12462s } 12462s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12462s Py_DECREF(arr); 12462s Py_DECREF(obj); 12462s return NULL; 12462s } 12462s return arr; 12462s 12462s """), 12462s ] 12462s prologue = ''' 12462s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12462s #include 12462s /* 12462s * This struct allows the dynamic configuration of the allocator funcs 12462s * of the `secret_data_allocator`. It is provided here for 12462s * demonstration purposes, as a valid `ctx` use-case scenario. 12462s */ 12462s typedef struct { 12462s void *(*malloc)(size_t); 12462s void *(*calloc)(size_t, size_t); 12462s void *(*realloc)(void *, size_t); 12462s void (*free)(void *); 12462s } SecretDataAllocatorFuncs; 12462s 12462s NPY_NO_EXPORT void * 12462s shift_alloc(void *ctx, size_t sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->malloc(sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_zero(void *ctx, size_t sz, size_t cnt) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->calloc(sz + 64, cnt); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld via zero", 12462s (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void 12462s shift_free(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p == NULL) { 12462s return ; 12462s } 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_free, " 12462s "no appropriate prefix\\n"); 12462s /* Make C runtime crash by calling free on the wrong address */ 12462s funcs->free((char *)p + 10); 12462s /* funcs->free(real); */ 12462s } 12462s else { 12462s npy_uintp i = (npy_uintp)atoi(real +20); 12462s if (i != sz) { 12462s fprintf(stderr, "uh-oh, unmatched shift_free" 12462s "(ptr, %ld) but allocated %ld\\n", sz, i); 12462s /* This happens in some places, only print */ 12462s funcs->free(real); 12462s } 12462s else { 12462s funcs->free(real); 12462s } 12462s } 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p != NULL) { 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12462s return realloc(p, sz); 12462s } 12462s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12462s } 12462s else { 12462s char *real = (char *)funcs->realloc(p, sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated " 12462s "%ld via realloc", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s } 12462s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12462s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12462s malloc, 12462s calloc, 12462s realloc, 12462s free 12462s }; 12462s static PyDataMem_Handler secret_data_handler = { 12462s "secret_data_allocator", 12462s 1, 12462s { 12462s &secret_data_handler_ctx, /* ctx */ 12462s shift_alloc, /* malloc */ 12462s shift_zero, /* calloc */ 12462s shift_realloc, /* realloc */ 12462s shift_free /* free */ 12462s } 12462s }; 12462s void warn_on_free(void *capsule) { 12462s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12462s void * obj = PyCapsule_GetPointer(capsule, 12462s PyCapsule_GetName(capsule)); 12462s free(obj); 12462s }; 12462s ''' 12462s more_init = "import_array();" 12462s try: 12462s import mem_policy 12462s return mem_policy 12462s except ImportError: 12462s pass 12462s # if it does not exist, build and load it 12462s > return extbuild.build_and_import_extension('mem_policy', 12462s functions, 12462s prologue=prologue, 12462s include_dirs=[np.get_include()], 12462s build_dir=tmp_path, 12462s more_init=more_init) 12462s 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_0_0') 12462s 12462s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s except CompileError as e: 12462s # shorten the exception chain 12462s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12462s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_switch_owner_0_0: 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_0_0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s | ^~~~~~~~~~ 12462s compilation terminated. 12462s ____________________ ERROR at setup of test_switch_owner[1] ____________________ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s > mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_1_0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s libraries = [] 12462s library_dirs = [] 12462s link_extra = None 12462s new_compiler = 12462s objects = [] 12462s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12462s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_1_0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = (['source.c'],) 12462s func = 12462s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12462s self = 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12462s single_compile(o) 12462s FCompiler = 12462s build = {'source.o': ('source.c', '.c')} 12462s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s debug = 0 12462s depends = None 12462s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12462s extra_postargs = [] 12462s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12462s has_f90_header = 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s is_f_file = 12462s jobs = 8 12462s macros = [] 12462s o = ('source.o', ('source.c', '.c')) 12462s objects = ['source.o'] 12462s output_dir = None 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s single_compile = .single_compile at 0xdbfde7a8> 12462s sources = ['source.c'] 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12462s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12462s args = ('source.o', ('source.c', '.c')) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ext = '.c' 12462s extra_postargs = [] 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12462s func = 12462s kw = {} 12462s self = 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s self = 12462s obj = 'source.o', src = 'source.c', ext = '.c' 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s extra_postargs = [] 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s 12462s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12462s """Compile a single source files with a Unix-style compiler.""" 12462s # HP ad-hoc fix, see ticket 1383 12462s ccomp = self.compiler_so 12462s if ccomp[0] == 'aCC': 12462s # remove flags that will trigger ANSI-C mode for aCC 12462s if '-Ae' in ccomp: 12462s ccomp.remove('-Ae') 12462s if '-Aa' in ccomp: 12462s ccomp.remove('-Aa') 12462s # add flags for (almost) sane C++ handling 12462s ccomp += ['-AA'] 12462s self.compiler_so = ccomp 12462s # ensure OPT environment variable is read 12462s if 'OPT' in os.environ: 12462s # XXX who uses this? 12462s from sysconfig import get_config_vars 12462s opt = shlex.join(shlex.split(os.environ['OPT'])) 12462s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12462s ccomp_s = shlex.join(self.compiler_so) 12462s if opt not in ccomp_s: 12462s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12462s self.compiler_so = shlex.split(ccomp_s) 12462s llink_s = shlex.join(self.linker_so) 12462s if opt not in llink_s: 12462s self.linker_so = self.linker_so + shlex.split(opt) 12462s 12462s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12462s 12462s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12462s # all headers needed by a c file as a side effect of compilation (-MMD) 12462s if getattr(self, '_auto_depends', False): 12462s deps = ['-MMD', '-MF', obj + '.d'] 12462s else: 12462s deps = [] 12462s 12462s try: 12462s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12462s extra_postargs, display = display) 12462s except DistutilsExecError as e: 12462s msg = str(e) 12462s > raise CompileError(msg) from None 12462s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12462s 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s deps = ['-MMD', '-MF', 'source.o.d'] 12462s display = 'arm-linux-gnueabihf-gcc: source.c' 12462s ext = '.c' 12462s extra_postargs = [] 12462s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s 12462s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12462s 12462s The above exception was the direct cause of the following exception: 12462s 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_1_0') 12462s 12462s @pytest.fixture 12462s def get_module(tmp_path): 12462s """ Add a memory policy that returns a false pointer 64 bytes into the 12462s actual allocation, and fill the prefix with some text. Then check at each 12462s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12462s free/calloc go via the functions here. 12462s """ 12462s if sys.platform.startswith('cygwin'): 12462s pytest.skip('link fails on cygwin') 12462s if IS_WASM: 12462s pytest.skip("Can't build module inside Wasm") 12462s functions = [ 12462s ("get_default_policy", "METH_NOARGS", """ 12462s Py_INCREF(PyDataMem_DefaultHandler); 12462s return PyDataMem_DefaultHandler; 12462s """), 12462s ("set_secret_data_policy", "METH_NOARGS", """ 12462s PyObject *secret_data = 12462s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12462s if (secret_data == NULL) { 12462s return NULL; 12462s } 12462s PyObject *old = PyDataMem_SetHandler(secret_data); 12462s Py_DECREF(secret_data); 12462s return old; 12462s """), 12462s ("set_old_policy", "METH_O", """ 12462s PyObject *old; 12462s if (args != NULL && PyCapsule_CheckExact(args)) { 12462s old = PyDataMem_SetHandler(args); 12462s } 12462s else { 12462s old = PyDataMem_SetHandler(NULL); 12462s } 12462s return old; 12462s """), 12462s ("get_array", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12462s buf, NPY_ARRAY_WRITEABLE, NULL); 12462s """), 12462s ("set_own", "METH_O", """ 12462s if (!PyArray_Check(args)) { 12462s PyErr_SetString(PyExc_ValueError, 12462s "need an ndarray"); 12462s return NULL; 12462s } 12462s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12462s // Maybe try this too? 12462s // PyArray_BASE(PyArrayObject *)args) = NULL; 12462s Py_RETURN_NONE; 12462s """), 12462s ("get_array_with_base", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12462s NULL, buf, 12462s NPY_ARRAY_WRITEABLE, NULL); 12462s if (arr == NULL) return NULL; 12462s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12462s (PyCapsule_Destructor)&warn_on_free); 12462s if (obj == NULL) { 12462s Py_DECREF(arr); 12462s return NULL; 12462s } 12462s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12462s Py_DECREF(arr); 12462s Py_DECREF(obj); 12462s return NULL; 12462s } 12462s return arr; 12462s 12462s """), 12462s ] 12462s prologue = ''' 12462s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12462s #include 12462s /* 12462s * This struct allows the dynamic configuration of the allocator funcs 12462s * of the `secret_data_allocator`. It is provided here for 12462s * demonstration purposes, as a valid `ctx` use-case scenario. 12462s */ 12462s typedef struct { 12462s void *(*malloc)(size_t); 12462s void *(*calloc)(size_t, size_t); 12462s void *(*realloc)(void *, size_t); 12462s void (*free)(void *); 12462s } SecretDataAllocatorFuncs; 12462s 12462s NPY_NO_EXPORT void * 12462s shift_alloc(void *ctx, size_t sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->malloc(sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_zero(void *ctx, size_t sz, size_t cnt) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->calloc(sz + 64, cnt); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld via zero", 12462s (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void 12462s shift_free(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p == NULL) { 12462s return ; 12462s } 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_free, " 12462s "no appropriate prefix\\n"); 12462s /* Make C runtime crash by calling free on the wrong address */ 12462s funcs->free((char *)p + 10); 12462s /* funcs->free(real); */ 12462s } 12462s else { 12462s npy_uintp i = (npy_uintp)atoi(real +20); 12462s if (i != sz) { 12462s fprintf(stderr, "uh-oh, unmatched shift_free" 12462s "(ptr, %ld) but allocated %ld\\n", sz, i); 12462s /* This happens in some places, only print */ 12462s funcs->free(real); 12462s } 12462s else { 12462s funcs->free(real); 12462s } 12462s } 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p != NULL) { 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12462s return realloc(p, sz); 12462s } 12462s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12462s } 12462s else { 12462s char *real = (char *)funcs->realloc(p, sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated " 12462s "%ld via realloc", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s } 12462s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12462s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12462s malloc, 12462s calloc, 12462s realloc, 12462s free 12462s }; 12462s static PyDataMem_Handler secret_data_handler = { 12462s "secret_data_allocator", 12462s 1, 12462s { 12462s &secret_data_handler_ctx, /* ctx */ 12462s shift_alloc, /* malloc */ 12462s shift_zero, /* calloc */ 12462s shift_realloc, /* realloc */ 12462s shift_free /* free */ 12462s } 12462s }; 12462s void warn_on_free(void *capsule) { 12462s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12462s void * obj = PyCapsule_GetPointer(capsule, 12462s PyCapsule_GetName(capsule)); 12462s free(obj); 12462s }; 12462s ''' 12462s more_init = "import_array();" 12462s try: 12462s import mem_policy 12462s return mem_policy 12462s except ImportError: 12462s pass 12462s # if it does not exist, build and load it 12462s > return extbuild.build_and_import_extension('mem_policy', 12462s functions, 12462s prologue=prologue, 12462s include_dirs=[np.get_include()], 12462s build_dir=tmp_path, 12462s more_init=more_init) 12462s 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_1_0') 12462s 12462s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s except CompileError as e: 12462s # shorten the exception chain 12462s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12462s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_switch_owner_1_0: 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_1_0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s | ^~~~~~~~~~ 12462s compilation terminated. 12462s __________________ ERROR at setup of test_switch_owner[None] ___________________ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12462s Build and imports a c-extension module `modname` from a list of function 12462s fragments `functions`. 12462s 12462s 12462s Parameters 12462s ---------- 12462s functions : list of fragments 12462s Each fragment is a sequence of func_name, calling convention, snippet. 12462s prologue : string 12462s Code to precede the rest, usually extra ``#include`` or ``#define`` 12462s macros. 12462s build_dir : pathlib.Path 12462s Where to build the module, usually a temporary directory 12462s include_dirs : list 12462s Extra directories to find include files when compiling 12462s more_init : string 12462s Code to appear in the module PyMODINIT_FUNC 12462s 12462s Returns 12462s ------- 12462s out: module 12462s The module will have been loaded and is ready for use 12462s 12462s Examples 12462s -------- 12462s >>> functions = [("test_bytes", "METH_O", \"\"\" 12462s if ( !PyBytesCheck(args)) { 12462s Py_RETURN_FALSE; 12462s } 12462s Py_RETURN_TRUE; 12462s \"\"\")] 12462s >>> mod = build_and_import_extension("testme", functions) 12462s >>> assert not mod.test_bytes(u'abc') 12462s >>> assert mod.test_bytes(b'abc') 12462s """ 12462s from distutils.errors import CompileError 12462s 12462s body = prologue + _make_methods(functions, modname) 12462s init = """PyObject *mod = PyModule_Create(&moduledef); 12462s """ 12462s if not build_dir: 12462s build_dir = pathlib.Path('.') 12462s if more_init: 12462s init += """#define INITERROR return NULL 12462s """ 12462s init += more_init 12462s init += "\nreturn mod;" 12462s source_string = _make_source(modname, init, body) 12462s try: 12462s > mod_so = compile_extension_module( 12462s modname, build_dir, include_dirs, source_string) 12462s 12462s CompileError = 12462s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12462s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_None_0') 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12462s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12462s modname = 'mem_policy' 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s libraries = [] 12462s library_dirs = [] 12462s link_extra = None 12462s new_compiler = 12462s objects = [] 12462s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12462s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_None_0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = (['source.c'],) 12462s func = 12462s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12462s self = 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12462s single_compile(o) 12462s FCompiler = 12462s build = {'source.o': ('source.c', '.c')} 12462s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s debug = 0 12462s depends = None 12462s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12462s extra_postargs = [] 12462s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12462s has_f90_header = 12462s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12462s is_f_file = 12462s jobs = 8 12462s macros = [] 12462s o = ('source.o', ('source.c', '.c')) 12462s objects = ['source.o'] 12462s output_dir = None 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s single_compile = .single_compile at 0xdbc6a8e8> 12462s sources = ['source.c'] 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12462s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12462s args = ('source.o', ('source.c', '.c')) 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ext = '.c' 12462s extra_postargs = [] 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12462s m = lambda self, *args, **kw: func(self, *args, **kw) 12462s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12462s func = 12462s kw = {} 12462s self = 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s self = 12462s obj = 'source.o', src = 'source.c', ext = '.c' 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s extra_postargs = [] 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s 12462s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12462s """Compile a single source files with a Unix-style compiler.""" 12462s # HP ad-hoc fix, see ticket 1383 12462s ccomp = self.compiler_so 12462s if ccomp[0] == 'aCC': 12462s # remove flags that will trigger ANSI-C mode for aCC 12462s if '-Ae' in ccomp: 12462s ccomp.remove('-Ae') 12462s if '-Aa' in ccomp: 12462s ccomp.remove('-Aa') 12462s # add flags for (almost) sane C++ handling 12462s ccomp += ['-AA'] 12462s self.compiler_so = ccomp 12462s # ensure OPT environment variable is read 12462s if 'OPT' in os.environ: 12462s # XXX who uses this? 12462s from sysconfig import get_config_vars 12462s opt = shlex.join(shlex.split(os.environ['OPT'])) 12462s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12462s ccomp_s = shlex.join(self.compiler_so) 12462s if opt not in ccomp_s: 12462s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12462s self.compiler_so = shlex.split(ccomp_s) 12462s llink_s = shlex.join(self.linker_so) 12462s if opt not in llink_s: 12462s self.linker_so = self.linker_so + shlex.split(opt) 12462s 12462s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12462s 12462s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12462s # all headers needed by a c file as a side effect of compilation (-MMD) 12462s if getattr(self, '_auto_depends', False): 12462s deps = ['-MMD', '-MF', obj + '.d'] 12462s else: 12462s deps = [] 12462s 12462s try: 12462s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12462s extra_postargs, display = display) 12462s except DistutilsExecError as e: 12462s msg = str(e) 12462s > raise CompileError(msg) from None 12462s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12462s 12462s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12462s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12462s deps = ['-MMD', '-MF', 'source.o.d'] 12462s display = 'arm-linux-gnueabihf-gcc: source.c' 12462s ext = '.c' 12462s extra_postargs = [] 12462s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12462s obj = 'source.o' 12462s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12462s self = 12462s src = 'source.c' 12462s 12462s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12462s 12462s The above exception was the direct cause of the following exception: 12462s 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_None_0') 12462s 12462s @pytest.fixture 12462s def get_module(tmp_path): 12462s """ Add a memory policy that returns a false pointer 64 bytes into the 12462s actual allocation, and fill the prefix with some text. Then check at each 12462s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12462s free/calloc go via the functions here. 12462s """ 12462s if sys.platform.startswith('cygwin'): 12462s pytest.skip('link fails on cygwin') 12462s if IS_WASM: 12462s pytest.skip("Can't build module inside Wasm") 12462s functions = [ 12462s ("get_default_policy", "METH_NOARGS", """ 12462s Py_INCREF(PyDataMem_DefaultHandler); 12462s return PyDataMem_DefaultHandler; 12462s """), 12462s ("set_secret_data_policy", "METH_NOARGS", """ 12462s PyObject *secret_data = 12462s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12462s if (secret_data == NULL) { 12462s return NULL; 12462s } 12462s PyObject *old = PyDataMem_SetHandler(secret_data); 12462s Py_DECREF(secret_data); 12462s return old; 12462s """), 12462s ("set_old_policy", "METH_O", """ 12462s PyObject *old; 12462s if (args != NULL && PyCapsule_CheckExact(args)) { 12462s old = PyDataMem_SetHandler(args); 12462s } 12462s else { 12462s old = PyDataMem_SetHandler(NULL); 12462s } 12462s return old; 12462s """), 12462s ("get_array", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12462s buf, NPY_ARRAY_WRITEABLE, NULL); 12462s """), 12462s ("set_own", "METH_O", """ 12462s if (!PyArray_Check(args)) { 12462s PyErr_SetString(PyExc_ValueError, 12462s "need an ndarray"); 12462s return NULL; 12462s } 12462s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12462s // Maybe try this too? 12462s // PyArray_BASE(PyArrayObject *)args) = NULL; 12462s Py_RETURN_NONE; 12462s """), 12462s ("get_array_with_base", "METH_NOARGS", """ 12462s char *buf = (char *)malloc(20); 12462s npy_intp dims[1]; 12462s dims[0] = 20; 12462s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12462s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12462s NULL, buf, 12462s NPY_ARRAY_WRITEABLE, NULL); 12462s if (arr == NULL) return NULL; 12462s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12462s (PyCapsule_Destructor)&warn_on_free); 12462s if (obj == NULL) { 12462s Py_DECREF(arr); 12462s return NULL; 12462s } 12462s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12462s Py_DECREF(arr); 12462s Py_DECREF(obj); 12462s return NULL; 12462s } 12462s return arr; 12462s 12462s """), 12462s ] 12462s prologue = ''' 12462s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12462s #include 12462s /* 12462s * This struct allows the dynamic configuration of the allocator funcs 12462s * of the `secret_data_allocator`. It is provided here for 12462s * demonstration purposes, as a valid `ctx` use-case scenario. 12462s */ 12462s typedef struct { 12462s void *(*malloc)(size_t); 12462s void *(*calloc)(size_t, size_t); 12462s void *(*realloc)(void *, size_t); 12462s void (*free)(void *); 12462s } SecretDataAllocatorFuncs; 12462s 12462s NPY_NO_EXPORT void * 12462s shift_alloc(void *ctx, size_t sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->malloc(sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_zero(void *ctx, size_t sz, size_t cnt) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s char *real = (char *)funcs->calloc(sz + 64, cnt); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated %ld via zero", 12462s (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s NPY_NO_EXPORT void 12462s shift_free(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p == NULL) { 12462s return ; 12462s } 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_free, " 12462s "no appropriate prefix\\n"); 12462s /* Make C runtime crash by calling free on the wrong address */ 12462s funcs->free((char *)p + 10); 12462s /* funcs->free(real); */ 12462s } 12462s else { 12462s npy_uintp i = (npy_uintp)atoi(real +20); 12462s if (i != sz) { 12462s fprintf(stderr, "uh-oh, unmatched shift_free" 12462s "(ptr, %ld) but allocated %ld\\n", sz, i); 12462s /* This happens in some places, only print */ 12462s funcs->free(real); 12462s } 12462s else { 12462s funcs->free(real); 12462s } 12462s } 12462s } 12462s NPY_NO_EXPORT void * 12462s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12462s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12462s if (p != NULL) { 12462s char *real = (char *)p - 64; 12462s if (strncmp(real, "originally allocated", 20) != 0) { 12462s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12462s return realloc(p, sz); 12462s } 12462s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12462s } 12462s else { 12462s char *real = (char *)funcs->realloc(p, sz + 64); 12462s if (real == NULL) { 12462s return NULL; 12462s } 12462s snprintf(real, 64, "originally allocated " 12462s "%ld via realloc", (unsigned long)sz); 12462s return (void *)(real + 64); 12462s } 12462s } 12462s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12462s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12462s malloc, 12462s calloc, 12462s realloc, 12462s free 12462s }; 12462s static PyDataMem_Handler secret_data_handler = { 12462s "secret_data_allocator", 12462s 1, 12462s { 12462s &secret_data_handler_ctx, /* ctx */ 12462s shift_alloc, /* malloc */ 12462s shift_zero, /* calloc */ 12462s shift_realloc, /* realloc */ 12462s shift_free /* free */ 12462s } 12462s }; 12462s void warn_on_free(void *capsule) { 12462s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12462s void * obj = PyCapsule_GetPointer(capsule, 12462s PyCapsule_GetName(capsule)); 12462s free(obj); 12462s }; 12462s ''' 12462s more_init = "import_array();" 12462s try: 12462s import mem_policy 12462s return mem_policy 12462s except ImportError: 12462s pass 12462s # if it does not exist, build and load it 12462s > return extbuild.build_and_import_extension('mem_policy', 12462s functions, 12462s prologue=prologue, 12462s include_dirs=[np.get_include()], 12462s build_dir=tmp_path, 12462s more_init=more_init) 12462s 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s more_init = 'import_array();' 12462s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12462s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_None_0') 12462s 12462s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12462s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12462s 12462s modname = 'mem_policy' 12462s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12462s 12462s def build_and_import_extension( 12462s modname, functions, *, prologue="", build_dir=None, 12462s include_dirs=[], more_init=""): 12462s """ 12463s Build and imports a c-extension module `modname` from a list of function 12463s fragments `functions`. 12463s 12463s 12463s Parameters 12463s ---------- 12463s functions : list of fragments 12463s Each fragment is a sequence of func_name, calling convention, snippet. 12463s prologue : string 12463s Code to precede the rest, usually extra ``#include`` or ``#define`` 12463s macros. 12463s build_dir : pathlib.Path 12463s Where to build the module, usually a temporary directory 12463s include_dirs : list 12463s Extra directories to find include files when compiling 12463s more_init : string 12463s Code to appear in the module PyMODINIT_FUNC 12463s 12463s Returns 12463s ------- 12463s out: module 12463s The module will have been loaded and is ready for use 12463s 12463s Examples 12463s -------- 12463s >>> functions = [("test_bytes", "METH_O", \"\"\" 12463s if ( !PyBytesCheck(args)) { 12463s Py_RETURN_FALSE; 12463s } 12463s Py_RETURN_TRUE; 12463s \"\"\")] 12463s >>> mod = build_and_import_extension("testme", functions) 12463s >>> assert not mod.test_bytes(u'abc') 12463s >>> assert mod.test_bytes(b'abc') 12463s """ 12463s from distutils.errors import CompileError 12463s 12463s body = prologue + _make_methods(functions, modname) 12463s init = """PyObject *mod = PyModule_Create(&moduledef); 12463s """ 12463s if not build_dir: 12463s build_dir = pathlib.Path('.') 12463s if more_init: 12463s init += """#define INITERROR return NULL 12463s """ 12463s init += more_init 12463s init += "\nreturn mod;" 12463s source_string = _make_source(modname, init, body) 12463s try: 12463s mod_so = compile_extension_module( 12463s modname, build_dir, include_dirs, source_string) 12463s except CompileError as e: 12463s # shorten the exception chain 12463s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12463s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_switch_owner_None_0: 12463s 12463s CompileError = 12463s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12463s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_switch_owner_None_0') 12463s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12463s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12463s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12463s modname = 'mem_policy' 12463s more_init = 'import_array();' 12463s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12463s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12463s | ^~~~~~~~~~ 12463s compilation terminated. 12463s _____________________ ERROR at setup of test_owner_is_base _____________________ 12463s 12463s modname = 'mem_policy' 12463s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12463s 12463s def build_and_import_extension( 12463s modname, functions, *, prologue="", build_dir=None, 12463s include_dirs=[], more_init=""): 12463s """ 12463s Build and imports a c-extension module `modname` from a list of function 12463s fragments `functions`. 12463s 12463s 12463s Parameters 12463s ---------- 12463s functions : list of fragments 12463s Each fragment is a sequence of func_name, calling convention, snippet. 12463s prologue : string 12463s Code to precede the rest, usually extra ``#include`` or ``#define`` 12463s macros. 12463s build_dir : pathlib.Path 12463s Where to build the module, usually a temporary directory 12463s include_dirs : list 12463s Extra directories to find include files when compiling 12463s more_init : string 12463s Code to appear in the module PyMODINIT_FUNC 12463s 12463s Returns 12463s ------- 12463s out: module 12463s The module will have been loaded and is ready for use 12463s 12463s Examples 12463s -------- 12463s >>> functions = [("test_bytes", "METH_O", \"\"\" 12463s if ( !PyBytesCheck(args)) { 12463s Py_RETURN_FALSE; 12463s } 12463s Py_RETURN_TRUE; 12463s \"\"\")] 12463s >>> mod = build_and_import_extension("testme", functions) 12463s >>> assert not mod.test_bytes(u'abc') 12463s >>> assert mod.test_bytes(b'abc') 12463s """ 12463s from distutils.errors import CompileError 12463s 12463s body = prologue + _make_methods(functions, modname) 12463s init = """PyObject *mod = PyModule_Create(&moduledef); 12463s """ 12463s if not build_dir: 12463s build_dir = pathlib.Path('.') 12463s if more_init: 12463s init += """#define INITERROR return NULL 12463s """ 12463s init += more_init 12463s init += "\nreturn mod;" 12463s source_string = _make_source(modname, init, body) 12463s try: 12463s > mod_so = compile_extension_module( 12463s modname, build_dir, include_dirs, source_string) 12463s 12463s CompileError = 12463s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12463s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_owner_is_base0') 12463s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12463s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12463s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12463s modname = 'mem_policy' 12463s more_init = 'import_array();' 12463s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12463s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12463s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12463s libraries = [] 12463s library_dirs = [] 12463s link_extra = None 12463s new_compiler = 12463s objects = [] 12463s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12463s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-0/test_owner_is_base0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 12463s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12463s m = lambda self, *args, **kw: func(self, *args, **kw) 12463s args = (['source.c'],) 12463s func = 12463s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 12463s self = 12463s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 12463s single_compile(o) 12463s FCompiler = 12463s build = {'source.o': ('source.c', '.c')} 12463s build_items = dict_items([('source.o', ('source.c', '.c'))]) 12463s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12463s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12463s debug = 0 12463s depends = None 12463s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 12463s extra_postargs = [] 12463s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 12463s has_f90_header = 12463s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 12463s is_f_file = 12463s jobs = 8 12463s macros = [] 12463s o = ('source.o', ('source.c', '.c')) 12463s objects = ['source.o'] 12463s output_dir = None 12463s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12463s self = 12463s single_compile = .single_compile at 0xdbcaccf8> 12463s sources = ['source.c'] 12463s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 12463s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 12463s args = ('source.o', ('source.c', '.c')) 12463s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12463s ext = '.c' 12463s extra_postargs = [] 12463s obj = 'source.o' 12463s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12463s self = 12463s src = 'source.c' 12463s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 12463s m = lambda self, *args, **kw: func(self, *args, **kw) 12463s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 12463s func = 12463s kw = {} 12463s self = 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s self = 12463s obj = 'source.o', src = 'source.c', ext = '.c' 12463s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12463s extra_postargs = [] 12463s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12463s 12463s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 12463s """Compile a single source files with a Unix-style compiler.""" 12463s # HP ad-hoc fix, see ticket 1383 12463s ccomp = self.compiler_so 12463s if ccomp[0] == 'aCC': 12463s # remove flags that will trigger ANSI-C mode for aCC 12463s if '-Ae' in ccomp: 12463s ccomp.remove('-Ae') 12463s if '-Aa' in ccomp: 12463s ccomp.remove('-Aa') 12463s # add flags for (almost) sane C++ handling 12463s ccomp += ['-AA'] 12463s self.compiler_so = ccomp 12463s # ensure OPT environment variable is read 12463s if 'OPT' in os.environ: 12463s # XXX who uses this? 12463s from sysconfig import get_config_vars 12463s opt = shlex.join(shlex.split(os.environ['OPT'])) 12463s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 12463s ccomp_s = shlex.join(self.compiler_so) 12463s if opt not in ccomp_s: 12463s ccomp_s = ccomp_s.replace(gcv_opt, opt) 12463s self.compiler_so = shlex.split(ccomp_s) 12463s llink_s = shlex.join(self.linker_so) 12463s if opt not in llink_s: 12463s self.linker_so = self.linker_so + shlex.split(opt) 12463s 12463s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 12463s 12463s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 12463s # all headers needed by a c file as a side effect of compilation (-MMD) 12463s if getattr(self, '_auto_depends', False): 12463s deps = ['-MMD', '-MF', obj + '.d'] 12463s else: 12463s deps = [] 12463s 12463s try: 12463s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 12463s extra_postargs, display = display) 12463s except DistutilsExecError as e: 12463s msg = str(e) 12463s > raise CompileError(msg) from None 12463s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 12463s 12463s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 12463s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 12463s deps = ['-MMD', '-MF', 'source.o.d'] 12463s display = 'arm-linux-gnueabihf-gcc: source.c' 12463s ext = '.c' 12463s extra_postargs = [] 12463s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 12463s obj = 'source.o' 12463s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 12463s self = 12463s src = 'source.c' 12463s 12463s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 12463s 12463s The above exception was the direct cause of the following exception: 12463s 12463s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_owner_is_base0') 12463s 12463s @pytest.fixture 12463s def get_module(tmp_path): 12463s """ Add a memory policy that returns a false pointer 64 bytes into the 12463s actual allocation, and fill the prefix with some text. Then check at each 12463s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 12463s free/calloc go via the functions here. 12463s """ 12463s if sys.platform.startswith('cygwin'): 12463s pytest.skip('link fails on cygwin') 12463s if IS_WASM: 12463s pytest.skip("Can't build module inside Wasm") 12463s functions = [ 12463s ("get_default_policy", "METH_NOARGS", """ 12463s Py_INCREF(PyDataMem_DefaultHandler); 12463s return PyDataMem_DefaultHandler; 12463s """), 12463s ("set_secret_data_policy", "METH_NOARGS", """ 12463s PyObject *secret_data = 12463s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 12463s if (secret_data == NULL) { 12463s return NULL; 12463s } 12463s PyObject *old = PyDataMem_SetHandler(secret_data); 12463s Py_DECREF(secret_data); 12463s return old; 12463s """), 12463s ("set_old_policy", "METH_O", """ 12463s PyObject *old; 12463s if (args != NULL && PyCapsule_CheckExact(args)) { 12463s old = PyDataMem_SetHandler(args); 12463s } 12463s else { 12463s old = PyDataMem_SetHandler(NULL); 12463s } 12463s return old; 12463s """), 12463s ("get_array", "METH_NOARGS", """ 12463s char *buf = (char *)malloc(20); 12463s npy_intp dims[1]; 12463s dims[0] = 20; 12463s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12463s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 12463s buf, NPY_ARRAY_WRITEABLE, NULL); 12463s """), 12463s ("set_own", "METH_O", """ 12463s if (!PyArray_Check(args)) { 12463s PyErr_SetString(PyExc_ValueError, 12463s "need an ndarray"); 12463s return NULL; 12463s } 12463s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 12463s // Maybe try this too? 12463s // PyArray_BASE(PyArrayObject *)args) = NULL; 12463s Py_RETURN_NONE; 12463s """), 12463s ("get_array_with_base", "METH_NOARGS", """ 12463s char *buf = (char *)malloc(20); 12463s npy_intp dims[1]; 12463s dims[0] = 20; 12463s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 12463s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 12463s NULL, buf, 12463s NPY_ARRAY_WRITEABLE, NULL); 12463s if (arr == NULL) return NULL; 12463s PyObject *obj = PyCapsule_New(buf, "buf capsule", 12463s (PyCapsule_Destructor)&warn_on_free); 12463s if (obj == NULL) { 12463s Py_DECREF(arr); 12463s return NULL; 12463s } 12463s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 12463s Py_DECREF(arr); 12463s Py_DECREF(obj); 12463s return NULL; 12463s } 12463s return arr; 12463s 12463s """), 12463s ] 12463s prologue = ''' 12463s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 12463s #include 12463s /* 12463s * This struct allows the dynamic configuration of the allocator funcs 12463s * of the `secret_data_allocator`. It is provided here for 12463s * demonstration purposes, as a valid `ctx` use-case scenario. 12463s */ 12463s typedef struct { 12463s void *(*malloc)(size_t); 12463s void *(*calloc)(size_t, size_t); 12463s void *(*realloc)(void *, size_t); 12463s void (*free)(void *); 12463s } SecretDataAllocatorFuncs; 12463s 12463s NPY_NO_EXPORT void * 12463s shift_alloc(void *ctx, size_t sz) { 12463s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12463s char *real = (char *)funcs->malloc(sz + 64); 12463s if (real == NULL) { 12463s return NULL; 12463s } 12463s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 12463s return (void *)(real + 64); 12463s } 12463s NPY_NO_EXPORT void * 12463s shift_zero(void *ctx, size_t sz, size_t cnt) { 12463s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12463s char *real = (char *)funcs->calloc(sz + 64, cnt); 12463s if (real == NULL) { 12463s return NULL; 12463s } 12463s snprintf(real, 64, "originally allocated %ld via zero", 12463s (unsigned long)sz); 12463s return (void *)(real + 64); 12463s } 12463s NPY_NO_EXPORT void 12463s shift_free(void *ctx, void * p, npy_uintp sz) { 12463s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12463s if (p == NULL) { 12463s return ; 12463s } 12463s char *real = (char *)p - 64; 12463s if (strncmp(real, "originally allocated", 20) != 0) { 12463s fprintf(stdout, "uh-oh, unmatched shift_free, " 12463s "no appropriate prefix\\n"); 12463s /* Make C runtime crash by calling free on the wrong address */ 12463s funcs->free((char *)p + 10); 12463s /* funcs->free(real); */ 12463s } 12463s else { 12463s npy_uintp i = (npy_uintp)atoi(real +20); 12463s if (i != sz) { 12463s fprintf(stderr, "uh-oh, unmatched shift_free" 12463s "(ptr, %ld) but allocated %ld\\n", sz, i); 12463s /* This happens in some places, only print */ 12463s funcs->free(real); 12463s } 12463s else { 12463s funcs->free(real); 12463s } 12463s } 12463s } 12463s NPY_NO_EXPORT void * 12463s shift_realloc(void *ctx, void * p, npy_uintp sz) { 12463s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 12463s if (p != NULL) { 12463s char *real = (char *)p - 64; 12463s if (strncmp(real, "originally allocated", 20) != 0) { 12463s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 12463s return realloc(p, sz); 12463s } 12463s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 12463s } 12463s else { 12463s char *real = (char *)funcs->realloc(p, sz + 64); 12463s if (real == NULL) { 12463s return NULL; 12463s } 12463s snprintf(real, 64, "originally allocated " 12463s "%ld via realloc", (unsigned long)sz); 12463s return (void *)(real + 64); 12463s } 12463s } 12463s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 12463s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 12463s malloc, 12463s calloc, 12463s realloc, 12463s free 12463s }; 12463s static PyDataMem_Handler secret_data_handler = { 12463s "secret_data_allocator", 12463s 1, 12463s { 12463s &secret_data_handler_ctx, /* ctx */ 12463s shift_alloc, /* malloc */ 12463s shift_zero, /* calloc */ 12463s shift_realloc, /* realloc */ 12463s shift_free /* free */ 12463s } 12463s }; 12463s void warn_on_free(void *capsule) { 12463s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 12463s void * obj = PyCapsule_GetPointer(capsule, 12463s PyCapsule_GetName(capsule)); 12463s free(obj); 12463s }; 12463s ''' 12463s more_init = "import_array();" 12463s try: 12463s import mem_policy 12463s return mem_policy 12463s except ImportError: 12463s pass 12463s # if it does not exist, build and load it 12463s > return extbuild.build_and_import_extension('mem_policy', 12463s functions, 12463s prologue=prologue, 12463s include_dirs=[np.get_include()], 12463s build_dir=tmp_path, 12463s more_init=more_init) 12463s 12463s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12463s more_init = 'import_array();' 12463s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12463s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-0/test_owner_is_base0') 12463s 12463s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s modname = 'mem_policy' 12463s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12463s 12463s def build_and_import_extension( 12463s modname, functions, *, prologue="", build_dir=None, 12463s include_dirs=[], more_init=""): 12463s """ 12463s Build and imports a c-extension module `modname` from a list of function 12463s fragments `functions`. 12463s 12463s 12463s Parameters 12463s ---------- 12463s functions : list of fragments 12463s Each fragment is a sequence of func_name, calling convention, snippet. 12463s prologue : string 12463s Code to precede the rest, usually extra ``#include`` or ``#define`` 12463s macros. 12463s build_dir : pathlib.Path 12463s Where to build the module, usually a temporary directory 12463s include_dirs : list 12463s Extra directories to find include files when compiling 12463s more_init : string 12463s Code to appear in the module PyMODINIT_FUNC 12463s 12463s Returns 12463s ------- 12463s out: module 12463s The module will have been loaded and is ready for use 12463s 12463s Examples 12463s -------- 12463s >>> functions = [("test_bytes", "METH_O", \"\"\" 12463s if ( !PyBytesCheck(args)) { 12463s Py_RETURN_FALSE; 12463s } 12463s Py_RETURN_TRUE; 12463s \"\"\")] 12463s >>> mod = build_and_import_extension("testme", functions) 12463s >>> assert not mod.test_bytes(u'abc') 12463s >>> assert mod.test_bytes(b'abc') 12463s """ 12463s from distutils.errors import CompileError 12463s 12463s body = prologue + _make_methods(functions, modname) 12463s init = """PyObject *mod = PyModule_Create(&moduledef); 12463s """ 12463s if not build_dir: 12463s build_dir = pathlib.Path('.') 12463s if more_init: 12463s init += """#define INITERROR return NULL 12463s """ 12463s init += more_init 12463s init += "\nreturn mod;" 12463s source_string = _make_source(modname, init, body) 12463s try: 12463s mod_so = compile_extension_module( 12463s modname, build_dir, include_dirs, source_string) 12463s except CompileError as e: 12463s # shorten the exception chain 12463s > raise RuntimeError(f"could not compile in {build_dir}:") from e 12463s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-0/test_owner_is_base0: 12463s 12463s CompileError = 12463s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 12463s build_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_owner_is_base0') 12463s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 12463s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 12463s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 12463s modname = 'mem_policy' 12463s more_init = 'import_array();' 12463s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 12463s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 12463s | ^~~~~~~~~~ 12463s compilation terminated. 12463s ___________________ ERROR at setup of TestIntent.test_in_out ___________________ 12463s 12463s def setup_module(): 12463s """ 12463s Build the required testing extension module 12463s 12463s """ 12463s global wrap 12463s 12463s # Check compiler availability first 12463s if not util.has_c_compiler(): 12463s pytest.skip("No C compiler available") 12463s 12463s if wrap is None: 12463s config_code = """ 12463s config.add_extension('test_array_from_pyobj_ext', 12463s sources=['wrapmodule.c', 'fortranobject.c'], 12463s define_macros=[]) 12463s """ 12463s d = os.path.dirname(__file__) 12463s src = [ 12463s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12463s util.getpath("src", "fortranobject.c"), 12463s util.getpath("src", "fortranobject.h"), 12463s ] 12463s > wrap = util.build_module_distutils(src, config_code, 12463s "test_array_from_pyobj_ext") 12463s 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12463s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12463s memo[key] = func(*a, **kw) 12463s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12463s func = 12463s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12463s kw = {} 12463s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s 12463s @_memoize 12463s def build_module_distutils(source_files, config_code, module_name, **kw): 12463s """ 12463s Build a module via distutils and import it. 12463s 12463s """ 12463s d = get_module_dir() 12463s 12463s # Copy files 12463s dst_sources = [] 12463s for fn in source_files: 12463s if not os.path.isfile(fn): 12463s raise RuntimeError("%s is not a file" % fn) 12463s dst = os.path.join(d, os.path.basename(fn)) 12463s shutil.copyfile(fn, dst) 12463s dst_sources.append(dst) 12463s 12463s # Build script 12463s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12463s 12463s code = fr""" 12463s import os 12463s import sys 12463s sys.path = {repr(sys.path)} 12463s 12463s def configuration(parent_name='',top_path=None): 12463s from numpy.distutils.misc_util import Configuration 12463s config = Configuration('', parent_name, top_path) 12463s {config_code} 12463s return config 12463s 12463s if __name__ == "__main__": 12463s from numpy.distutils.core import setup 12463s setup(configuration=configuration) 12463s """ 12463s script = os.path.join(d, get_temp_module_name() + ".py") 12463s dst_sources.append(script) 12463s with open(script, "wb") as f: 12463s f.write(asbytes(code)) 12463s 12463s # Build 12463s cwd = os.getcwd() 12463s try: 12463s os.chdir(d) 12463s cmd = [sys.executable, script, "build_ext", "-i"] 12463s p = subprocess.Popen(cmd, 12463s stdout=subprocess.PIPE, 12463s stderr=subprocess.STDOUT) 12463s out, err = p.communicate() 12463s if p.returncode != 0: 12463s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12463s (cmd[4:], asstr(out))) 12463s E RuntimeError: Running distutils build failed: [] 12463s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12463s E 12463s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12463s E of the deprecation of `distutils` itself. It will be removed for 12463s E Python >= 3.12. For older Python versions it will remain present. 12463s E It is recommended to use `setuptools < 60.0` for those Python versions. 12463s E For more details, see: 12463s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12463s E 12463s E 12463s E from numpy.distutils.core import setup 12463s E running build_ext 12463s E running build_src 12463s E INFO: build_src 12463s E INFO: building extension "test_array_from_pyobj_ext" sources 12463s E INFO: build_src: building npy-pkg config files 12463s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12463s E !! 12463s E 12463s E ******************************************************************************** 12463s E Please avoid running ``setup.py`` directly. 12463s E Instead, use pypa/build, pypa/installer or other 12463s E standards-based tools. 12463s E 12463s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12463s E ******************************************************************************** 12463s E 12463s E !! 12463s E self.initialize_options() 12463s E INFO: customize UnixCCompiler 12463s E INFO: customize UnixCCompiler using build_ext 12463s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/tmp 12463s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/usr 12463s E creating /tmp/tmpvt806usq/usr/lib 12463s E creating /tmp/tmpvt806usq/usr/lib/python3 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=native' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-O3' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-Werror' 12463s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12463s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-vfpv4' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=armv8.2-a+fp16' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12463s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12463s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12463s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12463s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12463s E INFO: building 'test_array_from_pyobj_ext' extension 12463s E INFO: compiling C sources 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12463s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12463s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12463s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12463s E 14 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E In file included from fortranobject.c:2: 12463s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12463s E 7 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12463s E INFO: 12463s E ########### EXT COMPILER OPTIMIZATION ########### 12463s E INFO: Platform : 12463s E Architecture: armhf 12463s E Compiler : gcc 12463s E 12463s E CPU baseline : 12463s E Requested : 'min' 12463s E Enabled : none 12463s E Flags : none 12463s E Extra checks: none 12463s E 12463s E CPU dispatch : 12463s E Requested : 'max -xop -fma4' 12463s E Enabled : none 12463s E Generated : none 12463s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12463s 12463s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12463s d = '/tmp/tmpmzdm58dt' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s err = None 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s kw = {} 12463s module_name = 'test_array_from_pyobj_ext' 12463s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12463s p = 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12463s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[BOOL] __________ 12463s 12463s def setup_module(): 12463s """ 12463s Build the required testing extension module 12463s 12463s """ 12463s global wrap 12463s 12463s # Check compiler availability first 12463s if not util.has_c_compiler(): 12463s pytest.skip("No C compiler available") 12463s 12463s if wrap is None: 12463s config_code = """ 12463s config.add_extension('test_array_from_pyobj_ext', 12463s sources=['wrapmodule.c', 'fortranobject.c'], 12463s define_macros=[]) 12463s """ 12463s d = os.path.dirname(__file__) 12463s src = [ 12463s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12463s util.getpath("src", "fortranobject.c"), 12463s util.getpath("src", "fortranobject.h"), 12463s ] 12463s > wrap = util.build_module_distutils(src, config_code, 12463s "test_array_from_pyobj_ext") 12463s 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12463s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12463s memo[key] = func(*a, **kw) 12463s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12463s func = 12463s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12463s kw = {} 12463s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s 12463s @_memoize 12463s def build_module_distutils(source_files, config_code, module_name, **kw): 12463s """ 12463s Build a module via distutils and import it. 12463s 12463s """ 12463s d = get_module_dir() 12463s 12463s # Copy files 12463s dst_sources = [] 12463s for fn in source_files: 12463s if not os.path.isfile(fn): 12463s raise RuntimeError("%s is not a file" % fn) 12463s dst = os.path.join(d, os.path.basename(fn)) 12463s shutil.copyfile(fn, dst) 12463s dst_sources.append(dst) 12463s 12463s # Build script 12463s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12463s 12463s code = fr""" 12463s import os 12463s import sys 12463s sys.path = {repr(sys.path)} 12463s 12463s def configuration(parent_name='',top_path=None): 12463s from numpy.distutils.misc_util import Configuration 12463s config = Configuration('', parent_name, top_path) 12463s {config_code} 12463s return config 12463s 12463s if __name__ == "__main__": 12463s from numpy.distutils.core import setup 12463s setup(configuration=configuration) 12463s """ 12463s script = os.path.join(d, get_temp_module_name() + ".py") 12463s dst_sources.append(script) 12463s with open(script, "wb") as f: 12463s f.write(asbytes(code)) 12463s 12463s # Build 12463s cwd = os.getcwd() 12463s try: 12463s os.chdir(d) 12463s cmd = [sys.executable, script, "build_ext", "-i"] 12463s p = subprocess.Popen(cmd, 12463s stdout=subprocess.PIPE, 12463s stderr=subprocess.STDOUT) 12463s out, err = p.communicate() 12463s if p.returncode != 0: 12463s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12463s (cmd[4:], asstr(out))) 12463s E RuntimeError: Running distutils build failed: [] 12463s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12463s E 12463s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12463s E of the deprecation of `distutils` itself. It will be removed for 12463s E Python >= 3.12. For older Python versions it will remain present. 12463s E It is recommended to use `setuptools < 60.0` for those Python versions. 12463s E For more details, see: 12463s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12463s E 12463s E 12463s E from numpy.distutils.core import setup 12463s E running build_ext 12463s E running build_src 12463s E INFO: build_src 12463s E INFO: building extension "test_array_from_pyobj_ext" sources 12463s E INFO: build_src: building npy-pkg config files 12463s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12463s E !! 12463s E 12463s E ******************************************************************************** 12463s E Please avoid running ``setup.py`` directly. 12463s E Instead, use pypa/build, pypa/installer or other 12463s E standards-based tools. 12463s E 12463s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12463s E ******************************************************************************** 12463s E 12463s E !! 12463s E self.initialize_options() 12463s E INFO: customize UnixCCompiler 12463s E INFO: customize UnixCCompiler using build_ext 12463s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/tmp 12463s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/usr 12463s E creating /tmp/tmpvt806usq/usr/lib 12463s E creating /tmp/tmpvt806usq/usr/lib/python3 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=native' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-O3' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-Werror' 12463s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12463s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-vfpv4' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=armv8.2-a+fp16' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12463s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12463s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12463s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12463s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12463s E INFO: building 'test_array_from_pyobj_ext' extension 12463s E INFO: compiling C sources 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12463s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12463s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12463s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12463s E 14 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E In file included from fortranobject.c:2: 12463s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12463s E 7 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12463s E INFO: 12463s E ########### EXT COMPILER OPTIMIZATION ########### 12463s E INFO: Platform : 12463s E Architecture: armhf 12463s E Compiler : gcc 12463s E 12463s E CPU baseline : 12463s E Requested : 'min' 12463s E Enabled : none 12463s E Flags : none 12463s E Extra checks: none 12463s E 12463s E CPU dispatch : 12463s E Requested : 'max -xop -fma4' 12463s E Enabled : none 12463s E Generated : none 12463s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12463s 12463s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12463s d = '/tmp/tmpmzdm58dt' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s err = None 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s kw = {} 12463s module_name = 'test_array_from_pyobj_ext' 12463s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12463s p = 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12463s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[BOOL] ________ 12463s 12463s def setup_module(): 12463s """ 12463s Build the required testing extension module 12463s 12463s """ 12463s global wrap 12463s 12463s # Check compiler availability first 12463s if not util.has_c_compiler(): 12463s pytest.skip("No C compiler available") 12463s 12463s if wrap is None: 12463s config_code = """ 12463s config.add_extension('test_array_from_pyobj_ext', 12463s sources=['wrapmodule.c', 'fortranobject.c'], 12463s define_macros=[]) 12463s """ 12463s d = os.path.dirname(__file__) 12463s src = [ 12463s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12463s util.getpath("src", "fortranobject.c"), 12463s util.getpath("src", "fortranobject.h"), 12463s ] 12463s > wrap = util.build_module_distutils(src, config_code, 12463s "test_array_from_pyobj_ext") 12463s 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12463s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12463s memo[key] = func(*a, **kw) 12463s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12463s func = 12463s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12463s kw = {} 12463s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s 12463s @_memoize 12463s def build_module_distutils(source_files, config_code, module_name, **kw): 12463s """ 12463s Build a module via distutils and import it. 12463s 12463s """ 12463s d = get_module_dir() 12463s 12463s # Copy files 12463s dst_sources = [] 12463s for fn in source_files: 12463s if not os.path.isfile(fn): 12463s raise RuntimeError("%s is not a file" % fn) 12463s dst = os.path.join(d, os.path.basename(fn)) 12463s shutil.copyfile(fn, dst) 12463s dst_sources.append(dst) 12463s 12463s # Build script 12463s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12463s 12463s code = fr""" 12463s import os 12463s import sys 12463s sys.path = {repr(sys.path)} 12463s 12463s def configuration(parent_name='',top_path=None): 12463s from numpy.distutils.misc_util import Configuration 12463s config = Configuration('', parent_name, top_path) 12463s {config_code} 12463s return config 12463s 12463s if __name__ == "__main__": 12463s from numpy.distutils.core import setup 12463s setup(configuration=configuration) 12463s """ 12463s script = os.path.join(d, get_temp_module_name() + ".py") 12463s dst_sources.append(script) 12463s with open(script, "wb") as f: 12463s f.write(asbytes(code)) 12463s 12463s # Build 12463s cwd = os.getcwd() 12463s try: 12463s os.chdir(d) 12463s cmd = [sys.executable, script, "build_ext", "-i"] 12463s p = subprocess.Popen(cmd, 12463s stdout=subprocess.PIPE, 12463s stderr=subprocess.STDOUT) 12463s out, err = p.communicate() 12463s if p.returncode != 0: 12463s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12463s (cmd[4:], asstr(out))) 12463s E RuntimeError: Running distutils build failed: [] 12463s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12463s E 12463s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12463s E of the deprecation of `distutils` itself. It will be removed for 12463s E Python >= 3.12. For older Python versions it will remain present. 12463s E It is recommended to use `setuptools < 60.0` for those Python versions. 12463s E For more details, see: 12463s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12463s E 12463s E 12463s E from numpy.distutils.core import setup 12463s E running build_ext 12463s E running build_src 12463s E INFO: build_src 12463s E INFO: building extension "test_array_from_pyobj_ext" sources 12463s E INFO: build_src: building npy-pkg config files 12463s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12463s E !! 12463s E 12463s E ******************************************************************************** 12463s E Please avoid running ``setup.py`` directly. 12463s E Instead, use pypa/build, pypa/installer or other 12463s E standards-based tools. 12463s E 12463s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12463s E ******************************************************************************** 12463s E 12463s E !! 12463s E self.initialize_options() 12463s E INFO: customize UnixCCompiler 12463s E INFO: customize UnixCCompiler using build_ext 12463s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/tmp 12463s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/usr 12463s E creating /tmp/tmpvt806usq/usr/lib 12463s E creating /tmp/tmpvt806usq/usr/lib/python3 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=native' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-O3' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-Werror' 12463s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12463s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-vfpv4' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=armv8.2-a+fp16' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12463s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12463s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12463s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12463s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12463s E INFO: building 'test_array_from_pyobj_ext' extension 12463s E INFO: compiling C sources 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12463s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12463s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12463s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12463s E 14 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E In file included from fortranobject.c:2: 12463s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12463s E 7 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12463s E INFO: 12463s E ########### EXT COMPILER OPTIMIZATION ########### 12463s E INFO: Platform : 12463s E Architecture: armhf 12463s E Compiler : gcc 12463s E 12463s E CPU baseline : 12463s E Requested : 'min' 12463s E Enabled : none 12463s E Flags : none 12463s E Extra checks: none 12463s E 12463s E CPU dispatch : 12463s E Requested : 'max -xop -fma4' 12463s E Enabled : none 12463s E Generated : none 12463s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12463s 12463s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12463s d = '/tmp/tmpmzdm58dt' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s err = None 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s kw = {} 12463s module_name = 'test_array_from_pyobj_ext' 12463s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12463s p = 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12463s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-2seq-C-w] _______ 12463s 12463s def setup_module(): 12463s """ 12463s Build the required testing extension module 12463s 12463s """ 12463s global wrap 12463s 12463s # Check compiler availability first 12463s if not util.has_c_compiler(): 12463s pytest.skip("No C compiler available") 12463s 12463s if wrap is None: 12463s config_code = """ 12463s config.add_extension('test_array_from_pyobj_ext', 12463s sources=['wrapmodule.c', 'fortranobject.c'], 12463s define_macros=[]) 12463s """ 12463s d = os.path.dirname(__file__) 12463s src = [ 12463s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12463s util.getpath("src", "fortranobject.c"), 12463s util.getpath("src", "fortranobject.h"), 12463s ] 12463s > wrap = util.build_module_distutils(src, config_code, 12463s "test_array_from_pyobj_ext") 12463s 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12463s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12463s memo[key] = func(*a, **kw) 12463s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12463s func = 12463s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12463s kw = {} 12463s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s 12463s @_memoize 12463s def build_module_distutils(source_files, config_code, module_name, **kw): 12463s """ 12463s Build a module via distutils and import it. 12463s 12463s """ 12463s d = get_module_dir() 12463s 12463s # Copy files 12463s dst_sources = [] 12463s for fn in source_files: 12463s if not os.path.isfile(fn): 12463s raise RuntimeError("%s is not a file" % fn) 12463s dst = os.path.join(d, os.path.basename(fn)) 12463s shutil.copyfile(fn, dst) 12463s dst_sources.append(dst) 12463s 12463s # Build script 12463s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12463s 12463s code = fr""" 12463s import os 12463s import sys 12463s sys.path = {repr(sys.path)} 12463s 12463s def configuration(parent_name='',top_path=None): 12463s from numpy.distutils.misc_util import Configuration 12463s config = Configuration('', parent_name, top_path) 12463s {config_code} 12463s return config 12463s 12463s if __name__ == "__main__": 12463s from numpy.distutils.core import setup 12463s setup(configuration=configuration) 12463s """ 12463s script = os.path.join(d, get_temp_module_name() + ".py") 12463s dst_sources.append(script) 12463s with open(script, "wb") as f: 12463s f.write(asbytes(code)) 12463s 12463s # Build 12463s cwd = os.getcwd() 12463s try: 12463s os.chdir(d) 12463s cmd = [sys.executable, script, "build_ext", "-i"] 12463s p = subprocess.Popen(cmd, 12463s stdout=subprocess.PIPE, 12463s stderr=subprocess.STDOUT) 12463s out, err = p.communicate() 12463s if p.returncode != 0: 12463s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12463s (cmd[4:], asstr(out))) 12463s E RuntimeError: Running distutils build failed: [] 12463s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12463s E 12463s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12463s E of the deprecation of `distutils` itself. It will be removed for 12463s E Python >= 3.12. For older Python versions it will remain present. 12463s E It is recommended to use `setuptools < 60.0` for those Python versions. 12463s E For more details, see: 12463s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12463s E 12463s E 12463s E from numpy.distutils.core import setup 12463s E running build_ext 12463s E running build_src 12463s E INFO: build_src 12463s E INFO: building extension "test_array_from_pyobj_ext" sources 12463s E INFO: build_src: building npy-pkg config files 12463s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12463s E !! 12463s E 12463s E ******************************************************************************** 12463s E Please avoid running ``setup.py`` directly. 12463s E Instead, use pypa/build, pypa/installer or other 12463s E standards-based tools. 12463s E 12463s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12463s E ******************************************************************************** 12463s E 12463s E !! 12463s E self.initialize_options() 12463s E INFO: customize UnixCCompiler 12463s E INFO: customize UnixCCompiler using build_ext 12463s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/tmp 12463s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/usr 12463s E creating /tmp/tmpvt806usq/usr/lib 12463s E creating /tmp/tmpvt806usq/usr/lib/python3 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=native' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-O3' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-Werror' 12463s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12463s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-vfpv4' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=armv8.2-a+fp16' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12463s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12463s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12463s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12463s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12463s E INFO: building 'test_array_from_pyobj_ext' extension 12463s E INFO: compiling C sources 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12463s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12463s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12463s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12463s E 14 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E In file included from fortranobject.c:2: 12463s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12463s E 7 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12463s E INFO: 12463s E ########### EXT COMPILER OPTIMIZATION ########### 12463s E INFO: Platform : 12463s E Architecture: armhf 12463s E Compiler : gcc 12463s E 12463s E CPU baseline : 12463s E Requested : 'min' 12463s E Enabled : none 12463s E Flags : none 12463s E Extra checks: none 12463s E 12463s E CPU dispatch : 12463s E Requested : 'max -xop -fma4' 12463s E Enabled : none 12463s E Generated : none 12463s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12463s 12463s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12463s d = '/tmp/tmpmzdm58dt' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s err = None 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s kw = {} 12463s module_name = 'test_array_from_pyobj_ext' 12463s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12463s p = 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12463s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-2seq-C-ro] _______ 12463s 12463s def setup_module(): 12463s """ 12463s Build the required testing extension module 12463s 12463s """ 12463s global wrap 12463s 12463s # Check compiler availability first 12463s if not util.has_c_compiler(): 12463s pytest.skip("No C compiler available") 12463s 12463s if wrap is None: 12463s config_code = """ 12463s config.add_extension('test_array_from_pyobj_ext', 12463s sources=['wrapmodule.c', 'fortranobject.c'], 12463s define_macros=[]) 12463s """ 12463s d = os.path.dirname(__file__) 12463s src = [ 12463s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12463s util.getpath("src", "fortranobject.c"), 12463s util.getpath("src", "fortranobject.h"), 12463s ] 12463s > wrap = util.build_module_distutils(src, config_code, 12463s "test_array_from_pyobj_ext") 12463s 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12463s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12463s memo[key] = func(*a, **kw) 12463s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12463s func = 12463s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12463s kw = {} 12463s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s 12463s @_memoize 12463s def build_module_distutils(source_files, config_code, module_name, **kw): 12463s """ 12463s Build a module via distutils and import it. 12463s 12463s """ 12463s d = get_module_dir() 12463s 12463s # Copy files 12463s dst_sources = [] 12463s for fn in source_files: 12463s if not os.path.isfile(fn): 12463s raise RuntimeError("%s is not a file" % fn) 12463s dst = os.path.join(d, os.path.basename(fn)) 12463s shutil.copyfile(fn, dst) 12463s dst_sources.append(dst) 12463s 12463s # Build script 12463s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12463s 12463s code = fr""" 12463s import os 12463s import sys 12463s sys.path = {repr(sys.path)} 12463s 12463s def configuration(parent_name='',top_path=None): 12463s from numpy.distutils.misc_util import Configuration 12463s config = Configuration('', parent_name, top_path) 12463s {config_code} 12463s return config 12463s 12463s if __name__ == "__main__": 12463s from numpy.distutils.core import setup 12463s setup(configuration=configuration) 12463s """ 12463s script = os.path.join(d, get_temp_module_name() + ".py") 12463s dst_sources.append(script) 12463s with open(script, "wb") as f: 12463s f.write(asbytes(code)) 12463s 12463s # Build 12463s cwd = os.getcwd() 12463s try: 12463s os.chdir(d) 12463s cmd = [sys.executable, script, "build_ext", "-i"] 12463s p = subprocess.Popen(cmd, 12463s stdout=subprocess.PIPE, 12463s stderr=subprocess.STDOUT) 12463s out, err = p.communicate() 12463s if p.returncode != 0: 12463s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12463s (cmd[4:], asstr(out))) 12463s E RuntimeError: Running distutils build failed: [] 12463s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12463s E 12463s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12463s E of the deprecation of `distutils` itself. It will be removed for 12463s E Python >= 3.12. For older Python versions it will remain present. 12463s E It is recommended to use `setuptools < 60.0` for those Python versions. 12463s E For more details, see: 12463s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12463s E 12463s E 12463s E from numpy.distutils.core import setup 12463s E running build_ext 12463s E running build_src 12463s E INFO: build_src 12463s E INFO: building extension "test_array_from_pyobj_ext" sources 12463s E INFO: build_src: building npy-pkg config files 12463s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12463s E !! 12463s E 12463s E ******************************************************************************** 12463s E Please avoid running ``setup.py`` directly. 12463s E Instead, use pypa/build, pypa/installer or other 12463s E standards-based tools. 12463s E 12463s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12463s E ******************************************************************************** 12463s E 12463s E !! 12463s E self.initialize_options() 12463s E INFO: customize UnixCCompiler 12463s E INFO: customize UnixCCompiler using build_ext 12463s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/tmp 12463s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/usr 12463s E creating /tmp/tmpvt806usq/usr/lib 12463s E creating /tmp/tmpvt806usq/usr/lib/python3 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=native' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-O3' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-Werror' 12463s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12463s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-vfpv4' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=armv8.2-a+fp16' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12463s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12463s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12463s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12463s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12463s E INFO: building 'test_array_from_pyobj_ext' extension 12463s E INFO: compiling C sources 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12463s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12463s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12463s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12463s E 14 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E In file included from fortranobject.c:2: 12463s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12463s E 7 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12463s E INFO: 12463s E ########### EXT COMPILER OPTIMIZATION ########### 12463s E INFO: Platform : 12463s E Architecture: armhf 12463s E Compiler : gcc 12463s E 12463s E CPU baseline : 12463s E Requested : 'min' 12463s E Enabled : none 12463s E Flags : none 12463s E Extra checks: none 12463s E 12463s E CPU dispatch : 12463s E Requested : 'max -xop -fma4' 12463s E Enabled : none 12463s E Generated : none 12463s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12463s 12463s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12463s d = '/tmp/tmpmzdm58dt' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s err = None 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s kw = {} 12463s module_name = 'test_array_from_pyobj_ext' 12463s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12463s p = 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12463s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-2seq-F-w] _______ 12463s 12463s def setup_module(): 12463s """ 12463s Build the required testing extension module 12463s 12463s """ 12463s global wrap 12463s 12463s # Check compiler availability first 12463s if not util.has_c_compiler(): 12463s pytest.skip("No C compiler available") 12463s 12463s if wrap is None: 12463s config_code = """ 12463s config.add_extension('test_array_from_pyobj_ext', 12463s sources=['wrapmodule.c', 'fortranobject.c'], 12463s define_macros=[]) 12463s """ 12463s d = os.path.dirname(__file__) 12463s src = [ 12463s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12463s util.getpath("src", "fortranobject.c"), 12463s util.getpath("src", "fortranobject.h"), 12463s ] 12463s > wrap = util.build_module_distutils(src, config_code, 12463s "test_array_from_pyobj_ext") 12463s 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12463s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12463s memo[key] = func(*a, **kw) 12463s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12463s func = 12463s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12463s kw = {} 12463s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s 12463s @_memoize 12463s def build_module_distutils(source_files, config_code, module_name, **kw): 12463s """ 12463s Build a module via distutils and import it. 12463s 12463s """ 12463s d = get_module_dir() 12463s 12463s # Copy files 12463s dst_sources = [] 12463s for fn in source_files: 12463s if not os.path.isfile(fn): 12463s raise RuntimeError("%s is not a file" % fn) 12463s dst = os.path.join(d, os.path.basename(fn)) 12463s shutil.copyfile(fn, dst) 12463s dst_sources.append(dst) 12463s 12463s # Build script 12463s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12463s 12463s code = fr""" 12463s import os 12463s import sys 12463s sys.path = {repr(sys.path)} 12463s 12463s def configuration(parent_name='',top_path=None): 12463s from numpy.distutils.misc_util import Configuration 12463s config = Configuration('', parent_name, top_path) 12463s {config_code} 12463s return config 12463s 12463s if __name__ == "__main__": 12463s from numpy.distutils.core import setup 12463s setup(configuration=configuration) 12463s """ 12463s script = os.path.join(d, get_temp_module_name() + ".py") 12463s dst_sources.append(script) 12463s with open(script, "wb") as f: 12463s f.write(asbytes(code)) 12463s 12463s # Build 12463s cwd = os.getcwd() 12463s try: 12463s os.chdir(d) 12463s cmd = [sys.executable, script, "build_ext", "-i"] 12463s p = subprocess.Popen(cmd, 12463s stdout=subprocess.PIPE, 12463s stderr=subprocess.STDOUT) 12463s out, err = p.communicate() 12463s if p.returncode != 0: 12463s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12463s (cmd[4:], asstr(out))) 12463s E RuntimeError: Running distutils build failed: [] 12463s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12463s E 12463s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12463s E of the deprecation of `distutils` itself. It will be removed for 12463s E Python >= 3.12. For older Python versions it will remain present. 12463s E It is recommended to use `setuptools < 60.0` for those Python versions. 12463s E For more details, see: 12463s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12463s E 12463s E 12463s E from numpy.distutils.core import setup 12463s E running build_ext 12463s E running build_src 12463s E INFO: build_src 12463s E INFO: building extension "test_array_from_pyobj_ext" sources 12463s E INFO: build_src: building npy-pkg config files 12463s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12463s E !! 12463s E 12463s E ******************************************************************************** 12463s E Please avoid running ``setup.py`` directly. 12463s E Instead, use pypa/build, pypa/installer or other 12463s E standards-based tools. 12463s E 12463s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12463s E ******************************************************************************** 12463s E 12463s E !! 12463s E self.initialize_options() 12463s E INFO: customize UnixCCompiler 12463s E INFO: customize UnixCCompiler using build_ext 12463s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/tmp 12463s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/usr 12463s E creating /tmp/tmpvt806usq/usr/lib 12463s E creating /tmp/tmpvt806usq/usr/lib/python3 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=native' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-O3' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-Werror' 12463s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12463s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-vfpv4' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=armv8.2-a+fp16' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12463s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12463s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12463s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12463s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12463s E INFO: building 'test_array_from_pyobj_ext' extension 12463s E INFO: compiling C sources 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12463s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12463s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12463s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12463s E 14 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E In file included from fortranobject.c:2: 12463s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12463s E 7 | #include 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12463s E INFO: 12463s E ########### EXT COMPILER OPTIMIZATION ########### 12463s E INFO: Platform : 12463s E Architecture: armhf 12463s E Compiler : gcc 12463s E 12463s E CPU baseline : 12463s E Requested : 'min' 12463s E Enabled : none 12463s E Flags : none 12463s E Extra checks: none 12463s E 12463s E CPU dispatch : 12463s E Requested : 'max -xop -fma4' 12463s E Enabled : none 12463s E Generated : none 12463s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12463s 12463s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12463s d = '/tmp/tmpmzdm58dt' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s err = None 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s kw = {} 12463s module_name = 'test_array_from_pyobj_ext' 12463s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12463s p = 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12463s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-2seq-F-ro] _______ 12463s 12463s def setup_module(): 12463s """ 12463s Build the required testing extension module 12463s 12463s """ 12463s global wrap 12463s 12463s # Check compiler availability first 12463s if not util.has_c_compiler(): 12463s pytest.skip("No C compiler available") 12463s 12463s if wrap is None: 12463s config_code = """ 12463s config.add_extension('test_array_from_pyobj_ext', 12463s sources=['wrapmodule.c', 'fortranobject.c'], 12463s define_macros=[]) 12463s """ 12463s d = os.path.dirname(__file__) 12463s src = [ 12463s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12463s util.getpath("src", "fortranobject.c"), 12463s util.getpath("src", "fortranobject.h"), 12463s ] 12463s > wrap = util.build_module_distutils(src, config_code, 12463s "test_array_from_pyobj_ext") 12463s 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12463s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12463s memo[key] = func(*a, **kw) 12463s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12463s func = 12463s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12463s kw = {} 12463s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12463s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12463s 12463s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12463s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12463s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12463s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12463s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12463s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12463s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12463s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12463s 12463s @_memoize 12463s def build_module_distutils(source_files, config_code, module_name, **kw): 12463s """ 12463s Build a module via distutils and import it. 12463s 12463s """ 12463s d = get_module_dir() 12463s 12463s # Copy files 12463s dst_sources = [] 12463s for fn in source_files: 12463s if not os.path.isfile(fn): 12463s raise RuntimeError("%s is not a file" % fn) 12463s dst = os.path.join(d, os.path.basename(fn)) 12463s shutil.copyfile(fn, dst) 12463s dst_sources.append(dst) 12463s 12463s # Build script 12463s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12463s 12463s code = fr""" 12463s import os 12463s import sys 12463s sys.path = {repr(sys.path)} 12463s 12463s def configuration(parent_name='',top_path=None): 12463s from numpy.distutils.misc_util import Configuration 12463s config = Configuration('', parent_name, top_path) 12463s {config_code} 12463s return config 12463s 12463s if __name__ == "__main__": 12463s from numpy.distutils.core import setup 12463s setup(configuration=configuration) 12463s """ 12463s script = os.path.join(d, get_temp_module_name() + ".py") 12463s dst_sources.append(script) 12463s with open(script, "wb") as f: 12463s f.write(asbytes(code)) 12463s 12463s # Build 12463s cwd = os.getcwd() 12463s try: 12463s os.chdir(d) 12463s cmd = [sys.executable, script, "build_ext", "-i"] 12463s p = subprocess.Popen(cmd, 12463s stdout=subprocess.PIPE, 12463s stderr=subprocess.STDOUT) 12463s out, err = p.communicate() 12463s if p.returncode != 0: 12463s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12463s (cmd[4:], asstr(out))) 12463s E RuntimeError: Running distutils build failed: [] 12463s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12463s E 12463s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12463s E of the deprecation of `distutils` itself. It will be removed for 12463s E Python >= 3.12. For older Python versions it will remain present. 12463s E It is recommended to use `setuptools < 60.0` for those Python versions. 12463s E For more details, see: 12463s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12463s E 12463s E 12463s E from numpy.distutils.core import setup 12463s E running build_ext 12463s E running build_src 12463s E INFO: build_src 12463s E INFO: building extension "test_array_from_pyobj_ext" sources 12463s E INFO: build_src: building npy-pkg config files 12463s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12463s E !! 12463s E 12463s E ******************************************************************************** 12463s E Please avoid running ``setup.py`` directly. 12463s E Instead, use pypa/build, pypa/installer or other 12463s E standards-based tools. 12463s E 12463s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12463s E ******************************************************************************** 12463s E 12463s E !! 12463s E self.initialize_options() 12463s E INFO: customize UnixCCompiler 12463s E INFO: customize UnixCCompiler using build_ext 12463s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/tmp 12463s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E creating /tmp/tmpvt806usq/usr 12463s E creating /tmp/tmpvt806usq/usr/lib 12463s E creating /tmp/tmpvt806usq/usr/lib/python3 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12463s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-march=native' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-O3' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-Werror' 12463s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12463s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12463s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon-vfpv4' 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12463s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12463s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12463s E 12463s E INFO: compile options: '-I/usr/include/python3.12 -c' 12463s E extra options: '-mfpu=neon -Werror' 12463s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12463s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12463s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12463s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12463s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12463s E 9 | # include_next 12463s E | ^~~~~~~~~~ 12463s E compilation terminated. 12463s E 12463s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-23seq-C-w] _______ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-23seq-C-ro] ______ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-23seq-F-w] _______ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-23seq-F-ro] ______ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[BOOL] ___________ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[BOOL] __________ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[BOOL] __________ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[BOOL] _____ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[BOOL] _________ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12464s d = '/tmp/tmpmzdm58dt' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s err = None 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s kw = {} 12464s module_name = 'test_array_from_pyobj_ext' 12464s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12464s p = 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12464s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[BOOL] _______ 12464s 12464s def setup_module(): 12464s """ 12464s Build the required testing extension module 12464s 12464s """ 12464s global wrap 12464s 12464s # Check compiler availability first 12464s if not util.has_c_compiler(): 12464s pytest.skip("No C compiler available") 12464s 12464s if wrap is None: 12464s config_code = """ 12464s config.add_extension('test_array_from_pyobj_ext', 12464s sources=['wrapmodule.c', 'fortranobject.c'], 12464s define_macros=[]) 12464s """ 12464s d = os.path.dirname(__file__) 12464s src = [ 12464s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12464s util.getpath("src", "fortranobject.c"), 12464s util.getpath("src", "fortranobject.h"), 12464s ] 12464s > wrap = util.build_module_distutils(src, config_code, 12464s "test_array_from_pyobj_ext") 12464s 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12464s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12464s memo[key] = func(*a, **kw) 12464s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12464s func = 12464s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12464s kw = {} 12464s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12464s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12464s 12464s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12464s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12464s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12464s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12464s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12464s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12464s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12464s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12464s 12464s @_memoize 12464s def build_module_distutils(source_files, config_code, module_name, **kw): 12464s """ 12464s Build a module via distutils and import it. 12464s 12464s """ 12464s d = get_module_dir() 12464s 12464s # Copy files 12464s dst_sources = [] 12464s for fn in source_files: 12464s if not os.path.isfile(fn): 12464s raise RuntimeError("%s is not a file" % fn) 12464s dst = os.path.join(d, os.path.basename(fn)) 12464s shutil.copyfile(fn, dst) 12464s dst_sources.append(dst) 12464s 12464s # Build script 12464s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12464s 12464s code = fr""" 12464s import os 12464s import sys 12464s sys.path = {repr(sys.path)} 12464s 12464s def configuration(parent_name='',top_path=None): 12464s from numpy.distutils.misc_util import Configuration 12464s config = Configuration('', parent_name, top_path) 12464s {config_code} 12464s return config 12464s 12464s if __name__ == "__main__": 12464s from numpy.distutils.core import setup 12464s setup(configuration=configuration) 12464s """ 12464s script = os.path.join(d, get_temp_module_name() + ".py") 12464s dst_sources.append(script) 12464s with open(script, "wb") as f: 12464s f.write(asbytes(code)) 12464s 12464s # Build 12464s cwd = os.getcwd() 12464s try: 12464s os.chdir(d) 12464s cmd = [sys.executable, script, "build_ext", "-i"] 12464s p = subprocess.Popen(cmd, 12464s stdout=subprocess.PIPE, 12464s stderr=subprocess.STDOUT) 12464s out, err = p.communicate() 12464s if p.returncode != 0: 12464s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12464s (cmd[4:], asstr(out))) 12464s E RuntimeError: Running distutils build failed: [] 12464s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12464s E 12464s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12464s E of the deprecation of `distutils` itself. It will be removed for 12464s E Python >= 3.12. For older Python versions it will remain present. 12464s E It is recommended to use `setuptools < 60.0` for those Python versions. 12464s E For more details, see: 12464s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12464s E 12464s E 12464s E from numpy.distutils.core import setup 12464s E running build_ext 12464s E running build_src 12464s E INFO: build_src 12464s E INFO: building extension "test_array_from_pyobj_ext" sources 12464s E INFO: build_src: building npy-pkg config files 12464s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12464s E !! 12464s E 12464s E ******************************************************************************** 12464s E Please avoid running ``setup.py`` directly. 12464s E Instead, use pypa/build, pypa/installer or other 12464s E standards-based tools. 12464s E 12464s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12464s E ******************************************************************************** 12464s E 12464s E !! 12464s E self.initialize_options() 12464s E INFO: customize UnixCCompiler 12464s E INFO: customize UnixCCompiler using build_ext 12464s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/tmp 12464s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E creating /tmp/tmpvt806usq/usr 12464s E creating /tmp/tmpvt806usq/usr/lib 12464s E creating /tmp/tmpvt806usq/usr/lib/python3 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12464s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=native' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-O3' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-Werror' 12464s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12464s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-vfpv4' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12464s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-march=armv8.2-a+fp16' 12464s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/include/python3.12 -c' 12464s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12464s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12464s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12464s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12464s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12464s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12464s E 9 | # include_next 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E 12464s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12464s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12464s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12464s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12464s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12464s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12464s E INFO: building 'test_array_from_pyobj_ext' extension 12464s E INFO: compiling C sources 12464s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12464s E 12464s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12464s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12464s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12464s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12464s E 14 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E In file included from fortranobject.c:2: 12464s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12464s E 7 | #include 12464s E | ^~~~~~~~~~ 12464s E compilation terminated. 12464s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12464s E INFO: 12464s E ########### EXT COMPILER OPTIMIZATION ########### 12464s E INFO: Platform : 12464s E Architecture: armhf 12464s E Compiler : gcc 12464s E 12464s E CPU baseline : 12464s E Requested : 'min' 12464s E Enabled : none 12464s E Flags : none 12464s E Extra checks: none 12464s E 12464s E CPU dispatch : 12464s E Requested : 'max -xop -fma4' 12464s E Enabled : none 12464s E Generated : none 12464s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12464s 12464s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[BOOL] ______ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[BOOL] ______ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[BOOL] ____ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[BOOL] ____ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[BOOL] _____ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[BOOL] _ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[BOOL] __________ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s _____________ ERROR at setup of TestSharedMemory.test_hidden[BOOL] _____________ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s _________ ERROR at setup of TestSharedMemory.test_optional_none[BOOL] __________ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[BOOL] _______ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12465s E INFO: build_src: building npy-pkg config files 12465s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12465s E !! 12465s E 12465s E ******************************************************************************** 12465s E Please avoid running ``setup.py`` directly. 12465s E Instead, use pypa/build, pypa/installer or other 12465s E standards-based tools. 12465s E 12465s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12465s E ******************************************************************************** 12465s E 12465s E !! 12465s E self.initialize_options() 12465s E INFO: customize UnixCCompiler 12465s E INFO: customize UnixCCompiler using build_ext 12465s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/tmp 12465s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E creating /tmp/tmpvt806usq/usr 12465s E creating /tmp/tmpvt806usq/usr/lib 12465s E creating /tmp/tmpvt806usq/usr/lib/python3 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12465s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=native' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-O3' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-Werror' 12465s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12465s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-vfpv4' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12465s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-march=armv8.2-a+fp16' 12465s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/include/python3.12 -c' 12465s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12465s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12465s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12465s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12465s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12465s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12465s E 9 | # include_next 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E 12465s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12465s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12465s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12465s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12465s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12465s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12465s E INFO: building 'test_array_from_pyobj_ext' extension 12465s E INFO: compiling C sources 12465s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12465s E 12465s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12465s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12465s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12465s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12465s E 14 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E In file included from fortranobject.c:2: 12465s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12465s E 7 | #include 12465s E | ^~~~~~~~~~ 12465s E compilation terminated. 12465s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12465s E INFO: 12465s E ########### EXT COMPILER OPTIMIZATION ########### 12465s E INFO: Platform : 12465s E Architecture: armhf 12465s E Compiler : gcc 12465s E 12465s E CPU baseline : 12465s E Requested : 'min' 12465s E Enabled : none 12465s E Flags : none 12465s E Extra checks: none 12465s E 12465s E CPU dispatch : 12465s E Requested : 'max -xop -fma4' 12465s E Enabled : none 12465s E Generated : none 12465s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12465s 12465s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12465s d = '/tmp/tmpmzdm58dt' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s err = None 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s kw = {} 12465s module_name = 'test_array_from_pyobj_ext' 12465s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12465s p = 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12465s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[BOOL] _______ 12465s 12465s def setup_module(): 12465s """ 12465s Build the required testing extension module 12465s 12465s """ 12465s global wrap 12465s 12465s # Check compiler availability first 12465s if not util.has_c_compiler(): 12465s pytest.skip("No C compiler available") 12465s 12465s if wrap is None: 12465s config_code = """ 12465s config.add_extension('test_array_from_pyobj_ext', 12465s sources=['wrapmodule.c', 'fortranobject.c'], 12465s define_macros=[]) 12465s """ 12465s d = os.path.dirname(__file__) 12465s src = [ 12465s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12465s util.getpath("src", "fortranobject.c"), 12465s util.getpath("src", "fortranobject.h"), 12465s ] 12465s > wrap = util.build_module_distutils(src, config_code, 12465s "test_array_from_pyobj_ext") 12465s 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12465s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12465s memo[key] = func(*a, **kw) 12465s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12465s func = 12465s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12465s kw = {} 12465s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12465s 12465s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12465s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12465s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12465s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12465s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12465s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12465s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12465s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12465s 12465s @_memoize 12465s def build_module_distutils(source_files, config_code, module_name, **kw): 12465s """ 12465s Build a module via distutils and import it. 12465s 12465s """ 12465s d = get_module_dir() 12465s 12465s # Copy files 12465s dst_sources = [] 12465s for fn in source_files: 12465s if not os.path.isfile(fn): 12465s raise RuntimeError("%s is not a file" % fn) 12465s dst = os.path.join(d, os.path.basename(fn)) 12465s shutil.copyfile(fn, dst) 12465s dst_sources.append(dst) 12465s 12465s # Build script 12465s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12465s 12465s code = fr""" 12465s import os 12465s import sys 12465s sys.path = {repr(sys.path)} 12465s 12465s def configuration(parent_name='',top_path=None): 12465s from numpy.distutils.misc_util import Configuration 12465s config = Configuration('', parent_name, top_path) 12465s {config_code} 12465s return config 12465s 12465s if __name__ == "__main__": 12465s from numpy.distutils.core import setup 12465s setup(configuration=configuration) 12465s """ 12465s script = os.path.join(d, get_temp_module_name() + ".py") 12465s dst_sources.append(script) 12465s with open(script, "wb") as f: 12465s f.write(asbytes(code)) 12465s 12465s # Build 12465s cwd = os.getcwd() 12465s try: 12465s os.chdir(d) 12465s cmd = [sys.executable, script, "build_ext", "-i"] 12465s p = subprocess.Popen(cmd, 12465s stdout=subprocess.PIPE, 12465s stderr=subprocess.STDOUT) 12465s out, err = p.communicate() 12465s if p.returncode != 0: 12465s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12465s (cmd[4:], asstr(out))) 12465s E RuntimeError: Running distutils build failed: [] 12465s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12465s E 12465s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12465s E of the deprecation of `distutils` itself. It will be removed for 12465s E Python >= 3.12. For older Python versions it will remain present. 12465s E It is recommended to use `setuptools < 60.0` for those Python versions. 12465s E For more details, see: 12465s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12465s E 12465s E 12465s E from numpy.distutils.core import setup 12465s E running build_ext 12465s E running build_src 12465s E INFO: build_src 12465s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s ____________ ERROR at setup of TestSharedMemory.test_inplace[BOOL] _____________ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[BOOL] ______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[BYTE] __________ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[BYTE] ________ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-2seq-C-w] _______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-2seq-C-ro] _______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-2seq-F-w] _______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-2seq-F-ro] _______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-23seq-C-w] _______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-23seq-C-ro] ______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-23seq-F-w] _______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12466s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12466s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12466s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12466s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12466s E INFO: building 'test_array_from_pyobj_ext' extension 12466s E INFO: compiling C sources 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12466s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12466s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12466s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12466s E 14 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E In file included from fortranobject.c:2: 12466s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12466s E 7 | #include 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12466s E INFO: 12466s E ########### EXT COMPILER OPTIMIZATION ########### 12466s E INFO: Platform : 12466s E Architecture: armhf 12466s E Compiler : gcc 12466s E 12466s E CPU baseline : 12466s E Requested : 'min' 12466s E Enabled : none 12466s E Flags : none 12466s E Extra checks: none 12466s E 12466s E CPU dispatch : 12466s E Requested : 'max -xop -fma4' 12466s E Enabled : none 12466s E Generated : none 12466s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12466s 12466s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12466s d = '/tmp/tmpmzdm58dt' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s err = None 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s kw = {} 12466s module_name = 'test_array_from_pyobj_ext' 12466s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12466s p = 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12466s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-23seq-F-ro] ______ 12466s 12466s def setup_module(): 12466s """ 12466s Build the required testing extension module 12466s 12466s """ 12466s global wrap 12466s 12466s # Check compiler availability first 12466s if not util.has_c_compiler(): 12466s pytest.skip("No C compiler available") 12466s 12466s if wrap is None: 12466s config_code = """ 12466s config.add_extension('test_array_from_pyobj_ext', 12466s sources=['wrapmodule.c', 'fortranobject.c'], 12466s define_macros=[]) 12466s """ 12466s d = os.path.dirname(__file__) 12466s src = [ 12466s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12466s util.getpath("src", "fortranobject.c"), 12466s util.getpath("src", "fortranobject.h"), 12466s ] 12466s > wrap = util.build_module_distutils(src, config_code, 12466s "test_array_from_pyobj_ext") 12466s 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12466s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12466s memo[key] = func(*a, **kw) 12466s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12466s func = 12466s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12466s kw = {} 12466s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12466s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12466s 12466s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12466s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12466s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12466s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12466s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12466s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12466s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12466s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12466s 12466s @_memoize 12466s def build_module_distutils(source_files, config_code, module_name, **kw): 12466s """ 12466s Build a module via distutils and import it. 12466s 12466s """ 12466s d = get_module_dir() 12466s 12466s # Copy files 12466s dst_sources = [] 12466s for fn in source_files: 12466s if not os.path.isfile(fn): 12466s raise RuntimeError("%s is not a file" % fn) 12466s dst = os.path.join(d, os.path.basename(fn)) 12466s shutil.copyfile(fn, dst) 12466s dst_sources.append(dst) 12466s 12466s # Build script 12466s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12466s 12466s code = fr""" 12466s import os 12466s import sys 12466s sys.path = {repr(sys.path)} 12466s 12466s def configuration(parent_name='',top_path=None): 12466s from numpy.distutils.misc_util import Configuration 12466s config = Configuration('', parent_name, top_path) 12466s {config_code} 12466s return config 12466s 12466s if __name__ == "__main__": 12466s from numpy.distutils.core import setup 12466s setup(configuration=configuration) 12466s """ 12466s script = os.path.join(d, get_temp_module_name() + ".py") 12466s dst_sources.append(script) 12466s with open(script, "wb") as f: 12466s f.write(asbytes(code)) 12466s 12466s # Build 12466s cwd = os.getcwd() 12466s try: 12466s os.chdir(d) 12466s cmd = [sys.executable, script, "build_ext", "-i"] 12466s p = subprocess.Popen(cmd, 12466s stdout=subprocess.PIPE, 12466s stderr=subprocess.STDOUT) 12466s out, err = p.communicate() 12466s if p.returncode != 0: 12466s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12466s (cmd[4:], asstr(out))) 12466s E RuntimeError: Running distutils build failed: [] 12466s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12466s E 12466s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12466s E of the deprecation of `distutils` itself. It will be removed for 12466s E Python >= 3.12. For older Python versions it will remain present. 12466s E It is recommended to use `setuptools < 60.0` for those Python versions. 12466s E For more details, see: 12466s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12466s E 12466s E 12466s E from numpy.distutils.core import setup 12466s E running build_ext 12466s E running build_src 12466s E INFO: build_src 12466s E INFO: building extension "test_array_from_pyobj_ext" sources 12466s E INFO: build_src: building npy-pkg config files 12466s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12466s E !! 12466s E 12466s E ******************************************************************************** 12466s E Please avoid running ``setup.py`` directly. 12466s E Instead, use pypa/build, pypa/installer or other 12466s E standards-based tools. 12466s E 12466s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12466s E ******************************************************************************** 12466s E 12466s E !! 12466s E self.initialize_options() 12466s E INFO: customize UnixCCompiler 12466s E INFO: customize UnixCCompiler using build_ext 12466s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/tmp 12466s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E creating /tmp/tmpvt806usq/usr 12466s E creating /tmp/tmpvt806usq/usr/lib 12466s E creating /tmp/tmpvt806usq/usr/lib/python3 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12466s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=native' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-O3' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-Werror' 12466s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12466s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-vfpv4' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon -Werror' 12466s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12466s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12466s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12466s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12466s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12466s E 9 | # include_next 12466s E | ^~~~~~~~~~ 12466s E compilation terminated. 12466s E 12466s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12466s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12466s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12466s E 12466s E INFO: compile options: '-I/usr/include/python3.12 -c' 12466s E extra options: '-march=armv8.2-a+fp16' 12466s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[BYTE] ___________ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[BYTE] __________ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[BYTE] __________ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[BYTE] _____ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[BYTE] _________ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[BYTE] _______ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[BYTE] ______ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[BYTE] ______ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12467s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12467s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12467s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12467s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12467s E INFO: building 'test_array_from_pyobj_ext' extension 12467s E INFO: compiling C sources 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12467s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12467s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12467s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12467s E 14 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E In file included from fortranobject.c:2: 12467s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12467s E 7 | #include 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12467s E INFO: 12467s E ########### EXT COMPILER OPTIMIZATION ########### 12467s E INFO: Platform : 12467s E Architecture: armhf 12467s E Compiler : gcc 12467s E 12467s E CPU baseline : 12467s E Requested : 'min' 12467s E Enabled : none 12467s E Flags : none 12467s E Extra checks: none 12467s E 12467s E CPU dispatch : 12467s E Requested : 'max -xop -fma4' 12467s E Enabled : none 12467s E Generated : none 12467s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12467s 12467s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12467s d = '/tmp/tmpmzdm58dt' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s err = None 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s kw = {} 12467s module_name = 'test_array_from_pyobj_ext' 12467s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12467s p = 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12467s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[BYTE] ____ 12467s 12467s def setup_module(): 12467s """ 12467s Build the required testing extension module 12467s 12467s """ 12467s global wrap 12467s 12467s # Check compiler availability first 12467s if not util.has_c_compiler(): 12467s pytest.skip("No C compiler available") 12467s 12467s if wrap is None: 12467s config_code = """ 12467s config.add_extension('test_array_from_pyobj_ext', 12467s sources=['wrapmodule.c', 'fortranobject.c'], 12467s define_macros=[]) 12467s """ 12467s d = os.path.dirname(__file__) 12467s src = [ 12467s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12467s util.getpath("src", "fortranobject.c"), 12467s util.getpath("src", "fortranobject.h"), 12467s ] 12467s > wrap = util.build_module_distutils(src, config_code, 12467s "test_array_from_pyobj_ext") 12467s 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12467s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12467s memo[key] = func(*a, **kw) 12467s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12467s func = 12467s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12467s kw = {} 12467s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12467s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12467s 12467s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12467s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12467s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12467s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12467s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12467s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12467s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12467s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12467s 12467s @_memoize 12467s def build_module_distutils(source_files, config_code, module_name, **kw): 12467s """ 12467s Build a module via distutils and import it. 12467s 12467s """ 12467s d = get_module_dir() 12467s 12467s # Copy files 12467s dst_sources = [] 12467s for fn in source_files: 12467s if not os.path.isfile(fn): 12467s raise RuntimeError("%s is not a file" % fn) 12467s dst = os.path.join(d, os.path.basename(fn)) 12467s shutil.copyfile(fn, dst) 12467s dst_sources.append(dst) 12467s 12467s # Build script 12467s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12467s 12467s code = fr""" 12467s import os 12467s import sys 12467s sys.path = {repr(sys.path)} 12467s 12467s def configuration(parent_name='',top_path=None): 12467s from numpy.distutils.misc_util import Configuration 12467s config = Configuration('', parent_name, top_path) 12467s {config_code} 12467s return config 12467s 12467s if __name__ == "__main__": 12467s from numpy.distutils.core import setup 12467s setup(configuration=configuration) 12467s """ 12467s script = os.path.join(d, get_temp_module_name() + ".py") 12467s dst_sources.append(script) 12467s with open(script, "wb") as f: 12467s f.write(asbytes(code)) 12467s 12467s # Build 12467s cwd = os.getcwd() 12467s try: 12467s os.chdir(d) 12467s cmd = [sys.executable, script, "build_ext", "-i"] 12467s p = subprocess.Popen(cmd, 12467s stdout=subprocess.PIPE, 12467s stderr=subprocess.STDOUT) 12467s out, err = p.communicate() 12467s if p.returncode != 0: 12467s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12467s (cmd[4:], asstr(out))) 12467s E RuntimeError: Running distutils build failed: [] 12467s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12467s E 12467s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12467s E of the deprecation of `distutils` itself. It will be removed for 12467s E Python >= 3.12. For older Python versions it will remain present. 12467s E It is recommended to use `setuptools < 60.0` for those Python versions. 12467s E For more details, see: 12467s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12467s E 12467s E 12467s E from numpy.distutils.core import setup 12467s E running build_ext 12467s E running build_src 12467s E INFO: build_src 12467s E INFO: building extension "test_array_from_pyobj_ext" sources 12467s E INFO: build_src: building npy-pkg config files 12467s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12467s E !! 12467s E 12467s E ******************************************************************************** 12467s E Please avoid running ``setup.py`` directly. 12467s E Instead, use pypa/build, pypa/installer or other 12467s E standards-based tools. 12467s E 12467s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12467s E ******************************************************************************** 12467s E 12467s E !! 12467s E self.initialize_options() 12467s E INFO: customize UnixCCompiler 12467s E INFO: customize UnixCCompiler using build_ext 12467s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/tmp 12467s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E creating /tmp/tmpvt806usq/usr 12467s E creating /tmp/tmpvt806usq/usr/lib 12467s E creating /tmp/tmpvt806usq/usr/lib/python3 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12467s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=native' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-O3' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-Werror' 12467s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12467s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-vfpv4' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12467s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-march=armv8.2-a+fp16' 12467s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12467s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12467s E 12467s E INFO: compile options: '-I/usr/include/python3.12 -c' 12467s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12467s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12467s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12467s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12467s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12467s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12467s E 9 | # include_next 12467s E | ^~~~~~~~~~ 12467s E compilation terminated. 12467s E 12467s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12467s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[BYTE] ____ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[BYTE] _____ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[BYTE] _ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[BYTE] __________ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s _____________ ERROR at setup of TestSharedMemory.test_hidden[BYTE] _____________ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s _________ ERROR at setup of TestSharedMemory.test_optional_none[BYTE] __________ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[BYTE] _______ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[BYTE] _______ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s ____________ ERROR at setup of TestSharedMemory.test_inplace[BYTE] _____________ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12468s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12468s 12468s code = fr""" 12468s import os 12468s import sys 12468s sys.path = {repr(sys.path)} 12468s 12468s def configuration(parent_name='',top_path=None): 12468s from numpy.distutils.misc_util import Configuration 12468s config = Configuration('', parent_name, top_path) 12468s {config_code} 12468s return config 12468s 12468s if __name__ == "__main__": 12468s from numpy.distutils.core import setup 12468s setup(configuration=configuration) 12468s """ 12468s script = os.path.join(d, get_temp_module_name() + ".py") 12468s dst_sources.append(script) 12468s with open(script, "wb") as f: 12468s f.write(asbytes(code)) 12468s 12468s # Build 12468s cwd = os.getcwd() 12468s try: 12468s os.chdir(d) 12468s cmd = [sys.executable, script, "build_ext", "-i"] 12468s p = subprocess.Popen(cmd, 12468s stdout=subprocess.PIPE, 12468s stderr=subprocess.STDOUT) 12468s out, err = p.communicate() 12468s if p.returncode != 0: 12468s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12468s (cmd[4:], asstr(out))) 12468s E RuntimeError: Running distutils build failed: [] 12468s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12468s E 12468s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12468s E of the deprecation of `distutils` itself. It will be removed for 12468s E Python >= 3.12. For older Python versions it will remain present. 12468s E It is recommended to use `setuptools < 60.0` for those Python versions. 12468s E For more details, see: 12468s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12468s E 12468s E 12468s E from numpy.distutils.core import setup 12468s E running build_ext 12468s E running build_src 12468s E INFO: build_src 12468s E INFO: building extension "test_array_from_pyobj_ext" sources 12468s E INFO: build_src: building npy-pkg config files 12468s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12468s E !! 12468s E 12468s E ******************************************************************************** 12468s E Please avoid running ``setup.py`` directly. 12468s E Instead, use pypa/build, pypa/installer or other 12468s E standards-based tools. 12468s E 12468s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12468s E ******************************************************************************** 12468s E 12468s E !! 12468s E self.initialize_options() 12468s E INFO: customize UnixCCompiler 12468s E INFO: customize UnixCCompiler using build_ext 12468s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/tmp 12468s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E creating /tmp/tmpvt806usq/usr 12468s E creating /tmp/tmpvt806usq/usr/lib 12468s E creating /tmp/tmpvt806usq/usr/lib/python3 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12468s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=native' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-O3' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-Werror' 12468s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12468s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-vfpv4' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12468s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-march=armv8.2-a+fp16' 12468s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/include/python3.12 -c' 12468s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12468s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12468s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12468s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12468s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12468s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12468s E 9 | # include_next 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E 12468s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12468s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12468s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12468s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12468s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12468s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12468s E INFO: building 'test_array_from_pyobj_ext' extension 12468s E INFO: compiling C sources 12468s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12468s E 12468s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12468s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12468s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12468s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12468s E 14 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E In file included from fortranobject.c:2: 12468s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12468s E 7 | #include 12468s E | ^~~~~~~~~~ 12468s E compilation terminated. 12468s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12468s E INFO: 12468s E ########### EXT COMPILER OPTIMIZATION ########### 12468s E INFO: Platform : 12468s E Architecture: armhf 12468s E Compiler : gcc 12468s E 12468s E CPU baseline : 12468s E Requested : 'min' 12468s E Enabled : none 12468s E Flags : none 12468s E Extra checks: none 12468s E 12468s E CPU dispatch : 12468s E Requested : 'max -xop -fma4' 12468s E Enabled : none 12468s E Generated : none 12468s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12468s 12468s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12468s d = '/tmp/tmpmzdm58dt' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s err = None 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s kw = {} 12468s module_name = 'test_array_from_pyobj_ext' 12468s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12468s p = 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12468s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[BYTE] ______ 12468s 12468s def setup_module(): 12468s """ 12468s Build the required testing extension module 12468s 12468s """ 12468s global wrap 12468s 12468s # Check compiler availability first 12468s if not util.has_c_compiler(): 12468s pytest.skip("No C compiler available") 12468s 12468s if wrap is None: 12468s config_code = """ 12468s config.add_extension('test_array_from_pyobj_ext', 12468s sources=['wrapmodule.c', 'fortranobject.c'], 12468s define_macros=[]) 12468s """ 12468s d = os.path.dirname(__file__) 12468s src = [ 12468s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12468s util.getpath("src", "fortranobject.c"), 12468s util.getpath("src", "fortranobject.h"), 12468s ] 12468s > wrap = util.build_module_distutils(src, config_code, 12468s "test_array_from_pyobj_ext") 12468s 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12468s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12468s memo[key] = func(*a, **kw) 12468s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12468s func = 12468s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12468s kw = {} 12468s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12468s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12468s 12468s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12468s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12468s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12468s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12468s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12468s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12468s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12468s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12468s 12468s @_memoize 12468s def build_module_distutils(source_files, config_code, module_name, **kw): 12468s """ 12468s Build a module via distutils and import it. 12468s 12468s """ 12468s d = get_module_dir() 12468s 12468s # Copy files 12468s dst_sources = [] 12468s for fn in source_files: 12468s if not os.path.isfile(fn): 12468s raise RuntimeError("%s is not a file" % fn) 12468s dst = os.path.join(d, os.path.basename(fn)) 12468s shutil.copyfile(fn, dst) 12468s dst_sources.append(dst) 12468s 12468s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[UBYTE] __________ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[UBYTE] _______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-2seq-C-w] _______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-2seq-C-ro] ______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-2seq-F-w] _______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-2seq-F-ro] ______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-23seq-C-w] ______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-23seq-C-ro] ______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-23seq-F-w] ______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-23seq-F-ro] ______ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12469s E 12469s E 12469s E from numpy.distutils.core import setup 12469s E running build_ext 12469s E running build_src 12469s E INFO: build_src 12469s E INFO: building extension "test_array_from_pyobj_ext" sources 12469s E INFO: build_src: building npy-pkg config files 12469s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12469s E !! 12469s E 12469s E ******************************************************************************** 12469s E Please avoid running ``setup.py`` directly. 12469s E Instead, use pypa/build, pypa/installer or other 12469s E standards-based tools. 12469s E 12469s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12469s E ******************************************************************************** 12469s E 12469s E !! 12469s E self.initialize_options() 12469s E INFO: customize UnixCCompiler 12469s E INFO: customize UnixCCompiler using build_ext 12469s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/tmp 12469s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E creating /tmp/tmpvt806usq/usr 12469s E creating /tmp/tmpvt806usq/usr/lib 12469s E creating /tmp/tmpvt806usq/usr/lib/python3 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12469s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=native' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-O3' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-Werror' 12469s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12469s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-vfpv4' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12469s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-march=armv8.2-a+fp16' 12469s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/include/python3.12 -c' 12469s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12469s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12469s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12469s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12469s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12469s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12469s E 9 | # include_next 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E 12469s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12469s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12469s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12469s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12469s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12469s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12469s E INFO: building 'test_array_from_pyobj_ext' extension 12469s E INFO: compiling C sources 12469s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12469s E 12469s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12469s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12469s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12469s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12469s E 14 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E In file included from fortranobject.c:2: 12469s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12469s E 7 | #include 12469s E | ^~~~~~~~~~ 12469s E compilation terminated. 12469s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12469s E INFO: 12469s E ########### EXT COMPILER OPTIMIZATION ########### 12469s E INFO: Platform : 12469s E Architecture: armhf 12469s E Compiler : gcc 12469s E 12469s E CPU baseline : 12469s E Requested : 'min' 12469s E Enabled : none 12469s E Flags : none 12469s E Extra checks: none 12469s E 12469s E CPU dispatch : 12469s E Requested : 'max -xop -fma4' 12469s E Enabled : none 12469s E Generated : none 12469s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12469s 12469s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12469s d = '/tmp/tmpmzdm58dt' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s err = None 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s kw = {} 12469s module_name = 'test_array_from_pyobj_ext' 12469s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12469s p = 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12469s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[UBYTE] ___________ 12469s 12469s def setup_module(): 12469s """ 12469s Build the required testing extension module 12469s 12469s """ 12469s global wrap 12469s 12469s # Check compiler availability first 12469s if not util.has_c_compiler(): 12469s pytest.skip("No C compiler available") 12469s 12469s if wrap is None: 12469s config_code = """ 12469s config.add_extension('test_array_from_pyobj_ext', 12469s sources=['wrapmodule.c', 'fortranobject.c'], 12469s define_macros=[]) 12469s """ 12469s d = os.path.dirname(__file__) 12469s src = [ 12469s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12469s util.getpath("src", "fortranobject.c"), 12469s util.getpath("src", "fortranobject.h"), 12469s ] 12469s > wrap = util.build_module_distutils(src, config_code, 12469s "test_array_from_pyobj_ext") 12469s 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12469s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12469s memo[key] = func(*a, **kw) 12469s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12469s func = 12469s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12469s kw = {} 12469s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12469s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12469s 12469s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12469s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12469s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12469s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12469s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12469s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12469s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12469s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12469s 12469s @_memoize 12469s def build_module_distutils(source_files, config_code, module_name, **kw): 12469s """ 12469s Build a module via distutils and import it. 12469s 12469s """ 12469s d = get_module_dir() 12469s 12469s # Copy files 12469s dst_sources = [] 12469s for fn in source_files: 12469s if not os.path.isfile(fn): 12469s raise RuntimeError("%s is not a file" % fn) 12469s dst = os.path.join(d, os.path.basename(fn)) 12469s shutil.copyfile(fn, dst) 12469s dst_sources.append(dst) 12469s 12469s # Build script 12469s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12469s 12469s code = fr""" 12469s import os 12469s import sys 12469s sys.path = {repr(sys.path)} 12469s 12469s def configuration(parent_name='',top_path=None): 12469s from numpy.distutils.misc_util import Configuration 12469s config = Configuration('', parent_name, top_path) 12469s {config_code} 12469s return config 12469s 12469s if __name__ == "__main__": 12469s from numpy.distutils.core import setup 12469s setup(configuration=configuration) 12469s """ 12469s script = os.path.join(d, get_temp_module_name() + ".py") 12469s dst_sources.append(script) 12469s with open(script, "wb") as f: 12469s f.write(asbytes(code)) 12469s 12469s # Build 12469s cwd = os.getcwd() 12469s try: 12469s os.chdir(d) 12469s cmd = [sys.executable, script, "build_ext", "-i"] 12469s p = subprocess.Popen(cmd, 12469s stdout=subprocess.PIPE, 12469s stderr=subprocess.STDOUT) 12469s out, err = p.communicate() 12469s if p.returncode != 0: 12469s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12469s (cmd[4:], asstr(out))) 12469s E RuntimeError: Running distutils build failed: [] 12469s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12469s E 12469s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12469s E of the deprecation of `distutils` itself. It will be removed for 12469s E Python >= 3.12. For older Python versions it will remain present. 12469s E It is recommended to use `setuptools < 60.0` for those Python versions. 12469s E For more details, see: 12469s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12470s E 12470s E 12470s E from numpy.distutils.core import setup 12470s E running build_ext 12470s E running build_src 12470s E INFO: build_src 12470s E INFO: building extension "test_array_from_pyobj_ext" sources 12470s E INFO: build_src: building npy-pkg config files 12470s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12470s E !! 12470s E 12470s E ******************************************************************************** 12470s E Please avoid running ``setup.py`` directly. 12470s E Instead, use pypa/build, pypa/installer or other 12470s E standards-based tools. 12470s E 12470s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12470s E ******************************************************************************** 12470s E 12470s E !! 12470s E self.initialize_options() 12470s E INFO: customize UnixCCompiler 12470s E INFO: customize UnixCCompiler using build_ext 12470s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/tmp 12470s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/usr 12470s E creating /tmp/tmpvt806usq/usr/lib 12470s E creating /tmp/tmpvt806usq/usr/lib/python3 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=native' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-O3' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-Werror' 12470s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12470s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-vfpv4' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=armv8.2-a+fp16' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12470s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12470s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12470s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12470s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12470s E INFO: building 'test_array_from_pyobj_ext' extension 12470s E INFO: compiling C sources 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12470s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12470s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12470s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12470s E 14 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E In file included from fortranobject.c:2: 12470s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12470s E 7 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12470s E INFO: 12470s E ########### EXT COMPILER OPTIMIZATION ########### 12470s E INFO: Platform : 12470s E Architecture: armhf 12470s E Compiler : gcc 12470s E 12470s E CPU baseline : 12470s E Requested : 'min' 12470s E Enabled : none 12470s E Flags : none 12470s E Extra checks: none 12470s E 12470s E CPU dispatch : 12470s E Requested : 'max -xop -fma4' 12470s E Enabled : none 12470s E Generated : none 12470s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12470s 12470s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12470s d = '/tmp/tmpmzdm58dt' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s err = None 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s kw = {} 12470s module_name = 'test_array_from_pyobj_ext' 12470s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12470s p = 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12470s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[UBYTE] _________ 12470s 12470s def setup_module(): 12470s """ 12470s Build the required testing extension module 12470s 12470s """ 12470s global wrap 12470s 12470s # Check compiler availability first 12470s if not util.has_c_compiler(): 12470s pytest.skip("No C compiler available") 12470s 12470s if wrap is None: 12470s config_code = """ 12470s config.add_extension('test_array_from_pyobj_ext', 12470s sources=['wrapmodule.c', 'fortranobject.c'], 12470s define_macros=[]) 12470s """ 12470s d = os.path.dirname(__file__) 12470s src = [ 12470s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12470s util.getpath("src", "fortranobject.c"), 12470s util.getpath("src", "fortranobject.h"), 12470s ] 12470s > wrap = util.build_module_distutils(src, config_code, 12470s "test_array_from_pyobj_ext") 12470s 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12470s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12470s memo[key] = func(*a, **kw) 12470s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12470s func = 12470s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12470s kw = {} 12470s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s 12470s @_memoize 12470s def build_module_distutils(source_files, config_code, module_name, **kw): 12470s """ 12470s Build a module via distutils and import it. 12470s 12470s """ 12470s d = get_module_dir() 12470s 12470s # Copy files 12470s dst_sources = [] 12470s for fn in source_files: 12470s if not os.path.isfile(fn): 12470s raise RuntimeError("%s is not a file" % fn) 12470s dst = os.path.join(d, os.path.basename(fn)) 12470s shutil.copyfile(fn, dst) 12470s dst_sources.append(dst) 12470s 12470s # Build script 12470s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12470s 12470s code = fr""" 12470s import os 12470s import sys 12470s sys.path = {repr(sys.path)} 12470s 12470s def configuration(parent_name='',top_path=None): 12470s from numpy.distutils.misc_util import Configuration 12470s config = Configuration('', parent_name, top_path) 12470s {config_code} 12470s return config 12470s 12470s if __name__ == "__main__": 12470s from numpy.distutils.core import setup 12470s setup(configuration=configuration) 12470s """ 12470s script = os.path.join(d, get_temp_module_name() + ".py") 12470s dst_sources.append(script) 12470s with open(script, "wb") as f: 12470s f.write(asbytes(code)) 12470s 12470s # Build 12470s cwd = os.getcwd() 12470s try: 12470s os.chdir(d) 12470s cmd = [sys.executable, script, "build_ext", "-i"] 12470s p = subprocess.Popen(cmd, 12470s stdout=subprocess.PIPE, 12470s stderr=subprocess.STDOUT) 12470s out, err = p.communicate() 12470s if p.returncode != 0: 12470s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12470s (cmd[4:], asstr(out))) 12470s E RuntimeError: Running distutils build failed: [] 12470s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12470s E 12470s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12470s E of the deprecation of `distutils` itself. It will be removed for 12470s E Python >= 3.12. For older Python versions it will remain present. 12470s E It is recommended to use `setuptools < 60.0` for those Python versions. 12470s E For more details, see: 12470s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12470s E 12470s E 12470s E from numpy.distutils.core import setup 12470s E running build_ext 12470s E running build_src 12470s E INFO: build_src 12470s E INFO: building extension "test_array_from_pyobj_ext" sources 12470s E INFO: build_src: building npy-pkg config files 12470s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12470s E !! 12470s E 12470s E ******************************************************************************** 12470s E Please avoid running ``setup.py`` directly. 12470s E Instead, use pypa/build, pypa/installer or other 12470s E standards-based tools. 12470s E 12470s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12470s E ******************************************************************************** 12470s E 12470s E !! 12470s E self.initialize_options() 12470s E INFO: customize UnixCCompiler 12470s E INFO: customize UnixCCompiler using build_ext 12470s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/tmp 12470s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/usr 12470s E creating /tmp/tmpvt806usq/usr/lib 12470s E creating /tmp/tmpvt806usq/usr/lib/python3 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=native' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-O3' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-Werror' 12470s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12470s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-vfpv4' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=armv8.2-a+fp16' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12470s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12470s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12470s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12470s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12470s E INFO: building 'test_array_from_pyobj_ext' extension 12470s E INFO: compiling C sources 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12470s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12470s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12470s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12470s E 14 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E In file included from fortranobject.c:2: 12470s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12470s E 7 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12470s E INFO: 12470s E ########### EXT COMPILER OPTIMIZATION ########### 12470s E INFO: Platform : 12470s E Architecture: armhf 12470s E Compiler : gcc 12470s E 12470s E CPU baseline : 12470s E Requested : 'min' 12470s E Enabled : none 12470s E Flags : none 12470s E Extra checks: none 12470s E 12470s E CPU dispatch : 12470s E Requested : 'max -xop -fma4' 12470s E Enabled : none 12470s E Generated : none 12470s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12470s 12470s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12470s d = '/tmp/tmpmzdm58dt' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s err = None 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s kw = {} 12470s module_name = 'test_array_from_pyobj_ext' 12470s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12470s p = 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12470s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[UBYTE] _________ 12470s 12470s def setup_module(): 12470s """ 12470s Build the required testing extension module 12470s 12470s """ 12470s global wrap 12470s 12470s # Check compiler availability first 12470s if not util.has_c_compiler(): 12470s pytest.skip("No C compiler available") 12470s 12470s if wrap is None: 12470s config_code = """ 12470s config.add_extension('test_array_from_pyobj_ext', 12470s sources=['wrapmodule.c', 'fortranobject.c'], 12470s define_macros=[]) 12470s """ 12470s d = os.path.dirname(__file__) 12470s src = [ 12470s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12470s util.getpath("src", "fortranobject.c"), 12470s util.getpath("src", "fortranobject.h"), 12470s ] 12470s > wrap = util.build_module_distutils(src, config_code, 12470s "test_array_from_pyobj_ext") 12470s 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12470s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12470s memo[key] = func(*a, **kw) 12470s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12470s func = 12470s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12470s kw = {} 12470s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s 12470s @_memoize 12470s def build_module_distutils(source_files, config_code, module_name, **kw): 12470s """ 12470s Build a module via distutils and import it. 12470s 12470s """ 12470s d = get_module_dir() 12470s 12470s # Copy files 12470s dst_sources = [] 12470s for fn in source_files: 12470s if not os.path.isfile(fn): 12470s raise RuntimeError("%s is not a file" % fn) 12470s dst = os.path.join(d, os.path.basename(fn)) 12470s shutil.copyfile(fn, dst) 12470s dst_sources.append(dst) 12470s 12470s # Build script 12470s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12470s 12470s code = fr""" 12470s import os 12470s import sys 12470s sys.path = {repr(sys.path)} 12470s 12470s def configuration(parent_name='',top_path=None): 12470s from numpy.distutils.misc_util import Configuration 12470s config = Configuration('', parent_name, top_path) 12470s {config_code} 12470s return config 12470s 12470s if __name__ == "__main__": 12470s from numpy.distutils.core import setup 12470s setup(configuration=configuration) 12470s """ 12470s script = os.path.join(d, get_temp_module_name() + ".py") 12470s dst_sources.append(script) 12470s with open(script, "wb") as f: 12470s f.write(asbytes(code)) 12470s 12470s # Build 12470s cwd = os.getcwd() 12470s try: 12470s os.chdir(d) 12470s cmd = [sys.executable, script, "build_ext", "-i"] 12470s p = subprocess.Popen(cmd, 12470s stdout=subprocess.PIPE, 12470s stderr=subprocess.STDOUT) 12470s out, err = p.communicate() 12470s if p.returncode != 0: 12470s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12470s (cmd[4:], asstr(out))) 12470s E RuntimeError: Running distutils build failed: [] 12470s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12470s E 12470s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12470s E of the deprecation of `distutils` itself. It will be removed for 12470s E Python >= 3.12. For older Python versions it will remain present. 12470s E It is recommended to use `setuptools < 60.0` for those Python versions. 12470s E For more details, see: 12470s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12470s E 12470s E 12470s E from numpy.distutils.core import setup 12470s E running build_ext 12470s E running build_src 12470s E INFO: build_src 12470s E INFO: building extension "test_array_from_pyobj_ext" sources 12470s E INFO: build_src: building npy-pkg config files 12470s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12470s E !! 12470s E 12470s E ******************************************************************************** 12470s E Please avoid running ``setup.py`` directly. 12470s E Instead, use pypa/build, pypa/installer or other 12470s E standards-based tools. 12470s E 12470s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12470s E ******************************************************************************** 12470s E 12470s E !! 12470s E self.initialize_options() 12470s E INFO: customize UnixCCompiler 12470s E INFO: customize UnixCCompiler using build_ext 12470s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/tmp 12470s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/usr 12470s E creating /tmp/tmpvt806usq/usr/lib 12470s E creating /tmp/tmpvt806usq/usr/lib/python3 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=native' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-O3' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-Werror' 12470s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12470s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-vfpv4' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=armv8.2-a+fp16' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12470s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12470s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12470s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12470s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12470s E INFO: building 'test_array_from_pyobj_ext' extension 12470s E INFO: compiling C sources 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12470s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12470s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12470s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12470s E 14 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E In file included from fortranobject.c:2: 12470s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12470s E 7 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12470s E INFO: 12470s E ########### EXT COMPILER OPTIMIZATION ########### 12470s E INFO: Platform : 12470s E Architecture: armhf 12470s E Compiler : gcc 12470s E 12470s E CPU baseline : 12470s E Requested : 'min' 12470s E Enabled : none 12470s E Flags : none 12470s E Extra checks: none 12470s E 12470s E CPU dispatch : 12470s E Requested : 'max -xop -fma4' 12470s E Enabled : none 12470s E Generated : none 12470s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12470s 12470s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12470s d = '/tmp/tmpmzdm58dt' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s err = None 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s kw = {} 12470s module_name = 'test_array_from_pyobj_ext' 12470s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12470s p = 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12470s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[UBYTE] _____ 12470s 12470s def setup_module(): 12470s """ 12470s Build the required testing extension module 12470s 12470s """ 12470s global wrap 12470s 12470s # Check compiler availability first 12470s if not util.has_c_compiler(): 12470s pytest.skip("No C compiler available") 12470s 12470s if wrap is None: 12470s config_code = """ 12470s config.add_extension('test_array_from_pyobj_ext', 12470s sources=['wrapmodule.c', 'fortranobject.c'], 12470s define_macros=[]) 12470s """ 12470s d = os.path.dirname(__file__) 12470s src = [ 12470s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12470s util.getpath("src", "fortranobject.c"), 12470s util.getpath("src", "fortranobject.h"), 12470s ] 12470s > wrap = util.build_module_distutils(src, config_code, 12470s "test_array_from_pyobj_ext") 12470s 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12470s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12470s memo[key] = func(*a, **kw) 12470s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12470s func = 12470s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12470s kw = {} 12470s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s 12470s @_memoize 12470s def build_module_distutils(source_files, config_code, module_name, **kw): 12470s """ 12470s Build a module via distutils and import it. 12470s 12470s """ 12470s d = get_module_dir() 12470s 12470s # Copy files 12470s dst_sources = [] 12470s for fn in source_files: 12470s if not os.path.isfile(fn): 12470s raise RuntimeError("%s is not a file" % fn) 12470s dst = os.path.join(d, os.path.basename(fn)) 12470s shutil.copyfile(fn, dst) 12470s dst_sources.append(dst) 12470s 12470s # Build script 12470s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12470s 12470s code = fr""" 12470s import os 12470s import sys 12470s sys.path = {repr(sys.path)} 12470s 12470s def configuration(parent_name='',top_path=None): 12470s from numpy.distutils.misc_util import Configuration 12470s config = Configuration('', parent_name, top_path) 12470s {config_code} 12470s return config 12470s 12470s if __name__ == "__main__": 12470s from numpy.distutils.core import setup 12470s setup(configuration=configuration) 12470s """ 12470s script = os.path.join(d, get_temp_module_name() + ".py") 12470s dst_sources.append(script) 12470s with open(script, "wb") as f: 12470s f.write(asbytes(code)) 12470s 12470s # Build 12470s cwd = os.getcwd() 12470s try: 12470s os.chdir(d) 12470s cmd = [sys.executable, script, "build_ext", "-i"] 12470s p = subprocess.Popen(cmd, 12470s stdout=subprocess.PIPE, 12470s stderr=subprocess.STDOUT) 12470s out, err = p.communicate() 12470s if p.returncode != 0: 12470s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12470s (cmd[4:], asstr(out))) 12470s E RuntimeError: Running distutils build failed: [] 12470s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12470s E 12470s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12470s E of the deprecation of `distutils` itself. It will be removed for 12470s E Python >= 3.12. For older Python versions it will remain present. 12470s E It is recommended to use `setuptools < 60.0` for those Python versions. 12470s E For more details, see: 12470s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12470s E 12470s E 12470s E from numpy.distutils.core import setup 12470s E running build_ext 12470s E running build_src 12470s E INFO: build_src 12470s E INFO: building extension "test_array_from_pyobj_ext" sources 12470s E INFO: build_src: building npy-pkg config files 12470s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12470s E !! 12470s E 12470s E ******************************************************************************** 12470s E Please avoid running ``setup.py`` directly. 12470s E Instead, use pypa/build, pypa/installer or other 12470s E standards-based tools. 12470s E 12470s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12470s E ******************************************************************************** 12470s E 12470s E !! 12470s E self.initialize_options() 12470s E INFO: customize UnixCCompiler 12470s E INFO: customize UnixCCompiler using build_ext 12470s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/tmp 12470s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/usr 12470s E creating /tmp/tmpvt806usq/usr/lib 12470s E creating /tmp/tmpvt806usq/usr/lib/python3 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=native' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-O3' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-Werror' 12470s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12470s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-vfpv4' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=armv8.2-a+fp16' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12470s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12470s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12470s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12470s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12470s E INFO: building 'test_array_from_pyobj_ext' extension 12470s E INFO: compiling C sources 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12470s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12470s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12470s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12470s E 14 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E In file included from fortranobject.c:2: 12470s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12470s E 7 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12470s E INFO: 12470s E ########### EXT COMPILER OPTIMIZATION ########### 12470s E INFO: Platform : 12470s E Architecture: armhf 12470s E Compiler : gcc 12470s E 12470s E CPU baseline : 12470s E Requested : 'min' 12470s E Enabled : none 12470s E Flags : none 12470s E Extra checks: none 12470s E 12470s E CPU dispatch : 12470s E Requested : 'max -xop -fma4' 12470s E Enabled : none 12470s E Generated : none 12470s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12470s 12470s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12470s d = '/tmp/tmpmzdm58dt' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s err = None 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s kw = {} 12470s module_name = 'test_array_from_pyobj_ext' 12470s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12470s p = 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12470s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[UBYTE] ________ 12470s 12470s def setup_module(): 12470s """ 12470s Build the required testing extension module 12470s 12470s """ 12470s global wrap 12470s 12470s # Check compiler availability first 12470s if not util.has_c_compiler(): 12470s pytest.skip("No C compiler available") 12470s 12470s if wrap is None: 12470s config_code = """ 12470s config.add_extension('test_array_from_pyobj_ext', 12470s sources=['wrapmodule.c', 'fortranobject.c'], 12470s define_macros=[]) 12470s """ 12470s d = os.path.dirname(__file__) 12470s src = [ 12470s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12470s util.getpath("src", "fortranobject.c"), 12470s util.getpath("src", "fortranobject.h"), 12470s ] 12470s > wrap = util.build_module_distutils(src, config_code, 12470s "test_array_from_pyobj_ext") 12470s 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12470s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12470s memo[key] = func(*a, **kw) 12470s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12470s func = 12470s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12470s kw = {} 12470s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s 12470s @_memoize 12470s def build_module_distutils(source_files, config_code, module_name, **kw): 12470s """ 12470s Build a module via distutils and import it. 12470s 12470s """ 12470s d = get_module_dir() 12470s 12470s # Copy files 12470s dst_sources = [] 12470s for fn in source_files: 12470s if not os.path.isfile(fn): 12470s raise RuntimeError("%s is not a file" % fn) 12470s dst = os.path.join(d, os.path.basename(fn)) 12470s shutil.copyfile(fn, dst) 12470s dst_sources.append(dst) 12470s 12470s # Build script 12470s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12470s 12470s code = fr""" 12470s import os 12470s import sys 12470s sys.path = {repr(sys.path)} 12470s 12470s def configuration(parent_name='',top_path=None): 12470s from numpy.distutils.misc_util import Configuration 12470s config = Configuration('', parent_name, top_path) 12470s {config_code} 12470s return config 12470s 12470s if __name__ == "__main__": 12470s from numpy.distutils.core import setup 12470s setup(configuration=configuration) 12470s """ 12470s script = os.path.join(d, get_temp_module_name() + ".py") 12470s dst_sources.append(script) 12470s with open(script, "wb") as f: 12470s f.write(asbytes(code)) 12470s 12470s # Build 12470s cwd = os.getcwd() 12470s try: 12470s os.chdir(d) 12470s cmd = [sys.executable, script, "build_ext", "-i"] 12470s p = subprocess.Popen(cmd, 12470s stdout=subprocess.PIPE, 12470s stderr=subprocess.STDOUT) 12470s out, err = p.communicate() 12470s if p.returncode != 0: 12470s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12470s (cmd[4:], asstr(out))) 12470s E RuntimeError: Running distutils build failed: [] 12470s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12470s E 12470s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12470s E of the deprecation of `distutils` itself. It will be removed for 12470s E Python >= 3.12. For older Python versions it will remain present. 12470s E It is recommended to use `setuptools < 60.0` for those Python versions. 12470s E For more details, see: 12470s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12470s E 12470s E 12470s E from numpy.distutils.core import setup 12470s E running build_ext 12470s E running build_src 12470s E INFO: build_src 12470s E INFO: building extension "test_array_from_pyobj_ext" sources 12470s E INFO: build_src: building npy-pkg config files 12470s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12470s E !! 12470s E 12470s E ******************************************************************************** 12470s E Please avoid running ``setup.py`` directly. 12470s E Instead, use pypa/build, pypa/installer or other 12470s E standards-based tools. 12470s E 12470s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12470s E ******************************************************************************** 12470s E 12470s E !! 12470s E self.initialize_options() 12470s E INFO: customize UnixCCompiler 12470s E INFO: customize UnixCCompiler using build_ext 12470s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/tmp 12470s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/usr 12470s E creating /tmp/tmpvt806usq/usr/lib 12470s E creating /tmp/tmpvt806usq/usr/lib/python3 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=native' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-O3' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-Werror' 12470s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12470s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-vfpv4' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=armv8.2-a+fp16' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12470s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12470s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12470s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12470s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12470s E INFO: building 'test_array_from_pyobj_ext' extension 12470s E INFO: compiling C sources 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12470s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12470s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12470s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12470s E 14 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E In file included from fortranobject.c:2: 12470s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12470s E 7 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12470s E INFO: 12470s E ########### EXT COMPILER OPTIMIZATION ########### 12470s E INFO: Platform : 12470s E Architecture: armhf 12470s E Compiler : gcc 12470s E 12470s E CPU baseline : 12470s E Requested : 'min' 12470s E Enabled : none 12470s E Flags : none 12470s E Extra checks: none 12470s E 12470s E CPU dispatch : 12470s E Requested : 'max -xop -fma4' 12470s E Enabled : none 12470s E Generated : none 12470s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12470s 12470s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12470s d = '/tmp/tmpmzdm58dt' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s err = None 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s kw = {} 12470s module_name = 'test_array_from_pyobj_ext' 12470s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12470s p = 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12470s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[UBYTE] _______ 12470s 12470s def setup_module(): 12470s """ 12470s Build the required testing extension module 12470s 12470s """ 12470s global wrap 12470s 12470s # Check compiler availability first 12470s if not util.has_c_compiler(): 12470s pytest.skip("No C compiler available") 12470s 12470s if wrap is None: 12470s config_code = """ 12470s config.add_extension('test_array_from_pyobj_ext', 12470s sources=['wrapmodule.c', 'fortranobject.c'], 12470s define_macros=[]) 12470s """ 12470s d = os.path.dirname(__file__) 12470s src = [ 12470s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12470s util.getpath("src", "fortranobject.c"), 12470s util.getpath("src", "fortranobject.h"), 12470s ] 12470s > wrap = util.build_module_distutils(src, config_code, 12470s "test_array_from_pyobj_ext") 12470s 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12470s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12470s memo[key] = func(*a, **kw) 12470s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12470s func = 12470s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12470s kw = {} 12470s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s 12470s @_memoize 12470s def build_module_distutils(source_files, config_code, module_name, **kw): 12470s """ 12470s Build a module via distutils and import it. 12470s 12470s """ 12470s d = get_module_dir() 12470s 12470s # Copy files 12470s dst_sources = [] 12470s for fn in source_files: 12470s if not os.path.isfile(fn): 12470s raise RuntimeError("%s is not a file" % fn) 12470s dst = os.path.join(d, os.path.basename(fn)) 12470s shutil.copyfile(fn, dst) 12470s dst_sources.append(dst) 12470s 12470s # Build script 12470s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12470s 12470s code = fr""" 12470s import os 12470s import sys 12470s sys.path = {repr(sys.path)} 12470s 12470s def configuration(parent_name='',top_path=None): 12470s from numpy.distutils.misc_util import Configuration 12470s config = Configuration('', parent_name, top_path) 12470s {config_code} 12470s return config 12470s 12470s if __name__ == "__main__": 12470s from numpy.distutils.core import setup 12470s setup(configuration=configuration) 12470s """ 12470s script = os.path.join(d, get_temp_module_name() + ".py") 12470s dst_sources.append(script) 12470s with open(script, "wb") as f: 12470s f.write(asbytes(code)) 12470s 12470s # Build 12470s cwd = os.getcwd() 12470s try: 12470s os.chdir(d) 12470s cmd = [sys.executable, script, "build_ext", "-i"] 12470s p = subprocess.Popen(cmd, 12470s stdout=subprocess.PIPE, 12470s stderr=subprocess.STDOUT) 12470s out, err = p.communicate() 12470s if p.returncode != 0: 12470s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12470s (cmd[4:], asstr(out))) 12470s E RuntimeError: Running distutils build failed: [] 12470s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12470s E 12470s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12470s E of the deprecation of `distutils` itself. It will be removed for 12470s E Python >= 3.12. For older Python versions it will remain present. 12470s E It is recommended to use `setuptools < 60.0` for those Python versions. 12470s E For more details, see: 12470s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12470s E 12470s E 12470s E from numpy.distutils.core import setup 12470s E running build_ext 12470s E running build_src 12470s E INFO: build_src 12470s E INFO: building extension "test_array_from_pyobj_ext" sources 12470s E INFO: build_src: building npy-pkg config files 12470s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12470s E !! 12470s E 12470s E ******************************************************************************** 12470s E Please avoid running ``setup.py`` directly. 12470s E Instead, use pypa/build, pypa/installer or other 12470s E standards-based tools. 12470s E 12470s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12470s E ******************************************************************************** 12470s E 12470s E !! 12470s E self.initialize_options() 12470s E INFO: customize UnixCCompiler 12470s E INFO: customize UnixCCompiler using build_ext 12470s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/tmp 12470s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/usr 12470s E creating /tmp/tmpvt806usq/usr/lib 12470s E creating /tmp/tmpvt806usq/usr/lib/python3 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=native' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-O3' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-Werror' 12470s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12470s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-vfpv4' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=armv8.2-a+fp16' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12470s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12470s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12470s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12470s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12470s E INFO: building 'test_array_from_pyobj_ext' extension 12470s E INFO: compiling C sources 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12470s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12470s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12470s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12470s E 14 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E In file included from fortranobject.c:2: 12470s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12470s E 7 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12470s E INFO: 12470s E ########### EXT COMPILER OPTIMIZATION ########### 12470s E INFO: Platform : 12470s E Architecture: armhf 12470s E Compiler : gcc 12470s E 12470s E CPU baseline : 12470s E Requested : 'min' 12470s E Enabled : none 12470s E Flags : none 12470s E Extra checks: none 12470s E 12470s E CPU dispatch : 12470s E Requested : 'max -xop -fma4' 12470s E Enabled : none 12470s E Generated : none 12470s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12470s 12470s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12470s d = '/tmp/tmpmzdm58dt' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s err = None 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s kw = {} 12470s module_name = 'test_array_from_pyobj_ext' 12470s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12470s p = 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12470s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[UBYTE] ______ 12470s 12470s def setup_module(): 12470s """ 12470s Build the required testing extension module 12470s 12470s """ 12470s global wrap 12470s 12470s # Check compiler availability first 12470s if not util.has_c_compiler(): 12470s pytest.skip("No C compiler available") 12470s 12470s if wrap is None: 12470s config_code = """ 12470s config.add_extension('test_array_from_pyobj_ext', 12470s sources=['wrapmodule.c', 'fortranobject.c'], 12470s define_macros=[]) 12470s """ 12470s d = os.path.dirname(__file__) 12470s src = [ 12470s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12470s util.getpath("src", "fortranobject.c"), 12470s util.getpath("src", "fortranobject.h"), 12470s ] 12470s > wrap = util.build_module_distutils(src, config_code, 12470s "test_array_from_pyobj_ext") 12470s 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12470s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12470s memo[key] = func(*a, **kw) 12470s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12470s func = 12470s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12470s kw = {} 12470s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12470s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12470s 12470s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12470s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12470s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12470s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12470s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12470s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12470s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12470s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12470s 12470s @_memoize 12470s def build_module_distutils(source_files, config_code, module_name, **kw): 12470s """ 12470s Build a module via distutils and import it. 12470s 12470s """ 12470s d = get_module_dir() 12470s 12470s # Copy files 12470s dst_sources = [] 12470s for fn in source_files: 12470s if not os.path.isfile(fn): 12470s raise RuntimeError("%s is not a file" % fn) 12470s dst = os.path.join(d, os.path.basename(fn)) 12470s shutil.copyfile(fn, dst) 12470s dst_sources.append(dst) 12470s 12470s # Build script 12470s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12470s 12470s code = fr""" 12470s import os 12470s import sys 12470s sys.path = {repr(sys.path)} 12470s 12470s def configuration(parent_name='',top_path=None): 12470s from numpy.distutils.misc_util import Configuration 12470s config = Configuration('', parent_name, top_path) 12470s {config_code} 12470s return config 12470s 12470s if __name__ == "__main__": 12470s from numpy.distutils.core import setup 12470s setup(configuration=configuration) 12470s """ 12470s script = os.path.join(d, get_temp_module_name() + ".py") 12470s dst_sources.append(script) 12470s with open(script, "wb") as f: 12470s f.write(asbytes(code)) 12470s 12470s # Build 12470s cwd = os.getcwd() 12470s try: 12470s os.chdir(d) 12470s cmd = [sys.executable, script, "build_ext", "-i"] 12470s p = subprocess.Popen(cmd, 12470s stdout=subprocess.PIPE, 12470s stderr=subprocess.STDOUT) 12470s out, err = p.communicate() 12470s if p.returncode != 0: 12470s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12470s (cmd[4:], asstr(out))) 12470s E RuntimeError: Running distutils build failed: [] 12470s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12470s E 12470s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12470s E of the deprecation of `distutils` itself. It will be removed for 12470s E Python >= 3.12. For older Python versions it will remain present. 12470s E It is recommended to use `setuptools < 60.0` for those Python versions. 12470s E For more details, see: 12470s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12470s E 12470s E 12470s E from numpy.distutils.core import setup 12470s E running build_ext 12470s E running build_src 12470s E INFO: build_src 12470s E INFO: building extension "test_array_from_pyobj_ext" sources 12470s E INFO: build_src: building npy-pkg config files 12470s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12470s E !! 12470s E 12470s E ******************************************************************************** 12470s E Please avoid running ``setup.py`` directly. 12470s E Instead, use pypa/build, pypa/installer or other 12470s E standards-based tools. 12470s E 12470s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12470s E ******************************************************************************** 12470s E 12470s E !! 12470s E self.initialize_options() 12470s E INFO: customize UnixCCompiler 12470s E INFO: customize UnixCCompiler using build_ext 12470s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/tmp 12470s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E creating /tmp/tmpvt806usq/usr 12470s E creating /tmp/tmpvt806usq/usr/lib 12470s E creating /tmp/tmpvt806usq/usr/lib/python3 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12470s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=native' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-O3' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-Werror' 12470s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12470s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-vfpv4' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12470s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-march=armv8.2-a+fp16' 12470s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/include/python3.12 -c' 12470s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12470s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12470s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12470s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12470s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12470s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12470s E 9 | # include_next 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E 12470s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12470s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12470s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12470s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12470s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12470s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12470s E INFO: building 'test_array_from_pyobj_ext' extension 12470s E INFO: compiling C sources 12470s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12470s E 12470s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12470s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12470s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12470s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12470s E 14 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E In file included from fortranobject.c:2: 12470s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12470s E 7 | #include 12470s E | ^~~~~~~~~~ 12470s E compilation terminated. 12470s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12470s E INFO: 12470s E ########### EXT COMPILER OPTIMIZATION ########### 12470s E INFO: Platform : 12470s E Architecture: armhf 12470s E Compiler : gcc 12471s E 12471s E CPU baseline : 12471s E Requested : 'min' 12471s E Enabled : none 12471s E Flags : none 12471s E Extra checks: none 12471s E 12471s E CPU dispatch : 12471s E Requested : 'max -xop -fma4' 12471s E Enabled : none 12471s E Generated : none 12471s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12471s 12471s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12471s d = '/tmp/tmpmzdm58dt' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s err = None 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s kw = {} 12471s module_name = 'test_array_from_pyobj_ext' 12471s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12471s p = 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12471s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[UBYTE] ______ 12471s 12471s def setup_module(): 12471s """ 12471s Build the required testing extension module 12471s 12471s """ 12471s global wrap 12471s 12471s # Check compiler availability first 12471s if not util.has_c_compiler(): 12471s pytest.skip("No C compiler available") 12471s 12471s if wrap is None: 12471s config_code = """ 12471s config.add_extension('test_array_from_pyobj_ext', 12471s sources=['wrapmodule.c', 'fortranobject.c'], 12471s define_macros=[]) 12471s """ 12471s d = os.path.dirname(__file__) 12471s src = [ 12471s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12471s util.getpath("src", "fortranobject.c"), 12471s util.getpath("src", "fortranobject.h"), 12471s ] 12471s > wrap = util.build_module_distutils(src, config_code, 12471s "test_array_from_pyobj_ext") 12471s 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12471s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12471s memo[key] = func(*a, **kw) 12471s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12471s func = 12471s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12471s kw = {} 12471s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s 12471s @_memoize 12471s def build_module_distutils(source_files, config_code, module_name, **kw): 12471s """ 12471s Build a module via distutils and import it. 12471s 12471s """ 12471s d = get_module_dir() 12471s 12471s # Copy files 12471s dst_sources = [] 12471s for fn in source_files: 12471s if not os.path.isfile(fn): 12471s raise RuntimeError("%s is not a file" % fn) 12471s dst = os.path.join(d, os.path.basename(fn)) 12471s shutil.copyfile(fn, dst) 12471s dst_sources.append(dst) 12471s 12471s # Build script 12471s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12471s 12471s code = fr""" 12471s import os 12471s import sys 12471s sys.path = {repr(sys.path)} 12471s 12471s def configuration(parent_name='',top_path=None): 12471s from numpy.distutils.misc_util import Configuration 12471s config = Configuration('', parent_name, top_path) 12471s {config_code} 12471s return config 12471s 12471s if __name__ == "__main__": 12471s from numpy.distutils.core import setup 12471s setup(configuration=configuration) 12471s """ 12471s script = os.path.join(d, get_temp_module_name() + ".py") 12471s dst_sources.append(script) 12471s with open(script, "wb") as f: 12471s f.write(asbytes(code)) 12471s 12471s # Build 12471s cwd = os.getcwd() 12471s try: 12471s os.chdir(d) 12471s cmd = [sys.executable, script, "build_ext", "-i"] 12471s p = subprocess.Popen(cmd, 12471s stdout=subprocess.PIPE, 12471s stderr=subprocess.STDOUT) 12471s out, err = p.communicate() 12471s if p.returncode != 0: 12471s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12471s (cmd[4:], asstr(out))) 12471s E RuntimeError: Running distutils build failed: [] 12471s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12471s E 12471s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12471s E of the deprecation of `distutils` itself. It will be removed for 12471s E Python >= 3.12. For older Python versions it will remain present. 12471s E It is recommended to use `setuptools < 60.0` for those Python versions. 12471s E For more details, see: 12471s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12471s E 12471s E 12471s E from numpy.distutils.core import setup 12471s E running build_ext 12471s E running build_src 12471s E INFO: build_src 12471s E INFO: building extension "test_array_from_pyobj_ext" sources 12471s E INFO: build_src: building npy-pkg config files 12471s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12471s E !! 12471s E 12471s E ******************************************************************************** 12471s E Please avoid running ``setup.py`` directly. 12471s E Instead, use pypa/build, pypa/installer or other 12471s E standards-based tools. 12471s E 12471s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12471s E ******************************************************************************** 12471s E 12471s E !! 12471s E self.initialize_options() 12471s E INFO: customize UnixCCompiler 12471s E INFO: customize UnixCCompiler using build_ext 12471s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/tmp 12471s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/usr 12471s E creating /tmp/tmpvt806usq/usr/lib 12471s E creating /tmp/tmpvt806usq/usr/lib/python3 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=native' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-O3' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-Werror' 12471s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12471s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-vfpv4' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=armv8.2-a+fp16' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12471s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12471s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12471s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12471s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12471s E INFO: building 'test_array_from_pyobj_ext' extension 12471s E INFO: compiling C sources 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12471s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12471s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12471s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12471s E 14 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E In file included from fortranobject.c:2: 12471s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12471s E 7 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12471s E INFO: 12471s E ########### EXT COMPILER OPTIMIZATION ########### 12471s E INFO: Platform : 12471s E Architecture: armhf 12471s E Compiler : gcc 12471s E 12471s E CPU baseline : 12471s E Requested : 'min' 12471s E Enabled : none 12471s E Flags : none 12471s E Extra checks: none 12471s E 12471s E CPU dispatch : 12471s E Requested : 'max -xop -fma4' 12471s E Enabled : none 12471s E Generated : none 12471s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12471s 12471s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12471s d = '/tmp/tmpmzdm58dt' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s err = None 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s kw = {} 12471s module_name = 'test_array_from_pyobj_ext' 12471s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12471s p = 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12471s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[UBYTE] ___ 12471s 12471s def setup_module(): 12471s """ 12471s Build the required testing extension module 12471s 12471s """ 12471s global wrap 12471s 12471s # Check compiler availability first 12471s if not util.has_c_compiler(): 12471s pytest.skip("No C compiler available") 12471s 12471s if wrap is None: 12471s config_code = """ 12471s config.add_extension('test_array_from_pyobj_ext', 12471s sources=['wrapmodule.c', 'fortranobject.c'], 12471s define_macros=[]) 12471s """ 12471s d = os.path.dirname(__file__) 12471s src = [ 12471s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12471s util.getpath("src", "fortranobject.c"), 12471s util.getpath("src", "fortranobject.h"), 12471s ] 12471s > wrap = util.build_module_distutils(src, config_code, 12471s "test_array_from_pyobj_ext") 12471s 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12471s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12471s memo[key] = func(*a, **kw) 12471s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12471s func = 12471s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12471s kw = {} 12471s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s 12471s @_memoize 12471s def build_module_distutils(source_files, config_code, module_name, **kw): 12471s """ 12471s Build a module via distutils and import it. 12471s 12471s """ 12471s d = get_module_dir() 12471s 12471s # Copy files 12471s dst_sources = [] 12471s for fn in source_files: 12471s if not os.path.isfile(fn): 12471s raise RuntimeError("%s is not a file" % fn) 12471s dst = os.path.join(d, os.path.basename(fn)) 12471s shutil.copyfile(fn, dst) 12471s dst_sources.append(dst) 12471s 12471s # Build script 12471s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12471s 12471s code = fr""" 12471s import os 12471s import sys 12471s sys.path = {repr(sys.path)} 12471s 12471s def configuration(parent_name='',top_path=None): 12471s from numpy.distutils.misc_util import Configuration 12471s config = Configuration('', parent_name, top_path) 12471s {config_code} 12471s return config 12471s 12471s if __name__ == "__main__": 12471s from numpy.distutils.core import setup 12471s setup(configuration=configuration) 12471s """ 12471s script = os.path.join(d, get_temp_module_name() + ".py") 12471s dst_sources.append(script) 12471s with open(script, "wb") as f: 12471s f.write(asbytes(code)) 12471s 12471s # Build 12471s cwd = os.getcwd() 12471s try: 12471s os.chdir(d) 12471s cmd = [sys.executable, script, "build_ext", "-i"] 12471s p = subprocess.Popen(cmd, 12471s stdout=subprocess.PIPE, 12471s stderr=subprocess.STDOUT) 12471s out, err = p.communicate() 12471s if p.returncode != 0: 12471s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12471s (cmd[4:], asstr(out))) 12471s E RuntimeError: Running distutils build failed: [] 12471s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12471s E 12471s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12471s E of the deprecation of `distutils` itself. It will be removed for 12471s E Python >= 3.12. For older Python versions it will remain present. 12471s E It is recommended to use `setuptools < 60.0` for those Python versions. 12471s E For more details, see: 12471s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12471s E 12471s E 12471s E from numpy.distutils.core import setup 12471s E running build_ext 12471s E running build_src 12471s E INFO: build_src 12471s E INFO: building extension "test_array_from_pyobj_ext" sources 12471s E INFO: build_src: building npy-pkg config files 12471s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12471s E !! 12471s E 12471s E ******************************************************************************** 12471s E Please avoid running ``setup.py`` directly. 12471s E Instead, use pypa/build, pypa/installer or other 12471s E standards-based tools. 12471s E 12471s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12471s E ******************************************************************************** 12471s E 12471s E !! 12471s E self.initialize_options() 12471s E INFO: customize UnixCCompiler 12471s E INFO: customize UnixCCompiler using build_ext 12471s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/tmp 12471s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/usr 12471s E creating /tmp/tmpvt806usq/usr/lib 12471s E creating /tmp/tmpvt806usq/usr/lib/python3 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=native' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-O3' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-Werror' 12471s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12471s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-vfpv4' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=armv8.2-a+fp16' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12471s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12471s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12471s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12471s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12471s E INFO: building 'test_array_from_pyobj_ext' extension 12471s E INFO: compiling C sources 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12471s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12471s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12471s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12471s E 14 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E In file included from fortranobject.c:2: 12471s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12471s E 7 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12471s E INFO: 12471s E ########### EXT COMPILER OPTIMIZATION ########### 12471s E INFO: Platform : 12471s E Architecture: armhf 12471s E Compiler : gcc 12471s E 12471s E CPU baseline : 12471s E Requested : 'min' 12471s E Enabled : none 12471s E Flags : none 12471s E Extra checks: none 12471s E 12471s E CPU dispatch : 12471s E Requested : 'max -xop -fma4' 12471s E Enabled : none 12471s E Generated : none 12471s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12471s 12471s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12471s d = '/tmp/tmpmzdm58dt' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s err = None 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s kw = {} 12471s module_name = 'test_array_from_pyobj_ext' 12471s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12471s p = 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12471s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[UBYTE] ___ 12471s 12471s def setup_module(): 12471s """ 12471s Build the required testing extension module 12471s 12471s """ 12471s global wrap 12471s 12471s # Check compiler availability first 12471s if not util.has_c_compiler(): 12471s pytest.skip("No C compiler available") 12471s 12471s if wrap is None: 12471s config_code = """ 12471s config.add_extension('test_array_from_pyobj_ext', 12471s sources=['wrapmodule.c', 'fortranobject.c'], 12471s define_macros=[]) 12471s """ 12471s d = os.path.dirname(__file__) 12471s src = [ 12471s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12471s util.getpath("src", "fortranobject.c"), 12471s util.getpath("src", "fortranobject.h"), 12471s ] 12471s > wrap = util.build_module_distutils(src, config_code, 12471s "test_array_from_pyobj_ext") 12471s 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12471s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12471s memo[key] = func(*a, **kw) 12471s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12471s func = 12471s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12471s kw = {} 12471s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s 12471s @_memoize 12471s def build_module_distutils(source_files, config_code, module_name, **kw): 12471s """ 12471s Build a module via distutils and import it. 12471s 12471s """ 12471s d = get_module_dir() 12471s 12471s # Copy files 12471s dst_sources = [] 12471s for fn in source_files: 12471s if not os.path.isfile(fn): 12471s raise RuntimeError("%s is not a file" % fn) 12471s dst = os.path.join(d, os.path.basename(fn)) 12471s shutil.copyfile(fn, dst) 12471s dst_sources.append(dst) 12471s 12471s # Build script 12471s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12471s 12471s code = fr""" 12471s import os 12471s import sys 12471s sys.path = {repr(sys.path)} 12471s 12471s def configuration(parent_name='',top_path=None): 12471s from numpy.distutils.misc_util import Configuration 12471s config = Configuration('', parent_name, top_path) 12471s {config_code} 12471s return config 12471s 12471s if __name__ == "__main__": 12471s from numpy.distutils.core import setup 12471s setup(configuration=configuration) 12471s """ 12471s script = os.path.join(d, get_temp_module_name() + ".py") 12471s dst_sources.append(script) 12471s with open(script, "wb") as f: 12471s f.write(asbytes(code)) 12471s 12471s # Build 12471s cwd = os.getcwd() 12471s try: 12471s os.chdir(d) 12471s cmd = [sys.executable, script, "build_ext", "-i"] 12471s p = subprocess.Popen(cmd, 12471s stdout=subprocess.PIPE, 12471s stderr=subprocess.STDOUT) 12471s out, err = p.communicate() 12471s if p.returncode != 0: 12471s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12471s (cmd[4:], asstr(out))) 12471s E RuntimeError: Running distutils build failed: [] 12471s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12471s E 12471s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12471s E of the deprecation of `distutils` itself. It will be removed for 12471s E Python >= 3.12. For older Python versions it will remain present. 12471s E It is recommended to use `setuptools < 60.0` for those Python versions. 12471s E For more details, see: 12471s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12471s E 12471s E 12471s E from numpy.distutils.core import setup 12471s E running build_ext 12471s E running build_src 12471s E INFO: build_src 12471s E INFO: building extension "test_array_from_pyobj_ext" sources 12471s E INFO: build_src: building npy-pkg config files 12471s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12471s E !! 12471s E 12471s E ******************************************************************************** 12471s E Please avoid running ``setup.py`` directly. 12471s E Instead, use pypa/build, pypa/installer or other 12471s E standards-based tools. 12471s E 12471s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12471s E ******************************************************************************** 12471s E 12471s E !! 12471s E self.initialize_options() 12471s E INFO: customize UnixCCompiler 12471s E INFO: customize UnixCCompiler using build_ext 12471s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/tmp 12471s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/usr 12471s E creating /tmp/tmpvt806usq/usr/lib 12471s E creating /tmp/tmpvt806usq/usr/lib/python3 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=native' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-O3' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-Werror' 12471s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12471s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-vfpv4' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=armv8.2-a+fp16' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12471s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12471s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12471s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12471s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12471s E INFO: building 'test_array_from_pyobj_ext' extension 12471s E INFO: compiling C sources 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12471s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12471s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12471s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12471s E 14 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E In file included from fortranobject.c:2: 12471s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12471s E 7 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12471s E INFO: 12471s E ########### EXT COMPILER OPTIMIZATION ########### 12471s E INFO: Platform : 12471s E Architecture: armhf 12471s E Compiler : gcc 12471s E 12471s E CPU baseline : 12471s E Requested : 'min' 12471s E Enabled : none 12471s E Flags : none 12471s E Extra checks: none 12471s E 12471s E CPU dispatch : 12471s E Requested : 'max -xop -fma4' 12471s E Enabled : none 12471s E Generated : none 12471s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12471s 12471s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12471s d = '/tmp/tmpmzdm58dt' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s err = None 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s kw = {} 12471s module_name = 'test_array_from_pyobj_ext' 12471s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12471s p = 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12471s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[UBYTE] ____ 12471s 12471s def setup_module(): 12471s """ 12471s Build the required testing extension module 12471s 12471s """ 12471s global wrap 12471s 12471s # Check compiler availability first 12471s if not util.has_c_compiler(): 12471s pytest.skip("No C compiler available") 12471s 12471s if wrap is None: 12471s config_code = """ 12471s config.add_extension('test_array_from_pyobj_ext', 12471s sources=['wrapmodule.c', 'fortranobject.c'], 12471s define_macros=[]) 12471s """ 12471s d = os.path.dirname(__file__) 12471s src = [ 12471s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12471s util.getpath("src", "fortranobject.c"), 12471s util.getpath("src", "fortranobject.h"), 12471s ] 12471s > wrap = util.build_module_distutils(src, config_code, 12471s "test_array_from_pyobj_ext") 12471s 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12471s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12471s memo[key] = func(*a, **kw) 12471s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12471s func = 12471s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12471s kw = {} 12471s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s 12471s @_memoize 12471s def build_module_distutils(source_files, config_code, module_name, **kw): 12471s """ 12471s Build a module via distutils and import it. 12471s 12471s """ 12471s d = get_module_dir() 12471s 12471s # Copy files 12471s dst_sources = [] 12471s for fn in source_files: 12471s if not os.path.isfile(fn): 12471s raise RuntimeError("%s is not a file" % fn) 12471s dst = os.path.join(d, os.path.basename(fn)) 12471s shutil.copyfile(fn, dst) 12471s dst_sources.append(dst) 12471s 12471s # Build script 12471s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12471s 12471s code = fr""" 12471s import os 12471s import sys 12471s sys.path = {repr(sys.path)} 12471s 12471s def configuration(parent_name='',top_path=None): 12471s from numpy.distutils.misc_util import Configuration 12471s config = Configuration('', parent_name, top_path) 12471s {config_code} 12471s return config 12471s 12471s if __name__ == "__main__": 12471s from numpy.distutils.core import setup 12471s setup(configuration=configuration) 12471s """ 12471s script = os.path.join(d, get_temp_module_name() + ".py") 12471s dst_sources.append(script) 12471s with open(script, "wb") as f: 12471s f.write(asbytes(code)) 12471s 12471s # Build 12471s cwd = os.getcwd() 12471s try: 12471s os.chdir(d) 12471s cmd = [sys.executable, script, "build_ext", "-i"] 12471s p = subprocess.Popen(cmd, 12471s stdout=subprocess.PIPE, 12471s stderr=subprocess.STDOUT) 12471s out, err = p.communicate() 12471s if p.returncode != 0: 12471s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12471s (cmd[4:], asstr(out))) 12471s E RuntimeError: Running distutils build failed: [] 12471s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12471s E 12471s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12471s E of the deprecation of `distutils` itself. It will be removed for 12471s E Python >= 3.12. For older Python versions it will remain present. 12471s E It is recommended to use `setuptools < 60.0` for those Python versions. 12471s E For more details, see: 12471s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12471s E 12471s E 12471s E from numpy.distutils.core import setup 12471s E running build_ext 12471s E running build_src 12471s E INFO: build_src 12471s E INFO: building extension "test_array_from_pyobj_ext" sources 12471s E INFO: build_src: building npy-pkg config files 12471s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12471s E !! 12471s E 12471s E ******************************************************************************** 12471s E Please avoid running ``setup.py`` directly. 12471s E Instead, use pypa/build, pypa/installer or other 12471s E standards-based tools. 12471s E 12471s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12471s E ******************************************************************************** 12471s E 12471s E !! 12471s E self.initialize_options() 12471s E INFO: customize UnixCCompiler 12471s E INFO: customize UnixCCompiler using build_ext 12471s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/tmp 12471s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/usr 12471s E creating /tmp/tmpvt806usq/usr/lib 12471s E creating /tmp/tmpvt806usq/usr/lib/python3 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=native' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-O3' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-Werror' 12471s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12471s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-vfpv4' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=armv8.2-a+fp16' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12471s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12471s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12471s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12471s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12471s E INFO: building 'test_array_from_pyobj_ext' extension 12471s E INFO: compiling C sources 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12471s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12471s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12471s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12471s E 14 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E In file included from fortranobject.c:2: 12471s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12471s E 7 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12471s E INFO: 12471s E ########### EXT COMPILER OPTIMIZATION ########### 12471s E INFO: Platform : 12471s E Architecture: armhf 12471s E Compiler : gcc 12471s E 12471s E CPU baseline : 12471s E Requested : 'min' 12471s E Enabled : none 12471s E Flags : none 12471s E Extra checks: none 12471s E 12471s E CPU dispatch : 12471s E Requested : 'max -xop -fma4' 12471s E Enabled : none 12471s E Generated : none 12471s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12471s 12471s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12471s d = '/tmp/tmpmzdm58dt' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s err = None 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s kw = {} 12471s module_name = 'test_array_from_pyobj_ext' 12471s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12471s p = 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12471s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[UBYTE] _ 12471s 12471s def setup_module(): 12471s """ 12471s Build the required testing extension module 12471s 12471s """ 12471s global wrap 12471s 12471s # Check compiler availability first 12471s if not util.has_c_compiler(): 12471s pytest.skip("No C compiler available") 12471s 12471s if wrap is None: 12471s config_code = """ 12471s config.add_extension('test_array_from_pyobj_ext', 12471s sources=['wrapmodule.c', 'fortranobject.c'], 12471s define_macros=[]) 12471s """ 12471s d = os.path.dirname(__file__) 12471s src = [ 12471s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12471s util.getpath("src", "fortranobject.c"), 12471s util.getpath("src", "fortranobject.h"), 12471s ] 12471s > wrap = util.build_module_distutils(src, config_code, 12471s "test_array_from_pyobj_ext") 12471s 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12471s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12471s memo[key] = func(*a, **kw) 12471s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12471s func = 12471s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12471s kw = {} 12471s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s 12471s @_memoize 12471s def build_module_distutils(source_files, config_code, module_name, **kw): 12471s """ 12471s Build a module via distutils and import it. 12471s 12471s """ 12471s d = get_module_dir() 12471s 12471s # Copy files 12471s dst_sources = [] 12471s for fn in source_files: 12471s if not os.path.isfile(fn): 12471s raise RuntimeError("%s is not a file" % fn) 12471s dst = os.path.join(d, os.path.basename(fn)) 12471s shutil.copyfile(fn, dst) 12471s dst_sources.append(dst) 12471s 12471s # Build script 12471s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12471s 12471s code = fr""" 12471s import os 12471s import sys 12471s sys.path = {repr(sys.path)} 12471s 12471s def configuration(parent_name='',top_path=None): 12471s from numpy.distutils.misc_util import Configuration 12471s config = Configuration('', parent_name, top_path) 12471s {config_code} 12471s return config 12471s 12471s if __name__ == "__main__": 12471s from numpy.distutils.core import setup 12471s setup(configuration=configuration) 12471s """ 12471s script = os.path.join(d, get_temp_module_name() + ".py") 12471s dst_sources.append(script) 12471s with open(script, "wb") as f: 12471s f.write(asbytes(code)) 12471s 12471s # Build 12471s cwd = os.getcwd() 12471s try: 12471s os.chdir(d) 12471s cmd = [sys.executable, script, "build_ext", "-i"] 12471s p = subprocess.Popen(cmd, 12471s stdout=subprocess.PIPE, 12471s stderr=subprocess.STDOUT) 12471s out, err = p.communicate() 12471s if p.returncode != 0: 12471s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12471s (cmd[4:], asstr(out))) 12471s E RuntimeError: Running distutils build failed: [] 12471s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12471s E 12471s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12471s E of the deprecation of `distutils` itself. It will be removed for 12471s E Python >= 3.12. For older Python versions it will remain present. 12471s E It is recommended to use `setuptools < 60.0` for those Python versions. 12471s E For more details, see: 12471s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12471s E 12471s E 12471s E from numpy.distutils.core import setup 12471s E running build_ext 12471s E running build_src 12471s E INFO: build_src 12471s E INFO: building extension "test_array_from_pyobj_ext" sources 12471s E INFO: build_src: building npy-pkg config files 12471s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12471s E !! 12471s E 12471s E ******************************************************************************** 12471s E Please avoid running ``setup.py`` directly. 12471s E Instead, use pypa/build, pypa/installer or other 12471s E standards-based tools. 12471s E 12471s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12471s E ******************************************************************************** 12471s E 12471s E !! 12471s E self.initialize_options() 12471s E INFO: customize UnixCCompiler 12471s E INFO: customize UnixCCompiler using build_ext 12471s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/tmp 12471s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/usr 12471s E creating /tmp/tmpvt806usq/usr/lib 12471s E creating /tmp/tmpvt806usq/usr/lib/python3 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=native' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-O3' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-Werror' 12471s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12471s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-vfpv4' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=armv8.2-a+fp16' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12471s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12471s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12471s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12471s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12471s E INFO: building 'test_array_from_pyobj_ext' extension 12471s E INFO: compiling C sources 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12471s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12471s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12471s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12471s E 14 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E In file included from fortranobject.c:2: 12471s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12471s E 7 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12471s E INFO: 12471s E ########### EXT COMPILER OPTIMIZATION ########### 12471s E INFO: Platform : 12471s E Architecture: armhf 12471s E Compiler : gcc 12471s E 12471s E CPU baseline : 12471s E Requested : 'min' 12471s E Enabled : none 12471s E Flags : none 12471s E Extra checks: none 12471s E 12471s E CPU dispatch : 12471s E Requested : 'max -xop -fma4' 12471s E Enabled : none 12471s E Generated : none 12471s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12471s 12471s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12471s d = '/tmp/tmpmzdm58dt' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s err = None 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s kw = {} 12471s module_name = 'test_array_from_pyobj_ext' 12471s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12471s p = 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12471s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[UBYTE] __________ 12471s 12471s def setup_module(): 12471s """ 12471s Build the required testing extension module 12471s 12471s """ 12471s global wrap 12471s 12471s # Check compiler availability first 12471s if not util.has_c_compiler(): 12471s pytest.skip("No C compiler available") 12471s 12471s if wrap is None: 12471s config_code = """ 12471s config.add_extension('test_array_from_pyobj_ext', 12471s sources=['wrapmodule.c', 'fortranobject.c'], 12471s define_macros=[]) 12471s """ 12471s d = os.path.dirname(__file__) 12471s src = [ 12471s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12471s util.getpath("src", "fortranobject.c"), 12471s util.getpath("src", "fortranobject.h"), 12471s ] 12471s > wrap = util.build_module_distutils(src, config_code, 12471s "test_array_from_pyobj_ext") 12471s 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12471s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12471s memo[key] = func(*a, **kw) 12471s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12471s func = 12471s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12471s kw = {} 12471s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s 12471s @_memoize 12471s def build_module_distutils(source_files, config_code, module_name, **kw): 12471s """ 12471s Build a module via distutils and import it. 12471s 12471s """ 12471s d = get_module_dir() 12471s 12471s # Copy files 12471s dst_sources = [] 12471s for fn in source_files: 12471s if not os.path.isfile(fn): 12471s raise RuntimeError("%s is not a file" % fn) 12471s dst = os.path.join(d, os.path.basename(fn)) 12471s shutil.copyfile(fn, dst) 12471s dst_sources.append(dst) 12471s 12471s # Build script 12471s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12471s 12471s code = fr""" 12471s import os 12471s import sys 12471s sys.path = {repr(sys.path)} 12471s 12471s def configuration(parent_name='',top_path=None): 12471s from numpy.distutils.misc_util import Configuration 12471s config = Configuration('', parent_name, top_path) 12471s {config_code} 12471s return config 12471s 12471s if __name__ == "__main__": 12471s from numpy.distutils.core import setup 12471s setup(configuration=configuration) 12471s """ 12471s script = os.path.join(d, get_temp_module_name() + ".py") 12471s dst_sources.append(script) 12471s with open(script, "wb") as f: 12471s f.write(asbytes(code)) 12471s 12471s # Build 12471s cwd = os.getcwd() 12471s try: 12471s os.chdir(d) 12471s cmd = [sys.executable, script, "build_ext", "-i"] 12471s p = subprocess.Popen(cmd, 12471s stdout=subprocess.PIPE, 12471s stderr=subprocess.STDOUT) 12471s out, err = p.communicate() 12471s if p.returncode != 0: 12471s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12471s (cmd[4:], asstr(out))) 12471s E RuntimeError: Running distutils build failed: [] 12471s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12471s E 12471s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12471s E of the deprecation of `distutils` itself. It will be removed for 12471s E Python >= 3.12. For older Python versions it will remain present. 12471s E It is recommended to use `setuptools < 60.0` for those Python versions. 12471s E For more details, see: 12471s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12471s E 12471s E 12471s E from numpy.distutils.core import setup 12471s E running build_ext 12471s E running build_src 12471s E INFO: build_src 12471s E INFO: building extension "test_array_from_pyobj_ext" sources 12471s E INFO: build_src: building npy-pkg config files 12471s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12471s E !! 12471s E 12471s E ******************************************************************************** 12471s E Please avoid running ``setup.py`` directly. 12471s E Instead, use pypa/build, pypa/installer or other 12471s E standards-based tools. 12471s E 12471s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12471s E ******************************************************************************** 12471s E 12471s E !! 12471s E self.initialize_options() 12471s E INFO: customize UnixCCompiler 12471s E INFO: customize UnixCCompiler using build_ext 12471s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/tmp 12471s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/usr 12471s E creating /tmp/tmpvt806usq/usr/lib 12471s E creating /tmp/tmpvt806usq/usr/lib/python3 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=native' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-O3' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-Werror' 12471s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12471s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-vfpv4' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=armv8.2-a+fp16' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12471s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12471s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12471s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12471s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12471s E INFO: building 'test_array_from_pyobj_ext' extension 12471s E INFO: compiling C sources 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12471s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12471s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12471s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12471s E 14 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E In file included from fortranobject.c:2: 12471s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12471s E 7 | #include 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12471s E INFO: 12471s E ########### EXT COMPILER OPTIMIZATION ########### 12471s E INFO: Platform : 12471s E Architecture: armhf 12471s E Compiler : gcc 12471s E 12471s E CPU baseline : 12471s E Requested : 'min' 12471s E Enabled : none 12471s E Flags : none 12471s E Extra checks: none 12471s E 12471s E CPU dispatch : 12471s E Requested : 'max -xop -fma4' 12471s E Enabled : none 12471s E Generated : none 12471s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12471s 12471s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12471s d = '/tmp/tmpmzdm58dt' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s err = None 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s kw = {} 12471s module_name = 'test_array_from_pyobj_ext' 12471s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12471s p = 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12471s ____________ ERROR at setup of TestSharedMemory.test_hidden[UBYTE] _____________ 12471s 12471s def setup_module(): 12471s """ 12471s Build the required testing extension module 12471s 12471s """ 12471s global wrap 12471s 12471s # Check compiler availability first 12471s if not util.has_c_compiler(): 12471s pytest.skip("No C compiler available") 12471s 12471s if wrap is None: 12471s config_code = """ 12471s config.add_extension('test_array_from_pyobj_ext', 12471s sources=['wrapmodule.c', 'fortranobject.c'], 12471s define_macros=[]) 12471s """ 12471s d = os.path.dirname(__file__) 12471s src = [ 12471s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12471s util.getpath("src", "fortranobject.c"), 12471s util.getpath("src", "fortranobject.h"), 12471s ] 12471s > wrap = util.build_module_distutils(src, config_code, 12471s "test_array_from_pyobj_ext") 12471s 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12471s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12471s memo[key] = func(*a, **kw) 12471s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12471s func = 12471s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12471s kw = {} 12471s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12471s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12471s 12471s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12471s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12471s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12471s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12471s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12471s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12471s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12471s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12471s 12471s @_memoize 12471s def build_module_distutils(source_files, config_code, module_name, **kw): 12471s """ 12471s Build a module via distutils and import it. 12471s 12471s """ 12471s d = get_module_dir() 12471s 12471s # Copy files 12471s dst_sources = [] 12471s for fn in source_files: 12471s if not os.path.isfile(fn): 12471s raise RuntimeError("%s is not a file" % fn) 12471s dst = os.path.join(d, os.path.basename(fn)) 12471s shutil.copyfile(fn, dst) 12471s dst_sources.append(dst) 12471s 12471s # Build script 12471s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12471s 12471s code = fr""" 12471s import os 12471s import sys 12471s sys.path = {repr(sys.path)} 12471s 12471s def configuration(parent_name='',top_path=None): 12471s from numpy.distutils.misc_util import Configuration 12471s config = Configuration('', parent_name, top_path) 12471s {config_code} 12471s return config 12471s 12471s if __name__ == "__main__": 12471s from numpy.distutils.core import setup 12471s setup(configuration=configuration) 12471s """ 12471s script = os.path.join(d, get_temp_module_name() + ".py") 12471s dst_sources.append(script) 12471s with open(script, "wb") as f: 12471s f.write(asbytes(code)) 12471s 12471s # Build 12471s cwd = os.getcwd() 12471s try: 12471s os.chdir(d) 12471s cmd = [sys.executable, script, "build_ext", "-i"] 12471s p = subprocess.Popen(cmd, 12471s stdout=subprocess.PIPE, 12471s stderr=subprocess.STDOUT) 12471s out, err = p.communicate() 12471s if p.returncode != 0: 12471s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12471s (cmd[4:], asstr(out))) 12471s E RuntimeError: Running distutils build failed: [] 12471s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12471s E 12471s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12471s E of the deprecation of `distutils` itself. It will be removed for 12471s E Python >= 3.12. For older Python versions it will remain present. 12471s E It is recommended to use `setuptools < 60.0` for those Python versions. 12471s E For more details, see: 12471s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12471s E 12471s E 12471s E from numpy.distutils.core import setup 12471s E running build_ext 12471s E running build_src 12471s E INFO: build_src 12471s E INFO: building extension "test_array_from_pyobj_ext" sources 12471s E INFO: build_src: building npy-pkg config files 12471s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12471s E !! 12471s E 12471s E ******************************************************************************** 12471s E Please avoid running ``setup.py`` directly. 12471s E Instead, use pypa/build, pypa/installer or other 12471s E standards-based tools. 12471s E 12471s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12471s E ******************************************************************************** 12471s E 12471s E !! 12471s E self.initialize_options() 12471s E INFO: customize UnixCCompiler 12471s E INFO: customize UnixCCompiler using build_ext 12471s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/tmp 12471s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E creating /tmp/tmpvt806usq/usr 12471s E creating /tmp/tmpvt806usq/usr/lib 12471s E creating /tmp/tmpvt806usq/usr/lib/python3 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12471s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-march=native' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-O3' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-Werror' 12471s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12471s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12471s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon-vfpv4' 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12471s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12471s E 9 | # include_next 12471s E | ^~~~~~~~~~ 12471s E compilation terminated. 12471s E 12471s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12471s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12471s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12471s E 12471s E INFO: compile options: '-I/usr/include/python3.12 -c' 12471s E extra options: '-mfpu=neon -Werror' 12471s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12471s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12471s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12471s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s _________ ERROR at setup of TestSharedMemory.test_optional_none[UBYTE] _________ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[UBYTE] _______ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[UBYTE] ______ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s ____________ ERROR at setup of TestSharedMemory.test_inplace[UBYTE] ____________ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[UBYTE] _____ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[SHORT] __________ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[SHORT] _______ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-2seq-C-w] _______ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-2seq-C-ro] ______ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-2seq-F-w] _______ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-2seq-F-ro] ______ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s err = None 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s kw = {} 12472s module_name = 'test_array_from_pyobj_ext' 12472s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12472s p = 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12472s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-23seq-C-w] ______ 12472s 12472s def setup_module(): 12472s """ 12472s Build the required testing extension module 12472s 12472s """ 12472s global wrap 12472s 12472s # Check compiler availability first 12472s if not util.has_c_compiler(): 12472s pytest.skip("No C compiler available") 12472s 12472s if wrap is None: 12472s config_code = """ 12472s config.add_extension('test_array_from_pyobj_ext', 12472s sources=['wrapmodule.c', 'fortranobject.c'], 12472s define_macros=[]) 12472s """ 12472s d = os.path.dirname(__file__) 12472s src = [ 12472s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12472s util.getpath("src", "fortranobject.c"), 12472s util.getpath("src", "fortranobject.h"), 12472s ] 12472s > wrap = util.build_module_distutils(src, config_code, 12472s "test_array_from_pyobj_ext") 12472s 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12472s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12472s memo[key] = func(*a, **kw) 12472s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12472s func = 12472s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12472s kw = {} 12472s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12472s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12472s 12472s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12472s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12472s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12472s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12472s 12472s @_memoize 12472s def build_module_distutils(source_files, config_code, module_name, **kw): 12472s """ 12472s Build a module via distutils and import it. 12472s 12472s """ 12472s d = get_module_dir() 12472s 12472s # Copy files 12472s dst_sources = [] 12472s for fn in source_files: 12472s if not os.path.isfile(fn): 12472s raise RuntimeError("%s is not a file" % fn) 12472s dst = os.path.join(d, os.path.basename(fn)) 12472s shutil.copyfile(fn, dst) 12472s dst_sources.append(dst) 12472s 12472s # Build script 12472s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12472s 12472s code = fr""" 12472s import os 12472s import sys 12472s sys.path = {repr(sys.path)} 12472s 12472s def configuration(parent_name='',top_path=None): 12472s from numpy.distutils.misc_util import Configuration 12472s config = Configuration('', parent_name, top_path) 12472s {config_code} 12472s return config 12472s 12472s if __name__ == "__main__": 12472s from numpy.distutils.core import setup 12472s setup(configuration=configuration) 12472s """ 12472s script = os.path.join(d, get_temp_module_name() + ".py") 12472s dst_sources.append(script) 12472s with open(script, "wb") as f: 12472s f.write(asbytes(code)) 12472s 12472s # Build 12472s cwd = os.getcwd() 12472s try: 12472s os.chdir(d) 12472s cmd = [sys.executable, script, "build_ext", "-i"] 12472s p = subprocess.Popen(cmd, 12472s stdout=subprocess.PIPE, 12472s stderr=subprocess.STDOUT) 12472s out, err = p.communicate() 12472s if p.returncode != 0: 12472s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12472s (cmd[4:], asstr(out))) 12472s E RuntimeError: Running distutils build failed: [] 12472s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12472s E 12472s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12472s E of the deprecation of `distutils` itself. It will be removed for 12472s E Python >= 3.12. For older Python versions it will remain present. 12472s E It is recommended to use `setuptools < 60.0` for those Python versions. 12472s E For more details, see: 12472s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12472s E 12472s E 12472s E from numpy.distutils.core import setup 12472s E running build_ext 12472s E running build_src 12472s E INFO: build_src 12472s E INFO: building extension "test_array_from_pyobj_ext" sources 12472s E INFO: build_src: building npy-pkg config files 12472s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12472s E !! 12472s E 12472s E ******************************************************************************** 12472s E Please avoid running ``setup.py`` directly. 12472s E Instead, use pypa/build, pypa/installer or other 12472s E standards-based tools. 12472s E 12472s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12472s E ******************************************************************************** 12472s E 12472s E !! 12472s E self.initialize_options() 12472s E INFO: customize UnixCCompiler 12472s E INFO: customize UnixCCompiler using build_ext 12472s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/tmp 12472s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E creating /tmp/tmpvt806usq/usr 12472s E creating /tmp/tmpvt806usq/usr/lib 12472s E creating /tmp/tmpvt806usq/usr/lib/python3 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12472s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=native' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-O3' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-Werror' 12472s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12472s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-vfpv4' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12472s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-march=armv8.2-a+fp16' 12472s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/include/python3.12 -c' 12472s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12472s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12472s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12472s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12472s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12472s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12472s E 9 | # include_next 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E 12472s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12472s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12472s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12472s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12472s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12472s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12472s E INFO: building 'test_array_from_pyobj_ext' extension 12472s E INFO: compiling C sources 12472s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12472s E 12472s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12472s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12472s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12472s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12472s E 14 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E In file included from fortranobject.c:2: 12472s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12472s E 7 | #include 12472s E | ^~~~~~~~~~ 12472s E compilation terminated. 12472s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12472s E INFO: 12472s E ########### EXT COMPILER OPTIMIZATION ########### 12472s E INFO: Platform : 12472s E Architecture: armhf 12472s E Compiler : gcc 12472s E 12472s E CPU baseline : 12472s E Requested : 'min' 12472s E Enabled : none 12472s E Flags : none 12472s E Extra checks: none 12472s E 12472s E CPU dispatch : 12472s E Requested : 'max -xop -fma4' 12472s E Enabled : none 12472s E Generated : none 12472s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12472s 12472s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12472s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12472s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12472s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12472s d = '/tmp/tmpmzdm58dt' 12472s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-23seq-C-ro] ______ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-23seq-F-w] ______ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-23seq-F-ro] ______ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[SHORT] ___________ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[SHORT] _________ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[SHORT] _________ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[SHORT] _____ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[SHORT] ________ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[SHORT] _______ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[SHORT] ______ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[SHORT] ______ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12473s d = '/tmp/tmpmzdm58dt' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s err = None 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s kw = {} 12473s module_name = 'test_array_from_pyobj_ext' 12473s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12473s p = 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12473s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[SHORT] ___ 12473s 12473s def setup_module(): 12473s """ 12473s Build the required testing extension module 12473s 12473s """ 12473s global wrap 12473s 12473s # Check compiler availability first 12473s if not util.has_c_compiler(): 12473s pytest.skip("No C compiler available") 12473s 12473s if wrap is None: 12473s config_code = """ 12473s config.add_extension('test_array_from_pyobj_ext', 12473s sources=['wrapmodule.c', 'fortranobject.c'], 12473s define_macros=[]) 12473s """ 12473s d = os.path.dirname(__file__) 12473s src = [ 12473s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12473s util.getpath("src", "fortranobject.c"), 12473s util.getpath("src", "fortranobject.h"), 12473s ] 12473s > wrap = util.build_module_distutils(src, config_code, 12473s "test_array_from_pyobj_ext") 12473s 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12473s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12473s memo[key] = func(*a, **kw) 12473s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12473s func = 12473s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12473s kw = {} 12473s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12473s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12473s 12473s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12473s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12473s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12473s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12473s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12473s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12473s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12473s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12473s 12473s @_memoize 12473s def build_module_distutils(source_files, config_code, module_name, **kw): 12473s """ 12473s Build a module via distutils and import it. 12473s 12473s """ 12473s d = get_module_dir() 12473s 12473s # Copy files 12473s dst_sources = [] 12473s for fn in source_files: 12473s if not os.path.isfile(fn): 12473s raise RuntimeError("%s is not a file" % fn) 12473s dst = os.path.join(d, os.path.basename(fn)) 12473s shutil.copyfile(fn, dst) 12473s dst_sources.append(dst) 12473s 12473s # Build script 12473s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12473s 12473s code = fr""" 12473s import os 12473s import sys 12473s sys.path = {repr(sys.path)} 12473s 12473s def configuration(parent_name='',top_path=None): 12473s from numpy.distutils.misc_util import Configuration 12473s config = Configuration('', parent_name, top_path) 12473s {config_code} 12473s return config 12473s 12473s if __name__ == "__main__": 12473s from numpy.distutils.core import setup 12473s setup(configuration=configuration) 12473s """ 12473s script = os.path.join(d, get_temp_module_name() + ".py") 12473s dst_sources.append(script) 12473s with open(script, "wb") as f: 12473s f.write(asbytes(code)) 12473s 12473s # Build 12473s cwd = os.getcwd() 12473s try: 12473s os.chdir(d) 12473s cmd = [sys.executable, script, "build_ext", "-i"] 12473s p = subprocess.Popen(cmd, 12473s stdout=subprocess.PIPE, 12473s stderr=subprocess.STDOUT) 12473s out, err = p.communicate() 12473s if p.returncode != 0: 12473s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12473s (cmd[4:], asstr(out))) 12473s E RuntimeError: Running distutils build failed: [] 12473s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12473s E 12473s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12473s E of the deprecation of `distutils` itself. It will be removed for 12473s E Python >= 3.12. For older Python versions it will remain present. 12473s E It is recommended to use `setuptools < 60.0` for those Python versions. 12473s E For more details, see: 12473s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12473s E 12473s E 12473s E from numpy.distutils.core import setup 12473s E running build_ext 12473s E running build_src 12473s E INFO: build_src 12473s E INFO: building extension "test_array_from_pyobj_ext" sources 12473s E INFO: build_src: building npy-pkg config files 12473s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12473s E !! 12473s E 12473s E ******************************************************************************** 12473s E Please avoid running ``setup.py`` directly. 12473s E Instead, use pypa/build, pypa/installer or other 12473s E standards-based tools. 12473s E 12473s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12473s E ******************************************************************************** 12473s E 12473s E !! 12473s E self.initialize_options() 12473s E INFO: customize UnixCCompiler 12473s E INFO: customize UnixCCompiler using build_ext 12473s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/tmp 12473s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E creating /tmp/tmpvt806usq/usr 12473s E creating /tmp/tmpvt806usq/usr/lib 12473s E creating /tmp/tmpvt806usq/usr/lib/python3 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12473s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=native' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-O3' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-Werror' 12473s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12473s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-vfpv4' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12473s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-march=armv8.2-a+fp16' 12473s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/include/python3.12 -c' 12473s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12473s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12473s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12473s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12473s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12473s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12473s E 9 | # include_next 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E 12473s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12473s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12473s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12473s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12473s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12473s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12473s E INFO: building 'test_array_from_pyobj_ext' extension 12473s E INFO: compiling C sources 12473s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12473s E 12473s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12473s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12473s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12473s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12473s E 14 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E In file included from fortranobject.c:2: 12473s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12473s E 7 | #include 12473s E | ^~~~~~~~~~ 12473s E compilation terminated. 12473s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12473s E INFO: 12473s E ########### EXT COMPILER OPTIMIZATION ########### 12473s E INFO: Platform : 12473s E Architecture: armhf 12473s E Compiler : gcc 12473s E 12473s E CPU baseline : 12473s E Requested : 'min' 12473s E Enabled : none 12473s E Flags : none 12473s E Extra checks: none 12473s E 12473s E CPU dispatch : 12473s E Requested : 'max -xop -fma4' 12473s E Enabled : none 12473s E Generated : none 12473s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12473s 12473s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[SHORT] ___ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[SHORT] ____ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[SHORT] _ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[SHORT] __________ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s ____________ ERROR at setup of TestSharedMemory.test_hidden[SHORT] _____________ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s _________ ERROR at setup of TestSharedMemory.test_optional_none[SHORT] _________ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[SHORT] _______ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[SHORT] ______ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s ____________ ERROR at setup of TestSharedMemory.test_inplace[SHORT] ____________ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-vfpv4' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=armv8.2-a+fp16' 12474s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12474s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12474s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12474s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12474s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12474s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12474s E 9 | # include_next 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E 12474s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12474s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12474s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12474s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12474s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12474s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12474s E INFO: building 'test_array_from_pyobj_ext' extension 12474s E INFO: compiling C sources 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12474s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12474s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12474s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12474s E 14 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E In file included from fortranobject.c:2: 12474s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12474s E 7 | #include 12474s E | ^~~~~~~~~~ 12474s E compilation terminated. 12474s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12474s E INFO: 12474s E ########### EXT COMPILER OPTIMIZATION ########### 12474s E INFO: Platform : 12474s E Architecture: armhf 12474s E Compiler : gcc 12474s E 12474s E CPU baseline : 12474s E Requested : 'min' 12474s E Enabled : none 12474s E Flags : none 12474s E Extra checks: none 12474s E 12474s E CPU dispatch : 12474s E Requested : 'max -xop -fma4' 12474s E Enabled : none 12474s E Generated : none 12474s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12474s 12474s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12474s d = '/tmp/tmpmzdm58dt' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s err = None 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s kw = {} 12474s module_name = 'test_array_from_pyobj_ext' 12474s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12474s p = 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12474s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[SHORT] _____ 12474s 12474s def setup_module(): 12474s """ 12474s Build the required testing extension module 12474s 12474s """ 12474s global wrap 12474s 12474s # Check compiler availability first 12474s if not util.has_c_compiler(): 12474s pytest.skip("No C compiler available") 12474s 12474s if wrap is None: 12474s config_code = """ 12474s config.add_extension('test_array_from_pyobj_ext', 12474s sources=['wrapmodule.c', 'fortranobject.c'], 12474s define_macros=[]) 12474s """ 12474s d = os.path.dirname(__file__) 12474s src = [ 12474s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12474s util.getpath("src", "fortranobject.c"), 12474s util.getpath("src", "fortranobject.h"), 12474s ] 12474s > wrap = util.build_module_distutils(src, config_code, 12474s "test_array_from_pyobj_ext") 12474s 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12474s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12474s memo[key] = func(*a, **kw) 12474s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12474s func = 12474s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12474s kw = {} 12474s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12474s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12474s 12474s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12474s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12474s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12474s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12474s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12474s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12474s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12474s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12474s 12474s @_memoize 12474s def build_module_distutils(source_files, config_code, module_name, **kw): 12474s """ 12474s Build a module via distutils and import it. 12474s 12474s """ 12474s d = get_module_dir() 12474s 12474s # Copy files 12474s dst_sources = [] 12474s for fn in source_files: 12474s if not os.path.isfile(fn): 12474s raise RuntimeError("%s is not a file" % fn) 12474s dst = os.path.join(d, os.path.basename(fn)) 12474s shutil.copyfile(fn, dst) 12474s dst_sources.append(dst) 12474s 12474s # Build script 12474s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12474s 12474s code = fr""" 12474s import os 12474s import sys 12474s sys.path = {repr(sys.path)} 12474s 12474s def configuration(parent_name='',top_path=None): 12474s from numpy.distutils.misc_util import Configuration 12474s config = Configuration('', parent_name, top_path) 12474s {config_code} 12474s return config 12474s 12474s if __name__ == "__main__": 12474s from numpy.distutils.core import setup 12474s setup(configuration=configuration) 12474s """ 12474s script = os.path.join(d, get_temp_module_name() + ".py") 12474s dst_sources.append(script) 12474s with open(script, "wb") as f: 12474s f.write(asbytes(code)) 12474s 12474s # Build 12474s cwd = os.getcwd() 12474s try: 12474s os.chdir(d) 12474s cmd = [sys.executable, script, "build_ext", "-i"] 12474s p = subprocess.Popen(cmd, 12474s stdout=subprocess.PIPE, 12474s stderr=subprocess.STDOUT) 12474s out, err = p.communicate() 12474s if p.returncode != 0: 12474s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12474s (cmd[4:], asstr(out))) 12474s E RuntimeError: Running distutils build failed: [] 12474s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12474s E 12474s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12474s E of the deprecation of `distutils` itself. It will be removed for 12474s E Python >= 3.12. For older Python versions it will remain present. 12474s E It is recommended to use `setuptools < 60.0` for those Python versions. 12474s E For more details, see: 12474s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12474s E 12474s E 12474s E from numpy.distutils.core import setup 12474s E running build_ext 12474s E running build_src 12474s E INFO: build_src 12474s E INFO: building extension "test_array_from_pyobj_ext" sources 12474s E INFO: build_src: building npy-pkg config files 12474s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12474s E !! 12474s E 12474s E ******************************************************************************** 12474s E Please avoid running ``setup.py`` directly. 12474s E Instead, use pypa/build, pypa/installer or other 12474s E standards-based tools. 12474s E 12474s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12474s E ******************************************************************************** 12474s E 12474s E !! 12474s E self.initialize_options() 12474s E INFO: customize UnixCCompiler 12474s E INFO: customize UnixCCompiler using build_ext 12474s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/tmp 12474s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E creating /tmp/tmpvt806usq/usr 12474s E creating /tmp/tmpvt806usq/usr/lib 12474s E creating /tmp/tmpvt806usq/usr/lib/python3 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12474s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-march=native' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-O3' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-Werror' 12474s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12474s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12474s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12474s E 12474s E INFO: compile options: '-I/usr/include/python3.12 -c' 12474s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12474s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[USHORT] _________ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[USHORT] _______ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-2seq-C-w] ______ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-2seq-C-ro] ______ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-2seq-F-w] ______ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-2seq-F-ro] ______ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-23seq-C-w] ______ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-23seq-C-ro] _____ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-23seq-F-w] ______ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-23seq-F-ro] _____ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[USHORT] __________ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[USHORT] _________ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s 12475s @_memoize 12475s def build_module_distutils(source_files, config_code, module_name, **kw): 12475s """ 12475s Build a module via distutils and import it. 12475s 12475s """ 12475s d = get_module_dir() 12475s 12475s # Copy files 12475s dst_sources = [] 12475s for fn in source_files: 12475s if not os.path.isfile(fn): 12475s raise RuntimeError("%s is not a file" % fn) 12475s dst = os.path.join(d, os.path.basename(fn)) 12475s shutil.copyfile(fn, dst) 12475s dst_sources.append(dst) 12475s 12475s # Build script 12475s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12475s 12475s code = fr""" 12475s import os 12475s import sys 12475s sys.path = {repr(sys.path)} 12475s 12475s def configuration(parent_name='',top_path=None): 12475s from numpy.distutils.misc_util import Configuration 12475s config = Configuration('', parent_name, top_path) 12475s {config_code} 12475s return config 12475s 12475s if __name__ == "__main__": 12475s from numpy.distutils.core import setup 12475s setup(configuration=configuration) 12475s """ 12475s script = os.path.join(d, get_temp_module_name() + ".py") 12475s dst_sources.append(script) 12475s with open(script, "wb") as f: 12475s f.write(asbytes(code)) 12475s 12475s # Build 12475s cwd = os.getcwd() 12475s try: 12475s os.chdir(d) 12475s cmd = [sys.executable, script, "build_ext", "-i"] 12475s p = subprocess.Popen(cmd, 12475s stdout=subprocess.PIPE, 12475s stderr=subprocess.STDOUT) 12475s out, err = p.communicate() 12475s if p.returncode != 0: 12475s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12475s (cmd[4:], asstr(out))) 12475s E RuntimeError: Running distutils build failed: [] 12475s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12475s E 12475s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12475s E of the deprecation of `distutils` itself. It will be removed for 12475s E Python >= 3.12. For older Python versions it will remain present. 12475s E It is recommended to use `setuptools < 60.0` for those Python versions. 12475s E For more details, see: 12475s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12475s E 12475s E 12475s E from numpy.distutils.core import setup 12475s E running build_ext 12475s E running build_src 12475s E INFO: build_src 12475s E INFO: building extension "test_array_from_pyobj_ext" sources 12475s E INFO: build_src: building npy-pkg config files 12475s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12475s E !! 12475s E 12475s E ******************************************************************************** 12475s E Please avoid running ``setup.py`` directly. 12475s E Instead, use pypa/build, pypa/installer or other 12475s E standards-based tools. 12475s E 12475s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12475s E ******************************************************************************** 12475s E 12475s E !! 12475s E self.initialize_options() 12475s E INFO: customize UnixCCompiler 12475s E INFO: customize UnixCCompiler using build_ext 12475s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/tmp 12475s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E creating /tmp/tmpvt806usq/usr 12475s E creating /tmp/tmpvt806usq/usr/lib 12475s E creating /tmp/tmpvt806usq/usr/lib/python3 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12475s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=native' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-O3' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-Werror' 12475s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12475s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-vfpv4' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12475s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-march=armv8.2-a+fp16' 12475s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/include/python3.12 -c' 12475s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12475s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12475s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12475s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12475s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12475s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12475s E 9 | # include_next 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E 12475s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12475s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12475s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12475s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12475s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12475s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12475s E INFO: building 'test_array_from_pyobj_ext' extension 12475s E INFO: compiling C sources 12475s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12475s E 12475s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12475s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12475s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12475s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12475s E 14 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E In file included from fortranobject.c:2: 12475s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12475s E 7 | #include 12475s E | ^~~~~~~~~~ 12475s E compilation terminated. 12475s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12475s E INFO: 12475s E ########### EXT COMPILER OPTIMIZATION ########### 12475s E INFO: Platform : 12475s E Architecture: armhf 12475s E Compiler : gcc 12475s E 12475s E CPU baseline : 12475s E Requested : 'min' 12475s E Enabled : none 12475s E Flags : none 12475s E Extra checks: none 12475s E 12475s E CPU dispatch : 12475s E Requested : 'max -xop -fma4' 12475s E Enabled : none 12475s E Generated : none 12475s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12475s 12475s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12475s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12475s d = '/tmp/tmpmzdm58dt' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s err = None 12475s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s kw = {} 12475s module_name = 'test_array_from_pyobj_ext' 12475s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12475s p = 12475s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12475s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[USHORT] _________ 12475s 12475s def setup_module(): 12475s """ 12475s Build the required testing extension module 12475s 12475s """ 12475s global wrap 12475s 12475s # Check compiler availability first 12475s if not util.has_c_compiler(): 12475s pytest.skip("No C compiler available") 12475s 12475s if wrap is None: 12475s config_code = """ 12475s config.add_extension('test_array_from_pyobj_ext', 12475s sources=['wrapmodule.c', 'fortranobject.c'], 12475s define_macros=[]) 12475s """ 12475s d = os.path.dirname(__file__) 12475s src = [ 12475s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12475s util.getpath("src", "fortranobject.c"), 12475s util.getpath("src", "fortranobject.h"), 12475s ] 12475s > wrap = util.build_module_distutils(src, config_code, 12475s "test_array_from_pyobj_ext") 12475s 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12475s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12475s memo[key] = func(*a, **kw) 12475s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12475s func = 12475s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12475s kw = {} 12475s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12475s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12475s 12475s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12475s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12475s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12475s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12475s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12475s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[USHORT] ____ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[USHORT] ________ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[USHORT] ______ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[USHORT] _____ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[USHORT] _____ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[USHORT] ___ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[USHORT] ___ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[USHORT] ____ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[USHORT] _ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[USHORT] _________ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s ____________ ERROR at setup of TestSharedMemory.test_hidden[USHORT] ____________ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s ________ ERROR at setup of TestSharedMemory.test_optional_none[USHORT] _________ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[USHORT] ______ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=armv8.2-a+fp16' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12476s E 9 | # include_next 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E 12476s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12476s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12476s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12476s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12476s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12476s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12476s E INFO: building 'test_array_from_pyobj_ext' extension 12476s E INFO: compiling C sources 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12476s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12476s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12476s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12476s E 14 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E In file included from fortranobject.c:2: 12476s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12476s E 7 | #include 12476s E | ^~~~~~~~~~ 12476s E compilation terminated. 12476s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12476s E INFO: 12476s E ########### EXT COMPILER OPTIMIZATION ########### 12476s E INFO: Platform : 12476s E Architecture: armhf 12476s E Compiler : gcc 12476s E 12476s E CPU baseline : 12476s E Requested : 'min' 12476s E Enabled : none 12476s E Flags : none 12476s E Extra checks: none 12476s E 12476s E CPU dispatch : 12476s E Requested : 'max -xop -fma4' 12476s E Enabled : none 12476s E Generated : none 12476s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12476s 12476s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12476s d = '/tmp/tmpmzdm58dt' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s err = None 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s kw = {} 12476s module_name = 'test_array_from_pyobj_ext' 12476s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12476s p = 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12476s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[USHORT] ______ 12476s 12476s def setup_module(): 12476s """ 12476s Build the required testing extension module 12476s 12476s """ 12476s global wrap 12476s 12476s # Check compiler availability first 12476s if not util.has_c_compiler(): 12476s pytest.skip("No C compiler available") 12476s 12476s if wrap is None: 12476s config_code = """ 12476s config.add_extension('test_array_from_pyobj_ext', 12476s sources=['wrapmodule.c', 'fortranobject.c'], 12476s define_macros=[]) 12476s """ 12476s d = os.path.dirname(__file__) 12476s src = [ 12476s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12476s util.getpath("src", "fortranobject.c"), 12476s util.getpath("src", "fortranobject.h"), 12476s ] 12476s > wrap = util.build_module_distutils(src, config_code, 12476s "test_array_from_pyobj_ext") 12476s 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12476s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12476s memo[key] = func(*a, **kw) 12476s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12476s func = 12476s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12476s kw = {} 12476s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12476s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12476s 12476s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12476s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12476s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12476s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12476s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12476s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12476s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12476s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12476s 12476s @_memoize 12476s def build_module_distutils(source_files, config_code, module_name, **kw): 12476s """ 12476s Build a module via distutils and import it. 12476s 12476s """ 12476s d = get_module_dir() 12476s 12476s # Copy files 12476s dst_sources = [] 12476s for fn in source_files: 12476s if not os.path.isfile(fn): 12476s raise RuntimeError("%s is not a file" % fn) 12476s dst = os.path.join(d, os.path.basename(fn)) 12476s shutil.copyfile(fn, dst) 12476s dst_sources.append(dst) 12476s 12476s # Build script 12476s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12476s 12476s code = fr""" 12476s import os 12476s import sys 12476s sys.path = {repr(sys.path)} 12476s 12476s def configuration(parent_name='',top_path=None): 12476s from numpy.distutils.misc_util import Configuration 12476s config = Configuration('', parent_name, top_path) 12476s {config_code} 12476s return config 12476s 12476s if __name__ == "__main__": 12476s from numpy.distutils.core import setup 12476s setup(configuration=configuration) 12476s """ 12476s script = os.path.join(d, get_temp_module_name() + ".py") 12476s dst_sources.append(script) 12476s with open(script, "wb") as f: 12476s f.write(asbytes(code)) 12476s 12476s # Build 12476s cwd = os.getcwd() 12476s try: 12476s os.chdir(d) 12476s cmd = [sys.executable, script, "build_ext", "-i"] 12476s p = subprocess.Popen(cmd, 12476s stdout=subprocess.PIPE, 12476s stderr=subprocess.STDOUT) 12476s out, err = p.communicate() 12476s if p.returncode != 0: 12476s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12476s (cmd[4:], asstr(out))) 12476s E RuntimeError: Running distutils build failed: [] 12476s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12476s E 12476s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12476s E of the deprecation of `distutils` itself. It will be removed for 12476s E Python >= 3.12. For older Python versions it will remain present. 12476s E It is recommended to use `setuptools < 60.0` for those Python versions. 12476s E For more details, see: 12476s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12476s E 12476s E 12476s E from numpy.distutils.core import setup 12476s E running build_ext 12476s E running build_src 12476s E INFO: build_src 12476s E INFO: building extension "test_array_from_pyobj_ext" sources 12476s E INFO: build_src: building npy-pkg config files 12476s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12476s E !! 12476s E 12476s E ******************************************************************************** 12476s E Please avoid running ``setup.py`` directly. 12476s E Instead, use pypa/build, pypa/installer or other 12476s E standards-based tools. 12476s E 12476s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12476s E ******************************************************************************** 12476s E 12476s E !! 12476s E self.initialize_options() 12476s E INFO: customize UnixCCompiler 12476s E INFO: customize UnixCCompiler using build_ext 12476s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/tmp 12476s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E creating /tmp/tmpvt806usq/usr 12476s E creating /tmp/tmpvt806usq/usr/lib 12476s E creating /tmp/tmpvt806usq/usr/lib/python3 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12476s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-march=native' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-O3' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-Werror' 12476s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12476s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12476s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfpu=neon-vfpv4' 12476s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12476s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12476s E 12476s E INFO: compile options: '-I/usr/include/python3.12 -c' 12476s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12476s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12476s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12476s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12476s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12476s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s ___________ ERROR at setup of TestSharedMemory.test_inplace[USHORT] ____________ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[USHORT] _____ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[INT] ___________ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s ________ ERROR at setup of TestSharedMemory.test_in_from_2casttype[INT] ________ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-2seq-C-w] ________ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-2seq-C-ro] _______ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-2seq-F-w] ________ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-2seq-F-ro] _______ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-23seq-C-w] _______ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-23seq-C-ro] _______ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-23seq-F-w] _______ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-23seq-F-ro] _______ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[INT] ____________ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-Werror' 12477s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12477s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-vfpv4' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=armv8.2-a+fp16' 12477s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12477s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12477s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12477s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12477s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12477s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12477s E 9 | # include_next 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E 12477s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12477s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12477s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12477s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12477s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12477s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12477s E INFO: building 'test_array_from_pyobj_ext' extension 12477s E INFO: compiling C sources 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12477s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12477s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12477s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12477s E 14 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E In file included from fortranobject.c:2: 12477s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12477s E 7 | #include 12477s E | ^~~~~~~~~~ 12477s E compilation terminated. 12477s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12477s E INFO: 12477s E ########### EXT COMPILER OPTIMIZATION ########### 12477s E INFO: Platform : 12477s E Architecture: armhf 12477s E Compiler : gcc 12477s E 12477s E CPU baseline : 12477s E Requested : 'min' 12477s E Enabled : none 12477s E Flags : none 12477s E Extra checks: none 12477s E 12477s E CPU dispatch : 12477s E Requested : 'max -xop -fma4' 12477s E Enabled : none 12477s E Generated : none 12477s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12477s 12477s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12477s d = '/tmp/tmpmzdm58dt' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s err = None 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s kw = {} 12477s module_name = 'test_array_from_pyobj_ext' 12477s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12477s p = 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12477s __________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[INT] __________ 12477s 12477s def setup_module(): 12477s """ 12477s Build the required testing extension module 12477s 12477s """ 12477s global wrap 12477s 12477s # Check compiler availability first 12477s if not util.has_c_compiler(): 12477s pytest.skip("No C compiler available") 12477s 12477s if wrap is None: 12477s config_code = """ 12477s config.add_extension('test_array_from_pyobj_ext', 12477s sources=['wrapmodule.c', 'fortranobject.c'], 12477s define_macros=[]) 12477s """ 12477s d = os.path.dirname(__file__) 12477s src = [ 12477s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12477s util.getpath("src", "fortranobject.c"), 12477s util.getpath("src", "fortranobject.h"), 12477s ] 12477s > wrap = util.build_module_distutils(src, config_code, 12477s "test_array_from_pyobj_ext") 12477s 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12477s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12477s memo[key] = func(*a, **kw) 12477s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12477s func = 12477s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12477s kw = {} 12477s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12477s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12477s 12477s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12477s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12477s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12477s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12477s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12477s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12477s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12477s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12477s 12477s @_memoize 12477s def build_module_distutils(source_files, config_code, module_name, **kw): 12477s """ 12477s Build a module via distutils and import it. 12477s 12477s """ 12477s d = get_module_dir() 12477s 12477s # Copy files 12477s dst_sources = [] 12477s for fn in source_files: 12477s if not os.path.isfile(fn): 12477s raise RuntimeError("%s is not a file" % fn) 12477s dst = os.path.join(d, os.path.basename(fn)) 12477s shutil.copyfile(fn, dst) 12477s dst_sources.append(dst) 12477s 12477s # Build script 12477s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12477s 12477s code = fr""" 12477s import os 12477s import sys 12477s sys.path = {repr(sys.path)} 12477s 12477s def configuration(parent_name='',top_path=None): 12477s from numpy.distutils.misc_util import Configuration 12477s config = Configuration('', parent_name, top_path) 12477s {config_code} 12477s return config 12477s 12477s if __name__ == "__main__": 12477s from numpy.distutils.core import setup 12477s setup(configuration=configuration) 12477s """ 12477s script = os.path.join(d, get_temp_module_name() + ".py") 12477s dst_sources.append(script) 12477s with open(script, "wb") as f: 12477s f.write(asbytes(code)) 12477s 12477s # Build 12477s cwd = os.getcwd() 12477s try: 12477s os.chdir(d) 12477s cmd = [sys.executable, script, "build_ext", "-i"] 12477s p = subprocess.Popen(cmd, 12477s stdout=subprocess.PIPE, 12477s stderr=subprocess.STDOUT) 12477s out, err = p.communicate() 12477s if p.returncode != 0: 12477s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12477s (cmd[4:], asstr(out))) 12477s E RuntimeError: Running distutils build failed: [] 12477s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12477s E 12477s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12477s E of the deprecation of `distutils` itself. It will be removed for 12477s E Python >= 3.12. For older Python versions it will remain present. 12477s E It is recommended to use `setuptools < 60.0` for those Python versions. 12477s E For more details, see: 12477s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12477s E 12477s E 12477s E from numpy.distutils.core import setup 12477s E running build_ext 12477s E running build_src 12477s E INFO: build_src 12477s E INFO: building extension "test_array_from_pyobj_ext" sources 12477s E INFO: build_src: building npy-pkg config files 12477s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12477s E !! 12477s E 12477s E ******************************************************************************** 12477s E Please avoid running ``setup.py`` directly. 12477s E Instead, use pypa/build, pypa/installer or other 12477s E standards-based tools. 12477s E 12477s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12477s E ******************************************************************************** 12477s E 12477s E !! 12477s E self.initialize_options() 12477s E INFO: customize UnixCCompiler 12477s E INFO: customize UnixCCompiler using build_ext 12477s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/tmp 12477s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E creating /tmp/tmpvt806usq/usr 12477s E creating /tmp/tmpvt806usq/usr/lib 12477s E creating /tmp/tmpvt806usq/usr/lib/python3 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12477s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-march=native' 12477s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12477s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12477s E 12477s E INFO: compile options: '-I/usr/include/python3.12 -c' 12477s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s __________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[INT] __________ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[INT] ______ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s _________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[INT] _________ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[INT] ________ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[INT] _______ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[INT] _______ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s ____ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[INT] ____ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s ____ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[INT] ____ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s _____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[INT] _____ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[INT] _ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[INT] ___________ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12478s E Enabled : none 12478s E Flags : none 12478s E Extra checks: none 12478s E 12478s E CPU dispatch : 12478s E Requested : 'max -xop -fma4' 12478s E Enabled : none 12478s E Generated : none 12478s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12478s 12478s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12478s d = '/tmp/tmpmzdm58dt' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s err = None 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s kw = {} 12478s module_name = 'test_array_from_pyobj_ext' 12478s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12478s p = 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12478s _____________ ERROR at setup of TestSharedMemory.test_hidden[INT] ______________ 12478s 12478s def setup_module(): 12478s """ 12478s Build the required testing extension module 12478s 12478s """ 12478s global wrap 12478s 12478s # Check compiler availability first 12478s if not util.has_c_compiler(): 12478s pytest.skip("No C compiler available") 12478s 12478s if wrap is None: 12478s config_code = """ 12478s config.add_extension('test_array_from_pyobj_ext', 12478s sources=['wrapmodule.c', 'fortranobject.c'], 12478s define_macros=[]) 12478s """ 12478s d = os.path.dirname(__file__) 12478s src = [ 12478s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12478s util.getpath("src", "fortranobject.c"), 12478s util.getpath("src", "fortranobject.h"), 12478s ] 12478s > wrap = util.build_module_distutils(src, config_code, 12478s "test_array_from_pyobj_ext") 12478s 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12478s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12478s memo[key] = func(*a, **kw) 12478s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12478s func = 12478s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12478s kw = {} 12478s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12478s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12478s 12478s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12478s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12478s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12478s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12478s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12478s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12478s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12478s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12478s 12478s @_memoize 12478s def build_module_distutils(source_files, config_code, module_name, **kw): 12478s """ 12478s Build a module via distutils and import it. 12478s 12478s """ 12478s d = get_module_dir() 12478s 12478s # Copy files 12478s dst_sources = [] 12478s for fn in source_files: 12478s if not os.path.isfile(fn): 12478s raise RuntimeError("%s is not a file" % fn) 12478s dst = os.path.join(d, os.path.basename(fn)) 12478s shutil.copyfile(fn, dst) 12478s dst_sources.append(dst) 12478s 12478s # Build script 12478s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12478s 12478s code = fr""" 12478s import os 12478s import sys 12478s sys.path = {repr(sys.path)} 12478s 12478s def configuration(parent_name='',top_path=None): 12478s from numpy.distutils.misc_util import Configuration 12478s config = Configuration('', parent_name, top_path) 12478s {config_code} 12478s return config 12478s 12478s if __name__ == "__main__": 12478s from numpy.distutils.core import setup 12478s setup(configuration=configuration) 12478s """ 12478s script = os.path.join(d, get_temp_module_name() + ".py") 12478s dst_sources.append(script) 12478s with open(script, "wb") as f: 12478s f.write(asbytes(code)) 12478s 12478s # Build 12478s cwd = os.getcwd() 12478s try: 12478s os.chdir(d) 12478s cmd = [sys.executable, script, "build_ext", "-i"] 12478s p = subprocess.Popen(cmd, 12478s stdout=subprocess.PIPE, 12478s stderr=subprocess.STDOUT) 12478s out, err = p.communicate() 12478s if p.returncode != 0: 12478s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12478s (cmd[4:], asstr(out))) 12478s E RuntimeError: Running distutils build failed: [] 12478s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12478s E 12478s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12478s E of the deprecation of `distutils` itself. It will be removed for 12478s E Python >= 3.12. For older Python versions it will remain present. 12478s E It is recommended to use `setuptools < 60.0` for those Python versions. 12478s E For more details, see: 12478s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12478s E 12478s E 12478s E from numpy.distutils.core import setup 12478s E running build_ext 12478s E running build_src 12478s E INFO: build_src 12478s E INFO: building extension "test_array_from_pyobj_ext" sources 12478s E INFO: build_src: building npy-pkg config files 12478s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12478s E !! 12478s E 12478s E ******************************************************************************** 12478s E Please avoid running ``setup.py`` directly. 12478s E Instead, use pypa/build, pypa/installer or other 12478s E standards-based tools. 12478s E 12478s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12478s E ******************************************************************************** 12478s E 12478s E !! 12478s E self.initialize_options() 12478s E INFO: customize UnixCCompiler 12478s E INFO: customize UnixCCompiler using build_ext 12478s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/tmp 12478s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E creating /tmp/tmpvt806usq/usr 12478s E creating /tmp/tmpvt806usq/usr/lib 12478s E creating /tmp/tmpvt806usq/usr/lib/python3 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12478s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=native' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-O3' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-Werror' 12478s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12478s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-vfpv4' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12478s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-march=armv8.2-a+fp16' 12478s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/include/python3.12 -c' 12478s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12478s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12478s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12478s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12478s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12478s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12478s E 9 | # include_next 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E 12478s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12478s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12478s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12478s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12478s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12478s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12478s E INFO: building 'test_array_from_pyobj_ext' extension 12478s E INFO: compiling C sources 12478s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12478s E 12478s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12478s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12478s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12478s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12478s E 14 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E In file included from fortranobject.c:2: 12478s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12478s E 7 | #include 12478s E | ^~~~~~~~~~ 12478s E compilation terminated. 12478s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12478s E INFO: 12478s E ########### EXT COMPILER OPTIMIZATION ########### 12478s E INFO: Platform : 12478s E Architecture: armhf 12478s E Compiler : gcc 12478s E 12478s E CPU baseline : 12478s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s __________ ERROR at setup of TestSharedMemory.test_optional_none[INT] __________ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[INT] ________ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s _______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[INT] _______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s _____________ ERROR at setup of TestSharedMemory.test_inplace[INT] _____________ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s ______ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[INT] ______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[UINT] __________ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[UINT] ________ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-2seq-C-w] _______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-2seq-C-ro] _______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-2seq-F-w] _______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-2seq-F-ro] _______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-23seq-C-w] _______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-23seq-C-ro] ______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-23seq-F-w] _______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-23seq-F-ro] ______ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[UINT] ___________ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[UINT] __________ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12479s d = os.path.dirname(__file__) 12479s src = [ 12479s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12479s util.getpath("src", "fortranobject.c"), 12479s util.getpath("src", "fortranobject.h"), 12479s ] 12479s > wrap = util.build_module_distutils(src, config_code, 12479s "test_array_from_pyobj_ext") 12479s 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12479s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12479s memo[key] = func(*a, **kw) 12479s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12479s func = 12479s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12479s kw = {} 12479s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12479s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12479s 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s 12479s @_memoize 12479s def build_module_distutils(source_files, config_code, module_name, **kw): 12479s """ 12479s Build a module via distutils and import it. 12479s 12479s """ 12479s d = get_module_dir() 12479s 12479s # Copy files 12479s dst_sources = [] 12479s for fn in source_files: 12479s if not os.path.isfile(fn): 12479s raise RuntimeError("%s is not a file" % fn) 12479s dst = os.path.join(d, os.path.basename(fn)) 12479s shutil.copyfile(fn, dst) 12479s dst_sources.append(dst) 12479s 12479s # Build script 12479s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12479s 12479s code = fr""" 12479s import os 12479s import sys 12479s sys.path = {repr(sys.path)} 12479s 12479s def configuration(parent_name='',top_path=None): 12479s from numpy.distutils.misc_util import Configuration 12479s config = Configuration('', parent_name, top_path) 12479s {config_code} 12479s return config 12479s 12479s if __name__ == "__main__": 12479s from numpy.distutils.core import setup 12479s setup(configuration=configuration) 12479s """ 12479s script = os.path.join(d, get_temp_module_name() + ".py") 12479s dst_sources.append(script) 12479s with open(script, "wb") as f: 12479s f.write(asbytes(code)) 12479s 12479s # Build 12479s cwd = os.getcwd() 12479s try: 12479s os.chdir(d) 12479s cmd = [sys.executable, script, "build_ext", "-i"] 12479s p = subprocess.Popen(cmd, 12479s stdout=subprocess.PIPE, 12479s stderr=subprocess.STDOUT) 12479s out, err = p.communicate() 12479s if p.returncode != 0: 12479s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12479s (cmd[4:], asstr(out))) 12479s E RuntimeError: Running distutils build failed: [] 12479s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12479s E 12479s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12479s E of the deprecation of `distutils` itself. It will be removed for 12479s E Python >= 3.12. For older Python versions it will remain present. 12479s E It is recommended to use `setuptools < 60.0` for those Python versions. 12479s E For more details, see: 12479s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12479s E 12479s E 12479s E from numpy.distutils.core import setup 12479s E running build_ext 12479s E running build_src 12479s E INFO: build_src 12479s E INFO: building extension "test_array_from_pyobj_ext" sources 12479s E INFO: build_src: building npy-pkg config files 12479s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12479s E !! 12479s E 12479s E ******************************************************************************** 12479s E Please avoid running ``setup.py`` directly. 12479s E Instead, use pypa/build, pypa/installer or other 12479s E standards-based tools. 12479s E 12479s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12479s E ******************************************************************************** 12479s E 12479s E !! 12479s E self.initialize_options() 12479s E INFO: customize UnixCCompiler 12479s E INFO: customize UnixCCompiler using build_ext 12479s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/tmp 12479s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E creating /tmp/tmpvt806usq/usr 12479s E creating /tmp/tmpvt806usq/usr/lib 12479s E creating /tmp/tmpvt806usq/usr/lib/python3 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12479s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=native' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-O3' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-Werror' 12479s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12479s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-vfpv4' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12479s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-march=armv8.2-a+fp16' 12479s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/include/python3.12 -c' 12479s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12479s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12479s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12479s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12479s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12479s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12479s E 9 | # include_next 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E 12479s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12479s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12479s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12479s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12479s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12479s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12479s E INFO: building 'test_array_from_pyobj_ext' extension 12479s E INFO: compiling C sources 12479s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12479s E 12479s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12479s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12479s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12479s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12479s E 14 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E In file included from fortranobject.c:2: 12479s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12479s E 7 | #include 12479s E | ^~~~~~~~~~ 12479s E compilation terminated. 12479s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12479s E INFO: 12479s E ########### EXT COMPILER OPTIMIZATION ########### 12479s E INFO: Platform : 12479s E Architecture: armhf 12479s E Compiler : gcc 12479s E 12479s E CPU baseline : 12479s E Requested : 'min' 12479s E Enabled : none 12479s E Flags : none 12479s E Extra checks: none 12479s E 12479s E CPU dispatch : 12479s E Requested : 'max -xop -fma4' 12479s E Enabled : none 12479s E Generated : none 12479s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12479s 12479s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12479s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12479s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12479s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12479s d = '/tmp/tmpmzdm58dt' 12479s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12479s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12479s err = None 12479s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12479s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s kw = {} 12479s module_name = 'test_array_from_pyobj_ext' 12479s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12479s p = 12479s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12479s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12479s 12479s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12479s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[UINT] __________ 12479s 12479s def setup_module(): 12479s """ 12479s Build the required testing extension module 12479s 12479s """ 12479s global wrap 12479s 12479s # Check compiler availability first 12479s if not util.has_c_compiler(): 12479s pytest.skip("No C compiler available") 12479s 12479s if wrap is None: 12479s config_code = """ 12479s config.add_extension('test_array_from_pyobj_ext', 12479s sources=['wrapmodule.c', 'fortranobject.c'], 12479s define_macros=[]) 12479s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[UINT] _____ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[UINT] _________ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[UINT] _______ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[UINT] ______ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[UINT] ______ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[UINT] ____ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[UINT] ____ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[UINT] _____ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[UINT] _ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[UINT] __________ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _____________ ERROR at setup of TestSharedMemory.test_hidden[UINT] _____________ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _________ ERROR at setup of TestSharedMemory.test_optional_none[UINT] __________ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[UINT] _______ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[UINT] _______ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s ____________ ERROR at setup of TestSharedMemory.test_inplace[UINT] _____________ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[UINT] ______ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[LONG] __________ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[LONG] ________ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s kw = {} 12480s module_name = 'test_array_from_pyobj_ext' 12480s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12480s p = 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12480s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-2seq-C-w] _______ 12480s 12480s def setup_module(): 12480s """ 12480s Build the required testing extension module 12480s 12480s """ 12480s global wrap 12480s 12480s # Check compiler availability first 12480s if not util.has_c_compiler(): 12480s pytest.skip("No C compiler available") 12480s 12480s if wrap is None: 12480s config_code = """ 12480s config.add_extension('test_array_from_pyobj_ext', 12480s sources=['wrapmodule.c', 'fortranobject.c'], 12480s define_macros=[]) 12480s """ 12480s d = os.path.dirname(__file__) 12480s src = [ 12480s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12480s util.getpath("src", "fortranobject.c"), 12480s util.getpath("src", "fortranobject.h"), 12480s ] 12480s > wrap = util.build_module_distutils(src, config_code, 12480s "test_array_from_pyobj_ext") 12480s 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12480s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12480s memo[key] = func(*a, **kw) 12480s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12480s func = 12480s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12480s kw = {} 12480s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12480s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12480s 12480s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12480s 12480s @_memoize 12480s def build_module_distutils(source_files, config_code, module_name, **kw): 12480s """ 12480s Build a module via distutils and import it. 12480s 12480s """ 12480s d = get_module_dir() 12480s 12480s # Copy files 12480s dst_sources = [] 12480s for fn in source_files: 12480s if not os.path.isfile(fn): 12480s raise RuntimeError("%s is not a file" % fn) 12480s dst = os.path.join(d, os.path.basename(fn)) 12480s shutil.copyfile(fn, dst) 12480s dst_sources.append(dst) 12480s 12480s # Build script 12480s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12480s 12480s code = fr""" 12480s import os 12480s import sys 12480s sys.path = {repr(sys.path)} 12480s 12480s def configuration(parent_name='',top_path=None): 12480s from numpy.distutils.misc_util import Configuration 12480s config = Configuration('', parent_name, top_path) 12480s {config_code} 12480s return config 12480s 12480s if __name__ == "__main__": 12480s from numpy.distutils.core import setup 12480s setup(configuration=configuration) 12480s """ 12480s script = os.path.join(d, get_temp_module_name() + ".py") 12480s dst_sources.append(script) 12480s with open(script, "wb") as f: 12480s f.write(asbytes(code)) 12480s 12480s # Build 12480s cwd = os.getcwd() 12480s try: 12480s os.chdir(d) 12480s cmd = [sys.executable, script, "build_ext", "-i"] 12480s p = subprocess.Popen(cmd, 12480s stdout=subprocess.PIPE, 12480s stderr=subprocess.STDOUT) 12480s out, err = p.communicate() 12480s if p.returncode != 0: 12480s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12480s (cmd[4:], asstr(out))) 12480s E RuntimeError: Running distutils build failed: [] 12480s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12480s E 12480s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12480s E of the deprecation of `distutils` itself. It will be removed for 12480s E Python >= 3.12. For older Python versions it will remain present. 12480s E It is recommended to use `setuptools < 60.0` for those Python versions. 12480s E For more details, see: 12480s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12480s E 12480s E 12480s E from numpy.distutils.core import setup 12480s E running build_ext 12480s E running build_src 12480s E INFO: build_src 12480s E INFO: building extension "test_array_from_pyobj_ext" sources 12480s E INFO: build_src: building npy-pkg config files 12480s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12480s E !! 12480s E 12480s E ******************************************************************************** 12480s E Please avoid running ``setup.py`` directly. 12480s E Instead, use pypa/build, pypa/installer or other 12480s E standards-based tools. 12480s E 12480s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12480s E ******************************************************************************** 12480s E 12480s E !! 12480s E self.initialize_options() 12480s E INFO: customize UnixCCompiler 12480s E INFO: customize UnixCCompiler using build_ext 12480s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/tmp 12480s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E creating /tmp/tmpvt806usq/usr 12480s E creating /tmp/tmpvt806usq/usr/lib 12480s E creating /tmp/tmpvt806usq/usr/lib/python3 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12480s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=native' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-O3' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-Werror' 12480s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12480s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-vfpv4' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12480s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-march=armv8.2-a+fp16' 12480s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/include/python3.12 -c' 12480s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12480s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12480s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12480s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12480s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12480s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12480s E 9 | # include_next 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E 12480s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12480s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12480s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12480s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12480s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12480s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12480s E INFO: building 'test_array_from_pyobj_ext' extension 12480s E INFO: compiling C sources 12480s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12480s E 12480s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12480s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12480s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12480s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12480s E 14 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E In file included from fortranobject.c:2: 12480s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12480s E 7 | #include 12480s E | ^~~~~~~~~~ 12480s E compilation terminated. 12480s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12480s E INFO: 12480s E ########### EXT COMPILER OPTIMIZATION ########### 12480s E INFO: Platform : 12480s E Architecture: armhf 12480s E Compiler : gcc 12480s E 12480s E CPU baseline : 12480s E Requested : 'min' 12480s E Enabled : none 12480s E Flags : none 12480s E Extra checks: none 12480s E 12480s E CPU dispatch : 12480s E Requested : 'max -xop -fma4' 12480s E Enabled : none 12480s E Generated : none 12480s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12480s 12480s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12480s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12480s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12480s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12480s d = '/tmp/tmpmzdm58dt' 12480s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12480s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12480s err = None 12480s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-2seq-C-ro] _______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-2seq-F-w] _______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-2seq-F-ro] _______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-23seq-C-w] _______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-23seq-C-ro] ______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-23seq-F-w] _______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-23seq-F-ro] ______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[LONG] ___________ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[LONG] __________ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[LONG] __________ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[LONG] _____ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[LONG] _________ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[LONG] _______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=armv8.2-a+fp16' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12481s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12481s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12481s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12481s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12481s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12481s E 9 | # include_next 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E 12481s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12481s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12481s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12481s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12481s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12481s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12481s E INFO: building 'test_array_from_pyobj_ext' extension 12481s E INFO: compiling C sources 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12481s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12481s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12481s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12481s E 14 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E In file included from fortranobject.c:2: 12481s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12481s E 7 | #include 12481s E | ^~~~~~~~~~ 12481s E compilation terminated. 12481s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12481s E INFO: 12481s E ########### EXT COMPILER OPTIMIZATION ########### 12481s E INFO: Platform : 12481s E Architecture: armhf 12481s E Compiler : gcc 12481s E 12481s E CPU baseline : 12481s E Requested : 'min' 12481s E Enabled : none 12481s E Flags : none 12481s E Extra checks: none 12481s E 12481s E CPU dispatch : 12481s E Requested : 'max -xop -fma4' 12481s E Enabled : none 12481s E Generated : none 12481s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12481s 12481s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12481s d = '/tmp/tmpmzdm58dt' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s err = None 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s kw = {} 12481s module_name = 'test_array_from_pyobj_ext' 12481s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12481s p = 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12481s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[LONG] ______ 12481s 12481s def setup_module(): 12481s """ 12481s Build the required testing extension module 12481s 12481s """ 12481s global wrap 12481s 12481s # Check compiler availability first 12481s if not util.has_c_compiler(): 12481s pytest.skip("No C compiler available") 12481s 12481s if wrap is None: 12481s config_code = """ 12481s config.add_extension('test_array_from_pyobj_ext', 12481s sources=['wrapmodule.c', 'fortranobject.c'], 12481s define_macros=[]) 12481s """ 12481s d = os.path.dirname(__file__) 12481s src = [ 12481s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12481s util.getpath("src", "fortranobject.c"), 12481s util.getpath("src", "fortranobject.h"), 12481s ] 12481s > wrap = util.build_module_distutils(src, config_code, 12481s "test_array_from_pyobj_ext") 12481s 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12481s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12481s memo[key] = func(*a, **kw) 12481s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12481s func = 12481s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12481s kw = {} 12481s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12481s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12481s 12481s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12481s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12481s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12481s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12481s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12481s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12481s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12481s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12481s 12481s @_memoize 12481s def build_module_distutils(source_files, config_code, module_name, **kw): 12481s """ 12481s Build a module via distutils and import it. 12481s 12481s """ 12481s d = get_module_dir() 12481s 12481s # Copy files 12481s dst_sources = [] 12481s for fn in source_files: 12481s if not os.path.isfile(fn): 12481s raise RuntimeError("%s is not a file" % fn) 12481s dst = os.path.join(d, os.path.basename(fn)) 12481s shutil.copyfile(fn, dst) 12481s dst_sources.append(dst) 12481s 12481s # Build script 12481s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12481s 12481s code = fr""" 12481s import os 12481s import sys 12481s sys.path = {repr(sys.path)} 12481s 12481s def configuration(parent_name='',top_path=None): 12481s from numpy.distutils.misc_util import Configuration 12481s config = Configuration('', parent_name, top_path) 12481s {config_code} 12481s return config 12481s 12481s if __name__ == "__main__": 12481s from numpy.distutils.core import setup 12481s setup(configuration=configuration) 12481s """ 12481s script = os.path.join(d, get_temp_module_name() + ".py") 12481s dst_sources.append(script) 12481s with open(script, "wb") as f: 12481s f.write(asbytes(code)) 12481s 12481s # Build 12481s cwd = os.getcwd() 12481s try: 12481s os.chdir(d) 12481s cmd = [sys.executable, script, "build_ext", "-i"] 12481s p = subprocess.Popen(cmd, 12481s stdout=subprocess.PIPE, 12481s stderr=subprocess.STDOUT) 12481s out, err = p.communicate() 12481s if p.returncode != 0: 12481s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12481s (cmd[4:], asstr(out))) 12481s E RuntimeError: Running distutils build failed: [] 12481s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12481s E 12481s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12481s E of the deprecation of `distutils` itself. It will be removed for 12481s E Python >= 3.12. For older Python versions it will remain present. 12481s E It is recommended to use `setuptools < 60.0` for those Python versions. 12481s E For more details, see: 12481s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12481s E 12481s E 12481s E from numpy.distutils.core import setup 12481s E running build_ext 12481s E running build_src 12481s E INFO: build_src 12481s E INFO: building extension "test_array_from_pyobj_ext" sources 12481s E INFO: build_src: building npy-pkg config files 12481s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12481s E !! 12481s E 12481s E ******************************************************************************** 12481s E Please avoid running ``setup.py`` directly. 12481s E Instead, use pypa/build, pypa/installer or other 12481s E standards-based tools. 12481s E 12481s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12481s E ******************************************************************************** 12481s E 12481s E !! 12481s E self.initialize_options() 12481s E INFO: customize UnixCCompiler 12481s E INFO: customize UnixCCompiler using build_ext 12481s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/tmp 12481s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E creating /tmp/tmpvt806usq/usr 12481s E creating /tmp/tmpvt806usq/usr/lib 12481s E creating /tmp/tmpvt806usq/usr/lib/python3 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12481s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-march=native' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-O3' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-Werror' 12481s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12481s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12481s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12481s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12481s E 12481s E INFO: compile options: '-I/usr/include/python3.12 -c' 12481s E extra options: '-mfpu=neon-vfpv4' 12481s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[LONG] ______ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[LONG] ____ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[LONG] ____ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[LONG] _____ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[LONG] _ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[LONG] __________ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s _____________ ERROR at setup of TestSharedMemory.test_hidden[LONG] _____________ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s _________ ERROR at setup of TestSharedMemory.test_optional_none[LONG] __________ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[LONG] _______ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[LONG] _______ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s ____________ ERROR at setup of TestSharedMemory.test_inplace[LONG] _____________ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[LONG] ______ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[ULONG] __________ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12482s util.getpath("src", "fortranobject.h"), 12482s ] 12482s > wrap = util.build_module_distutils(src, config_code, 12482s "test_array_from_pyobj_ext") 12482s 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12482s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12482s memo[key] = func(*a, **kw) 12482s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12482s func = 12482s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12482s kw = {} 12482s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12482s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12482s 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s 12482s @_memoize 12482s def build_module_distutils(source_files, config_code, module_name, **kw): 12482s """ 12482s Build a module via distutils and import it. 12482s 12482s """ 12482s d = get_module_dir() 12482s 12482s # Copy files 12482s dst_sources = [] 12482s for fn in source_files: 12482s if not os.path.isfile(fn): 12482s raise RuntimeError("%s is not a file" % fn) 12482s dst = os.path.join(d, os.path.basename(fn)) 12482s shutil.copyfile(fn, dst) 12482s dst_sources.append(dst) 12482s 12482s # Build script 12482s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12482s 12482s code = fr""" 12482s import os 12482s import sys 12482s sys.path = {repr(sys.path)} 12482s 12482s def configuration(parent_name='',top_path=None): 12482s from numpy.distutils.misc_util import Configuration 12482s config = Configuration('', parent_name, top_path) 12482s {config_code} 12482s return config 12482s 12482s if __name__ == "__main__": 12482s from numpy.distutils.core import setup 12482s setup(configuration=configuration) 12482s """ 12482s script = os.path.join(d, get_temp_module_name() + ".py") 12482s dst_sources.append(script) 12482s with open(script, "wb") as f: 12482s f.write(asbytes(code)) 12482s 12482s # Build 12482s cwd = os.getcwd() 12482s try: 12482s os.chdir(d) 12482s cmd = [sys.executable, script, "build_ext", "-i"] 12482s p = subprocess.Popen(cmd, 12482s stdout=subprocess.PIPE, 12482s stderr=subprocess.STDOUT) 12482s out, err = p.communicate() 12482s if p.returncode != 0: 12482s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12482s (cmd[4:], asstr(out))) 12482s E RuntimeError: Running distutils build failed: [] 12482s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12482s E 12482s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12482s E of the deprecation of `distutils` itself. It will be removed for 12482s E Python >= 3.12. For older Python versions it will remain present. 12482s E It is recommended to use `setuptools < 60.0` for those Python versions. 12482s E For more details, see: 12482s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12482s E 12482s E 12482s E from numpy.distutils.core import setup 12482s E running build_ext 12482s E running build_src 12482s E INFO: build_src 12482s E INFO: building extension "test_array_from_pyobj_ext" sources 12482s E INFO: build_src: building npy-pkg config files 12482s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12482s E !! 12482s E 12482s E ******************************************************************************** 12482s E Please avoid running ``setup.py`` directly. 12482s E Instead, use pypa/build, pypa/installer or other 12482s E standards-based tools. 12482s E 12482s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12482s E ******************************************************************************** 12482s E 12482s E !! 12482s E self.initialize_options() 12482s E INFO: customize UnixCCompiler 12482s E INFO: customize UnixCCompiler using build_ext 12482s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/tmp 12482s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E creating /tmp/tmpvt806usq/usr 12482s E creating /tmp/tmpvt806usq/usr/lib 12482s E creating /tmp/tmpvt806usq/usr/lib/python3 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12482s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=native' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-O3' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-Werror' 12482s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12482s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-vfpv4' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12482s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-march=armv8.2-a+fp16' 12482s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/include/python3.12 -c' 12482s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12482s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12482s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12482s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12482s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12482s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12482s E 9 | # include_next 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E 12482s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12482s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12482s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12482s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12482s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12482s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12482s E INFO: building 'test_array_from_pyobj_ext' extension 12482s E INFO: compiling C sources 12482s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12482s E 12482s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12482s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12482s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12482s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12482s E 14 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E In file included from fortranobject.c:2: 12482s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12482s E 7 | #include 12482s E | ^~~~~~~~~~ 12482s E compilation terminated. 12482s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12482s E INFO: 12482s E ########### EXT COMPILER OPTIMIZATION ########### 12482s E INFO: Platform : 12482s E Architecture: armhf 12482s E Compiler : gcc 12482s E 12482s E CPU baseline : 12482s E Requested : 'min' 12482s E Enabled : none 12482s E Flags : none 12482s E Extra checks: none 12482s E 12482s E CPU dispatch : 12482s E Requested : 'max -xop -fma4' 12482s E Enabled : none 12482s E Generated : none 12482s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12482s 12482s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12482s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12482s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12482s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12482s d = '/tmp/tmpmzdm58dt' 12482s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12482s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12482s err = None 12482s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12482s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s kw = {} 12482s module_name = 'test_array_from_pyobj_ext' 12482s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12482s p = 12482s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12482s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12482s 12482s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12482s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[ULONG] _______ 12482s 12482s def setup_module(): 12482s """ 12482s Build the required testing extension module 12482s 12482s """ 12482s global wrap 12482s 12482s # Check compiler availability first 12482s if not util.has_c_compiler(): 12482s pytest.skip("No C compiler available") 12482s 12482s if wrap is None: 12482s config_code = """ 12482s config.add_extension('test_array_from_pyobj_ext', 12482s sources=['wrapmodule.c', 'fortranobject.c'], 12482s define_macros=[]) 12482s """ 12482s d = os.path.dirname(__file__) 12482s src = [ 12482s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12482s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-2seq-C-w] _______ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-2seq-C-ro] ______ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-2seq-F-w] _______ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-2seq-F-ro] ______ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-23seq-C-w] ______ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-23seq-C-ro] ______ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-23seq-F-w] ______ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-23seq-F-ro] ______ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[ULONG] ___________ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[ULONG] _________ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[ULONG] _________ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/tmp 12483s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E creating /tmp/tmpvt806usq/usr 12483s E creating /tmp/tmpvt806usq/usr/lib 12483s E creating /tmp/tmpvt806usq/usr/lib/python3 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12483s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=native' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-O3' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-Werror' 12483s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12483s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-vfpv4' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12483s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-march=armv8.2-a+fp16' 12483s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/include/python3.12 -c' 12483s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12483s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12483s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12483s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12483s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12483s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12483s E 9 | # include_next 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E 12483s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12483s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12483s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12483s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12483s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12483s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12483s E INFO: building 'test_array_from_pyobj_ext' extension 12483s E INFO: compiling C sources 12483s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12483s E 12483s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12483s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12483s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12483s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12483s E 14 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E In file included from fortranobject.c:2: 12483s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12483s E 7 | #include 12483s E | ^~~~~~~~~~ 12483s E compilation terminated. 12483s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12483s E INFO: 12483s E ########### EXT COMPILER OPTIMIZATION ########### 12483s E INFO: Platform : 12483s E Architecture: armhf 12483s E Compiler : gcc 12483s E 12483s E CPU baseline : 12483s E Requested : 'min' 12483s E Enabled : none 12483s E Flags : none 12483s E Extra checks: none 12483s E 12483s E CPU dispatch : 12483s E Requested : 'max -xop -fma4' 12483s E Enabled : none 12483s E Generated : none 12483s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12483s 12483s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12483s d = '/tmp/tmpmzdm58dt' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s err = None 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s kw = {} 12483s module_name = 'test_array_from_pyobj_ext' 12483s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12483s p = 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12483s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[ULONG] _____ 12483s 12483s def setup_module(): 12483s """ 12483s Build the required testing extension module 12483s 12483s """ 12483s global wrap 12483s 12483s # Check compiler availability first 12483s if not util.has_c_compiler(): 12483s pytest.skip("No C compiler available") 12483s 12483s if wrap is None: 12483s config_code = """ 12483s config.add_extension('test_array_from_pyobj_ext', 12483s sources=['wrapmodule.c', 'fortranobject.c'], 12483s define_macros=[]) 12483s """ 12483s d = os.path.dirname(__file__) 12483s src = [ 12483s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12483s util.getpath("src", "fortranobject.c"), 12483s util.getpath("src", "fortranobject.h"), 12483s ] 12483s > wrap = util.build_module_distutils(src, config_code, 12483s "test_array_from_pyobj_ext") 12483s 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12483s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12483s memo[key] = func(*a, **kw) 12483s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12483s func = 12483s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12483s kw = {} 12483s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12483s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12483s 12483s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12483s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12483s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12483s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12483s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12483s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12483s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12483s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12483s 12483s @_memoize 12483s def build_module_distutils(source_files, config_code, module_name, **kw): 12483s """ 12483s Build a module via distutils and import it. 12483s 12483s """ 12483s d = get_module_dir() 12483s 12483s # Copy files 12483s dst_sources = [] 12483s for fn in source_files: 12483s if not os.path.isfile(fn): 12483s raise RuntimeError("%s is not a file" % fn) 12483s dst = os.path.join(d, os.path.basename(fn)) 12483s shutil.copyfile(fn, dst) 12483s dst_sources.append(dst) 12483s 12483s # Build script 12483s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12483s 12483s code = fr""" 12483s import os 12483s import sys 12483s sys.path = {repr(sys.path)} 12483s 12483s def configuration(parent_name='',top_path=None): 12483s from numpy.distutils.misc_util import Configuration 12483s config = Configuration('', parent_name, top_path) 12483s {config_code} 12483s return config 12483s 12483s if __name__ == "__main__": 12483s from numpy.distutils.core import setup 12483s setup(configuration=configuration) 12483s """ 12483s script = os.path.join(d, get_temp_module_name() + ".py") 12483s dst_sources.append(script) 12483s with open(script, "wb") as f: 12483s f.write(asbytes(code)) 12483s 12483s # Build 12483s cwd = os.getcwd() 12483s try: 12483s os.chdir(d) 12483s cmd = [sys.executable, script, "build_ext", "-i"] 12483s p = subprocess.Popen(cmd, 12483s stdout=subprocess.PIPE, 12483s stderr=subprocess.STDOUT) 12483s out, err = p.communicate() 12483s if p.returncode != 0: 12483s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12483s (cmd[4:], asstr(out))) 12483s E RuntimeError: Running distutils build failed: [] 12483s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12483s E 12483s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12483s E of the deprecation of `distutils` itself. It will be removed for 12483s E Python >= 3.12. For older Python versions it will remain present. 12483s E It is recommended to use `setuptools < 60.0` for those Python versions. 12483s E For more details, see: 12483s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12483s E 12483s E 12483s E from numpy.distutils.core import setup 12483s E running build_ext 12483s E running build_src 12483s E INFO: build_src 12483s E INFO: building extension "test_array_from_pyobj_ext" sources 12483s E INFO: build_src: building npy-pkg config files 12483s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12483s E !! 12483s E 12483s E ******************************************************************************** 12483s E Please avoid running ``setup.py`` directly. 12483s E Instead, use pypa/build, pypa/installer or other 12483s E standards-based tools. 12483s E 12483s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12483s E ******************************************************************************** 12483s E 12483s E !! 12483s E self.initialize_options() 12483s E INFO: customize UnixCCompiler 12483s E INFO: customize UnixCCompiler using build_ext 12483s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[ULONG] ________ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[ULONG] _______ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[ULONG] ______ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[ULONG] ______ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[ULONG] ___ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[ULONG] ___ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[ULONG] ____ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[ULONG] _ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[ULONG] __________ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s ____________ ERROR at setup of TestSharedMemory.test_hidden[ULONG] _____________ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s _________ ERROR at setup of TestSharedMemory.test_optional_none[ULONG] _________ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[ULONG] _______ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12484s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s 12484s @_memoize 12484s def build_module_distutils(source_files, config_code, module_name, **kw): 12484s """ 12484s Build a module via distutils and import it. 12484s 12484s """ 12484s d = get_module_dir() 12484s 12484s # Copy files 12484s dst_sources = [] 12484s for fn in source_files: 12484s if not os.path.isfile(fn): 12484s raise RuntimeError("%s is not a file" % fn) 12484s dst = os.path.join(d, os.path.basename(fn)) 12484s shutil.copyfile(fn, dst) 12484s dst_sources.append(dst) 12484s 12484s # Build script 12484s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12484s 12484s code = fr""" 12484s import os 12484s import sys 12484s sys.path = {repr(sys.path)} 12484s 12484s def configuration(parent_name='',top_path=None): 12484s from numpy.distutils.misc_util import Configuration 12484s config = Configuration('', parent_name, top_path) 12484s {config_code} 12484s return config 12484s 12484s if __name__ == "__main__": 12484s from numpy.distutils.core import setup 12484s setup(configuration=configuration) 12484s """ 12484s script = os.path.join(d, get_temp_module_name() + ".py") 12484s dst_sources.append(script) 12484s with open(script, "wb") as f: 12484s f.write(asbytes(code)) 12484s 12484s # Build 12484s cwd = os.getcwd() 12484s try: 12484s os.chdir(d) 12484s cmd = [sys.executable, script, "build_ext", "-i"] 12484s p = subprocess.Popen(cmd, 12484s stdout=subprocess.PIPE, 12484s stderr=subprocess.STDOUT) 12484s out, err = p.communicate() 12484s if p.returncode != 0: 12484s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12484s (cmd[4:], asstr(out))) 12484s E RuntimeError: Running distutils build failed: [] 12484s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12484s E 12484s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12484s E of the deprecation of `distutils` itself. It will be removed for 12484s E Python >= 3.12. For older Python versions it will remain present. 12484s E It is recommended to use `setuptools < 60.0` for those Python versions. 12484s E For more details, see: 12484s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12484s E 12484s E 12484s E from numpy.distutils.core import setup 12484s E running build_ext 12484s E running build_src 12484s E INFO: build_src 12484s E INFO: building extension "test_array_from_pyobj_ext" sources 12484s E INFO: build_src: building npy-pkg config files 12484s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12484s E !! 12484s E 12484s E ******************************************************************************** 12484s E Please avoid running ``setup.py`` directly. 12484s E Instead, use pypa/build, pypa/installer or other 12484s E standards-based tools. 12484s E 12484s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12484s E ******************************************************************************** 12484s E 12484s E !! 12484s E self.initialize_options() 12484s E INFO: customize UnixCCompiler 12484s E INFO: customize UnixCCompiler using build_ext 12484s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/tmp 12484s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E creating /tmp/tmpvt806usq/usr 12484s E creating /tmp/tmpvt806usq/usr/lib 12484s E creating /tmp/tmpvt806usq/usr/lib/python3 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12484s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=native' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-O3' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-Werror' 12484s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12484s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-vfpv4' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12484s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-march=armv8.2-a+fp16' 12484s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/include/python3.12 -c' 12484s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12484s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12484s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12484s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12484s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12484s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12484s E 9 | # include_next 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E 12484s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12484s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12484s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12484s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12484s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12484s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12484s E INFO: building 'test_array_from_pyobj_ext' extension 12484s E INFO: compiling C sources 12484s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12484s E 12484s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12484s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12484s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12484s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12484s E 14 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E In file included from fortranobject.c:2: 12484s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12484s E 7 | #include 12484s E | ^~~~~~~~~~ 12484s E compilation terminated. 12484s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12484s E INFO: 12484s E ########### EXT COMPILER OPTIMIZATION ########### 12484s E INFO: Platform : 12484s E Architecture: armhf 12484s E Compiler : gcc 12484s E 12484s E CPU baseline : 12484s E Requested : 'min' 12484s E Enabled : none 12484s E Flags : none 12484s E Extra checks: none 12484s E 12484s E CPU dispatch : 12484s E Requested : 'max -xop -fma4' 12484s E Enabled : none 12484s E Generated : none 12484s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12484s 12484s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12484s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12484s d = '/tmp/tmpmzdm58dt' 12484s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12484s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12484s err = None 12484s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12484s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s kw = {} 12484s module_name = 'test_array_from_pyobj_ext' 12484s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12484s p = 12484s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12484s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12484s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[ULONG] ______ 12484s 12484s def setup_module(): 12484s """ 12484s Build the required testing extension module 12484s 12484s """ 12484s global wrap 12484s 12484s # Check compiler availability first 12484s if not util.has_c_compiler(): 12484s pytest.skip("No C compiler available") 12484s 12484s if wrap is None: 12484s config_code = """ 12484s config.add_extension('test_array_from_pyobj_ext', 12484s sources=['wrapmodule.c', 'fortranobject.c'], 12484s define_macros=[]) 12484s """ 12484s d = os.path.dirname(__file__) 12484s src = [ 12484s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12484s util.getpath("src", "fortranobject.c"), 12484s util.getpath("src", "fortranobject.h"), 12484s ] 12484s > wrap = util.build_module_distutils(src, config_code, 12484s "test_array_from_pyobj_ext") 12484s 12484s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12484s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12484s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12484s 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12484s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12484s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12484s memo[key] = func(*a, **kw) 12484s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12484s func = 12484s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12484s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ____________ ERROR at setup of TestSharedMemory.test_inplace[ULONG] ____________ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[ULONG] _____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ________ ERROR at setup of TestSharedMemory.test_in_from_2seq[LONGLONG] ________ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s _____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[LONGLONG] ______ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-2seq-C-w] _____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-2seq-C-ro] _____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-2seq-F-w] _____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-2seq-F-ro] _____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-23seq-C-w] _____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-23seq-C-ro] ____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-23seq-F-w] _____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-23seq-F-ro] ____ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s _________ ERROR at setup of TestSharedMemory.test_inout_2seq[LONGLONG] _________ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s _______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[LONGLONG] ________ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s _______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[LONGLONG] ________ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12485s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12485s E 7 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12485s E INFO: 12485s E ########### EXT COMPILER OPTIMIZATION ########### 12485s E INFO: Platform : 12485s E Architecture: armhf 12485s E Compiler : gcc 12485s E 12485s E CPU baseline : 12485s E Requested : 'min' 12485s E Enabled : none 12485s E Flags : none 12485s E Extra checks: none 12485s E 12485s E CPU dispatch : 12485s E Requested : 'max -xop -fma4' 12485s E Enabled : none 12485s E Generated : none 12485s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12485s 12485s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12485s d = '/tmp/tmpmzdm58dt' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s err = None 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s kw = {} 12485s module_name = 'test_array_from_pyobj_ext' 12485s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12485s p = 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12485s ___ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[LONGLONG] ___ 12485s 12485s def setup_module(): 12485s """ 12485s Build the required testing extension module 12485s 12485s """ 12485s global wrap 12485s 12485s # Check compiler availability first 12485s if not util.has_c_compiler(): 12485s pytest.skip("No C compiler available") 12485s 12485s if wrap is None: 12485s config_code = """ 12485s config.add_extension('test_array_from_pyobj_ext', 12485s sources=['wrapmodule.c', 'fortranobject.c'], 12485s define_macros=[]) 12485s """ 12485s d = os.path.dirname(__file__) 12485s src = [ 12485s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12485s util.getpath("src", "fortranobject.c"), 12485s util.getpath("src", "fortranobject.h"), 12485s ] 12485s > wrap = util.build_module_distutils(src, config_code, 12485s "test_array_from_pyobj_ext") 12485s 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12485s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12485s memo[key] = func(*a, **kw) 12485s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12485s func = 12485s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12485s kw = {} 12485s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12485s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12485s 12485s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12485s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12485s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12485s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12485s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12485s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12485s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12485s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12485s 12485s @_memoize 12485s def build_module_distutils(source_files, config_code, module_name, **kw): 12485s """ 12485s Build a module via distutils and import it. 12485s 12485s """ 12485s d = get_module_dir() 12485s 12485s # Copy files 12485s dst_sources = [] 12485s for fn in source_files: 12485s if not os.path.isfile(fn): 12485s raise RuntimeError("%s is not a file" % fn) 12485s dst = os.path.join(d, os.path.basename(fn)) 12485s shutil.copyfile(fn, dst) 12485s dst_sources.append(dst) 12485s 12485s # Build script 12485s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12485s 12485s code = fr""" 12485s import os 12485s import sys 12485s sys.path = {repr(sys.path)} 12485s 12485s def configuration(parent_name='',top_path=None): 12485s from numpy.distutils.misc_util import Configuration 12485s config = Configuration('', parent_name, top_path) 12485s {config_code} 12485s return config 12485s 12485s if __name__ == "__main__": 12485s from numpy.distutils.core import setup 12485s setup(configuration=configuration) 12485s """ 12485s script = os.path.join(d, get_temp_module_name() + ".py") 12485s dst_sources.append(script) 12485s with open(script, "wb") as f: 12485s f.write(asbytes(code)) 12485s 12485s # Build 12485s cwd = os.getcwd() 12485s try: 12485s os.chdir(d) 12485s cmd = [sys.executable, script, "build_ext", "-i"] 12485s p = subprocess.Popen(cmd, 12485s stdout=subprocess.PIPE, 12485s stderr=subprocess.STDOUT) 12485s out, err = p.communicate() 12485s if p.returncode != 0: 12485s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12485s (cmd[4:], asstr(out))) 12485s E RuntimeError: Running distutils build failed: [] 12485s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12485s E 12485s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12485s E of the deprecation of `distutils` itself. It will be removed for 12485s E Python >= 3.12. For older Python versions it will remain present. 12485s E It is recommended to use `setuptools < 60.0` for those Python versions. 12485s E For more details, see: 12485s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12485s E 12485s E 12485s E from numpy.distutils.core import setup 12485s E running build_ext 12485s E running build_src 12485s E INFO: build_src 12485s E INFO: building extension "test_array_from_pyobj_ext" sources 12485s E INFO: build_src: building npy-pkg config files 12485s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12485s E !! 12485s E 12485s E ******************************************************************************** 12485s E Please avoid running ``setup.py`` directly. 12485s E Instead, use pypa/build, pypa/installer or other 12485s E standards-based tools. 12485s E 12485s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12485s E ******************************************************************************** 12485s E 12485s E !! 12485s E self.initialize_options() 12485s E INFO: customize UnixCCompiler 12485s E INFO: customize UnixCCompiler using build_ext 12485s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/tmp 12485s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E creating /tmp/tmpvt806usq/usr 12485s E creating /tmp/tmpvt806usq/usr/lib 12485s E creating /tmp/tmpvt806usq/usr/lib/python3 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12485s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=native' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-O3' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-Werror' 12485s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12485s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-vfpv4' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12485s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-march=armv8.2-a+fp16' 12485s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/include/python3.12 -c' 12485s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12485s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12485s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12485s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12485s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12485s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12485s E 9 | # include_next 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E 12485s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12485s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12485s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12485s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12485s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12485s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12485s E INFO: building 'test_array_from_pyobj_ext' extension 12485s E INFO: compiling C sources 12485s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12485s E 12485s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12485s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12485s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12485s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12485s E 14 | #include 12485s E | ^~~~~~~~~~ 12485s E compilation terminated. 12485s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[LONGLONG] _______ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s _____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[LONGLONG] _____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[LONGLONG] ____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[LONGLONG] ____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[LONGLONG] __ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[LONGLONG] __ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s __ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[LONGLONG] ___ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[LONGLONG] _ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ________ ERROR at setup of TestSharedMemory.test_cache_hidden[LONGLONG] ________ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ___________ ERROR at setup of TestSharedMemory.test_hidden[LONGLONG] ___________ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s _______ ERROR at setup of TestSharedMemory.test_optional_none[LONGLONG] ________ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s _____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[LONGLONG] _____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[LONGLONG] _____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s __________ ERROR at setup of TestSharedMemory.test_inplace[LONGLONG] ___________ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ___ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[LONGLONG] ____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s _______ ERROR at setup of TestSharedMemory.test_in_from_2seq[ULONGLONG] ________ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s _____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[ULONGLONG] _____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-2seq-C-w] _____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-2seq-C-ro] ____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-2seq-F-w] _____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-2seq-F-ro] ____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12486s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12486s kw = {} 12486s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s 12486s @_memoize 12486s def build_module_distutils(source_files, config_code, module_name, **kw): 12486s """ 12486s Build a module via distutils and import it. 12486s 12486s """ 12486s d = get_module_dir() 12486s 12486s # Copy files 12486s dst_sources = [] 12486s for fn in source_files: 12486s if not os.path.isfile(fn): 12486s raise RuntimeError("%s is not a file" % fn) 12486s dst = os.path.join(d, os.path.basename(fn)) 12486s shutil.copyfile(fn, dst) 12486s dst_sources.append(dst) 12486s 12486s # Build script 12486s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12486s 12486s code = fr""" 12486s import os 12486s import sys 12486s sys.path = {repr(sys.path)} 12486s 12486s def configuration(parent_name='',top_path=None): 12486s from numpy.distutils.misc_util import Configuration 12486s config = Configuration('', parent_name, top_path) 12486s {config_code} 12486s return config 12486s 12486s if __name__ == "__main__": 12486s from numpy.distutils.core import setup 12486s setup(configuration=configuration) 12486s """ 12486s script = os.path.join(d, get_temp_module_name() + ".py") 12486s dst_sources.append(script) 12486s with open(script, "wb") as f: 12486s f.write(asbytes(code)) 12486s 12486s # Build 12486s cwd = os.getcwd() 12486s try: 12486s os.chdir(d) 12486s cmd = [sys.executable, script, "build_ext", "-i"] 12486s p = subprocess.Popen(cmd, 12486s stdout=subprocess.PIPE, 12486s stderr=subprocess.STDOUT) 12486s out, err = p.communicate() 12486s if p.returncode != 0: 12486s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12486s (cmd[4:], asstr(out))) 12486s E RuntimeError: Running distutils build failed: [] 12486s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12486s E 12486s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12486s E of the deprecation of `distutils` itself. It will be removed for 12486s E Python >= 3.12. For older Python versions it will remain present. 12486s E It is recommended to use `setuptools < 60.0` for those Python versions. 12486s E For more details, see: 12486s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12486s E 12486s E 12486s E from numpy.distutils.core import setup 12486s E running build_ext 12486s E running build_src 12486s E INFO: build_src 12486s E INFO: building extension "test_array_from_pyobj_ext" sources 12486s E INFO: build_src: building npy-pkg config files 12486s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12486s E !! 12486s E 12486s E ******************************************************************************** 12486s E Please avoid running ``setup.py`` directly. 12486s E Instead, use pypa/build, pypa/installer or other 12486s E standards-based tools. 12486s E 12486s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12486s E ******************************************************************************** 12486s E 12486s E !! 12486s E self.initialize_options() 12486s E INFO: customize UnixCCompiler 12486s E INFO: customize UnixCCompiler using build_ext 12486s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/tmp 12486s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E creating /tmp/tmpvt806usq/usr 12486s E creating /tmp/tmpvt806usq/usr/lib 12486s E creating /tmp/tmpvt806usq/usr/lib/python3 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12486s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=native' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-O3' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-Werror' 12486s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12486s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-vfpv4' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12486s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-march=armv8.2-a+fp16' 12486s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/include/python3.12 -c' 12486s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12486s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12486s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12486s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12486s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12486s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12486s E 9 | # include_next 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E 12486s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12486s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12486s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12486s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12486s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12486s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12486s E INFO: building 'test_array_from_pyobj_ext' extension 12486s E INFO: compiling C sources 12486s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12486s E 12486s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12486s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12486s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12486s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12486s E 14 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E In file included from fortranobject.c:2: 12486s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12486s E 7 | #include 12486s E | ^~~~~~~~~~ 12486s E compilation terminated. 12486s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12486s E INFO: 12486s E ########### EXT COMPILER OPTIMIZATION ########### 12486s E INFO: Platform : 12486s E Architecture: armhf 12486s E Compiler : gcc 12486s E 12486s E CPU baseline : 12486s E Requested : 'min' 12486s E Enabled : none 12486s E Flags : none 12486s E Extra checks: none 12486s E 12486s E CPU dispatch : 12486s E Requested : 'max -xop -fma4' 12486s E Enabled : none 12486s E Generated : none 12486s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12486s 12486s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12486s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12486s d = '/tmp/tmpmzdm58dt' 12486s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12486s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12486s err = None 12486s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12486s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s kw = {} 12486s module_name = 'test_array_from_pyobj_ext' 12486s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12486s p = 12486s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12486s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12486s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-23seq-C-w] ____ 12486s 12486s def setup_module(): 12486s """ 12486s Build the required testing extension module 12486s 12486s """ 12486s global wrap 12486s 12486s # Check compiler availability first 12486s if not util.has_c_compiler(): 12486s pytest.skip("No C compiler available") 12486s 12486s if wrap is None: 12486s config_code = """ 12486s config.add_extension('test_array_from_pyobj_ext', 12486s sources=['wrapmodule.c', 'fortranobject.c'], 12486s define_macros=[]) 12486s """ 12486s d = os.path.dirname(__file__) 12486s src = [ 12486s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12486s util.getpath("src", "fortranobject.c"), 12486s util.getpath("src", "fortranobject.h"), 12486s ] 12486s > wrap = util.build_module_distutils(src, config_code, 12486s "test_array_from_pyobj_ext") 12486s 12486s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12486s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12486s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12486s 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12486s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12486s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12486s memo[key] = func(*a, **kw) 12486s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12486s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-23seq-C-ro] ____ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-23seq-F-w] ____ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-23seq-F-ro] ____ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s ________ ERROR at setup of TestSharedMemory.test_inout_2seq[ULONGLONG] _________ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s _______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[ULONGLONG] _______ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s _______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[ULONGLONG] _______ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s __ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[ULONGLONG] ___ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[ULONGLONG] ______ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s ____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[ULONGLONG] _____ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s ___ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[ULONGLONG] ____ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s ___ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[ULONGLONG] ____ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[ULONGLONG] _ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[ULONGLONG] _ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12487s E INFO: build_src: building npy-pkg config files 12487s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12487s E !! 12487s E 12487s E ******************************************************************************** 12487s E Please avoid running ``setup.py`` directly. 12487s E Instead, use pypa/build, pypa/installer or other 12487s E standards-based tools. 12487s E 12487s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12487s E ******************************************************************************** 12487s E 12487s E !! 12487s E self.initialize_options() 12487s E INFO: customize UnixCCompiler 12487s E INFO: customize UnixCCompiler using build_ext 12487s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/tmp 12487s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E creating /tmp/tmpvt806usq/usr 12487s E creating /tmp/tmpvt806usq/usr/lib 12487s E creating /tmp/tmpvt806usq/usr/lib/python3 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12487s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=native' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-O3' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-Werror' 12487s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12487s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-vfpv4' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12487s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-march=armv8.2-a+fp16' 12487s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/include/python3.12 -c' 12487s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12487s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12487s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12487s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12487s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12487s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12487s E 9 | # include_next 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E 12487s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12487s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12487s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12487s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12487s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12487s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12487s E INFO: building 'test_array_from_pyobj_ext' extension 12487s E INFO: compiling C sources 12487s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12487s E 12487s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12487s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12487s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12487s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12487s E 14 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E In file included from fortranobject.c:2: 12487s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12487s E 7 | #include 12487s E | ^~~~~~~~~~ 12487s E compilation terminated. 12487s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12487s E INFO: 12487s E ########### EXT COMPILER OPTIMIZATION ########### 12487s E INFO: Platform : 12487s E Architecture: armhf 12487s E Compiler : gcc 12487s E 12487s E CPU baseline : 12487s E Requested : 'min' 12487s E Enabled : none 12487s E Flags : none 12487s E Extra checks: none 12487s E 12487s E CPU dispatch : 12487s E Requested : 'max -xop -fma4' 12487s E Enabled : none 12487s E Generated : none 12487s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12487s 12487s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12487s d = '/tmp/tmpmzdm58dt' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s err = None 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s kw = {} 12487s module_name = 'test_array_from_pyobj_ext' 12487s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12487s p = 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12487s __ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[ULONGLONG] __ 12487s 12487s def setup_module(): 12487s """ 12487s Build the required testing extension module 12487s 12487s """ 12487s global wrap 12487s 12487s # Check compiler availability first 12487s if not util.has_c_compiler(): 12487s pytest.skip("No C compiler available") 12487s 12487s if wrap is None: 12487s config_code = """ 12487s config.add_extension('test_array_from_pyobj_ext', 12487s sources=['wrapmodule.c', 'fortranobject.c'], 12487s define_macros=[]) 12487s """ 12487s d = os.path.dirname(__file__) 12487s src = [ 12487s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12487s util.getpath("src", "fortranobject.c"), 12487s util.getpath("src", "fortranobject.h"), 12487s ] 12487s > wrap = util.build_module_distutils(src, config_code, 12487s "test_array_from_pyobj_ext") 12487s 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12487s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12487s memo[key] = func(*a, **kw) 12487s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12487s func = 12487s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12487s kw = {} 12487s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12487s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12487s 12487s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12487s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12487s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12487s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12487s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12487s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12487s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12487s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12487s 12487s @_memoize 12487s def build_module_distutils(source_files, config_code, module_name, **kw): 12487s """ 12487s Build a module via distutils and import it. 12487s 12487s """ 12487s d = get_module_dir() 12487s 12487s # Copy files 12487s dst_sources = [] 12487s for fn in source_files: 12487s if not os.path.isfile(fn): 12487s raise RuntimeError("%s is not a file" % fn) 12487s dst = os.path.join(d, os.path.basename(fn)) 12487s shutil.copyfile(fn, dst) 12487s dst_sources.append(dst) 12487s 12487s # Build script 12487s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12487s 12487s code = fr""" 12487s import os 12487s import sys 12487s sys.path = {repr(sys.path)} 12487s 12487s def configuration(parent_name='',top_path=None): 12487s from numpy.distutils.misc_util import Configuration 12487s config = Configuration('', parent_name, top_path) 12487s {config_code} 12487s return config 12487s 12487s if __name__ == "__main__": 12487s from numpy.distutils.core import setup 12487s setup(configuration=configuration) 12487s """ 12487s script = os.path.join(d, get_temp_module_name() + ".py") 12487s dst_sources.append(script) 12487s with open(script, "wb") as f: 12487s f.write(asbytes(code)) 12487s 12487s # Build 12487s cwd = os.getcwd() 12487s try: 12487s os.chdir(d) 12487s cmd = [sys.executable, script, "build_ext", "-i"] 12487s p = subprocess.Popen(cmd, 12487s stdout=subprocess.PIPE, 12487s stderr=subprocess.STDOUT) 12487s out, err = p.communicate() 12487s if p.returncode != 0: 12487s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12487s (cmd[4:], asstr(out))) 12487s E RuntimeError: Running distutils build failed: [] 12487s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12487s E 12487s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12487s E of the deprecation of `distutils` itself. It will be removed for 12487s E Python >= 3.12. For older Python versions it will remain present. 12487s E It is recommended to use `setuptools < 60.0` for those Python versions. 12487s E For more details, see: 12487s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12487s E 12487s E 12487s E from numpy.distutils.core import setup 12487s E running build_ext 12487s E running build_src 12487s E INFO: build_src 12487s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[ULONGLONG] _ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s _______ ERROR at setup of TestSharedMemory.test_cache_hidden[ULONGLONG] ________ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s __________ ERROR at setup of TestSharedMemory.test_hidden[ULONGLONG] ___________ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s _______ ERROR at setup of TestSharedMemory.test_optional_none[ULONGLONG] _______ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s ____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[ULONGLONG] _____ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s ____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[ULONGLONG] ____ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s __________ ERROR at setup of TestSharedMemory.test_inplace[ULONGLONG] __________ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s ___ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[ULONGLONG] ___ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[FLOAT] __________ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[FLOAT] _______ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-2seq-C-w] _______ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-2seq-C-ro] ______ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-2seq-F-w] _______ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s 12488s @_memoize 12488s def build_module_distutils(source_files, config_code, module_name, **kw): 12488s """ 12488s Build a module via distutils and import it. 12488s 12488s """ 12488s d = get_module_dir() 12488s 12488s # Copy files 12488s dst_sources = [] 12488s for fn in source_files: 12488s if not os.path.isfile(fn): 12488s raise RuntimeError("%s is not a file" % fn) 12488s dst = os.path.join(d, os.path.basename(fn)) 12488s shutil.copyfile(fn, dst) 12488s dst_sources.append(dst) 12488s 12488s # Build script 12488s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12488s 12488s code = fr""" 12488s import os 12488s import sys 12488s sys.path = {repr(sys.path)} 12488s 12488s def configuration(parent_name='',top_path=None): 12488s from numpy.distutils.misc_util import Configuration 12488s config = Configuration('', parent_name, top_path) 12488s {config_code} 12488s return config 12488s 12488s if __name__ == "__main__": 12488s from numpy.distutils.core import setup 12488s setup(configuration=configuration) 12488s """ 12488s script = os.path.join(d, get_temp_module_name() + ".py") 12488s dst_sources.append(script) 12488s with open(script, "wb") as f: 12488s f.write(asbytes(code)) 12488s 12488s # Build 12488s cwd = os.getcwd() 12488s try: 12488s os.chdir(d) 12488s cmd = [sys.executable, script, "build_ext", "-i"] 12488s p = subprocess.Popen(cmd, 12488s stdout=subprocess.PIPE, 12488s stderr=subprocess.STDOUT) 12488s out, err = p.communicate() 12488s if p.returncode != 0: 12488s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12488s (cmd[4:], asstr(out))) 12488s E RuntimeError: Running distutils build failed: [] 12488s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12488s E 12488s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12488s E of the deprecation of `distutils` itself. It will be removed for 12488s E Python >= 3.12. For older Python versions it will remain present. 12488s E It is recommended to use `setuptools < 60.0` for those Python versions. 12488s E For more details, see: 12488s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12488s E 12488s E 12488s E from numpy.distutils.core import setup 12488s E running build_ext 12488s E running build_src 12488s E INFO: build_src 12488s E INFO: building extension "test_array_from_pyobj_ext" sources 12488s E INFO: build_src: building npy-pkg config files 12488s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12488s E !! 12488s E 12488s E ******************************************************************************** 12488s E Please avoid running ``setup.py`` directly. 12488s E Instead, use pypa/build, pypa/installer or other 12488s E standards-based tools. 12488s E 12488s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12488s E ******************************************************************************** 12488s E 12488s E !! 12488s E self.initialize_options() 12488s E INFO: customize UnixCCompiler 12488s E INFO: customize UnixCCompiler using build_ext 12488s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/tmp 12488s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E creating /tmp/tmpvt806usq/usr 12488s E creating /tmp/tmpvt806usq/usr/lib 12488s E creating /tmp/tmpvt806usq/usr/lib/python3 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12488s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=native' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-O3' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-Werror' 12488s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12488s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-vfpv4' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12488s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-march=armv8.2-a+fp16' 12488s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/include/python3.12 -c' 12488s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12488s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12488s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12488s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12488s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12488s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12488s E 9 | # include_next 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E 12488s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12488s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12488s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12488s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12488s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12488s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12488s E INFO: building 'test_array_from_pyobj_ext' extension 12488s E INFO: compiling C sources 12488s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12488s E 12488s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12488s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12488s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12488s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12488s E 14 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E In file included from fortranobject.c:2: 12488s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12488s E 7 | #include 12488s E | ^~~~~~~~~~ 12488s E compilation terminated. 12488s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12488s E INFO: 12488s E ########### EXT COMPILER OPTIMIZATION ########### 12488s E INFO: Platform : 12488s E Architecture: armhf 12488s E Compiler : gcc 12488s E 12488s E CPU baseline : 12488s E Requested : 'min' 12488s E Enabled : none 12488s E Flags : none 12488s E Extra checks: none 12488s E 12488s E CPU dispatch : 12488s E Requested : 'max -xop -fma4' 12488s E Enabled : none 12488s E Generated : none 12488s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12488s 12488s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12488s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12488s d = '/tmp/tmpmzdm58dt' 12488s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12488s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12488s err = None 12488s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12488s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s kw = {} 12488s module_name = 'test_array_from_pyobj_ext' 12488s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12488s p = 12488s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12488s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12488s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-2seq-F-ro] ______ 12488s 12488s def setup_module(): 12488s """ 12488s Build the required testing extension module 12488s 12488s """ 12488s global wrap 12488s 12488s # Check compiler availability first 12488s if not util.has_c_compiler(): 12488s pytest.skip("No C compiler available") 12488s 12488s if wrap is None: 12488s config_code = """ 12488s config.add_extension('test_array_from_pyobj_ext', 12488s sources=['wrapmodule.c', 'fortranobject.c'], 12488s define_macros=[]) 12488s """ 12488s d = os.path.dirname(__file__) 12488s src = [ 12488s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12488s util.getpath("src", "fortranobject.c"), 12488s util.getpath("src", "fortranobject.h"), 12488s ] 12488s > wrap = util.build_module_distutils(src, config_code, 12488s "test_array_from_pyobj_ext") 12488s 12488s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12488s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12488s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12488s 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12488s memo[key] = func(*a, **kw) 12488s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12488s func = 12488s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12488s kw = {} 12488s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12488s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12488s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-23seq-C-w] ______ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-23seq-C-ro] ______ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-23seq-F-w] ______ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-23seq-F-ro] ______ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[FLOAT] ___________ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[FLOAT] _________ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[FLOAT] _________ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[FLOAT] _____ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[FLOAT] ________ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[FLOAT] _______ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[FLOAT] ______ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[FLOAT] ______ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=armv8.2-a+fp16' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12489s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12489s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12489s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12489s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12489s E INFO: building 'test_array_from_pyobj_ext' extension 12489s E INFO: compiling C sources 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12489s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12489s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12489s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12489s E 14 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E In file included from fortranobject.c:2: 12489s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12489s E 7 | #include 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12489s E INFO: 12489s E ########### EXT COMPILER OPTIMIZATION ########### 12489s E INFO: Platform : 12489s E Architecture: armhf 12489s E Compiler : gcc 12489s E 12489s E CPU baseline : 12489s E Requested : 'min' 12489s E Enabled : none 12489s E Flags : none 12489s E Extra checks: none 12489s E 12489s E CPU dispatch : 12489s E Requested : 'max -xop -fma4' 12489s E Enabled : none 12489s E Generated : none 12489s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12489s 12489s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12489s d = '/tmp/tmpmzdm58dt' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s err = None 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s kw = {} 12489s module_name = 'test_array_from_pyobj_ext' 12489s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12489s p = 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12489s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[FLOAT] ___ 12489s 12489s def setup_module(): 12489s """ 12489s Build the required testing extension module 12489s 12489s """ 12489s global wrap 12489s 12489s # Check compiler availability first 12489s if not util.has_c_compiler(): 12489s pytest.skip("No C compiler available") 12489s 12489s if wrap is None: 12489s config_code = """ 12489s config.add_extension('test_array_from_pyobj_ext', 12489s sources=['wrapmodule.c', 'fortranobject.c'], 12489s define_macros=[]) 12489s """ 12489s d = os.path.dirname(__file__) 12489s src = [ 12489s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12489s util.getpath("src", "fortranobject.c"), 12489s util.getpath("src", "fortranobject.h"), 12489s ] 12489s > wrap = util.build_module_distutils(src, config_code, 12489s "test_array_from_pyobj_ext") 12489s 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12489s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12489s memo[key] = func(*a, **kw) 12489s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12489s func = 12489s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12489s kw = {} 12489s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12489s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12489s 12489s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12489s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12489s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12489s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12489s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12489s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12489s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12489s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12489s 12489s @_memoize 12489s def build_module_distutils(source_files, config_code, module_name, **kw): 12489s """ 12489s Build a module via distutils and import it. 12489s 12489s """ 12489s d = get_module_dir() 12489s 12489s # Copy files 12489s dst_sources = [] 12489s for fn in source_files: 12489s if not os.path.isfile(fn): 12489s raise RuntimeError("%s is not a file" % fn) 12489s dst = os.path.join(d, os.path.basename(fn)) 12489s shutil.copyfile(fn, dst) 12489s dst_sources.append(dst) 12489s 12489s # Build script 12489s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12489s 12489s code = fr""" 12489s import os 12489s import sys 12489s sys.path = {repr(sys.path)} 12489s 12489s def configuration(parent_name='',top_path=None): 12489s from numpy.distutils.misc_util import Configuration 12489s config = Configuration('', parent_name, top_path) 12489s {config_code} 12489s return config 12489s 12489s if __name__ == "__main__": 12489s from numpy.distutils.core import setup 12489s setup(configuration=configuration) 12489s """ 12489s script = os.path.join(d, get_temp_module_name() + ".py") 12489s dst_sources.append(script) 12489s with open(script, "wb") as f: 12489s f.write(asbytes(code)) 12489s 12489s # Build 12489s cwd = os.getcwd() 12489s try: 12489s os.chdir(d) 12489s cmd = [sys.executable, script, "build_ext", "-i"] 12489s p = subprocess.Popen(cmd, 12489s stdout=subprocess.PIPE, 12489s stderr=subprocess.STDOUT) 12489s out, err = p.communicate() 12489s if p.returncode != 0: 12489s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12489s (cmd[4:], asstr(out))) 12489s E RuntimeError: Running distutils build failed: [] 12489s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12489s E 12489s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12489s E of the deprecation of `distutils` itself. It will be removed for 12489s E Python >= 3.12. For older Python versions it will remain present. 12489s E It is recommended to use `setuptools < 60.0` for those Python versions. 12489s E For more details, see: 12489s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12489s E 12489s E 12489s E from numpy.distutils.core import setup 12489s E running build_ext 12489s E running build_src 12489s E INFO: build_src 12489s E INFO: building extension "test_array_from_pyobj_ext" sources 12489s E INFO: build_src: building npy-pkg config files 12489s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12489s E !! 12489s E 12489s E ******************************************************************************** 12489s E Please avoid running ``setup.py`` directly. 12489s E Instead, use pypa/build, pypa/installer or other 12489s E standards-based tools. 12489s E 12489s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12489s E ******************************************************************************** 12489s E 12489s E !! 12489s E self.initialize_options() 12489s E INFO: customize UnixCCompiler 12489s E INFO: customize UnixCCompiler using build_ext 12489s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/tmp 12489s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E creating /tmp/tmpvt806usq/usr 12489s E creating /tmp/tmpvt806usq/usr/lib 12489s E creating /tmp/tmpvt806usq/usr/lib/python3 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12489s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-march=native' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-O3' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-Werror' 12489s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12489s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon-vfpv4' 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12489s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12489s E 12489s E INFO: compile options: '-I/usr/include/python3.12 -c' 12489s E extra options: '-mfpu=neon -Werror' 12489s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12489s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12489s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12489s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12489s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12489s E 9 | # include_next 12489s E | ^~~~~~~~~~ 12489s E compilation terminated. 12489s E 12489s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12489s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[FLOAT] ___ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[FLOAT] ____ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[FLOAT] _ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[FLOAT] __________ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s ____________ ERROR at setup of TestSharedMemory.test_hidden[FLOAT] _____________ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s _________ ERROR at setup of TestSharedMemory.test_optional_none[FLOAT] _________ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[FLOAT] _______ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[FLOAT] ______ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s ____________ ERROR at setup of TestSharedMemory.test_inplace[FLOAT] ____________ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[FLOAT] _____ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[DOUBLE] _________ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[DOUBLE] _______ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=armv8.2-a+fp16' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12490s E 9 | # include_next 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E 12490s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12490s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12490s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12490s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12490s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12490s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12490s E INFO: building 'test_array_from_pyobj_ext' extension 12490s E INFO: compiling C sources 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12490s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12490s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12490s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12490s E 14 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E In file included from fortranobject.c:2: 12490s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12490s E 7 | #include 12490s E | ^~~~~~~~~~ 12490s E compilation terminated. 12490s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12490s E INFO: 12490s E ########### EXT COMPILER OPTIMIZATION ########### 12490s E INFO: Platform : 12490s E Architecture: armhf 12490s E Compiler : gcc 12490s E 12490s E CPU baseline : 12490s E Requested : 'min' 12490s E Enabled : none 12490s E Flags : none 12490s E Extra checks: none 12490s E 12490s E CPU dispatch : 12490s E Requested : 'max -xop -fma4' 12490s E Enabled : none 12490s E Generated : none 12490s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12490s 12490s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12490s d = '/tmp/tmpmzdm58dt' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s err = None 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s kw = {} 12490s module_name = 'test_array_from_pyobj_ext' 12490s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12490s p = 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12490s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-2seq-C-w] ______ 12490s 12490s def setup_module(): 12490s """ 12490s Build the required testing extension module 12490s 12490s """ 12490s global wrap 12490s 12490s # Check compiler availability first 12490s if not util.has_c_compiler(): 12490s pytest.skip("No C compiler available") 12490s 12490s if wrap is None: 12490s config_code = """ 12490s config.add_extension('test_array_from_pyobj_ext', 12490s sources=['wrapmodule.c', 'fortranobject.c'], 12490s define_macros=[]) 12490s """ 12490s d = os.path.dirname(__file__) 12490s src = [ 12490s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12490s util.getpath("src", "fortranobject.c"), 12490s util.getpath("src", "fortranobject.h"), 12490s ] 12490s > wrap = util.build_module_distutils(src, config_code, 12490s "test_array_from_pyobj_ext") 12490s 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12490s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12490s memo[key] = func(*a, **kw) 12490s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12490s func = 12490s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12490s kw = {} 12490s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12490s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12490s 12490s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12490s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12490s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12490s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12490s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12490s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12490s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12490s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12490s 12490s @_memoize 12490s def build_module_distutils(source_files, config_code, module_name, **kw): 12490s """ 12490s Build a module via distutils and import it. 12490s 12490s """ 12490s d = get_module_dir() 12490s 12490s # Copy files 12490s dst_sources = [] 12490s for fn in source_files: 12490s if not os.path.isfile(fn): 12490s raise RuntimeError("%s is not a file" % fn) 12490s dst = os.path.join(d, os.path.basename(fn)) 12490s shutil.copyfile(fn, dst) 12490s dst_sources.append(dst) 12490s 12490s # Build script 12490s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12490s 12490s code = fr""" 12490s import os 12490s import sys 12490s sys.path = {repr(sys.path)} 12490s 12490s def configuration(parent_name='',top_path=None): 12490s from numpy.distutils.misc_util import Configuration 12490s config = Configuration('', parent_name, top_path) 12490s {config_code} 12490s return config 12490s 12490s if __name__ == "__main__": 12490s from numpy.distutils.core import setup 12490s setup(configuration=configuration) 12490s """ 12490s script = os.path.join(d, get_temp_module_name() + ".py") 12490s dst_sources.append(script) 12490s with open(script, "wb") as f: 12490s f.write(asbytes(code)) 12490s 12490s # Build 12490s cwd = os.getcwd() 12490s try: 12490s os.chdir(d) 12490s cmd = [sys.executable, script, "build_ext", "-i"] 12490s p = subprocess.Popen(cmd, 12490s stdout=subprocess.PIPE, 12490s stderr=subprocess.STDOUT) 12490s out, err = p.communicate() 12490s if p.returncode != 0: 12490s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12490s (cmd[4:], asstr(out))) 12490s E RuntimeError: Running distutils build failed: [] 12490s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12490s E 12490s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12490s E of the deprecation of `distutils` itself. It will be removed for 12490s E Python >= 3.12. For older Python versions it will remain present. 12490s E It is recommended to use `setuptools < 60.0` for those Python versions. 12490s E For more details, see: 12490s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12490s E 12490s E 12490s E from numpy.distutils.core import setup 12490s E running build_ext 12490s E running build_src 12490s E INFO: build_src 12490s E INFO: building extension "test_array_from_pyobj_ext" sources 12490s E INFO: build_src: building npy-pkg config files 12490s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12490s E !! 12490s E 12490s E ******************************************************************************** 12490s E Please avoid running ``setup.py`` directly. 12490s E Instead, use pypa/build, pypa/installer or other 12490s E standards-based tools. 12490s E 12490s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12490s E ******************************************************************************** 12490s E 12490s E !! 12490s E self.initialize_options() 12490s E INFO: customize UnixCCompiler 12490s E INFO: customize UnixCCompiler using build_ext 12490s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/tmp 12490s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E creating /tmp/tmpvt806usq/usr 12490s E creating /tmp/tmpvt806usq/usr/lib 12490s E creating /tmp/tmpvt806usq/usr/lib/python3 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12490s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-march=native' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-O3' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-Werror' 12490s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12490s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12490s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfpu=neon-vfpv4' 12490s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12490s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12490s E 12490s E INFO: compile options: '-I/usr/include/python3.12 -c' 12490s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12490s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12490s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12490s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12490s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12490s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-2seq-C-ro] ______ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-2seq-F-w] ______ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-2seq-F-ro] ______ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-23seq-C-w] ______ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-23seq-C-ro] _____ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-23seq-F-w] ______ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-23seq-F-ro] _____ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[DOUBLE] __________ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[DOUBLE] _________ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[DOUBLE] _________ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[DOUBLE] ____ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[DOUBLE] ________ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[DOUBLE] ______ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12491s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12491s E 7 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12491s E INFO: 12491s E ########### EXT COMPILER OPTIMIZATION ########### 12491s E INFO: Platform : 12491s E Architecture: armhf 12491s E Compiler : gcc 12491s E 12491s E CPU baseline : 12491s E Requested : 'min' 12491s E Enabled : none 12491s E Flags : none 12491s E Extra checks: none 12491s E 12491s E CPU dispatch : 12491s E Requested : 'max -xop -fma4' 12491s E Enabled : none 12491s E Generated : none 12491s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12491s 12491s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12491s d = '/tmp/tmpmzdm58dt' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s err = None 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s kw = {} 12491s module_name = 'test_array_from_pyobj_ext' 12491s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12491s p = 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12491s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[DOUBLE] _____ 12491s 12491s def setup_module(): 12491s """ 12491s Build the required testing extension module 12491s 12491s """ 12491s global wrap 12491s 12491s # Check compiler availability first 12491s if not util.has_c_compiler(): 12491s pytest.skip("No C compiler available") 12491s 12491s if wrap is None: 12491s config_code = """ 12491s config.add_extension('test_array_from_pyobj_ext', 12491s sources=['wrapmodule.c', 'fortranobject.c'], 12491s define_macros=[]) 12491s """ 12491s d = os.path.dirname(__file__) 12491s src = [ 12491s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12491s util.getpath("src", "fortranobject.c"), 12491s util.getpath("src", "fortranobject.h"), 12491s ] 12491s > wrap = util.build_module_distutils(src, config_code, 12491s "test_array_from_pyobj_ext") 12491s 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12491s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12491s memo[key] = func(*a, **kw) 12491s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12491s func = 12491s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12491s kw = {} 12491s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12491s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12491s 12491s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12491s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12491s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12491s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12491s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12491s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12491s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12491s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12491s 12491s @_memoize 12491s def build_module_distutils(source_files, config_code, module_name, **kw): 12491s """ 12491s Build a module via distutils and import it. 12491s 12491s """ 12491s d = get_module_dir() 12491s 12491s # Copy files 12491s dst_sources = [] 12491s for fn in source_files: 12491s if not os.path.isfile(fn): 12491s raise RuntimeError("%s is not a file" % fn) 12491s dst = os.path.join(d, os.path.basename(fn)) 12491s shutil.copyfile(fn, dst) 12491s dst_sources.append(dst) 12491s 12491s # Build script 12491s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12491s 12491s code = fr""" 12491s import os 12491s import sys 12491s sys.path = {repr(sys.path)} 12491s 12491s def configuration(parent_name='',top_path=None): 12491s from numpy.distutils.misc_util import Configuration 12491s config = Configuration('', parent_name, top_path) 12491s {config_code} 12491s return config 12491s 12491s if __name__ == "__main__": 12491s from numpy.distutils.core import setup 12491s setup(configuration=configuration) 12491s """ 12491s script = os.path.join(d, get_temp_module_name() + ".py") 12491s dst_sources.append(script) 12491s with open(script, "wb") as f: 12491s f.write(asbytes(code)) 12491s 12491s # Build 12491s cwd = os.getcwd() 12491s try: 12491s os.chdir(d) 12491s cmd = [sys.executable, script, "build_ext", "-i"] 12491s p = subprocess.Popen(cmd, 12491s stdout=subprocess.PIPE, 12491s stderr=subprocess.STDOUT) 12491s out, err = p.communicate() 12491s if p.returncode != 0: 12491s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12491s (cmd[4:], asstr(out))) 12491s E RuntimeError: Running distutils build failed: [] 12491s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12491s E 12491s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12491s E of the deprecation of `distutils` itself. It will be removed for 12491s E Python >= 3.12. For older Python versions it will remain present. 12491s E It is recommended to use `setuptools < 60.0` for those Python versions. 12491s E For more details, see: 12491s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12491s E 12491s E 12491s E from numpy.distutils.core import setup 12491s E running build_ext 12491s E running build_src 12491s E INFO: build_src 12491s E INFO: building extension "test_array_from_pyobj_ext" sources 12491s E INFO: build_src: building npy-pkg config files 12491s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12491s E !! 12491s E 12491s E ******************************************************************************** 12491s E Please avoid running ``setup.py`` directly. 12491s E Instead, use pypa/build, pypa/installer or other 12491s E standards-based tools. 12491s E 12491s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12491s E ******************************************************************************** 12491s E 12491s E !! 12491s E self.initialize_options() 12491s E INFO: customize UnixCCompiler 12491s E INFO: customize UnixCCompiler using build_ext 12491s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/tmp 12491s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E creating /tmp/tmpvt806usq/usr 12491s E creating /tmp/tmpvt806usq/usr/lib 12491s E creating /tmp/tmpvt806usq/usr/lib/python3 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12491s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=native' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-O3' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-Werror' 12491s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12491s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-vfpv4' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12491s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-march=armv8.2-a+fp16' 12491s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/include/python3.12 -c' 12491s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12491s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12491s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12491s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12491s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12491s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12491s E 9 | # include_next 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E 12491s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12491s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12491s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12491s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12491s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12491s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12491s E INFO: building 'test_array_from_pyobj_ext' extension 12491s E INFO: compiling C sources 12491s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12491s E 12491s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12491s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12491s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12491s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12491s E 14 | #include 12491s E | ^~~~~~~~~~ 12491s E compilation terminated. 12491s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[DOUBLE] _____ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[DOUBLE] ___ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[DOUBLE] ___ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[DOUBLE] ____ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[DOUBLE] _ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[DOUBLE] _________ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s ____________ ERROR at setup of TestSharedMemory.test_hidden[DOUBLE] ____________ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s ________ ERROR at setup of TestSharedMemory.test_optional_none[DOUBLE] _________ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[DOUBLE] ______ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[DOUBLE] ______ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s ___________ ERROR at setup of TestSharedMemory.test_inplace[DOUBLE] ____________ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12492s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12492s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12492s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12492s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12492s E INFO: building 'test_array_from_pyobj_ext' extension 12492s E INFO: compiling C sources 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12492s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12492s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12492s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12492s E 14 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E In file included from fortranobject.c:2: 12492s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12492s E 7 | #include 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12492s E INFO: 12492s E ########### EXT COMPILER OPTIMIZATION ########### 12492s E INFO: Platform : 12492s E Architecture: armhf 12492s E Compiler : gcc 12492s E 12492s E CPU baseline : 12492s E Requested : 'min' 12492s E Enabled : none 12492s E Flags : none 12492s E Extra checks: none 12492s E 12492s E CPU dispatch : 12492s E Requested : 'max -xop -fma4' 12492s E Enabled : none 12492s E Generated : none 12492s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12492s 12492s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12492s d = '/tmp/tmpmzdm58dt' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s err = None 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s kw = {} 12492s module_name = 'test_array_from_pyobj_ext' 12492s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12492s p = 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12492s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[DOUBLE] _____ 12492s 12492s def setup_module(): 12492s """ 12492s Build the required testing extension module 12492s 12492s """ 12492s global wrap 12492s 12492s # Check compiler availability first 12492s if not util.has_c_compiler(): 12492s pytest.skip("No C compiler available") 12492s 12492s if wrap is None: 12492s config_code = """ 12492s config.add_extension('test_array_from_pyobj_ext', 12492s sources=['wrapmodule.c', 'fortranobject.c'], 12492s define_macros=[]) 12492s """ 12492s d = os.path.dirname(__file__) 12492s src = [ 12492s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12492s util.getpath("src", "fortranobject.c"), 12492s util.getpath("src", "fortranobject.h"), 12492s ] 12492s > wrap = util.build_module_distutils(src, config_code, 12492s "test_array_from_pyobj_ext") 12492s 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12492s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12492s memo[key] = func(*a, **kw) 12492s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12492s func = 12492s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12492s kw = {} 12492s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12492s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12492s 12492s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12492s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12492s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12492s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12492s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12492s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12492s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12492s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12492s 12492s @_memoize 12492s def build_module_distutils(source_files, config_code, module_name, **kw): 12492s """ 12492s Build a module via distutils and import it. 12492s 12492s """ 12492s d = get_module_dir() 12492s 12492s # Copy files 12492s dst_sources = [] 12492s for fn in source_files: 12492s if not os.path.isfile(fn): 12492s raise RuntimeError("%s is not a file" % fn) 12492s dst = os.path.join(d, os.path.basename(fn)) 12492s shutil.copyfile(fn, dst) 12492s dst_sources.append(dst) 12492s 12492s # Build script 12492s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12492s 12492s code = fr""" 12492s import os 12492s import sys 12492s sys.path = {repr(sys.path)} 12492s 12492s def configuration(parent_name='',top_path=None): 12492s from numpy.distutils.misc_util import Configuration 12492s config = Configuration('', parent_name, top_path) 12492s {config_code} 12492s return config 12492s 12492s if __name__ == "__main__": 12492s from numpy.distutils.core import setup 12492s setup(configuration=configuration) 12492s """ 12492s script = os.path.join(d, get_temp_module_name() + ".py") 12492s dst_sources.append(script) 12492s with open(script, "wb") as f: 12492s f.write(asbytes(code)) 12492s 12492s # Build 12492s cwd = os.getcwd() 12492s try: 12492s os.chdir(d) 12492s cmd = [sys.executable, script, "build_ext", "-i"] 12492s p = subprocess.Popen(cmd, 12492s stdout=subprocess.PIPE, 12492s stderr=subprocess.STDOUT) 12492s out, err = p.communicate() 12492s if p.returncode != 0: 12492s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12492s (cmd[4:], asstr(out))) 12492s E RuntimeError: Running distutils build failed: [] 12492s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12492s E 12492s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12492s E of the deprecation of `distutils` itself. It will be removed for 12492s E Python >= 3.12. For older Python versions it will remain present. 12492s E It is recommended to use `setuptools < 60.0` for those Python versions. 12492s E For more details, see: 12492s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12492s E 12492s E 12492s E from numpy.distutils.core import setup 12492s E running build_ext 12492s E running build_src 12492s E INFO: build_src 12492s E INFO: building extension "test_array_from_pyobj_ext" sources 12492s E INFO: build_src: building npy-pkg config files 12492s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12492s E !! 12492s E 12492s E ******************************************************************************** 12492s E Please avoid running ``setup.py`` directly. 12492s E Instead, use pypa/build, pypa/installer or other 12492s E standards-based tools. 12492s E 12492s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12492s E ******************************************************************************** 12492s E 12492s E !! 12492s E self.initialize_options() 12492s E INFO: customize UnixCCompiler 12492s E INFO: customize UnixCCompiler using build_ext 12492s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/tmp 12492s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E creating /tmp/tmpvt806usq/usr 12492s E creating /tmp/tmpvt806usq/usr/lib 12492s E creating /tmp/tmpvt806usq/usr/lib/python3 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12492s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=native' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-O3' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-Werror' 12492s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12492s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-vfpv4' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon -Werror' 12492s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12492s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12492s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12492s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12492s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12492s E 9 | # include_next 12492s E | ^~~~~~~~~~ 12492s E compilation terminated. 12492s E 12492s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12492s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12492s E 12492s E INFO: compile options: '-I/usr/include/python3.12 -c' 12492s E extra options: '-march=armv8.2-a+fp16' 12492s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12492s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[CFLOAT] _________ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[CFLOAT] _______ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-2seq-C-w] ______ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-2seq-C-ro] ______ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-2seq-F-w] ______ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-2seq-F-ro] ______ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-23seq-C-w] ______ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-23seq-C-ro] _____ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-23seq-F-w] ______ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-23seq-F-ro] _____ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[CFLOAT] __________ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[CFLOAT] _________ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[CFLOAT] _________ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[CFLOAT] ____ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=armv8.2-a+fp16' 12493s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12493s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12493s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12493s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12493s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12493s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12493s E 9 | # include_next 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E 12493s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12493s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12493s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12493s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12493s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12493s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12493s E INFO: building 'test_array_from_pyobj_ext' extension 12493s E INFO: compiling C sources 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12493s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12493s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12493s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12493s E 14 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E In file included from fortranobject.c:2: 12493s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12493s E 7 | #include 12493s E | ^~~~~~~~~~ 12493s E compilation terminated. 12493s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12493s E INFO: 12493s E ########### EXT COMPILER OPTIMIZATION ########### 12493s E INFO: Platform : 12493s E Architecture: armhf 12493s E Compiler : gcc 12493s E 12493s E CPU baseline : 12493s E Requested : 'min' 12493s E Enabled : none 12493s E Flags : none 12493s E Extra checks: none 12493s E 12493s E CPU dispatch : 12493s E Requested : 'max -xop -fma4' 12493s E Enabled : none 12493s E Generated : none 12493s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12493s 12493s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12493s d = '/tmp/tmpmzdm58dt' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s err = None 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s kw = {} 12493s module_name = 'test_array_from_pyobj_ext' 12493s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12493s p = 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12493s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[CFLOAT] ________ 12493s 12493s def setup_module(): 12493s """ 12493s Build the required testing extension module 12493s 12493s """ 12493s global wrap 12493s 12493s # Check compiler availability first 12493s if not util.has_c_compiler(): 12493s pytest.skip("No C compiler available") 12493s 12493s if wrap is None: 12493s config_code = """ 12493s config.add_extension('test_array_from_pyobj_ext', 12493s sources=['wrapmodule.c', 'fortranobject.c'], 12493s define_macros=[]) 12493s """ 12493s d = os.path.dirname(__file__) 12493s src = [ 12493s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12493s util.getpath("src", "fortranobject.c"), 12493s util.getpath("src", "fortranobject.h"), 12493s ] 12493s > wrap = util.build_module_distutils(src, config_code, 12493s "test_array_from_pyobj_ext") 12493s 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12493s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12493s memo[key] = func(*a, **kw) 12493s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12493s func = 12493s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12493s kw = {} 12493s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12493s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12493s 12493s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12493s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12493s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12493s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12493s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12493s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12493s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12493s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12493s 12493s @_memoize 12493s def build_module_distutils(source_files, config_code, module_name, **kw): 12493s """ 12493s Build a module via distutils and import it. 12493s 12493s """ 12493s d = get_module_dir() 12493s 12493s # Copy files 12493s dst_sources = [] 12493s for fn in source_files: 12493s if not os.path.isfile(fn): 12493s raise RuntimeError("%s is not a file" % fn) 12493s dst = os.path.join(d, os.path.basename(fn)) 12493s shutil.copyfile(fn, dst) 12493s dst_sources.append(dst) 12493s 12493s # Build script 12493s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12493s 12493s code = fr""" 12493s import os 12493s import sys 12493s sys.path = {repr(sys.path)} 12493s 12493s def configuration(parent_name='',top_path=None): 12493s from numpy.distutils.misc_util import Configuration 12493s config = Configuration('', parent_name, top_path) 12493s {config_code} 12493s return config 12493s 12493s if __name__ == "__main__": 12493s from numpy.distutils.core import setup 12493s setup(configuration=configuration) 12493s """ 12493s script = os.path.join(d, get_temp_module_name() + ".py") 12493s dst_sources.append(script) 12493s with open(script, "wb") as f: 12493s f.write(asbytes(code)) 12493s 12493s # Build 12493s cwd = os.getcwd() 12493s try: 12493s os.chdir(d) 12493s cmd = [sys.executable, script, "build_ext", "-i"] 12493s p = subprocess.Popen(cmd, 12493s stdout=subprocess.PIPE, 12493s stderr=subprocess.STDOUT) 12493s out, err = p.communicate() 12493s if p.returncode != 0: 12493s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12493s (cmd[4:], asstr(out))) 12493s E RuntimeError: Running distutils build failed: [] 12493s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12493s E 12493s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12493s E of the deprecation of `distutils` itself. It will be removed for 12493s E Python >= 3.12. For older Python versions it will remain present. 12493s E It is recommended to use `setuptools < 60.0` for those Python versions. 12493s E For more details, see: 12493s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12493s E 12493s E 12493s E from numpy.distutils.core import setup 12493s E running build_ext 12493s E running build_src 12493s E INFO: build_src 12493s E INFO: building extension "test_array_from_pyobj_ext" sources 12493s E INFO: build_src: building npy-pkg config files 12493s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12493s E !! 12493s E 12493s E ******************************************************************************** 12493s E Please avoid running ``setup.py`` directly. 12493s E Instead, use pypa/build, pypa/installer or other 12493s E standards-based tools. 12493s E 12493s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12493s E ******************************************************************************** 12493s E 12493s E !! 12493s E self.initialize_options() 12493s E INFO: customize UnixCCompiler 12493s E INFO: customize UnixCCompiler using build_ext 12493s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/tmp 12493s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E creating /tmp/tmpvt806usq/usr 12493s E creating /tmp/tmpvt806usq/usr/lib 12493s E creating /tmp/tmpvt806usq/usr/lib/python3 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12493s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-march=native' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-O3' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-Werror' 12493s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12493s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12493s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12493s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12493s E 12493s E INFO: compile options: '-I/usr/include/python3.12 -c' 12493s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[CFLOAT] ______ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[CFLOAT] _____ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[CFLOAT] _____ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[CFLOAT] ___ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[CFLOAT] ___ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[CFLOAT] ____ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[CFLOAT] _ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[CFLOAT] _________ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ____________ ERROR at setup of TestSharedMemory.test_hidden[CFLOAT] ____________ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ________ ERROR at setup of TestSharedMemory.test_optional_none[CFLOAT] _________ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[CFLOAT] ______ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[CFLOAT] ______ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ___________ ERROR at setup of TestSharedMemory.test_inplace[CFLOAT] ____________ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[CFLOAT] _____ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ________ ERROR at setup of TestSharedMemory.test_in_from_2seq[STRING1] _________ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[STRING1] ______ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-2seq-C-w] ______ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/usr 12494s E creating /tmp/tmpvt806usq/usr/lib 12494s E creating /tmp/tmpvt806usq/usr/lib/python3 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12494s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=native' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-O3' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-Werror' 12494s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12494s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-vfpv4' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-march=armv8.2-a+fp16' 12494s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12494s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12494s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12494s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12494s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12494s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12494s E 9 | # include_next 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E 12494s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12494s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12494s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12494s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12494s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12494s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12494s E INFO: building 'test_array_from_pyobj_ext' extension 12494s E INFO: compiling C sources 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12494s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12494s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12494s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12494s E 14 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E In file included from fortranobject.c:2: 12494s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12494s E 7 | #include 12494s E | ^~~~~~~~~~ 12494s E compilation terminated. 12494s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12494s E INFO: 12494s E ########### EXT COMPILER OPTIMIZATION ########### 12494s E INFO: Platform : 12494s E Architecture: armhf 12494s E Compiler : gcc 12494s E 12494s E CPU baseline : 12494s E Requested : 'min' 12494s E Enabled : none 12494s E Flags : none 12494s E Extra checks: none 12494s E 12494s E CPU dispatch : 12494s E Requested : 'max -xop -fma4' 12494s E Enabled : none 12494s E Generated : none 12494s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12494s 12494s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12494s d = '/tmp/tmpmzdm58dt' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s err = None 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s kw = {} 12494s module_name = 'test_array_from_pyobj_ext' 12494s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12494s p = 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12494s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-2seq-C-ro] _____ 12494s 12494s def setup_module(): 12494s """ 12494s Build the required testing extension module 12494s 12494s """ 12494s global wrap 12494s 12494s # Check compiler availability first 12494s if not util.has_c_compiler(): 12494s pytest.skip("No C compiler available") 12494s 12494s if wrap is None: 12494s config_code = """ 12494s config.add_extension('test_array_from_pyobj_ext', 12494s sources=['wrapmodule.c', 'fortranobject.c'], 12494s define_macros=[]) 12494s """ 12494s d = os.path.dirname(__file__) 12494s src = [ 12494s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12494s util.getpath("src", "fortranobject.c"), 12494s util.getpath("src", "fortranobject.h"), 12494s ] 12494s > wrap = util.build_module_distutils(src, config_code, 12494s "test_array_from_pyobj_ext") 12494s 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12494s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12494s memo[key] = func(*a, **kw) 12494s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12494s func = 12494s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12494s kw = {} 12494s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12494s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12494s 12494s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12494s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12494s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12494s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12494s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12494s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12494s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12494s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12494s 12494s @_memoize 12494s def build_module_distutils(source_files, config_code, module_name, **kw): 12494s """ 12494s Build a module via distutils and import it. 12494s 12494s """ 12494s d = get_module_dir() 12494s 12494s # Copy files 12494s dst_sources = [] 12494s for fn in source_files: 12494s if not os.path.isfile(fn): 12494s raise RuntimeError("%s is not a file" % fn) 12494s dst = os.path.join(d, os.path.basename(fn)) 12494s shutil.copyfile(fn, dst) 12494s dst_sources.append(dst) 12494s 12494s # Build script 12494s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12494s 12494s code = fr""" 12494s import os 12494s import sys 12494s sys.path = {repr(sys.path)} 12494s 12494s def configuration(parent_name='',top_path=None): 12494s from numpy.distutils.misc_util import Configuration 12494s config = Configuration('', parent_name, top_path) 12494s {config_code} 12494s return config 12494s 12494s if __name__ == "__main__": 12494s from numpy.distutils.core import setup 12494s setup(configuration=configuration) 12494s """ 12494s script = os.path.join(d, get_temp_module_name() + ".py") 12494s dst_sources.append(script) 12494s with open(script, "wb") as f: 12494s f.write(asbytes(code)) 12494s 12494s # Build 12494s cwd = os.getcwd() 12494s try: 12494s os.chdir(d) 12494s cmd = [sys.executable, script, "build_ext", "-i"] 12494s p = subprocess.Popen(cmd, 12494s stdout=subprocess.PIPE, 12494s stderr=subprocess.STDOUT) 12494s out, err = p.communicate() 12494s if p.returncode != 0: 12494s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12494s (cmd[4:], asstr(out))) 12494s E RuntimeError: Running distutils build failed: [] 12494s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12494s E 12494s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12494s E of the deprecation of `distutils` itself. It will be removed for 12494s E Python >= 3.12. For older Python versions it will remain present. 12494s E It is recommended to use `setuptools < 60.0` for those Python versions. 12494s E For more details, see: 12494s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12494s E 12494s E 12494s E from numpy.distutils.core import setup 12494s E running build_ext 12494s E running build_src 12494s E INFO: build_src 12494s E INFO: building extension "test_array_from_pyobj_ext" sources 12494s E INFO: build_src: building npy-pkg config files 12494s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12494s E !! 12494s E 12494s E ******************************************************************************** 12494s E Please avoid running ``setup.py`` directly. 12494s E Instead, use pypa/build, pypa/installer or other 12494s E standards-based tools. 12494s E 12494s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12494s E ******************************************************************************** 12494s E 12494s E !! 12494s E self.initialize_options() 12494s E INFO: customize UnixCCompiler 12494s E INFO: customize UnixCCompiler using build_ext 12494s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12494s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12494s E 12494s E creating /tmp/tmpvt806usq/tmp 12494s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12494s E INFO: compile options: '-I/usr/include/python3.12 -c' 12494s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-2seq-F-w] ______ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-2seq-F-ro] _____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-23seq-C-w] _____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-23seq-C-ro] _____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-23seq-F-w] _____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-23seq-F-ro] _____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _________ ERROR at setup of TestSharedMemory.test_inout_2seq[STRING1] __________ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[STRING1] ________ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[STRING1] ________ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ___ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[STRING1] ____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[STRING1] _______ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[STRING1] ______ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[STRING1] _____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[STRING1] _____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[STRING1] __ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[STRING1] __ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[STRING1] ___ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[STRING1] _ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ________ ERROR at setup of TestSharedMemory.test_cache_hidden[STRING1] _________ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ___________ ERROR at setup of TestSharedMemory.test_hidden[STRING1] ____________ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ________ ERROR at setup of TestSharedMemory.test_optional_none[STRING1] ________ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[STRING1] ______ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[STRING1] _____ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12495s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12495s 12495s code = fr""" 12495s import os 12495s import sys 12495s sys.path = {repr(sys.path)} 12495s 12495s def configuration(parent_name='',top_path=None): 12495s from numpy.distutils.misc_util import Configuration 12495s config = Configuration('', parent_name, top_path) 12495s {config_code} 12495s return config 12495s 12495s if __name__ == "__main__": 12495s from numpy.distutils.core import setup 12495s setup(configuration=configuration) 12495s """ 12495s script = os.path.join(d, get_temp_module_name() + ".py") 12495s dst_sources.append(script) 12495s with open(script, "wb") as f: 12495s f.write(asbytes(code)) 12495s 12495s # Build 12495s cwd = os.getcwd() 12495s try: 12495s os.chdir(d) 12495s cmd = [sys.executable, script, "build_ext", "-i"] 12495s p = subprocess.Popen(cmd, 12495s stdout=subprocess.PIPE, 12495s stderr=subprocess.STDOUT) 12495s out, err = p.communicate() 12495s if p.returncode != 0: 12495s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12495s (cmd[4:], asstr(out))) 12495s E RuntimeError: Running distutils build failed: [] 12495s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12495s E 12495s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12495s E of the deprecation of `distutils` itself. It will be removed for 12495s E Python >= 3.12. For older Python versions it will remain present. 12495s E It is recommended to use `setuptools < 60.0` for those Python versions. 12495s E For more details, see: 12495s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12495s E 12495s E 12495s E from numpy.distutils.core import setup 12495s E running build_ext 12495s E running build_src 12495s E INFO: build_src 12495s E INFO: building extension "test_array_from_pyobj_ext" sources 12495s E INFO: build_src: building npy-pkg config files 12495s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12495s E !! 12495s E 12495s E ******************************************************************************** 12495s E Please avoid running ``setup.py`` directly. 12495s E Instead, use pypa/build, pypa/installer or other 12495s E standards-based tools. 12495s E 12495s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12495s E ******************************************************************************** 12495s E 12495s E !! 12495s E self.initialize_options() 12495s E INFO: customize UnixCCompiler 12495s E INFO: customize UnixCCompiler using build_ext 12495s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/tmp 12495s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E creating /tmp/tmpvt806usq/usr 12495s E creating /tmp/tmpvt806usq/usr/lib 12495s E creating /tmp/tmpvt806usq/usr/lib/python3 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12495s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=native' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-O3' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-Werror' 12495s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12495s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-vfpv4' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12495s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-march=armv8.2-a+fp16' 12495s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/include/python3.12 -c' 12495s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12495s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12495s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12495s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12495s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12495s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12495s E 9 | # include_next 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E 12495s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12495s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12495s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12495s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12495s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12495s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12495s E INFO: building 'test_array_from_pyobj_ext' extension 12495s E INFO: compiling C sources 12495s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12495s E 12495s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12495s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12495s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12495s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12495s E 14 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E In file included from fortranobject.c:2: 12495s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12495s E 7 | #include 12495s E | ^~~~~~~~~~ 12495s E compilation terminated. 12495s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12495s E INFO: 12495s E ########### EXT COMPILER OPTIMIZATION ########### 12495s E INFO: Platform : 12495s E Architecture: armhf 12495s E Compiler : gcc 12495s E 12495s E CPU baseline : 12495s E Requested : 'min' 12495s E Enabled : none 12495s E Flags : none 12495s E Extra checks: none 12495s E 12495s E CPU dispatch : 12495s E Requested : 'max -xop -fma4' 12495s E Enabled : none 12495s E Generated : none 12495s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12495s 12495s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12495s d = '/tmp/tmpmzdm58dt' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s err = None 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s kw = {} 12495s module_name = 'test_array_from_pyobj_ext' 12495s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12495s p = 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12495s ___________ ERROR at setup of TestSharedMemory.test_inplace[STRING1] ___________ 12495s 12495s def setup_module(): 12495s """ 12495s Build the required testing extension module 12495s 12495s """ 12495s global wrap 12495s 12495s # Check compiler availability first 12495s if not util.has_c_compiler(): 12495s pytest.skip("No C compiler available") 12495s 12495s if wrap is None: 12495s config_code = """ 12495s config.add_extension('test_array_from_pyobj_ext', 12495s sources=['wrapmodule.c', 'fortranobject.c'], 12495s define_macros=[]) 12495s """ 12495s d = os.path.dirname(__file__) 12495s src = [ 12495s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12495s util.getpath("src", "fortranobject.c"), 12495s util.getpath("src", "fortranobject.h"), 12495s ] 12495s > wrap = util.build_module_distutils(src, config_code, 12495s "test_array_from_pyobj_ext") 12495s 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12495s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12495s memo[key] = func(*a, **kw) 12495s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12495s func = 12495s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12495s kw = {} 12495s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12495s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12495s 12495s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12495s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12495s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12495s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12495s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12495s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12495s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12495s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12495s 12495s @_memoize 12495s def build_module_distutils(source_files, config_code, module_name, **kw): 12495s """ 12495s Build a module via distutils and import it. 12495s 12495s """ 12495s d = get_module_dir() 12495s 12495s # Copy files 12495s dst_sources = [] 12495s for fn in source_files: 12495s if not os.path.isfile(fn): 12495s raise RuntimeError("%s is not a file" % fn) 12495s dst = os.path.join(d, os.path.basename(fn)) 12495s shutil.copyfile(fn, dst) 12495s dst_sources.append(dst) 12495s 12495s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[STRING1] ____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ________ ERROR at setup of TestSharedMemory.test_in_from_2seq[STRING5] _________ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[STRING5] ______ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-2seq-C-w] ______ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-2seq-C-ro] _____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-2seq-F-w] ______ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-2seq-F-ro] _____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-23seq-C-w] _____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-23seq-C-ro] _____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-23seq-F-w] _____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-23seq-F-ro] _____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _________ ERROR at setup of TestSharedMemory.test_inout_2seq[STRING5] __________ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[STRING5] ________ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[STRING5] ________ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ___ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[STRING5] ____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[STRING5] _______ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[STRING5] ______ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[STRING5] _____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[STRING5] _____ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[STRING5] __ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[STRING5] __ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[STRING5] ___ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[STRING5] _ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/tmp 12496s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E creating /tmp/tmpvt806usq/usr 12496s E creating /tmp/tmpvt806usq/usr/lib 12496s E creating /tmp/tmpvt806usq/usr/lib/python3 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12496s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=native' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-O3' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-Werror' 12496s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12496s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-vfpv4' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12496s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-march=armv8.2-a+fp16' 12496s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/include/python3.12 -c' 12496s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12496s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12496s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12496s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12496s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12496s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12496s E 9 | # include_next 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E 12496s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12496s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12496s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12496s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12496s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12496s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12496s E INFO: building 'test_array_from_pyobj_ext' extension 12496s E INFO: compiling C sources 12496s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12496s E 12496s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12496s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12496s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12496s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12496s E 14 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E In file included from fortranobject.c:2: 12496s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12496s E 7 | #include 12496s E | ^~~~~~~~~~ 12496s E compilation terminated. 12496s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12496s E INFO: 12496s E ########### EXT COMPILER OPTIMIZATION ########### 12496s E INFO: Platform : 12496s E Architecture: armhf 12496s E Compiler : gcc 12496s E 12496s E CPU baseline : 12496s E Requested : 'min' 12496s E Enabled : none 12496s E Flags : none 12496s E Extra checks: none 12496s E 12496s E CPU dispatch : 12496s E Requested : 'max -xop -fma4' 12496s E Enabled : none 12496s E Generated : none 12496s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12496s 12496s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12496s d = '/tmp/tmpmzdm58dt' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s err = None 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s kw = {} 12496s module_name = 'test_array_from_pyobj_ext' 12496s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12496s p = 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12496s ________ ERROR at setup of TestSharedMemory.test_cache_hidden[STRING5] _________ 12496s 12496s def setup_module(): 12496s """ 12496s Build the required testing extension module 12496s 12496s """ 12496s global wrap 12496s 12496s # Check compiler availability first 12496s if not util.has_c_compiler(): 12496s pytest.skip("No C compiler available") 12496s 12496s if wrap is None: 12496s config_code = """ 12496s config.add_extension('test_array_from_pyobj_ext', 12496s sources=['wrapmodule.c', 'fortranobject.c'], 12496s define_macros=[]) 12496s """ 12496s d = os.path.dirname(__file__) 12496s src = [ 12496s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12496s util.getpath("src", "fortranobject.c"), 12496s util.getpath("src", "fortranobject.h"), 12496s ] 12496s > wrap = util.build_module_distutils(src, config_code, 12496s "test_array_from_pyobj_ext") 12496s 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12496s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12496s memo[key] = func(*a, **kw) 12496s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12496s func = 12496s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12496s kw = {} 12496s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12496s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12496s 12496s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12496s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12496s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12496s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12496s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12496s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12496s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12496s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12496s 12496s @_memoize 12496s def build_module_distutils(source_files, config_code, module_name, **kw): 12496s """ 12496s Build a module via distutils and import it. 12496s 12496s """ 12496s d = get_module_dir() 12496s 12496s # Copy files 12496s dst_sources = [] 12496s for fn in source_files: 12496s if not os.path.isfile(fn): 12496s raise RuntimeError("%s is not a file" % fn) 12496s dst = os.path.join(d, os.path.basename(fn)) 12496s shutil.copyfile(fn, dst) 12496s dst_sources.append(dst) 12496s 12496s # Build script 12496s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12496s 12496s code = fr""" 12496s import os 12496s import sys 12496s sys.path = {repr(sys.path)} 12496s 12496s def configuration(parent_name='',top_path=None): 12496s from numpy.distutils.misc_util import Configuration 12496s config = Configuration('', parent_name, top_path) 12496s {config_code} 12496s return config 12496s 12496s if __name__ == "__main__": 12496s from numpy.distutils.core import setup 12496s setup(configuration=configuration) 12496s """ 12496s script = os.path.join(d, get_temp_module_name() + ".py") 12496s dst_sources.append(script) 12496s with open(script, "wb") as f: 12496s f.write(asbytes(code)) 12496s 12496s # Build 12496s cwd = os.getcwd() 12496s try: 12496s os.chdir(d) 12496s cmd = [sys.executable, script, "build_ext", "-i"] 12496s p = subprocess.Popen(cmd, 12496s stdout=subprocess.PIPE, 12496s stderr=subprocess.STDOUT) 12496s out, err = p.communicate() 12496s if p.returncode != 0: 12496s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12496s (cmd[4:], asstr(out))) 12496s E RuntimeError: Running distutils build failed: [] 12496s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12496s E 12496s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12496s E of the deprecation of `distutils` itself. It will be removed for 12496s E Python >= 3.12. For older Python versions it will remain present. 12496s E It is recommended to use `setuptools < 60.0` for those Python versions. 12496s E For more details, see: 12496s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12496s E 12496s E 12496s E from numpy.distutils.core import setup 12496s E running build_ext 12496s E running build_src 12496s E INFO: build_src 12496s E INFO: building extension "test_array_from_pyobj_ext" sources 12496s E INFO: build_src: building npy-pkg config files 12496s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12496s E !! 12496s E 12496s E ******************************************************************************** 12496s E Please avoid running ``setup.py`` directly. 12496s E Instead, use pypa/build, pypa/installer or other 12496s E standards-based tools. 12496s E 12496s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12496s E ******************************************************************************** 12496s E 12496s E !! 12496s E self.initialize_options() 12496s E INFO: customize UnixCCompiler 12496s E INFO: customize UnixCCompiler using build_ext 12496s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ___________ ERROR at setup of TestSharedMemory.test_hidden[STRING5] ____________ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ________ ERROR at setup of TestSharedMemory.test_optional_none[STRING5] ________ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[STRING5] ______ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[STRING5] _____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ___________ ERROR at setup of TestSharedMemory.test_inplace[STRING5] ___________ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[STRING5] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _______ ERROR at setup of TestSharedMemory.test_in_from_2seq[CHARACTER] ________ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[CHARACTER] _____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-2seq-C-w] _____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-2seq-C-ro] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-2seq-F-w] _____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-2seq-F-ro] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-23seq-C-w] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-23seq-C-ro] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-23seq-F-w] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-23seq-F-ro] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ________ ERROR at setup of TestSharedMemory.test_inout_2seq[CHARACTER] _________ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[CHARACTER] _______ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[CHARACTER] _______ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s __ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[CHARACTER] ___ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[CHARACTER] ______ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[CHARACTER] _____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ___ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[CHARACTER] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s ___ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[CHARACTER] ____ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[CHARACTER] _ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[CHARACTER] _ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s __ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[CHARACTER] __ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[CHARACTER] _ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s _______ ERROR at setup of TestSharedMemory.test_cache_hidden[CHARACTER] ________ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12497s def configuration(parent_name='',top_path=None): 12497s from numpy.distutils.misc_util import Configuration 12497s config = Configuration('', parent_name, top_path) 12497s {config_code} 12497s return config 12497s 12497s if __name__ == "__main__": 12497s from numpy.distutils.core import setup 12497s setup(configuration=configuration) 12497s """ 12497s script = os.path.join(d, get_temp_module_name() + ".py") 12497s dst_sources.append(script) 12497s with open(script, "wb") as f: 12497s f.write(asbytes(code)) 12497s 12497s # Build 12497s cwd = os.getcwd() 12497s try: 12497s os.chdir(d) 12497s cmd = [sys.executable, script, "build_ext", "-i"] 12497s p = subprocess.Popen(cmd, 12497s stdout=subprocess.PIPE, 12497s stderr=subprocess.STDOUT) 12497s out, err = p.communicate() 12497s if p.returncode != 0: 12497s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12497s (cmd[4:], asstr(out))) 12497s E RuntimeError: Running distutils build failed: [] 12497s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12497s E 12497s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12497s E of the deprecation of `distutils` itself. It will be removed for 12497s E Python >= 3.12. For older Python versions it will remain present. 12497s E It is recommended to use `setuptools < 60.0` for those Python versions. 12497s E For more details, see: 12497s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12497s E 12497s E 12497s E from numpy.distutils.core import setup 12497s E running build_ext 12497s E running build_src 12497s E INFO: build_src 12497s E INFO: building extension "test_array_from_pyobj_ext" sources 12497s E INFO: build_src: building npy-pkg config files 12497s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12497s E !! 12497s E 12497s E ******************************************************************************** 12497s E Please avoid running ``setup.py`` directly. 12497s E Instead, use pypa/build, pypa/installer or other 12497s E standards-based tools. 12497s E 12497s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12497s E ******************************************************************************** 12497s E 12497s E !! 12497s E self.initialize_options() 12497s E INFO: customize UnixCCompiler 12497s E INFO: customize UnixCCompiler using build_ext 12497s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/tmp 12497s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E creating /tmp/tmpvt806usq/usr 12497s E creating /tmp/tmpvt806usq/usr/lib 12497s E creating /tmp/tmpvt806usq/usr/lib/python3 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12497s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=native' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-O3' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-Werror' 12497s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12497s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-vfpv4' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12497s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-march=armv8.2-a+fp16' 12497s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/include/python3.12 -c' 12497s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12497s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12497s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12497s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12497s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12497s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12497s E 9 | # include_next 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E 12497s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12497s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12497s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12497s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12497s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12497s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12497s E INFO: building 'test_array_from_pyobj_ext' extension 12497s E INFO: compiling C sources 12497s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12497s E 12497s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12497s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12497s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12497s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12497s E 14 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E In file included from fortranobject.c:2: 12497s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12497s E 7 | #include 12497s E | ^~~~~~~~~~ 12497s E compilation terminated. 12497s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12497s E INFO: 12497s E ########### EXT COMPILER OPTIMIZATION ########### 12497s E INFO: Platform : 12497s E Architecture: armhf 12497s E Compiler : gcc 12497s E 12497s E CPU baseline : 12497s E Requested : 'min' 12497s E Enabled : none 12497s E Flags : none 12497s E Extra checks: none 12497s E 12497s E CPU dispatch : 12497s E Requested : 'max -xop -fma4' 12497s E Enabled : none 12497s E Generated : none 12497s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12497s 12497s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12497s d = '/tmp/tmpmzdm58dt' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s err = None 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s kw = {} 12497s module_name = 'test_array_from_pyobj_ext' 12497s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12497s p = 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12497s __________ ERROR at setup of TestSharedMemory.test_hidden[CHARACTER] ___________ 12497s 12497s def setup_module(): 12497s """ 12497s Build the required testing extension module 12497s 12497s """ 12497s global wrap 12497s 12497s # Check compiler availability first 12497s if not util.has_c_compiler(): 12497s pytest.skip("No C compiler available") 12497s 12497s if wrap is None: 12497s config_code = """ 12497s config.add_extension('test_array_from_pyobj_ext', 12497s sources=['wrapmodule.c', 'fortranobject.c'], 12497s define_macros=[]) 12497s """ 12497s d = os.path.dirname(__file__) 12497s src = [ 12497s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12497s util.getpath("src", "fortranobject.c"), 12497s util.getpath("src", "fortranobject.h"), 12497s ] 12497s > wrap = util.build_module_distutils(src, config_code, 12497s "test_array_from_pyobj_ext") 12497s 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12497s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12497s memo[key] = func(*a, **kw) 12497s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12497s func = 12497s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12497s kw = {} 12497s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12497s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12497s 12497s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12497s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12497s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12497s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12497s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12497s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12497s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12497s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12497s 12497s @_memoize 12497s def build_module_distutils(source_files, config_code, module_name, **kw): 12497s """ 12497s Build a module via distutils and import it. 12497s 12497s """ 12497s d = get_module_dir() 12497s 12497s # Copy files 12497s dst_sources = [] 12497s for fn in source_files: 12497s if not os.path.isfile(fn): 12497s raise RuntimeError("%s is not a file" % fn) 12497s dst = os.path.join(d, os.path.basename(fn)) 12497s shutil.copyfile(fn, dst) 12497s dst_sources.append(dst) 12497s 12497s # Build script 12497s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12497s 12497s code = fr""" 12497s import os 12497s import sys 12497s sys.path = {repr(sys.path)} 12497s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _______ ERROR at setup of TestSharedMemory.test_optional_none[CHARACTER] _______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[CHARACTER] _____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[CHARACTER] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s __________ ERROR at setup of TestSharedMemory.test_inplace[CHARACTER] __________ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[CHARACTER] ___ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _______ ERROR at setup of TestSharedMemory.test_in_from_2seq[LONGDOUBLE] _______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[LONGDOUBLE] _____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-2seq-C-w] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-2seq-C-ro] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-2seq-F-w] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-2seq-F-ro] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-23seq-C-w] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-23seq-C-ro] ___ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-23seq-F-w] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-23seq-F-ro] ___ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ________ ERROR at setup of TestSharedMemory.test_inout_2seq[LONGDOUBLE] ________ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[LONGDOUBLE] _______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[LONGDOUBLE] _______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s __ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[LONGDOUBLE] __ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[LONGDOUBLE] ______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[LONGDOUBLE] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[LONGDOUBLE] ___ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[LONGDOUBLE] ___ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[LONGDOUBLE] _ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[LONGDOUBLE] _ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[LONGDOUBLE] __ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[LONGDOUBLE] _ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _______ ERROR at setup of TestSharedMemory.test_cache_hidden[LONGDOUBLE] _______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s __________ ERROR at setup of TestSharedMemory.test_hidden[LONGDOUBLE] __________ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ______ ERROR at setup of TestSharedMemory.test_optional_none[LONGDOUBLE] _______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[LONGDOUBLE] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ___ ERROR at setup of TestSharedMemory.test_optional_from_23seq[LONGDOUBLE] ____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _________ ERROR at setup of TestSharedMemory.test_inplace[LONGDOUBLE] __________ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s __ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[LONGDOUBLE] ___ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ________ ERROR at setup of TestSharedMemory.test_in_from_2seq[CDOUBLE] _________ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[CDOUBLE] ______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-2seq-C-w] ______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-2seq-C-ro] _____ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12498s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12498s E 14 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E In file included from fortranobject.c:2: 12498s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12498s E 7 | #include 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12498s E INFO: 12498s E ########### EXT COMPILER OPTIMIZATION ########### 12498s E INFO: Platform : 12498s E Architecture: armhf 12498s E Compiler : gcc 12498s E 12498s E CPU baseline : 12498s E Requested : 'min' 12498s E Enabled : none 12498s E Flags : none 12498s E Extra checks: none 12498s E 12498s E CPU dispatch : 12498s E Requested : 'max -xop -fma4' 12498s E Enabled : none 12498s E Generated : none 12498s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12498s 12498s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12498s d = '/tmp/tmpmzdm58dt' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s err = None 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s kw = {} 12498s module_name = 'test_array_from_pyobj_ext' 12498s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12498s p = 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12498s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-2seq-F-w] ______ 12498s 12498s def setup_module(): 12498s """ 12498s Build the required testing extension module 12498s 12498s """ 12498s global wrap 12498s 12498s # Check compiler availability first 12498s if not util.has_c_compiler(): 12498s pytest.skip("No C compiler available") 12498s 12498s if wrap is None: 12498s config_code = """ 12498s config.add_extension('test_array_from_pyobj_ext', 12498s sources=['wrapmodule.c', 'fortranobject.c'], 12498s define_macros=[]) 12498s """ 12498s d = os.path.dirname(__file__) 12498s src = [ 12498s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12498s util.getpath("src", "fortranobject.c"), 12498s util.getpath("src", "fortranobject.h"), 12498s ] 12498s > wrap = util.build_module_distutils(src, config_code, 12498s "test_array_from_pyobj_ext") 12498s 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12498s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12498s memo[key] = func(*a, **kw) 12498s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12498s func = 12498s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12498s kw = {} 12498s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12498s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12498s 12498s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12498s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12498s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12498s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12498s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12498s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12498s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12498s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12498s 12498s @_memoize 12498s def build_module_distutils(source_files, config_code, module_name, **kw): 12498s """ 12498s Build a module via distutils and import it. 12498s 12498s """ 12498s d = get_module_dir() 12498s 12498s # Copy files 12498s dst_sources = [] 12498s for fn in source_files: 12498s if not os.path.isfile(fn): 12498s raise RuntimeError("%s is not a file" % fn) 12498s dst = os.path.join(d, os.path.basename(fn)) 12498s shutil.copyfile(fn, dst) 12498s dst_sources.append(dst) 12498s 12498s # Build script 12498s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12498s 12498s code = fr""" 12498s import os 12498s import sys 12498s sys.path = {repr(sys.path)} 12498s 12498s def configuration(parent_name='',top_path=None): 12498s from numpy.distutils.misc_util import Configuration 12498s config = Configuration('', parent_name, top_path) 12498s {config_code} 12498s return config 12498s 12498s if __name__ == "__main__": 12498s from numpy.distutils.core import setup 12498s setup(configuration=configuration) 12498s """ 12498s script = os.path.join(d, get_temp_module_name() + ".py") 12498s dst_sources.append(script) 12498s with open(script, "wb") as f: 12498s f.write(asbytes(code)) 12498s 12498s # Build 12498s cwd = os.getcwd() 12498s try: 12498s os.chdir(d) 12498s cmd = [sys.executable, script, "build_ext", "-i"] 12498s p = subprocess.Popen(cmd, 12498s stdout=subprocess.PIPE, 12498s stderr=subprocess.STDOUT) 12498s out, err = p.communicate() 12498s if p.returncode != 0: 12498s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12498s (cmd[4:], asstr(out))) 12498s E RuntimeError: Running distutils build failed: [] 12498s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12498s E 12498s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12498s E of the deprecation of `distutils` itself. It will be removed for 12498s E Python >= 3.12. For older Python versions it will remain present. 12498s E It is recommended to use `setuptools < 60.0` for those Python versions. 12498s E For more details, see: 12498s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12498s E 12498s E 12498s E from numpy.distutils.core import setup 12498s E running build_ext 12498s E running build_src 12498s E INFO: build_src 12498s E INFO: building extension "test_array_from_pyobj_ext" sources 12498s E INFO: build_src: building npy-pkg config files 12498s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12498s E !! 12498s E 12498s E ******************************************************************************** 12498s E Please avoid running ``setup.py`` directly. 12498s E Instead, use pypa/build, pypa/installer or other 12498s E standards-based tools. 12498s E 12498s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12498s E ******************************************************************************** 12498s E 12498s E !! 12498s E self.initialize_options() 12498s E INFO: customize UnixCCompiler 12498s E INFO: customize UnixCCompiler using build_ext 12498s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/tmp 12498s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E creating /tmp/tmpvt806usq/usr 12498s E creating /tmp/tmpvt806usq/usr/lib 12498s E creating /tmp/tmpvt806usq/usr/lib/python3 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12498s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=native' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-O3' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-Werror' 12498s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12498s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-vfpv4' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12498s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-march=armv8.2-a+fp16' 12498s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/include/python3.12 -c' 12498s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12498s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12498s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12498s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12498s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12498s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12498s E 9 | # include_next 12498s E | ^~~~~~~~~~ 12498s E compilation terminated. 12498s E 12498s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12498s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12498s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12498s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12498s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12498s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12498s E INFO: building 'test_array_from_pyobj_ext' extension 12498s E INFO: compiling C sources 12498s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12498s E 12498s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12498s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12498s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-2seq-F-ro] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-23seq-C-w] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-23seq-C-ro] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-23seq-F-w] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-23seq-F-ro] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _________ ERROR at setup of TestSharedMemory.test_inout_2seq[CDOUBLE] __________ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[CDOUBLE] ________ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[CDOUBLE] ________ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[CDOUBLE] ____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[CDOUBLE] _______ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[CDOUBLE] ______ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[CDOUBLE] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[CDOUBLE] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[CDOUBLE] __ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[CDOUBLE] __ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[CDOUBLE] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[CDOUBLE] _ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ________ ERROR at setup of TestSharedMemory.test_cache_hidden[CDOUBLE] _________ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___________ ERROR at setup of TestSharedMemory.test_hidden[CDOUBLE] ____________ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ________ ERROR at setup of TestSharedMemory.test_optional_none[CDOUBLE] ________ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[CDOUBLE] ______ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[CDOUBLE] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___________ ERROR at setup of TestSharedMemory.test_inplace[CDOUBLE] ___________ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[CDOUBLE] ____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ______ ERROR at setup of TestSharedMemory.test_in_from_2seq[CLONGDOUBLE] _______ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[CLONGDOUBLE] ____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-2seq-C-w] ____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-2seq-C-ro] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-2seq-F-w] ____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-2seq-F-ro] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-23seq-C-w] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s __ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-23seq-C-ro] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-23seq-F-w] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s __ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-23seq-F-ro] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _______ ERROR at setup of TestSharedMemory.test_inout_2seq[CLONGDOUBLE] ________ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[CLONGDOUBLE] ______ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[CLONGDOUBLE] ______ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[CLONGDOUBLE] __ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[CLONGDOUBLE] _____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s ___ ERROR at setup of TestSharedMemory.test_in_from_23casttype[CLONGDOUBLE] ____ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s __ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[CLONGDOUBLE] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s __ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[CLONGDOUBLE] ___ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[CLONGDOUBLE] _ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[CLONGDOUBLE] _ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[CLONGDOUBLE] _ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12499s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12499s kw = {} 12499s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s 12499s @_memoize 12499s def build_module_distutils(source_files, config_code, module_name, **kw): 12499s """ 12499s Build a module via distutils and import it. 12499s 12499s """ 12499s d = get_module_dir() 12499s 12499s # Copy files 12499s dst_sources = [] 12499s for fn in source_files: 12499s if not os.path.isfile(fn): 12499s raise RuntimeError("%s is not a file" % fn) 12499s dst = os.path.join(d, os.path.basename(fn)) 12499s shutil.copyfile(fn, dst) 12499s dst_sources.append(dst) 12499s 12499s # Build script 12499s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12499s 12499s code = fr""" 12499s import os 12499s import sys 12499s sys.path = {repr(sys.path)} 12499s 12499s def configuration(parent_name='',top_path=None): 12499s from numpy.distutils.misc_util import Configuration 12499s config = Configuration('', parent_name, top_path) 12499s {config_code} 12499s return config 12499s 12499s if __name__ == "__main__": 12499s from numpy.distutils.core import setup 12499s setup(configuration=configuration) 12499s """ 12499s script = os.path.join(d, get_temp_module_name() + ".py") 12499s dst_sources.append(script) 12499s with open(script, "wb") as f: 12499s f.write(asbytes(code)) 12499s 12499s # Build 12499s cwd = os.getcwd() 12499s try: 12499s os.chdir(d) 12499s cmd = [sys.executable, script, "build_ext", "-i"] 12499s p = subprocess.Popen(cmd, 12499s stdout=subprocess.PIPE, 12499s stderr=subprocess.STDOUT) 12499s out, err = p.communicate() 12499s if p.returncode != 0: 12499s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12499s (cmd[4:], asstr(out))) 12499s E RuntimeError: Running distutils build failed: [] 12499s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12499s E 12499s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12499s E of the deprecation of `distutils` itself. It will be removed for 12499s E Python >= 3.12. For older Python versions it will remain present. 12499s E It is recommended to use `setuptools < 60.0` for those Python versions. 12499s E For more details, see: 12499s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12499s E 12499s E 12499s E from numpy.distutils.core import setup 12499s E running build_ext 12499s E running build_src 12499s E INFO: build_src 12499s E INFO: building extension "test_array_from_pyobj_ext" sources 12499s E INFO: build_src: building npy-pkg config files 12499s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12499s E !! 12499s E 12499s E ******************************************************************************** 12499s E Please avoid running ``setup.py`` directly. 12499s E Instead, use pypa/build, pypa/installer or other 12499s E standards-based tools. 12499s E 12499s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12499s E ******************************************************************************** 12499s E 12499s E !! 12499s E self.initialize_options() 12499s E INFO: customize UnixCCompiler 12499s E INFO: customize UnixCCompiler using build_ext 12499s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/tmp 12499s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E creating /tmp/tmpvt806usq/usr 12499s E creating /tmp/tmpvt806usq/usr/lib 12499s E creating /tmp/tmpvt806usq/usr/lib/python3 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12499s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=native' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-O3' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-Werror' 12499s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12499s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-vfpv4' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12499s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-march=armv8.2-a+fp16' 12499s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/include/python3.12 -c' 12499s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12499s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12499s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12499s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12499s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12499s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12499s E 9 | # include_next 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E 12499s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12499s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12499s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12499s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12499s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12499s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12499s E INFO: building 'test_array_from_pyobj_ext' extension 12499s E INFO: compiling C sources 12499s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12499s E 12499s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12499s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12499s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12499s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12499s E 14 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E In file included from fortranobject.c:2: 12499s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12499s E 7 | #include 12499s E | ^~~~~~~~~~ 12499s E compilation terminated. 12499s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12499s E INFO: 12499s E ########### EXT COMPILER OPTIMIZATION ########### 12499s E INFO: Platform : 12499s E Architecture: armhf 12499s E Compiler : gcc 12499s E 12499s E CPU baseline : 12499s E Requested : 'min' 12499s E Enabled : none 12499s E Flags : none 12499s E Extra checks: none 12499s E 12499s E CPU dispatch : 12499s E Requested : 'max -xop -fma4' 12499s E Enabled : none 12499s E Generated : none 12499s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12499s 12499s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12499s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12499s d = '/tmp/tmpmzdm58dt' 12499s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12499s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12499s err = None 12499s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12499s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s kw = {} 12499s module_name = 'test_array_from_pyobj_ext' 12499s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12499s p = 12499s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12499s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12499s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[CLONGDOUBLE] _ 12499s 12499s def setup_module(): 12499s """ 12499s Build the required testing extension module 12499s 12499s """ 12499s global wrap 12499s 12499s # Check compiler availability first 12499s if not util.has_c_compiler(): 12499s pytest.skip("No C compiler available") 12499s 12499s if wrap is None: 12499s config_code = """ 12499s config.add_extension('test_array_from_pyobj_ext', 12499s sources=['wrapmodule.c', 'fortranobject.c'], 12499s define_macros=[]) 12499s """ 12499s d = os.path.dirname(__file__) 12499s src = [ 12499s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12499s util.getpath("src", "fortranobject.c"), 12499s util.getpath("src", "fortranobject.h"), 12499s ] 12499s > wrap = util.build_module_distutils(src, config_code, 12499s "test_array_from_pyobj_ext") 12499s 12499s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12499s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12499s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12499s 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12499s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12499s memo[key] = func(*a, **kw) 12499s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12499s func = 12500s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12500s kw = {} 12500s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s 12500s @_memoize 12500s def build_module_distutils(source_files, config_code, module_name, **kw): 12500s """ 12500s Build a module via distutils and import it. 12500s 12500s """ 12500s d = get_module_dir() 12500s 12500s # Copy files 12500s dst_sources = [] 12500s for fn in source_files: 12500s if not os.path.isfile(fn): 12500s raise RuntimeError("%s is not a file" % fn) 12500s dst = os.path.join(d, os.path.basename(fn)) 12500s shutil.copyfile(fn, dst) 12500s dst_sources.append(dst) 12500s 12500s # Build script 12500s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12500s 12500s code = fr""" 12500s import os 12500s import sys 12500s sys.path = {repr(sys.path)} 12500s 12500s def configuration(parent_name='',top_path=None): 12500s from numpy.distutils.misc_util import Configuration 12500s config = Configuration('', parent_name, top_path) 12500s {config_code} 12500s return config 12500s 12500s if __name__ == "__main__": 12500s from numpy.distutils.core import setup 12500s setup(configuration=configuration) 12500s """ 12500s script = os.path.join(d, get_temp_module_name() + ".py") 12500s dst_sources.append(script) 12500s with open(script, "wb") as f: 12500s f.write(asbytes(code)) 12500s 12500s # Build 12500s cwd = os.getcwd() 12500s try: 12500s os.chdir(d) 12500s cmd = [sys.executable, script, "build_ext", "-i"] 12500s p = subprocess.Popen(cmd, 12500s stdout=subprocess.PIPE, 12500s stderr=subprocess.STDOUT) 12500s out, err = p.communicate() 12500s if p.returncode != 0: 12500s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12500s (cmd[4:], asstr(out))) 12500s E RuntimeError: Running distutils build failed: [] 12500s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12500s E 12500s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12500s E of the deprecation of `distutils` itself. It will be removed for 12500s E Python >= 3.12. For older Python versions it will remain present. 12500s E It is recommended to use `setuptools < 60.0` for those Python versions. 12500s E For more details, see: 12500s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12500s E 12500s E 12500s E from numpy.distutils.core import setup 12500s E running build_ext 12500s E running build_src 12500s E INFO: build_src 12500s E INFO: building extension "test_array_from_pyobj_ext" sources 12500s E INFO: build_src: building npy-pkg config files 12500s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12500s E !! 12500s E 12500s E ******************************************************************************** 12500s E Please avoid running ``setup.py`` directly. 12500s E Instead, use pypa/build, pypa/installer or other 12500s E standards-based tools. 12500s E 12500s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12500s E ******************************************************************************** 12500s E 12500s E !! 12500s E self.initialize_options() 12500s E INFO: customize UnixCCompiler 12500s E INFO: customize UnixCCompiler using build_ext 12500s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/tmp 12500s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/usr 12500s E creating /tmp/tmpvt806usq/usr/lib 12500s E creating /tmp/tmpvt806usq/usr/lib/python3 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=native' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-O3' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-Werror' 12500s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12500s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-vfpv4' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=armv8.2-a+fp16' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12500s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12500s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12500s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12500s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12500s E INFO: building 'test_array_from_pyobj_ext' extension 12500s E INFO: compiling C sources 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12500s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12500s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12500s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12500s E 14 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E In file included from fortranobject.c:2: 12500s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12500s E 7 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12500s E INFO: 12500s E ########### EXT COMPILER OPTIMIZATION ########### 12500s E INFO: Platform : 12500s E Architecture: armhf 12500s E Compiler : gcc 12500s E 12500s E CPU baseline : 12500s E Requested : 'min' 12500s E Enabled : none 12500s E Flags : none 12500s E Extra checks: none 12500s E 12500s E CPU dispatch : 12500s E Requested : 'max -xop -fma4' 12500s E Enabled : none 12500s E Generated : none 12500s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12500s 12500s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12500s d = '/tmp/tmpmzdm58dt' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s err = None 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s kw = {} 12500s module_name = 'test_array_from_pyobj_ext' 12500s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12500s p = 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12500s ______ ERROR at setup of TestSharedMemory.test_cache_hidden[CLONGDOUBLE] _______ 12500s 12500s def setup_module(): 12500s """ 12500s Build the required testing extension module 12500s 12500s """ 12500s global wrap 12500s 12500s # Check compiler availability first 12500s if not util.has_c_compiler(): 12500s pytest.skip("No C compiler available") 12500s 12500s if wrap is None: 12500s config_code = """ 12500s config.add_extension('test_array_from_pyobj_ext', 12500s sources=['wrapmodule.c', 'fortranobject.c'], 12500s define_macros=[]) 12500s """ 12500s d = os.path.dirname(__file__) 12500s src = [ 12500s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12500s util.getpath("src", "fortranobject.c"), 12500s util.getpath("src", "fortranobject.h"), 12500s ] 12500s > wrap = util.build_module_distutils(src, config_code, 12500s "test_array_from_pyobj_ext") 12500s 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12500s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12500s memo[key] = func(*a, **kw) 12500s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12500s func = 12500s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12500s kw = {} 12500s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s 12500s @_memoize 12500s def build_module_distutils(source_files, config_code, module_name, **kw): 12500s """ 12500s Build a module via distutils and import it. 12500s 12500s """ 12500s d = get_module_dir() 12500s 12500s # Copy files 12500s dst_sources = [] 12500s for fn in source_files: 12500s if not os.path.isfile(fn): 12500s raise RuntimeError("%s is not a file" % fn) 12500s dst = os.path.join(d, os.path.basename(fn)) 12500s shutil.copyfile(fn, dst) 12500s dst_sources.append(dst) 12500s 12500s # Build script 12500s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12500s 12500s code = fr""" 12500s import os 12500s import sys 12500s sys.path = {repr(sys.path)} 12500s 12500s def configuration(parent_name='',top_path=None): 12500s from numpy.distutils.misc_util import Configuration 12500s config = Configuration('', parent_name, top_path) 12500s {config_code} 12500s return config 12500s 12500s if __name__ == "__main__": 12500s from numpy.distutils.core import setup 12500s setup(configuration=configuration) 12500s """ 12500s script = os.path.join(d, get_temp_module_name() + ".py") 12500s dst_sources.append(script) 12500s with open(script, "wb") as f: 12500s f.write(asbytes(code)) 12500s 12500s # Build 12500s cwd = os.getcwd() 12500s try: 12500s os.chdir(d) 12500s cmd = [sys.executable, script, "build_ext", "-i"] 12500s p = subprocess.Popen(cmd, 12500s stdout=subprocess.PIPE, 12500s stderr=subprocess.STDOUT) 12500s out, err = p.communicate() 12500s if p.returncode != 0: 12500s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12500s (cmd[4:], asstr(out))) 12500s E RuntimeError: Running distutils build failed: [] 12500s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12500s E 12500s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12500s E of the deprecation of `distutils` itself. It will be removed for 12500s E Python >= 3.12. For older Python versions it will remain present. 12500s E It is recommended to use `setuptools < 60.0` for those Python versions. 12500s E For more details, see: 12500s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12500s E 12500s E 12500s E from numpy.distutils.core import setup 12500s E running build_ext 12500s E running build_src 12500s E INFO: build_src 12500s E INFO: building extension "test_array_from_pyobj_ext" sources 12500s E INFO: build_src: building npy-pkg config files 12500s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12500s E !! 12500s E 12500s E ******************************************************************************** 12500s E Please avoid running ``setup.py`` directly. 12500s E Instead, use pypa/build, pypa/installer or other 12500s E standards-based tools. 12500s E 12500s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12500s E ******************************************************************************** 12500s E 12500s E !! 12500s E self.initialize_options() 12500s E INFO: customize UnixCCompiler 12500s E INFO: customize UnixCCompiler using build_ext 12500s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/tmp 12500s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/usr 12500s E creating /tmp/tmpvt806usq/usr/lib 12500s E creating /tmp/tmpvt806usq/usr/lib/python3 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=native' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-O3' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-Werror' 12500s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12500s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-vfpv4' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=armv8.2-a+fp16' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12500s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12500s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12500s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12500s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12500s E INFO: building 'test_array_from_pyobj_ext' extension 12500s E INFO: compiling C sources 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12500s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12500s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12500s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12500s E 14 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E In file included from fortranobject.c:2: 12500s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12500s E 7 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12500s E INFO: 12500s E ########### EXT COMPILER OPTIMIZATION ########### 12500s E INFO: Platform : 12500s E Architecture: armhf 12500s E Compiler : gcc 12500s E 12500s E CPU baseline : 12500s E Requested : 'min' 12500s E Enabled : none 12500s E Flags : none 12500s E Extra checks: none 12500s E 12500s E CPU dispatch : 12500s E Requested : 'max -xop -fma4' 12500s E Enabled : none 12500s E Generated : none 12500s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12500s 12500s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12500s d = '/tmp/tmpmzdm58dt' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s err = None 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s kw = {} 12500s module_name = 'test_array_from_pyobj_ext' 12500s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12500s p = 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12500s _________ ERROR at setup of TestSharedMemory.test_hidden[CLONGDOUBLE] __________ 12500s 12500s def setup_module(): 12500s """ 12500s Build the required testing extension module 12500s 12500s """ 12500s global wrap 12500s 12500s # Check compiler availability first 12500s if not util.has_c_compiler(): 12500s pytest.skip("No C compiler available") 12500s 12500s if wrap is None: 12500s config_code = """ 12500s config.add_extension('test_array_from_pyobj_ext', 12500s sources=['wrapmodule.c', 'fortranobject.c'], 12500s define_macros=[]) 12500s """ 12500s d = os.path.dirname(__file__) 12500s src = [ 12500s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12500s util.getpath("src", "fortranobject.c"), 12500s util.getpath("src", "fortranobject.h"), 12500s ] 12500s > wrap = util.build_module_distutils(src, config_code, 12500s "test_array_from_pyobj_ext") 12500s 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12500s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12500s memo[key] = func(*a, **kw) 12500s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12500s func = 12500s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12500s kw = {} 12500s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s 12500s @_memoize 12500s def build_module_distutils(source_files, config_code, module_name, **kw): 12500s """ 12500s Build a module via distutils and import it. 12500s 12500s """ 12500s d = get_module_dir() 12500s 12500s # Copy files 12500s dst_sources = [] 12500s for fn in source_files: 12500s if not os.path.isfile(fn): 12500s raise RuntimeError("%s is not a file" % fn) 12500s dst = os.path.join(d, os.path.basename(fn)) 12500s shutil.copyfile(fn, dst) 12500s dst_sources.append(dst) 12500s 12500s # Build script 12500s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12500s 12500s code = fr""" 12500s import os 12500s import sys 12500s sys.path = {repr(sys.path)} 12500s 12500s def configuration(parent_name='',top_path=None): 12500s from numpy.distutils.misc_util import Configuration 12500s config = Configuration('', parent_name, top_path) 12500s {config_code} 12500s return config 12500s 12500s if __name__ == "__main__": 12500s from numpy.distutils.core import setup 12500s setup(configuration=configuration) 12500s """ 12500s script = os.path.join(d, get_temp_module_name() + ".py") 12500s dst_sources.append(script) 12500s with open(script, "wb") as f: 12500s f.write(asbytes(code)) 12500s 12500s # Build 12500s cwd = os.getcwd() 12500s try: 12500s os.chdir(d) 12500s cmd = [sys.executable, script, "build_ext", "-i"] 12500s p = subprocess.Popen(cmd, 12500s stdout=subprocess.PIPE, 12500s stderr=subprocess.STDOUT) 12500s out, err = p.communicate() 12500s if p.returncode != 0: 12500s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12500s (cmd[4:], asstr(out))) 12500s E RuntimeError: Running distutils build failed: [] 12500s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12500s E 12500s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12500s E of the deprecation of `distutils` itself. It will be removed for 12500s E Python >= 3.12. For older Python versions it will remain present. 12500s E It is recommended to use `setuptools < 60.0` for those Python versions. 12500s E For more details, see: 12500s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12500s E 12500s E 12500s E from numpy.distutils.core import setup 12500s E running build_ext 12500s E running build_src 12500s E INFO: build_src 12500s E INFO: building extension "test_array_from_pyobj_ext" sources 12500s E INFO: build_src: building npy-pkg config files 12500s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12500s E !! 12500s E 12500s E ******************************************************************************** 12500s E Please avoid running ``setup.py`` directly. 12500s E Instead, use pypa/build, pypa/installer or other 12500s E standards-based tools. 12500s E 12500s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12500s E ******************************************************************************** 12500s E 12500s E !! 12500s E self.initialize_options() 12500s E INFO: customize UnixCCompiler 12500s E INFO: customize UnixCCompiler using build_ext 12500s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/tmp 12500s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/usr 12500s E creating /tmp/tmpvt806usq/usr/lib 12500s E creating /tmp/tmpvt806usq/usr/lib/python3 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=native' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-O3' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-Werror' 12500s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12500s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-vfpv4' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=armv8.2-a+fp16' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12500s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12500s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12500s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12500s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12500s E INFO: building 'test_array_from_pyobj_ext' extension 12500s E INFO: compiling C sources 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12500s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12500s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12500s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12500s E 14 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E In file included from fortranobject.c:2: 12500s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12500s E 7 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12500s E INFO: 12500s E ########### EXT COMPILER OPTIMIZATION ########### 12500s E INFO: Platform : 12500s E Architecture: armhf 12500s E Compiler : gcc 12500s E 12500s E CPU baseline : 12500s E Requested : 'min' 12500s E Enabled : none 12500s E Flags : none 12500s E Extra checks: none 12500s E 12500s E CPU dispatch : 12500s E Requested : 'max -xop -fma4' 12500s E Enabled : none 12500s E Generated : none 12500s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12500s 12500s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12500s d = '/tmp/tmpmzdm58dt' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s err = None 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s kw = {} 12500s module_name = 'test_array_from_pyobj_ext' 12500s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12500s p = 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12500s ______ ERROR at setup of TestSharedMemory.test_optional_none[CLONGDOUBLE] ______ 12500s 12500s def setup_module(): 12500s """ 12500s Build the required testing extension module 12500s 12500s """ 12500s global wrap 12500s 12500s # Check compiler availability first 12500s if not util.has_c_compiler(): 12500s pytest.skip("No C compiler available") 12500s 12500s if wrap is None: 12500s config_code = """ 12500s config.add_extension('test_array_from_pyobj_ext', 12500s sources=['wrapmodule.c', 'fortranobject.c'], 12500s define_macros=[]) 12500s """ 12500s d = os.path.dirname(__file__) 12500s src = [ 12500s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12500s util.getpath("src", "fortranobject.c"), 12500s util.getpath("src", "fortranobject.h"), 12500s ] 12500s > wrap = util.build_module_distutils(src, config_code, 12500s "test_array_from_pyobj_ext") 12500s 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12500s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12500s memo[key] = func(*a, **kw) 12500s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12500s func = 12500s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12500s kw = {} 12500s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s 12500s @_memoize 12500s def build_module_distutils(source_files, config_code, module_name, **kw): 12500s """ 12500s Build a module via distutils and import it. 12500s 12500s """ 12500s d = get_module_dir() 12500s 12500s # Copy files 12500s dst_sources = [] 12500s for fn in source_files: 12500s if not os.path.isfile(fn): 12500s raise RuntimeError("%s is not a file" % fn) 12500s dst = os.path.join(d, os.path.basename(fn)) 12500s shutil.copyfile(fn, dst) 12500s dst_sources.append(dst) 12500s 12500s # Build script 12500s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12500s 12500s code = fr""" 12500s import os 12500s import sys 12500s sys.path = {repr(sys.path)} 12500s 12500s def configuration(parent_name='',top_path=None): 12500s from numpy.distutils.misc_util import Configuration 12500s config = Configuration('', parent_name, top_path) 12500s {config_code} 12500s return config 12500s 12500s if __name__ == "__main__": 12500s from numpy.distutils.core import setup 12500s setup(configuration=configuration) 12500s """ 12500s script = os.path.join(d, get_temp_module_name() + ".py") 12500s dst_sources.append(script) 12500s with open(script, "wb") as f: 12500s f.write(asbytes(code)) 12500s 12500s # Build 12500s cwd = os.getcwd() 12500s try: 12500s os.chdir(d) 12500s cmd = [sys.executable, script, "build_ext", "-i"] 12500s p = subprocess.Popen(cmd, 12500s stdout=subprocess.PIPE, 12500s stderr=subprocess.STDOUT) 12500s out, err = p.communicate() 12500s if p.returncode != 0: 12500s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12500s (cmd[4:], asstr(out))) 12500s E RuntimeError: Running distutils build failed: [] 12500s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12500s E 12500s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12500s E of the deprecation of `distutils` itself. It will be removed for 12500s E Python >= 3.12. For older Python versions it will remain present. 12500s E It is recommended to use `setuptools < 60.0` for those Python versions. 12500s E For more details, see: 12500s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12500s E 12500s E 12500s E from numpy.distutils.core import setup 12500s E running build_ext 12500s E running build_src 12500s E INFO: build_src 12500s E INFO: building extension "test_array_from_pyobj_ext" sources 12500s E INFO: build_src: building npy-pkg config files 12500s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12500s E !! 12500s E 12500s E ******************************************************************************** 12500s E Please avoid running ``setup.py`` directly. 12500s E Instead, use pypa/build, pypa/installer or other 12500s E standards-based tools. 12500s E 12500s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12500s E ******************************************************************************** 12500s E 12500s E !! 12500s E self.initialize_options() 12500s E INFO: customize UnixCCompiler 12500s E INFO: customize UnixCCompiler using build_ext 12500s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/tmp 12500s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/usr 12500s E creating /tmp/tmpvt806usq/usr/lib 12500s E creating /tmp/tmpvt806usq/usr/lib/python3 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=native' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-O3' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-Werror' 12500s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12500s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-vfpv4' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=armv8.2-a+fp16' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12500s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12500s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12500s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12500s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12500s E INFO: building 'test_array_from_pyobj_ext' extension 12500s E INFO: compiling C sources 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12500s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12500s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12500s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12500s E 14 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E In file included from fortranobject.c:2: 12500s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12500s E 7 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12500s E INFO: 12500s E ########### EXT COMPILER OPTIMIZATION ########### 12500s E INFO: Platform : 12500s E Architecture: armhf 12500s E Compiler : gcc 12500s E 12500s E CPU baseline : 12500s E Requested : 'min' 12500s E Enabled : none 12500s E Flags : none 12500s E Extra checks: none 12500s E 12500s E CPU dispatch : 12500s E Requested : 'max -xop -fma4' 12500s E Enabled : none 12500s E Generated : none 12500s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12500s 12500s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12500s d = '/tmp/tmpmzdm58dt' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s err = None 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s kw = {} 12500s module_name = 'test_array_from_pyobj_ext' 12500s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12500s p = 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12500s ___ ERROR at setup of TestSharedMemory.test_optional_from_2seq[CLONGDOUBLE] ____ 12500s 12500s def setup_module(): 12500s """ 12500s Build the required testing extension module 12500s 12500s """ 12500s global wrap 12500s 12500s # Check compiler availability first 12500s if not util.has_c_compiler(): 12500s pytest.skip("No C compiler available") 12500s 12500s if wrap is None: 12500s config_code = """ 12500s config.add_extension('test_array_from_pyobj_ext', 12500s sources=['wrapmodule.c', 'fortranobject.c'], 12500s define_macros=[]) 12500s """ 12500s d = os.path.dirname(__file__) 12500s src = [ 12500s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12500s util.getpath("src", "fortranobject.c"), 12500s util.getpath("src", "fortranobject.h"), 12500s ] 12500s > wrap = util.build_module_distutils(src, config_code, 12500s "test_array_from_pyobj_ext") 12500s 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12500s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12500s memo[key] = func(*a, **kw) 12500s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12500s func = 12500s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12500s kw = {} 12500s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s 12500s @_memoize 12500s def build_module_distutils(source_files, config_code, module_name, **kw): 12500s """ 12500s Build a module via distutils and import it. 12500s 12500s """ 12500s d = get_module_dir() 12500s 12500s # Copy files 12500s dst_sources = [] 12500s for fn in source_files: 12500s if not os.path.isfile(fn): 12500s raise RuntimeError("%s is not a file" % fn) 12500s dst = os.path.join(d, os.path.basename(fn)) 12500s shutil.copyfile(fn, dst) 12500s dst_sources.append(dst) 12500s 12500s # Build script 12500s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12500s 12500s code = fr""" 12500s import os 12500s import sys 12500s sys.path = {repr(sys.path)} 12500s 12500s def configuration(parent_name='',top_path=None): 12500s from numpy.distutils.misc_util import Configuration 12500s config = Configuration('', parent_name, top_path) 12500s {config_code} 12500s return config 12500s 12500s if __name__ == "__main__": 12500s from numpy.distutils.core import setup 12500s setup(configuration=configuration) 12500s """ 12500s script = os.path.join(d, get_temp_module_name() + ".py") 12500s dst_sources.append(script) 12500s with open(script, "wb") as f: 12500s f.write(asbytes(code)) 12500s 12500s # Build 12500s cwd = os.getcwd() 12500s try: 12500s os.chdir(d) 12500s cmd = [sys.executable, script, "build_ext", "-i"] 12500s p = subprocess.Popen(cmd, 12500s stdout=subprocess.PIPE, 12500s stderr=subprocess.STDOUT) 12500s out, err = p.communicate() 12500s if p.returncode != 0: 12500s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12500s (cmd[4:], asstr(out))) 12500s E RuntimeError: Running distutils build failed: [] 12500s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12500s E 12500s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12500s E of the deprecation of `distutils` itself. It will be removed for 12500s E Python >= 3.12. For older Python versions it will remain present. 12500s E It is recommended to use `setuptools < 60.0` for those Python versions. 12500s E For more details, see: 12500s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12500s E 12500s E 12500s E from numpy.distutils.core import setup 12500s E running build_ext 12500s E running build_src 12500s E INFO: build_src 12500s E INFO: building extension "test_array_from_pyobj_ext" sources 12500s E INFO: build_src: building npy-pkg config files 12500s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12500s E !! 12500s E 12500s E ******************************************************************************** 12500s E Please avoid running ``setup.py`` directly. 12500s E Instead, use pypa/build, pypa/installer or other 12500s E standards-based tools. 12500s E 12500s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12500s E ******************************************************************************** 12500s E 12500s E !! 12500s E self.initialize_options() 12500s E INFO: customize UnixCCompiler 12500s E INFO: customize UnixCCompiler using build_ext 12500s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/tmp 12500s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/usr 12500s E creating /tmp/tmpvt806usq/usr/lib 12500s E creating /tmp/tmpvt806usq/usr/lib/python3 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=native' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-O3' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-Werror' 12500s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12500s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-vfpv4' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=armv8.2-a+fp16' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12500s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12500s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12500s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12500s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12500s E INFO: building 'test_array_from_pyobj_ext' extension 12500s E INFO: compiling C sources 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12500s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12500s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12500s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12500s E 14 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E In file included from fortranobject.c:2: 12500s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12500s E 7 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12500s E INFO: 12500s E ########### EXT COMPILER OPTIMIZATION ########### 12500s E INFO: Platform : 12500s E Architecture: armhf 12500s E Compiler : gcc 12500s E 12500s E CPU baseline : 12500s E Requested : 'min' 12500s E Enabled : none 12500s E Flags : none 12500s E Extra checks: none 12500s E 12500s E CPU dispatch : 12500s E Requested : 'max -xop -fma4' 12500s E Enabled : none 12500s E Generated : none 12500s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12500s 12500s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12500s d = '/tmp/tmpmzdm58dt' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s err = None 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s kw = {} 12500s module_name = 'test_array_from_pyobj_ext' 12500s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12500s p = 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12500s ___ ERROR at setup of TestSharedMemory.test_optional_from_23seq[CLONGDOUBLE] ___ 12500s 12500s def setup_module(): 12500s """ 12500s Build the required testing extension module 12500s 12500s """ 12500s global wrap 12500s 12500s # Check compiler availability first 12500s if not util.has_c_compiler(): 12500s pytest.skip("No C compiler available") 12500s 12500s if wrap is None: 12500s config_code = """ 12500s config.add_extension('test_array_from_pyobj_ext', 12500s sources=['wrapmodule.c', 'fortranobject.c'], 12500s define_macros=[]) 12500s """ 12500s d = os.path.dirname(__file__) 12500s src = [ 12500s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12500s util.getpath("src", "fortranobject.c"), 12500s util.getpath("src", "fortranobject.h"), 12500s ] 12500s > wrap = util.build_module_distutils(src, config_code, 12500s "test_array_from_pyobj_ext") 12500s 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12500s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12500s memo[key] = func(*a, **kw) 12500s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12500s func = 12500s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12500s kw = {} 12500s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s 12500s @_memoize 12500s def build_module_distutils(source_files, config_code, module_name, **kw): 12500s """ 12500s Build a module via distutils and import it. 12500s 12500s """ 12500s d = get_module_dir() 12500s 12500s # Copy files 12500s dst_sources = [] 12500s for fn in source_files: 12500s if not os.path.isfile(fn): 12500s raise RuntimeError("%s is not a file" % fn) 12500s dst = os.path.join(d, os.path.basename(fn)) 12500s shutil.copyfile(fn, dst) 12500s dst_sources.append(dst) 12500s 12500s # Build script 12500s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12500s 12500s code = fr""" 12500s import os 12500s import sys 12500s sys.path = {repr(sys.path)} 12500s 12500s def configuration(parent_name='',top_path=None): 12500s from numpy.distutils.misc_util import Configuration 12500s config = Configuration('', parent_name, top_path) 12500s {config_code} 12500s return config 12500s 12500s if __name__ == "__main__": 12500s from numpy.distutils.core import setup 12500s setup(configuration=configuration) 12500s """ 12500s script = os.path.join(d, get_temp_module_name() + ".py") 12500s dst_sources.append(script) 12500s with open(script, "wb") as f: 12500s f.write(asbytes(code)) 12500s 12500s # Build 12500s cwd = os.getcwd() 12500s try: 12500s os.chdir(d) 12500s cmd = [sys.executable, script, "build_ext", "-i"] 12500s p = subprocess.Popen(cmd, 12500s stdout=subprocess.PIPE, 12500s stderr=subprocess.STDOUT) 12500s out, err = p.communicate() 12500s if p.returncode != 0: 12500s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12500s (cmd[4:], asstr(out))) 12500s E RuntimeError: Running distutils build failed: [] 12500s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12500s E 12500s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12500s E of the deprecation of `distutils` itself. It will be removed for 12500s E Python >= 3.12. For older Python versions it will remain present. 12500s E It is recommended to use `setuptools < 60.0` for those Python versions. 12500s E For more details, see: 12500s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12500s E 12500s E 12500s E from numpy.distutils.core import setup 12500s E running build_ext 12500s E running build_src 12500s E INFO: build_src 12500s E INFO: building extension "test_array_from_pyobj_ext" sources 12500s E INFO: build_src: building npy-pkg config files 12500s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12500s E !! 12500s E 12500s E ******************************************************************************** 12500s E Please avoid running ``setup.py`` directly. 12500s E Instead, use pypa/build, pypa/installer or other 12500s E standards-based tools. 12500s E 12500s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12500s E ******************************************************************************** 12500s E 12500s E !! 12500s E self.initialize_options() 12500s E INFO: customize UnixCCompiler 12500s E INFO: customize UnixCCompiler using build_ext 12500s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/tmp 12500s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/usr 12500s E creating /tmp/tmpvt806usq/usr/lib 12500s E creating /tmp/tmpvt806usq/usr/lib/python3 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=native' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-O3' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-Werror' 12500s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12500s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-vfpv4' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=armv8.2-a+fp16' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12500s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12500s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12500s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12500s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12500s E INFO: building 'test_array_from_pyobj_ext' extension 12500s E INFO: compiling C sources 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12500s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12500s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12500s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12500s E 14 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E In file included from fortranobject.c:2: 12500s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12500s E 7 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12500s E INFO: 12500s E ########### EXT COMPILER OPTIMIZATION ########### 12500s E INFO: Platform : 12500s E Architecture: armhf 12500s E Compiler : gcc 12500s E 12500s E CPU baseline : 12500s E Requested : 'min' 12500s E Enabled : none 12500s E Flags : none 12500s E Extra checks: none 12500s E 12500s E CPU dispatch : 12500s E Requested : 'max -xop -fma4' 12500s E Enabled : none 12500s E Generated : none 12500s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12500s 12500s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12500s d = '/tmp/tmpmzdm58dt' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s err = None 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s kw = {} 12500s module_name = 'test_array_from_pyobj_ext' 12500s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12500s p = 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12500s _________ ERROR at setup of TestSharedMemory.test_inplace[CLONGDOUBLE] _________ 12500s 12500s def setup_module(): 12500s """ 12500s Build the required testing extension module 12500s 12500s """ 12500s global wrap 12500s 12500s # Check compiler availability first 12500s if not util.has_c_compiler(): 12500s pytest.skip("No C compiler available") 12500s 12500s if wrap is None: 12500s config_code = """ 12500s config.add_extension('test_array_from_pyobj_ext', 12500s sources=['wrapmodule.c', 'fortranobject.c'], 12500s define_macros=[]) 12500s """ 12500s d = os.path.dirname(__file__) 12500s src = [ 12500s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12500s util.getpath("src", "fortranobject.c"), 12500s util.getpath("src", "fortranobject.h"), 12500s ] 12500s > wrap = util.build_module_distutils(src, config_code, 12500s "test_array_from_pyobj_ext") 12500s 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12500s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12500s memo[key] = func(*a, **kw) 12500s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12500s func = 12500s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12500s kw = {} 12500s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s 12500s @_memoize 12500s def build_module_distutils(source_files, config_code, module_name, **kw): 12500s """ 12500s Build a module via distutils and import it. 12500s 12500s """ 12500s d = get_module_dir() 12500s 12500s # Copy files 12500s dst_sources = [] 12500s for fn in source_files: 12500s if not os.path.isfile(fn): 12500s raise RuntimeError("%s is not a file" % fn) 12500s dst = os.path.join(d, os.path.basename(fn)) 12500s shutil.copyfile(fn, dst) 12500s dst_sources.append(dst) 12500s 12500s # Build script 12500s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12500s 12500s code = fr""" 12500s import os 12500s import sys 12500s sys.path = {repr(sys.path)} 12500s 12500s def configuration(parent_name='',top_path=None): 12500s from numpy.distutils.misc_util import Configuration 12500s config = Configuration('', parent_name, top_path) 12500s {config_code} 12500s return config 12500s 12500s if __name__ == "__main__": 12500s from numpy.distutils.core import setup 12500s setup(configuration=configuration) 12500s """ 12500s script = os.path.join(d, get_temp_module_name() + ".py") 12500s dst_sources.append(script) 12500s with open(script, "wb") as f: 12500s f.write(asbytes(code)) 12500s 12500s # Build 12500s cwd = os.getcwd() 12500s try: 12500s os.chdir(d) 12500s cmd = [sys.executable, script, "build_ext", "-i"] 12500s p = subprocess.Popen(cmd, 12500s stdout=subprocess.PIPE, 12500s stderr=subprocess.STDOUT) 12500s out, err = p.communicate() 12500s if p.returncode != 0: 12500s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12500s (cmd[4:], asstr(out))) 12500s E RuntimeError: Running distutils build failed: [] 12500s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12500s E 12500s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12500s E of the deprecation of `distutils` itself. It will be removed for 12500s E Python >= 3.12. For older Python versions it will remain present. 12500s E It is recommended to use `setuptools < 60.0` for those Python versions. 12500s E For more details, see: 12500s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12500s E 12500s E 12500s E from numpy.distutils.core import setup 12500s E running build_ext 12500s E running build_src 12500s E INFO: build_src 12500s E INFO: building extension "test_array_from_pyobj_ext" sources 12500s E INFO: build_src: building npy-pkg config files 12500s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12500s E !! 12500s E 12500s E ******************************************************************************** 12500s E Please avoid running ``setup.py`` directly. 12500s E Instead, use pypa/build, pypa/installer or other 12500s E standards-based tools. 12500s E 12500s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12500s E ******************************************************************************** 12500s E 12500s E !! 12500s E self.initialize_options() 12500s E INFO: customize UnixCCompiler 12500s E INFO: customize UnixCCompiler using build_ext 12500s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/tmp 12500s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/usr 12500s E creating /tmp/tmpvt806usq/usr/lib 12500s E creating /tmp/tmpvt806usq/usr/lib/python3 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=native' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-O3' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-Werror' 12500s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12500s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-vfpv4' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=armv8.2-a+fp16' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12500s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12500s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12500s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12500s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12500s E INFO: building 'test_array_from_pyobj_ext' extension 12500s E INFO: compiling C sources 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12500s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12500s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12500s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12500s E 14 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E In file included from fortranobject.c:2: 12500s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12500s E 7 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12500s E INFO: 12500s E ########### EXT COMPILER OPTIMIZATION ########### 12500s E INFO: Platform : 12500s E Architecture: armhf 12500s E Compiler : gcc 12500s E 12500s E CPU baseline : 12500s E Requested : 'min' 12500s E Enabled : none 12500s E Flags : none 12500s E Extra checks: none 12500s E 12500s E CPU dispatch : 12500s E Requested : 'max -xop -fma4' 12500s E Enabled : none 12500s E Generated : none 12500s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12500s 12500s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12500s d = '/tmp/tmpmzdm58dt' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s err = None 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s kw = {} 12500s module_name = 'test_array_from_pyobj_ext' 12500s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12500s p = 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12500s __ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[CLONGDOUBLE] __ 12500s 12500s def setup_module(): 12500s """ 12500s Build the required testing extension module 12500s 12500s """ 12500s global wrap 12500s 12500s # Check compiler availability first 12500s if not util.has_c_compiler(): 12500s pytest.skip("No C compiler available") 12500s 12500s if wrap is None: 12500s config_code = """ 12500s config.add_extension('test_array_from_pyobj_ext', 12500s sources=['wrapmodule.c', 'fortranobject.c'], 12500s define_macros=[]) 12500s """ 12500s d = os.path.dirname(__file__) 12500s src = [ 12500s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 12500s util.getpath("src", "fortranobject.c"), 12500s util.getpath("src", "fortranobject.h"), 12500s ] 12500s > wrap = util.build_module_distutils(src, config_code, 12500s "test_array_from_pyobj_ext") 12500s 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 12500s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 12500s memo[key] = func(*a, **kw) 12500s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 12500s func = 12500s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 12500s kw = {} 12500s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpmzdm58dt' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s 12500s @_memoize 12500s def build_module_distutils(source_files, config_code, module_name, **kw): 12500s """ 12500s Build a module via distutils and import it. 12500s 12500s """ 12500s d = get_module_dir() 12500s 12500s # Copy files 12500s dst_sources = [] 12500s for fn in source_files: 12500s if not os.path.isfile(fn): 12500s raise RuntimeError("%s is not a file" % fn) 12500s dst = os.path.join(d, os.path.basename(fn)) 12500s shutil.copyfile(fn, dst) 12500s dst_sources.append(dst) 12500s 12500s # Build script 12500s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 12500s 12500s code = fr""" 12500s import os 12500s import sys 12500s sys.path = {repr(sys.path)} 12500s 12500s def configuration(parent_name='',top_path=None): 12500s from numpy.distutils.misc_util import Configuration 12500s config = Configuration('', parent_name, top_path) 12500s {config_code} 12500s return config 12500s 12500s if __name__ == "__main__": 12500s from numpy.distutils.core import setup 12500s setup(configuration=configuration) 12500s """ 12500s script = os.path.join(d, get_temp_module_name() + ".py") 12500s dst_sources.append(script) 12500s with open(script, "wb") as f: 12500s f.write(asbytes(code)) 12500s 12500s # Build 12500s cwd = os.getcwd() 12500s try: 12500s os.chdir(d) 12500s cmd = [sys.executable, script, "build_ext", "-i"] 12500s p = subprocess.Popen(cmd, 12500s stdout=subprocess.PIPE, 12500s stderr=subprocess.STDOUT) 12500s out, err = p.communicate() 12500s if p.returncode != 0: 12500s > raise RuntimeError("Running distutils build failed: %s\n%s" % 12500s (cmd[4:], asstr(out))) 12500s E RuntimeError: Running distutils build failed: [] 12500s E /tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: 12500s E 12500s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12500s E of the deprecation of `distutils` itself. It will be removed for 12500s E Python >= 3.12. For older Python versions it will remain present. 12500s E It is recommended to use `setuptools < 60.0` for those Python versions. 12500s E For more details, see: 12500s E https://numpy.org/devdocs/reference/distutils_status_migration.html 12500s E 12500s E 12500s E from numpy.distutils.core import setup 12500s E running build_ext 12500s E running build_src 12500s E INFO: build_src 12500s E INFO: building extension "test_array_from_pyobj_ext" sources 12500s E INFO: build_src: building npy-pkg config files 12500s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12500s E !! 12500s E 12500s E ******************************************************************************** 12500s E Please avoid running ``setup.py`` directly. 12500s E Instead, use pypa/build, pypa/installer or other 12500s E standards-based tools. 12500s E 12500s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12500s E ******************************************************************************** 12500s E 12500s E !! 12500s E self.initialize_options() 12500s E INFO: customize UnixCCompiler 12500s E INFO: customize UnixCCompiler using build_ext 12500s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/tmp 12500s E creating /tmp/tmpvt806usq/tmp/tmpvt806usq 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E creating /tmp/tmpvt806usq/usr 12500s E creating /tmp/tmpvt806usq/usr/lib 12500s E creating /tmp/tmpvt806usq/usr/lib/python3 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils 12500s E creating /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=native' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-O3' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-Werror' 12500s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 12500s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-vfpv4' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d -mfp16-format=ieee -mfpu=neon-vfpv4 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_vfpv4.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 12500s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-march=armv8.2-a+fp16' 12500s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/include/python3.12 -c' 12500s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 12500s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmpvt806usq/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 12500s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 12500s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 12500s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 12500s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 12500s E 9 | # include_next 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E 12500s E WARN: CCompilerOpt.feature_test[1567] : testing failed 12500s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 12500s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 12500s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (SSE2 FMA4 SSE42 XOP VX AVX512_SKX VXE VSX4 VSX2 VSX NEON ASIMD VXE2 VSX3 (FMA3 AVX2) AVX512F) not part of baseline or dispatch-able features 12500s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 12500s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 12500s E INFO: building 'test_array_from_pyobj_ext' extension 12500s E INFO: compiling C sources 12500s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 12500s E 12500s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 12500s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 12500s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 12500s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 12500s E 14 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E In file included from fortranobject.c:2: 12500s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 12500s E 7 | #include 12500s E | ^~~~~~~~~~ 12500s E compilation terminated. 12500s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 12500s E INFO: 12500s E ########### EXT COMPILER OPTIMIZATION ########### 12500s E INFO: Platform : 12500s E Architecture: armhf 12500s E Compiler : gcc 12500s E 12500s E CPU baseline : 12500s E Requested : 'min' 12500s E Enabled : none 12500s E Flags : none 12500s E Extra checks: none 12500s E 12500s E CPU dispatch : 12500s E Requested : 'max -xop -fma4' 12500s E Enabled : none 12500s E Generated : none 12500s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 12500s 12500s cmd = ['/usr/bin/python3.12', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py', 'build_ext', '-i'] 12500s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpmzdm58dt\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 12500s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 12500s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 12500s d = '/tmp/tmpmzdm58dt' 12500s dst = '/tmp/tmpmzdm58dt/fortranobject.h' 12500s dst_sources = ['/tmp/tmpmzdm58dt/wrapmodule.c', '/tmp/tmpmzdm58dt/fortranobject.c', '/tmp/tmpmzdm58dt/fortranobject.h', '/tmp/tmpmzdm58dt/_test_ext_module_5403.py'] 12500s err = None 12500s f = <_io.BufferedWriter name='/tmp/tmpmzdm58dt/_test_ext_module_5403.py'> 12500s fn = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s kw = {} 12500s module_name = 'test_array_from_pyobj_ext' 12500s out = b'/tmp/tmpmzdm58dt/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpmzdm58dt/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 12500s p = 12500s script = '/tmp/tmpmzdm58dt/_test_ext_module_5403.py' 12500s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 12500s 12500s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 12500s =================================== FAILURES =================================== 12500s _______________________ Test_ARM_Features.test_features ________________________ 12500s 12500s self = 12500s 12500s def test_features(self): 12500s self.load_flags() 12500s for gname, features in self.features_groups.items(): 12500s test_features = [self.cpu_have(f) for f in features] 12500s > assert_features_equal(__cpu_features__.get(gname), all(test_features), gname) 12500s E AssertionError: Failure Detection 12500s E NAME: 'NEON_FP16' 12500s E ACTUAL: True 12500s E DESIRED: False 12500s E 12500s E ########################################### 12500s E ### Extra debugging information 12500s E ########################################### 12500s E ------------------------------------------- 12500s E --- NumPy Detections 12500s E ------------------------------------------- 12500s E {MMX: False, SSE: False, SSE2: False, SSE3: False, SSSE3: False, SSE41: False, POPCNT: False, SSE42: False, AVX: False, F16C: False, XOP: False, FMA4: False, FMA3: False, AVX2: False, AVX512F: False, AVX512CD: False, AVX512ER: False, AVX512PF: False, AVX5124FMAPS: False, AVX5124VNNIW: False, AVX512VPOPCNTDQ: False, AVX512VL: False, AVX512BW: False, AVX512DQ: False, AVX512VNNI: False, AVX512IFMA: False, AVX512VBMI: False, AVX512VBMI2: False, AVX512BITALG: False, AVX512_KNL: False, AVX512_KNM: False, AVX512_SKX: False, AVX512_CLX: False, AVX512_CNL: False, AVX512_ICL: False, VSX: False, VSX2: False, VSX3: False, VSX4: False, VX: False, VXE: False, VXE2: False, NEON: True, NEON_FP16: True, NEON_VFPV4: True, ASIMD: True, FPHP: False, ASIMDHP: False, ASIMDDP: False, ASIMDFHM: False} 12500s E ------------------------------------------- 12500s E --- SYS / CPUINFO 12500s E ------------------------------------------- 12500s E .... 12500s E ------------------------------------------- 12500s E --- SYS / AUXV 12500s E ------------------------------------------- 12500s E AT_HWCAP: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm 12500s E AT_PAGESZ: 4096 12500s E AT_CLKTCK: 100 12500s E AT_PHDR: 0x4c7034 12500s E AT_PHENT: 32 12500s E AT_PHNUM: 9 12500s E AT_BASE: 0xf7aa5000 12500s E AT_FLAGS: 0x0 12500s E AT_ENTRY: 0x4c7f05 12500s E AT_UID: 0 12500s E AT_EUID: 0 12500s E AT_GID: 0 12500s E AT_EGID: 0 12500s E AT_SECURE: 0 12500s E AT_RANDOM: 0xffc83b4c 12500s E AT_HWCAP2: aes pmull sha1 sha2 crc32 12500s E AT_EXECFN: /bin/true 12500s E AT_PLATFORM: v8l 12500s 12500s features = ['NEON', 'HALF'] 12500s gname = 'NEON_FP16' 12500s self = 12500s test_features = [False, False] 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_cpu_features.py:64: AssertionError 12500s ________________ TestDateTime.test_datetime_as_string_timezone _________________ 12500s 12500s self = 12500s 12500s @pytest.mark.skipif(not _has_pytz, reason="The pytz module is not available.") 12500s def test_datetime_as_string_timezone(self): 12500s # timezone='local' vs 'UTC' 12500s a = np.datetime64('2010-03-15T06:30', 'm') 12500s assert_equal(np.datetime_as_string(a), 12500s '2010-03-15T06:30') 12500s assert_equal(np.datetime_as_string(a, timezone='naive'), 12500s '2010-03-15T06:30') 12500s assert_equal(np.datetime_as_string(a, timezone='UTC'), 12500s '2010-03-15T06:30Z') 12500s assert_(np.datetime_as_string(a, timezone='local') != 12500s '2010-03-15T06:30') 12500s 12500s b = np.datetime64('2010-02-15T06:30', 'm') 12500s 12500s > assert_equal(np.datetime_as_string(a, timezone=tz('US/Central')), 12500s '2010-03-15T01:30-0500') 12500s 12500s a = numpy.datetime64('2010-03-15T06:30') 12500s b = numpy.datetime64('2010-02-15T06:30') 12500s self = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_datetime.py:1860: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s zone = 'US/Central' 12500s 12500s def timezone(zone): 12500s r''' Return a datetime.tzinfo implementation for the given timezone 12500s 12500s >>> from datetime import datetime, timedelta 12500s >>> utc = timezone('UTC') 12500s >>> eastern = timezone('US/Eastern') 12500s >>> eastern.zone 12500s 'US/Eastern' 12500s >>> timezone(unicode('US/Eastern')) is eastern 12500s True 12500s >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc) 12500s >>> loc_dt = utc_dt.astimezone(eastern) 12500s >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)' 12500s >>> loc_dt.strftime(fmt) 12500s '2002-10-27 01:00:00 EST (-0500)' 12500s >>> (loc_dt - timedelta(minutes=10)).strftime(fmt) 12500s '2002-10-27 00:50:00 EST (-0500)' 12500s >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt) 12500s '2002-10-27 01:50:00 EDT (-0400)' 12500s >>> (loc_dt + timedelta(minutes=10)).strftime(fmt) 12500s '2002-10-27 01:10:00 EST (-0500)' 12500s 12500s Raises UnknownTimeZoneError if passed an unknown zone. 12500s 12500s >>> try: 12500s ... timezone('Asia/Shangri-La') 12500s ... except UnknownTimeZoneError: 12500s ... print('Unknown') 12500s Unknown 12500s 12500s >>> try: 12500s ... timezone(unicode('\N{TRADE MARK SIGN}')) 12500s ... except UnknownTimeZoneError: 12500s ... print('Unknown') 12500s Unknown 12500s 12500s ''' 12500s if zone is None: 12500s raise UnknownTimeZoneError(None) 12500s 12500s if zone.upper() == 'UTC': 12500s return utc 12500s 12500s try: 12500s zone = ascii(zone) 12500s except UnicodeEncodeError: 12500s # All valid timezones are ASCII 12500s raise UnknownTimeZoneError(zone) 12500s 12500s zone = _case_insensitive_zone_lookup(_unmunge_zone(zone)) 12500s if zone not in _tzinfo_cache: 12500s if zone in all_timezones_set: # noqa 12500s fp = open_resource(zone) 12500s try: 12500s _tzinfo_cache[zone] = build_tzinfo(zone, fp) 12500s finally: 12500s fp.close() 12500s else: 12500s > raise UnknownTimeZoneError(zone) 12500s E pytz.exceptions.UnknownTimeZoneError: 'US/Central' 12500s 12500s zone = 'US/Central' 12500s 12500s /usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError 12500s _____________________ TestDatetime64Timezone.test_datetime _____________________ 12500s 12500s self = 12500s 12500s @pytest.mark.skipif(not _has_pytz, 12500s reason="The pytz module is not available.") 12500s def test_datetime(self): 12500s > tz = pytz.timezone('US/Eastern') 12500s 12500s self = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_deprecations.py:231: 12500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12500s 12500s zone = 'US/Eastern' 12500s 12500s def timezone(zone): 12500s r''' Return a datetime.tzinfo implementation for the given timezone 12500s 12500s >>> from datetime import datetime, timedelta 12500s >>> utc = timezone('UTC') 12500s >>> eastern = timezone('US/Eastern') 12500s >>> eastern.zone 12500s 'US/Eastern' 12500s >>> timezone(unicode('US/Eastern')) is eastern 12500s True 12500s >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc) 12500s >>> loc_dt = utc_dt.astimezone(eastern) 12500s >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)' 12500s >>> loc_dt.strftime(fmt) 12500s '2002-10-27 01:00:00 EST (-0500)' 12500s >>> (loc_dt - timedelta(minutes=10)).strftime(fmt) 12500s '2002-10-27 00:50:00 EST (-0500)' 12500s >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt) 12500s '2002-10-27 01:50:00 EDT (-0400)' 12500s >>> (loc_dt + timedelta(minutes=10)).strftime(fmt) 12500s '2002-10-27 01:10:00 EST (-0500)' 12500s 12500s Raises UnknownTimeZoneError if passed an unknown zone. 12500s 12500s >>> try: 12500s ... timezone('Asia/Shangri-La') 12500s ... except UnknownTimeZoneError: 12500s ... print('Unknown') 12500s Unknown 12500s 12500s >>> try: 12500s ... timezone(unicode('\N{TRADE MARK SIGN}')) 12500s ... except UnknownTimeZoneError: 12500s ... print('Unknown') 12500s Unknown 12500s 12500s ''' 12500s if zone is None: 12500s raise UnknownTimeZoneError(None) 12500s 12500s if zone.upper() == 'UTC': 12500s return utc 12500s 12500s try: 12500s zone = ascii(zone) 12500s except UnicodeEncodeError: 12500s # All valid timezones are ASCII 12500s raise UnknownTimeZoneError(zone) 12500s 12500s zone = _case_insensitive_zone_lookup(_unmunge_zone(zone)) 12500s if zone not in _tzinfo_cache: 12500s if zone in all_timezones_set: # noqa 12500s fp = open_resource(zone) 12500s try: 12500s _tzinfo_cache[zone] = build_tzinfo(zone, fp) 12500s finally: 12500s fp.close() 12500s else: 12500s > raise UnknownTimeZoneError(zone) 12500s E pytz.exceptions.UnknownTimeZoneError: 'US/Eastern' 12500s 12500s zone = 'US/Eastern' 12500s 12500s /usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError 12500s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[ones-1-] _ 12500s 12500s self = 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s count = 6, singleton = 12500s creation_func = , creation_obj = 1 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 12500s pytest.param(np.empty, None, 12500s # None is probably used for too many things 12500s marks=pytest.mark.skip("unreliable due to python's behaviour")), 12500s (np.ones, 1), 12500s (np.zeros, 0)]) 12500s def test_structured_object_create_delete(self, dt, pat, count, singleton, 12500s creation_func, creation_obj): 12500s """Structured object reference counting in creation and deletion""" 12500s # The test assumes that 0, 1, and None are singletons. 12500s gc.collect() 12500s before = sys.getrefcount(creation_obj) 12500s arr = creation_func(3, dt) 12500s 12500s now = sys.getrefcount(creation_obj) 12500s > assert now - before == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s arr = array([([[1, 1, 1], [1, 1, 1]],), ([[1, 1, 1], [1, 1, 1]],), 12500s ([[1, 1, 1], [1, 1, 1]],)], dtype=[('b', 'O', (2, 3))]) 12500s before = 1073741823 12500s count = 6 12500s creation_func = 12500s creation_obj = 1 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s now = 1073741823 12500s pat = ([[, , ], [, , ]],) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[ones-1-] _ 12500s 12500s self = 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s count = 6, singleton = 12500s creation_func = , creation_obj = 1 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 12500s pytest.param(np.empty, None, 12500s # None is probably used for too many things 12500s marks=pytest.mark.skip("unreliable due to python's behaviour")), 12500s (np.ones, 1), 12500s (np.zeros, 0)]) 12500s def test_structured_object_create_delete(self, dt, pat, count, singleton, 12500s creation_func, creation_obj): 12500s """Structured object reference counting in creation and deletion""" 12500s # The test assumes that 0, 1, and None are singletons. 12500s gc.collect() 12500s before = sys.getrefcount(creation_obj) 12500s arr = creation_func(3, dt) 12500s 12500s now = sys.getrefcount(creation_obj) 12500s > assert now - before == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s arr = array([(1, [[1, 1, 1], [1, 1, 1]]), (1, [[1, 1, 1], [1, 1, 1]]), 12500s (1, [[1, 1, 1], [1, 1, 1]])], 12500s dtype=[('a', ' 12500s creation_obj = 1 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[ones-1-] _ 12500s 12500s self = 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s count = 6, singleton = 12500s creation_func = , creation_obj = 1 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 12500s pytest.param(np.empty, None, 12500s # None is probably used for too many things 12500s marks=pytest.mark.skip("unreliable due to python's behaviour")), 12500s (np.ones, 1), 12500s (np.zeros, 0)]) 12500s def test_structured_object_create_delete(self, dt, pat, count, singleton, 12500s creation_func, creation_obj): 12500s """Structured object reference counting in creation and deletion""" 12500s # The test assumes that 0, 1, and None are singletons. 12500s gc.collect() 12500s before = sys.getrefcount(creation_obj) 12500s arr = creation_func(3, dt) 12500s 12500s now = sys.getrefcount(creation_obj) 12500s > assert now - before == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s arr = array([(1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]]), 12500s (1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1..., (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]])], 12500s dtype=[('a', ' 12500s creation_obj = 1 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[ones-1-] _ 12500s 12500s self = 12500s dt = dtype([('a', ', ), (, , ), (, )]]) 12500s count = 12, singleton = 12500s creation_func = , creation_obj = 1 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 12500s pytest.param(np.empty, None, 12500s # None is probably used for too many things 12500s marks=pytest.mark.skip("unreliable due to python's behaviour")), 12500s (np.ones, 1), 12500s (np.zeros, 0)]) 12500s def test_structured_object_create_delete(self, dt, pat, count, singleton, 12500s creation_func, creation_obj): 12500s """Structured object reference counting in creation and deletion""" 12500s # The test assumes that 0, 1, and None are singletons. 12500s gc.collect() 12500s before = sys.getrefcount(creation_obj) 12500s arr = creation_func(3, dt) 12500s 12500s now = sys.getrefcount(creation_obj) 12500s > assert now - before == count * 3 12500s E assert (1073741823 - 1073741823) == (12 * 3) 12500s 12500s arr = array([(1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]]), 12500s (1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1...), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]])], 12500s dtype=[('a', ' 12500s creation_obj = 1 12500s dt = dtype([('a', ', ), (, , ), (, )]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[zeros-0-] _ 12500s 12500s self = 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s count = 6, singleton = 12500s creation_func = , creation_obj = 0 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 12500s pytest.param(np.empty, None, 12500s # None is probably used for too many things 12500s marks=pytest.mark.skip("unreliable due to python's behaviour")), 12500s (np.ones, 1), 12500s (np.zeros, 0)]) 12500s def test_structured_object_create_delete(self, dt, pat, count, singleton, 12500s creation_func, creation_obj): 12500s """Structured object reference counting in creation and deletion""" 12500s # The test assumes that 0, 1, and None are singletons. 12500s gc.collect() 12500s before = sys.getrefcount(creation_obj) 12500s arr = creation_func(3, dt) 12500s 12500s now = sys.getrefcount(creation_obj) 12500s > assert now - before == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s arr = array([([[0, 0, 0], [0, 0, 0]],), ([[0, 0, 0], [0, 0, 0]],), 12500s ([[0, 0, 0], [0, 0, 0]],)], dtype=[('b', 'O', (2, 3))]) 12500s before = 1073741823 12500s count = 6 12500s creation_func = 12500s creation_obj = 0 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s now = 1073741823 12500s pat = ([[, , ], [, , ]],) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[zeros-0-] _ 12500s 12500s self = 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s count = 6, singleton = 12500s creation_func = , creation_obj = 0 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 12500s pytest.param(np.empty, None, 12500s # None is probably used for too many things 12500s marks=pytest.mark.skip("unreliable due to python's behaviour")), 12500s (np.ones, 1), 12500s (np.zeros, 0)]) 12500s def test_structured_object_create_delete(self, dt, pat, count, singleton, 12500s creation_func, creation_obj): 12500s """Structured object reference counting in creation and deletion""" 12500s # The test assumes that 0, 1, and None are singletons. 12500s gc.collect() 12500s before = sys.getrefcount(creation_obj) 12500s arr = creation_func(3, dt) 12500s 12500s now = sys.getrefcount(creation_obj) 12500s > assert now - before == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s arr = array([(0, [[0, 0, 0], [0, 0, 0]]), (0, [[0, 0, 0], [0, 0, 0]]), 12500s (0, [[0, 0, 0], [0, 0, 0]])], 12500s dtype=[('a', ' 12500s creation_obj = 0 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[zeros-0-] _ 12500s 12500s self = 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s count = 6, singleton = 12500s creation_func = , creation_obj = 0 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 12500s pytest.param(np.empty, None, 12500s # None is probably used for too many things 12500s marks=pytest.mark.skip("unreliable due to python's behaviour")), 12500s (np.ones, 1), 12500s (np.zeros, 0)]) 12500s def test_structured_object_create_delete(self, dt, pat, count, singleton, 12500s creation_func, creation_obj): 12500s """Structured object reference counting in creation and deletion""" 12500s # The test assumes that 0, 1, and None are singletons. 12500s gc.collect() 12500s before = sys.getrefcount(creation_obj) 12500s arr = creation_func(3, dt) 12500s 12500s now = sys.getrefcount(creation_obj) 12500s > assert now - before == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s arr = array([(0, [[(0, 0), (0, 0), (0, 0)], [(0, 0), (0, 0), (0, 0)]]), 12500s (0, [[(0, 0), (0, 0), (0, 0)], [(0, 0), (0, 0..., (0, 0), (0, 0)], [(0, 0), (0, 0), (0, 0)]])], 12500s dtype=[('a', ' 12500s creation_obj = 0 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[zeros-0-] _ 12500s 12500s self = 12500s dt = dtype([('a', ', ), (, , ), (, )]]) 12500s count = 12, singleton = 12500s creation_func = , creation_obj = 0 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 12500s pytest.param(np.empty, None, 12500s # None is probably used for too many things 12500s marks=pytest.mark.skip("unreliable due to python's behaviour")), 12500s (np.ones, 1), 12500s (np.zeros, 0)]) 12500s def test_structured_object_create_delete(self, dt, pat, count, singleton, 12500s creation_func, creation_obj): 12500s """Structured object reference counting in creation and deletion""" 12500s # The test assumes that 0, 1, and None are singletons. 12500s gc.collect() 12500s before = sys.getrefcount(creation_obj) 12500s arr = creation_func(3, dt) 12500s 12500s now = sys.getrefcount(creation_obj) 12500s > assert now - before == count * 3 12500s E assert (1073741823 - 1073741823) == (12 * 3) 12500s 12500s arr = array([(0, [[(0, 0), (0, 0), (0, 0)], [(0, 0), (0, 0), (0, 0)]]), 12500s (0, [[(0, 0), (0, 0), (0, 0)], [(0, 0), (0, 0...), (0, 0), (0, 0)], [(0, 0), (0, 0), (0, 0)]])], 12500s dtype=[('a', ' 12500s creation_obj = 0 12500s dt = dtype([('a', ', ), (, , ), (, )]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_item_setting[] _ 12500s 12500s self = 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s def test_structured_object_item_setting(self, dt, pat, count, singleton): 12500s """Structured object reference counting for simple item setting""" 12500s one = 1 12500s 12500s gc.collect() 12500s before = sys.getrefcount(singleton) 12500s arr = np.array([pat] * 3, dt) 12500s assert sys.getrefcount(singleton) - before == count * 3 12500s # Fill with `1` and check that it was replaced correctly: 12500s before2 = sys.getrefcount(one) 12500s arr[...] = one 12500s after2 = sys.getrefcount(one) 12500s > assert after2 - before2 == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s after2 = 1073741823 12500s arr = array([([[1, 1, 1], [1, 1, 1]],), ([[1, 1, 1], [1, 1, 1]],), 12500s ([[1, 1, 1], [1, 1, 1]],)], dtype=[('b', 'O', (2, 3))]) 12500s before = 22 12500s before2 = 1073741823 12500s count = 6 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s one = 1 12500s pat = ([[, , ], [, , ]],) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:763: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_item_setting[] _ 12500s 12500s self = 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s def test_structured_object_item_setting(self, dt, pat, count, singleton): 12500s """Structured object reference counting for simple item setting""" 12500s one = 1 12500s 12500s gc.collect() 12500s before = sys.getrefcount(singleton) 12500s arr = np.array([pat] * 3, dt) 12500s assert sys.getrefcount(singleton) - before == count * 3 12500s # Fill with `1` and check that it was replaced correctly: 12500s before2 = sys.getrefcount(one) 12500s arr[...] = one 12500s after2 = sys.getrefcount(one) 12500s > assert after2 - before2 == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s after2 = 1073741823 12500s arr = array([(1, [[1, 1, 1], [1, 1, 1]]), (1, [[1, 1, 1], [1, 1, 1]]), 12500s (1, [[1, 1, 1], [1, 1, 1]])], 12500s dtype=[('a', ', , ], [, , ]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:763: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_item_setting[] _ 12500s 12500s self = 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s def test_structured_object_item_setting(self, dt, pat, count, singleton): 12500s """Structured object reference counting for simple item setting""" 12500s one = 1 12500s 12500s gc.collect() 12500s before = sys.getrefcount(singleton) 12500s arr = np.array([pat] * 3, dt) 12500s assert sys.getrefcount(singleton) - before == count * 3 12500s # Fill with `1` and check that it was replaced correctly: 12500s before2 = sys.getrefcount(one) 12500s arr[...] = one 12500s after2 = sys.getrefcount(one) 12500s > assert after2 - before2 == count * 3 12500s E assert (1073741823 - 1073741823) == (6 * 3) 12500s 12500s after2 = 1073741823 12500s arr = array([(1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]]), 12500s (1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1..., (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]])], 12500s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:763: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_item_setting[] _ 12500s 12500s self = 12500s dt = dtype([('a', ', ), (, , ), (, )]]) 12500s count = 12, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s def test_structured_object_item_setting(self, dt, pat, count, singleton): 12500s """Structured object reference counting for simple item setting""" 12500s one = 1 12500s 12500s gc.collect() 12500s before = sys.getrefcount(singleton) 12500s arr = np.array([pat] * 3, dt) 12500s assert sys.getrefcount(singleton) - before == count * 3 12500s # Fill with `1` and check that it was replaced correctly: 12500s before2 = sys.getrefcount(one) 12500s arr[...] = one 12500s after2 = sys.getrefcount(one) 12500s > assert after2 - before2 == count * 3 12500s E assert (1073741823 - 1073741823) == (12 * 3) 12500s 12500s after2 = 1073741823 12500s arr = array([(1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]]), 12500s (1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1...), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]])], 12500s dtype=[('a', ', ), (, , ), (, )]]) 12500s self = 12500s singleton = 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:763: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape0-index0-2-] _ 12500s 12500s self = 12500s shape = (3,), index = ([0, 2],), items_changed = 2 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],), 12500s ([[-4, -4, -4], [-4, -4, -4]],)], dtype=[('b', 'O', (2, 3))]) 12500s before_val0 = 1073741823 12500s before_val1 = 1073741823 12500s count = 6 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s index = ([0, 2],) 12500s items_changed = 2 12500s part = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 12500s dtype=[('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s self = 12500s shape = (3,) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape0-index0-2-] _ 12500s 12500s self = 12500s shape = (3,), index = ([0, 2],), items_changed = 2 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([(-4, [[-4, -4, -4], [-4, -4, -4]]), 12500s (-4, [[-4, -4, -4], [-4, -4, -4]]), 12500s (-4, [[-4, -4, -4], [-4, -4, -4]])], 12500s dtype=[('a', ', , ], [, , ]]) 12500s self = 12500s shape = (3,) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape0-index0-2-] _ 12500s 12500s self = 12500s shape = (3,), index = ([0, 2],), items_changed = 2 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 12500s (-4, [[(-4, -4), (-4, -4), (-4, ..., (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])], 12500s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s self = 12500s shape = (3,) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape0-index0-2-] _ 12500s 12500s self = 12500s shape = (3,), index = ([0, 2],), items_changed = 2 12500s dt = dtype([('a', ', ), (, , ), (, )]]) 12500s count = 12, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (12 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 12500s (-4, [[(-4, -4), (-4, -4), (-4, ...), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])], 12500s dtype=[('a', ', ), (, , ), (, )]]) 12500s self = 12500s shape = (3,) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape1-index1-4-] _ 12500s 12500s self = 12500s shape = (3, 2), index = ([0, 2], slice(None, None, None)), items_changed = 4 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 4) 12500s 12500s after_val0 = 1073741823 12500s arr = array([[([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 12500s [([[-4, -4, -4], [-4, -4, -4]],), ([... -4]],)], 12500s [([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)]], 12500s dtype=[('b', 'O', (2, 3))]) 12500s before_val0 = 1073741823 12500s before_val1 = 1073741823 12500s count = 6 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s index = ([0, 2], slice(None, None, None)) 12500s items_changed = 4 12500s part = array([[([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 12500s [([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)]], 12500s dtype=[('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s self = 12500s shape = (3, 2) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape1-index1-4-] _ 12500s 12500s self = 12500s shape = (3, 2), index = ([0, 2], slice(None, None, None)), items_changed = 4 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 4) 12500s 12500s after_val0 = 1073741823 12500s arr = array([[(-4, [[-4, -4, -4], [-4, -4, -4]]), 12500s (-4, [[-4, -4, -4], [-4, -4, -4]])], 12500s [(-4, [[-4, -4, -4], [... -4, -4], [-4, -4, -4]]), 12500s (-4, [[-4, -4, -4], [-4, -4, -4]])]], 12500s dtype=[('a', ', , ], [, , ]]) 12500s self = 12500s shape = (3, 2) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape1-index1-4-] _ 12500s 12500s self = 12500s shape = (3, 2), index = ([0, 2], slice(None, None, None)), items_changed = 4 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 4) 12500s 12500s after_val0 = 1073741823 12500s arr = array([[(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 12500s (-4, [[(-4, -4), (-4, -4), (-4... (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])]], 12500s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s self = 12500s shape = (3, 2) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape1-index1-4-] _ 12500s 12500s self = 12500s shape = (3, 2), index = ([0, 2], slice(None, None, None)), items_changed = 4 12500s dt = dtype([('a', ', ), (, , ), (, )]]) 12500s count = 12, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (12 * 4) 12500s 12500s after_val0 = 1073741823 12500s arr = array([[(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 12500s (-4, [[(-4, -4), (-4, -4), (-4..., (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])]], 12500s dtype=[('a', ', ), (, , ), (, )]]) 12500s self = 12500s shape = (3, 2) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape2-index2-2-] _ 12500s 12500s self = 12500s shape = (3, 2), index = ([0, 2], [1]), items_changed = 2 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([[([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 12500s [([[-4, -4, -4], [-4, -4, -4]],), ([... -4]],)], 12500s [([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)]], 12500s dtype=[('b', 'O', (2, 3))]) 12500s before_val0 = 1073741823 12500s before_val1 = 1073741823 12500s count = 6 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s index = ([0, 2], [1]) 12500s items_changed = 2 12500s part = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 12500s dtype=[('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s self = 12500s shape = (3, 2) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape2-index2-2-] _ 12500s 12500s self = 12500s shape = (3, 2), index = ([0, 2], [1]), items_changed = 2 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([[(-4, [[-4, -4, -4], [-4, -4, -4]]), 12500s (-4, [[-4, -4, -4], [-4, -4, -4]])], 12500s [(-4, [[-4, -4, -4], [... -4, -4], [-4, -4, -4]]), 12500s (-4, [[-4, -4, -4], [-4, -4, -4]])]], 12500s dtype=[('a', ', , ], [, , ]]) 12500s self = 12500s shape = (3, 2) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape2-index2-2-] _ 12500s 12500s self = 12500s shape = (3, 2), index = ([0, 2], [1]), items_changed = 2 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([[(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 12500s (-4, [[(-4, -4), (-4, -4), (-4... (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])]], 12500s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s self = 12500s shape = (3, 2) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape2-index2-2-] _ 12500s 12500s self = 12500s shape = (3, 2), index = ([0, 2], [1]), items_changed = 2 12500s dt = dtype([('a', ', ), (, , ), (, )]]) 12500s count = 12, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (12 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([[(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 12500s (-4, [[(-4, -4), (-4, -4), (-4..., (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])]], 12500s dtype=[('a', ', ), (, , ), (, )]]) 12500s self = 12500s shape = (3, 2) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape3-index3-2-] _ 12500s 12500s self = 12500s shape = (3,), index = [True, False, True], items_changed = 2 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],), 12500s ([[-4, -4, -4], [-4, -4, -4]],)], dtype=[('b', 'O', (2, 3))]) 12500s before_val0 = 1073741823 12500s before_val1 = 1073741823 12500s count = 6 12500s dt = dtype([('b', 'O', (2, 3))]) 12500s index = [True, False, True] 12500s items_changed = 2 12500s part = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 12500s dtype=[('b', 'O', (2, 3))]) 12500s pat = ([[, , ], [, , ]],) 12500s self = 12500s shape = (3,) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape3-index3-2-] _ 12500s 12500s self = 12500s shape = (3,), index = [True, False, True], items_changed = 2 12500s dt = dtype([('a', ', , ], [, , ]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12500s # When using 0 and 1. If it fails again, should remove all explicit 12500s # checks, and rely on `pytest-leaks` reference count checker only. 12500s val0 = -4 12500s val1 = -5 12500s 12500s arr = np.full(shape, val0, dt) 12500s 12500s gc.collect() 12500s before_val0 = sys.getrefcount(val0) 12500s before_val1 = sys.getrefcount(val1) 12500s # Test item getting: 12500s part = arr[index] 12500s after_val0 = sys.getrefcount(val0) 12500s > assert after_val0 - before_val0 == count * items_changed 12500s E assert (1073741823 - 1073741823) == (6 * 2) 12500s 12500s after_val0 = 1073741823 12500s arr = array([(-4, [[-4, -4, -4], [-4, -4, -4]]), 12500s (-4, [[-4, -4, -4], [-4, -4, -4]]), 12500s (-4, [[-4, -4, -4], [-4, -4, -4]])], 12500s dtype=[('a', ', , ], [, , ]]) 12500s self = 12500s shape = (3,) 12500s singleton = 12500s val0 = -4 12500s val1 = -5 12500s 12500s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12500s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape3-index3-2-] _ 12500s 12500s self = 12500s shape = (3,), index = [True, False, True], items_changed = 2 12500s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12500s count = 6, singleton = 12500s 12500s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12500s iter_struct_object_dtypes()) 12500s @pytest.mark.parametrize( 12500s ['shape', 'index', 'items_changed'], 12500s [((3,), ([0, 2],), 2), 12500s ((3, 2), ([0, 2], slice(None)), 4), 12500s ((3, 2), ([0, 2], [1]), 2), 12500s ((3,), ([True, False, True]), 2)]) 12500s def test_structured_object_indexing(self, shape, index, items_changed, 12500s dt, pat, count, singleton): 12500s """Structured object reference counting for advanced indexing.""" 12500s # Use two small negative values (should be singletons, but less likely 12500s # to run into race-conditions). This failed in some threaded envs 12501s # When using 0 and 1. If it fails again, should remove all explicit 12501s # checks, and rely on `pytest-leaks` reference count checker only. 12501s val0 = -4 12501s val1 = -5 12501s 12501s arr = np.full(shape, val0, dt) 12501s 12501s gc.collect() 12501s before_val0 = sys.getrefcount(val0) 12501s before_val1 = sys.getrefcount(val1) 12501s # Test item getting: 12501s part = arr[index] 12501s after_val0 = sys.getrefcount(val0) 12501s > assert after_val0 - before_val0 == count * items_changed 12501s E assert (1073741823 - 1073741823) == (6 * 2) 12501s 12501s after_val0 = 1073741823 12501s arr = array([(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 12501s (-4, [[(-4, -4), (-4, -4), (-4, ..., (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])], 12501s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 12501s self = 12501s shape = (3,) 12501s singleton = 12501s val0 = -4 12501s val1 = -5 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12501s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape3-index3-2-] _ 12501s 12501s self = 12501s shape = (3,), index = [True, False, True], items_changed = 2 12501s dt = dtype([('a', ', ), (, , ), (, )]]) 12501s count = 12, singleton = 12501s 12501s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 12501s iter_struct_object_dtypes()) 12501s @pytest.mark.parametrize( 12501s ['shape', 'index', 'items_changed'], 12501s [((3,), ([0, 2],), 2), 12501s ((3, 2), ([0, 2], slice(None)), 4), 12501s ((3, 2), ([0, 2], [1]), 2), 12501s ((3,), ([True, False, True]), 2)]) 12501s def test_structured_object_indexing(self, shape, index, items_changed, 12501s dt, pat, count, singleton): 12501s """Structured object reference counting for advanced indexing.""" 12501s # Use two small negative values (should be singletons, but less likely 12501s # to run into race-conditions). This failed in some threaded envs 12501s # When using 0 and 1. If it fails again, should remove all explicit 12501s # checks, and rely on `pytest-leaks` reference count checker only. 12501s val0 = -4 12501s val1 = -5 12501s 12501s arr = np.full(shape, val0, dt) 12501s 12501s gc.collect() 12501s before_val0 = sys.getrefcount(val0) 12501s before_val1 = sys.getrefcount(val1) 12501s # Test item getting: 12501s part = arr[index] 12501s after_val0 = sys.getrefcount(val0) 12501s > assert after_val0 - before_val0 == count * items_changed 12501s E assert (1073741823 - 1073741823) == (12 * 2) 12501s 12501s after_val0 = 1073741823 12501s arr = array([(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 12501s (-4, [[(-4, -4), (-4, -4), (-4, ...), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])], 12501s dtype=[('a', ', ), (, , ), (, )]]) 12501s self = 12501s shape = (3,) 12501s singleton = 12501s val0 = -4 12501s val1 = -5 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 12501s _____________ TestRegression.test_structured_arrays_with_objects2 ______________ 12501s 12501s self = 12501s 12501s @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts") 12501s def test_structured_arrays_with_objects2(self): 12501s # Ticket #1299 second test 12501s stra = 'aaaa' 12501s strb = 'bbbb' 12501s numb = sys.getrefcount(strb) 12501s numa = sys.getrefcount(stra) 12501s x = np.array([[(0, stra), (1, strb)]], 'i8,O') 12501s x[x.nonzero()] = x.ravel()[:1] 12501s assert_(sys.getrefcount(strb) == numb) 12501s > assert_(sys.getrefcount(stra) == numa + 2) 12501s E AssertionError 12501s 12501s numa = 1073741823 12501s numb = 1073741823 12501s self = 12501s stra = 'aaaa' 12501s strb = 'bbbb' 12501s x = array([[(0, 'aaaa'), (0, 'aaaa')]], dtype=[('f0', ' 12501s 12501s @requires_memory(6 * 1024**3) 12501s def test_identityless_reduction_huge_array(self): 12501s # Regression test for gh-20921 (copying identity incorrectly failed) 12501s > arr = np.zeros((2, 2**31), 'uint8') 12501s E ValueError: Maximum allowed dimension exceeded 12501s 12501s self = 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_ufunc.py:1619: ValueError 12501s __ TestSpecialFloats.test_unary_spurious_fpexception[data16-escape16-f-sqrt] ___ 12501s 12501s self = 12501s ufunc = , dtype = 'f', data = [0.5, 0.5, 0.5, inf] 12501s escape = [, , , , , , ...] 12501s 12501s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 12501s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 12501s @pytest.mark.parametrize("data, escape", ( 12501s ([0.03], LTONE_INVALID_ERR), 12501s ([0.03]*32, LTONE_INVALID_ERR), 12501s # neg 12501s ([-1.0], NEG_INVALID_ERR), 12501s ([-1.0]*32, NEG_INVALID_ERR), 12501s # flat 12501s ([1.0], ONE_INVALID_ERR), 12501s ([1.0]*32, ONE_INVALID_ERR), 12501s # zero 12501s ([0.0], BYZERO_ERR), 12501s ([0.0]*32, BYZERO_ERR), 12501s ([-0.0], BYZERO_ERR), 12501s ([-0.0]*32, BYZERO_ERR), 12501s # nan 12501s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 12501s ([np.nan], []), 12501s ([np.nan]*32, []), 12501s # inf 12501s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 12501s ([np.inf], INF_INVALID_ERR), 12501s ([np.inf]*32, INF_INVALID_ERR), 12501s # ninf 12501s ([0.5, 0.5, 0.5, -np.inf], 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, -np.inf]*32, 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s )) 12501s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 12501s if escape and ufunc in escape: 12501s return 12501s # FIXME: NAN raises FP invalid exception: 12501s # - ceil/float16 on MSVC:32-bit 12501s # - spacing/float16 on almost all platforms 12501s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 12501s return 12501s array = np.array(data, dtype=dtype) 12501s > with assert_no_warnings(): 12501s 12501s array = array([0.5, 0.5, 0.5, inf], dtype=float32) 12501s data = [0.5, 0.5, 0.5, inf] 12501s dtype = 'f' 12501s escape = [, , , , , , ...] 12501s self = 12501s ufunc = 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 12501s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12501s 12501s self = , typ = None 12501s value = None, traceback = None 12501s 12501s def __exit__(self, typ, value, traceback): 12501s if typ is None: 12501s try: 12501s > next(self.gen) 12501s E AssertionError: Got warnings: [] 12501s 12501s self = 12501s traceback = None 12501s typ = None 12501s value = None 12501s 12501s /usr/lib/python3.12/contextlib.py:144: AssertionError 12501s __ TestSpecialFloats.test_unary_spurious_fpexception[data17-escape17-f-sqrt] ___ 12501s 12501s self = 12501s ufunc = , dtype = 'f', data = [0.5, 0.5, 0.5, inf, 0.5, 0.5, ...] 12501s escape = [, , , , , , ...] 12501s 12501s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 12501s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 12501s @pytest.mark.parametrize("data, escape", ( 12501s ([0.03], LTONE_INVALID_ERR), 12501s ([0.03]*32, LTONE_INVALID_ERR), 12501s # neg 12501s ([-1.0], NEG_INVALID_ERR), 12501s ([-1.0]*32, NEG_INVALID_ERR), 12501s # flat 12501s ([1.0], ONE_INVALID_ERR), 12501s ([1.0]*32, ONE_INVALID_ERR), 12501s # zero 12501s ([0.0], BYZERO_ERR), 12501s ([0.0]*32, BYZERO_ERR), 12501s ([-0.0], BYZERO_ERR), 12501s ([-0.0]*32, BYZERO_ERR), 12501s # nan 12501s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 12501s ([np.nan], []), 12501s ([np.nan]*32, []), 12501s # inf 12501s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 12501s ([np.inf], INF_INVALID_ERR), 12501s ([np.inf]*32, INF_INVALID_ERR), 12501s # ninf 12501s ([0.5, 0.5, 0.5, -np.inf], 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, -np.inf]*32, 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s )) 12501s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 12501s if escape and ufunc in escape: 12501s return 12501s # FIXME: NAN raises FP invalid exception: 12501s # - ceil/float16 on MSVC:32-bit 12501s # - spacing/float16 on almost all platforms 12501s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 12501s return 12501s array = np.array(data, dtype=dtype) 12501s > with assert_no_warnings(): 12501s 12501s array = array([0.5, 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5, 12501s 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5,... 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5, 12501s 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf], 12501s dtype=float32) 12501s data = [0.5, 0.5, 0.5, inf, 0.5, 0.5, ...] 12501s dtype = 'f' 12501s escape = [, , , , , , ...] 12501s self = 12501s ufunc = 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 12501s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12501s 12501s self = , typ = None 12501s value = None, traceback = None 12501s 12501s def __exit__(self, typ, value, traceback): 12501s if typ is None: 12501s try: 12501s > next(self.gen) 12501s E AssertionError: Got warnings: [] 12501s 12501s self = 12501s traceback = None 12501s typ = None 12501s value = None 12501s 12501s /usr/lib/python3.12/contextlib.py:144: AssertionError 12501s __ TestSpecialFloats.test_unary_spurious_fpexception[data18-escape18-f-sqrt] ___ 12501s 12501s self = 12501s ufunc = , dtype = 'f', data = [inf, 1.0, 1.0, 1.0] 12501s escape = [, , , , , , ...] 12501s 12501s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 12501s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 12501s @pytest.mark.parametrize("data, escape", ( 12501s ([0.03], LTONE_INVALID_ERR), 12501s ([0.03]*32, LTONE_INVALID_ERR), 12501s # neg 12501s ([-1.0], NEG_INVALID_ERR), 12501s ([-1.0]*32, NEG_INVALID_ERR), 12501s # flat 12501s ([1.0], ONE_INVALID_ERR), 12501s ([1.0]*32, ONE_INVALID_ERR), 12501s # zero 12501s ([0.0], BYZERO_ERR), 12501s ([0.0]*32, BYZERO_ERR), 12501s ([-0.0], BYZERO_ERR), 12501s ([-0.0]*32, BYZERO_ERR), 12501s # nan 12501s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 12501s ([np.nan], []), 12501s ([np.nan]*32, []), 12501s # inf 12501s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 12501s ([np.inf], INF_INVALID_ERR), 12501s ([np.inf]*32, INF_INVALID_ERR), 12501s # ninf 12501s ([0.5, 0.5, 0.5, -np.inf], 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, -np.inf]*32, 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s )) 12501s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 12501s if escape and ufunc in escape: 12501s return 12501s # FIXME: NAN raises FP invalid exception: 12501s # - ceil/float16 on MSVC:32-bit 12501s # - spacing/float16 on almost all platforms 12501s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 12501s return 12501s array = np.array(data, dtype=dtype) 12501s > with assert_no_warnings(): 12501s 12501s array = array([inf, 1., 1., 1.], dtype=float32) 12501s data = [inf, 1.0, 1.0, 1.0] 12501s dtype = 'f' 12501s escape = [, , , , , , ...] 12501s self = 12501s ufunc = 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 12501s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12501s 12501s self = , typ = None 12501s value = None, traceback = None 12501s 12501s def __exit__(self, typ, value, traceback): 12501s if typ is None: 12501s try: 12501s > next(self.gen) 12501s E AssertionError: Got warnings: [] 12501s 12501s self = 12501s traceback = None 12501s typ = None 12501s value = None 12501s 12501s /usr/lib/python3.12/contextlib.py:144: AssertionError 12501s __ TestSpecialFloats.test_unary_spurious_fpexception[data19-escape19-f-sqrt] ___ 12501s 12501s self = 12501s ufunc = , dtype = 'f', data = [inf, 1.0, 1.0, 1.0, inf, 1.0, ...] 12501s escape = [, , , , , , ...] 12501s 12501s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 12501s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 12501s @pytest.mark.parametrize("data, escape", ( 12501s ([0.03], LTONE_INVALID_ERR), 12501s ([0.03]*32, LTONE_INVALID_ERR), 12501s # neg 12501s ([-1.0], NEG_INVALID_ERR), 12501s ([-1.0]*32, NEG_INVALID_ERR), 12501s # flat 12501s ([1.0], ONE_INVALID_ERR), 12501s ([1.0]*32, ONE_INVALID_ERR), 12501s # zero 12501s ([0.0], BYZERO_ERR), 12501s ([0.0]*32, BYZERO_ERR), 12501s ([-0.0], BYZERO_ERR), 12501s ([-0.0]*32, BYZERO_ERR), 12501s # nan 12501s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 12501s ([np.nan], []), 12501s ([np.nan]*32, []), 12501s # inf 12501s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 12501s ([np.inf], INF_INVALID_ERR), 12501s ([np.inf]*32, INF_INVALID_ERR), 12501s # ninf 12501s ([0.5, 0.5, 0.5, -np.inf], 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, -np.inf]*32, 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s )) 12501s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 12501s if escape and ufunc in escape: 12501s return 12501s # FIXME: NAN raises FP invalid exception: 12501s # - ceil/float16 on MSVC:32-bit 12501s # - spacing/float16 on almost all platforms 12501s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 12501s return 12501s array = np.array(data, dtype=dtype) 12501s > with assert_no_warnings(): 12501s 12501s array = array([inf, 1., 1., 1., inf, 1., 1., 1., inf, 1., 1., 1., inf, 12501s 1., 1., 1., inf, 1., 1., 1., inf,... 1., 1., inf, 1., 1., 1., inf, 12501s 1., 1., 1., inf, 1., 1., 1., inf, 1., 1., 1.], 12501s dtype=float32) 12501s data = [inf, 1.0, 1.0, 1.0, inf, 1.0, ...] 12501s dtype = 'f' 12501s escape = [, , , , , , ...] 12501s self = 12501s ufunc = 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 12501s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12501s 12501s self = , typ = None 12501s value = None, traceback = None 12501s 12501s def __exit__(self, typ, value, traceback): 12501s if typ is None: 12501s try: 12501s > next(self.gen) 12501s E AssertionError: Got warnings: [] 12501s 12501s self = 12501s traceback = None 12501s typ = None 12501s value = None 12501s 12501s /usr/lib/python3.12/contextlib.py:144: AssertionError 12501s __ TestSpecialFloats.test_unary_spurious_fpexception[data20-escape20-f-sqrt] ___ 12501s 12501s self = 12501s ufunc = , dtype = 'f', data = [inf] 12501s escape = [, , , , , , ...] 12501s 12501s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 12501s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 12501s @pytest.mark.parametrize("data, escape", ( 12501s ([0.03], LTONE_INVALID_ERR), 12501s ([0.03]*32, LTONE_INVALID_ERR), 12501s # neg 12501s ([-1.0], NEG_INVALID_ERR), 12501s ([-1.0]*32, NEG_INVALID_ERR), 12501s # flat 12501s ([1.0], ONE_INVALID_ERR), 12501s ([1.0]*32, ONE_INVALID_ERR), 12501s # zero 12501s ([0.0], BYZERO_ERR), 12501s ([0.0]*32, BYZERO_ERR), 12501s ([-0.0], BYZERO_ERR), 12501s ([-0.0]*32, BYZERO_ERR), 12501s # nan 12501s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 12501s ([np.nan], []), 12501s ([np.nan]*32, []), 12501s # inf 12501s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 12501s ([np.inf], INF_INVALID_ERR), 12501s ([np.inf]*32, INF_INVALID_ERR), 12501s # ninf 12501s ([0.5, 0.5, 0.5, -np.inf], 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, -np.inf]*32, 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s )) 12501s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 12501s if escape and ufunc in escape: 12501s return 12501s # FIXME: NAN raises FP invalid exception: 12501s # - ceil/float16 on MSVC:32-bit 12501s # - spacing/float16 on almost all platforms 12501s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 12501s return 12501s array = np.array(data, dtype=dtype) 12501s > with assert_no_warnings(): 12501s 12501s array = array([inf], dtype=float32) 12501s data = [inf] 12501s dtype = 'f' 12501s escape = [, , , , , , ...] 12501s self = 12501s ufunc = 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 12501s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12501s 12501s self = , typ = None 12501s value = None, traceback = None 12501s 12501s def __exit__(self, typ, value, traceback): 12501s if typ is None: 12501s try: 12501s > next(self.gen) 12501s E AssertionError: Got warnings: [] 12501s 12501s self = 12501s traceback = None 12501s typ = None 12501s value = None 12501s 12501s /usr/lib/python3.12/contextlib.py:144: AssertionError 12501s __ TestSpecialFloats.test_unary_spurious_fpexception[data21-escape21-f-sqrt] ___ 12501s 12501s self = 12501s ufunc = , dtype = 'f', data = [inf, inf, inf, inf, inf, inf, ...] 12501s escape = [, , , , , , ...] 12501s 12501s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 12501s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 12501s @pytest.mark.parametrize("data, escape", ( 12501s ([0.03], LTONE_INVALID_ERR), 12501s ([0.03]*32, LTONE_INVALID_ERR), 12501s # neg 12501s ([-1.0], NEG_INVALID_ERR), 12501s ([-1.0]*32, NEG_INVALID_ERR), 12501s # flat 12501s ([1.0], ONE_INVALID_ERR), 12501s ([1.0]*32, ONE_INVALID_ERR), 12501s # zero 12501s ([0.0], BYZERO_ERR), 12501s ([0.0]*32, BYZERO_ERR), 12501s ([-0.0], BYZERO_ERR), 12501s ([-0.0]*32, BYZERO_ERR), 12501s # nan 12501s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 12501s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 12501s ([np.nan], []), 12501s ([np.nan]*32, []), 12501s # inf 12501s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 12501s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 12501s ([np.inf], INF_INVALID_ERR), 12501s ([np.inf]*32, INF_INVALID_ERR), 12501s # ninf 12501s ([0.5, 0.5, 0.5, -np.inf], 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([0.5, 0.5, 0.5, -np.inf]*32, 12501s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 12501s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 12501s )) 12501s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 12501s if escape and ufunc in escape: 12501s return 12501s # FIXME: NAN raises FP invalid exception: 12501s # - ceil/float16 on MSVC:32-bit 12501s # - spacing/float16 on almost all platforms 12501s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 12501s return 12501s array = np.array(data, dtype=dtype) 12501s > with assert_no_warnings(): 12501s 12501s array = array([inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, 12501s inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, 12501s inf, inf, inf, inf, inf, inf], dtype=float32) 12501s data = [inf, inf, inf, inf, inf, inf, ...] 12501s dtype = 'f' 12501s escape = [, , , , , , ...] 12501s self = 12501s ufunc = 12501s 12501s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 12501s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12501s 12501s self = , typ = None 12501s value = None, traceback = None 12501s 12501s def __exit__(self, typ, value, traceback): 12501s if typ is None: 12501s try: 12501s > next(self.gen) 12501s E AssertionError: Got warnings: [] 12501s 12501s self = 12501s traceback = None 12501s typ = None 12501s value = None 12501s 12501s /usr/lib/python3.12/contextlib.py:144: AssertionError 12501s _____________________________ test_huge_header[r] ______________________________ 12501s 12501s tmpdir = local('/tmp/pytest-of-root/pytest-0/test_huge_header_r_0') 12501s mmap_mode = 'r' 12501s 12501s @pytest.mark.parametrize("mmap_mode", ["r", None]) 12501s def test_huge_header(tmpdir, mmap_mode): 12501s f = os.path.join(tmpdir, f'large_header.npy') 12501s arr = np.array(1, dtype="i,"*10000+"i") 12501s 12501s with pytest.warns(UserWarning, match=".*format 2.0"): 12501s np.save(f, arr) 12501s 12501s with pytest.raises(ValueError, match="Header.*large"): 12501s np.load(f, mmap_mode=mmap_mode) 12501s 12501s with pytest.raises(ValueError, match="Header.*large"): 12501s np.load(f, mmap_mode=mmap_mode, max_header_size=20000) 12501s 12501s > res = np.load(f, mmap_mode=mmap_mode, allow_pickle=True) 12501s 12501s arr = <[MemoryError() raised in repr()] ndarray object at 0xcdf74470> 12501s f = '/tmp/pytest-of-root/pytest-0/test_huge_header_r_0/large_header.npy' 12501s mmap_mode = 'r' 12501s tmpdir = local('/tmp/pytest-of-root/pytest-0/test_huge_header_r_0') 12501s 12501s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:725: 12501s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12501s /usr/lib/python3/dist-packages/numpy/lib/npyio.py:429: in load 12501s return format.open_memmap(file, mode=mmap_mode, 12501s N = 6 12501s _ZIP_PREFIX = b'PK\x03\x04' 12501s _ZIP_SUFFIX = b'PK\x05\x06' 12501s allow_pickle = True 12501s encoding = 'ASCII' 12501s fid = <_io.BufferedReader name='/tmp/pytest-of-root/pytest-0/test_huge_header_r_0/large_header.npy'> 12501s file = '/tmp/pytest-of-root/pytest-0/test_huge_header_r_0/large_header.npy' 12501s fix_imports = True 12501s magic = b'\x93NUMPY' 12501s max_header_size = 18446744073709551616 12501s mmap_mode = 'r' 12501s own_fid = True 12501s pickle_kwargs = {'encoding': 'ASCII', 'fix_imports': True} 12501s stack = 12501s /usr/lib/python3/dist-packages/numpy/lib/format.py:920: in open_memmap 12501s shape, fortran_order, dtype = _read_array_header( 12501s dtype = None 12501s filename = '/tmp/pytest-of-root/pytest-0/test_huge_header_r_0/large_header.npy' 12501s fortran_order = False 12501s fp = <_io.BufferedReader name='/tmp/pytest-of-root/pytest-0/test_huge_header_r_0/large_header.npy'> 12501s max_header_size = 18446744073709551616 12501s mode = 'r' 12501s shape = None 12501s version = (2, 0) 12501s /usr/lib/python3/dist-packages/numpy/lib/format.py:627: in _read_array_header 12501s header = _filter_header(header) 12501s encoding = 'latin1' 12501s fp = <_io.BufferedReader name='/tmp/pytest-of-root/pytest-0/test_huge_header_r_0/large_header.npy'> 12501s header = "{'descr': [('f0', ' 12501s version = (2, 0) 12501s /usr/lib/python3/dist-packages/numpy/lib/format.py:580: in _filter_header 12501s for token in tokenize.generate_tokens(StringIO(s).readline): 12501s StringIO = 12501s last_token_was_number = False 12501s s = "{'descr': [('f0', ' 12501s token_string = ',' 12501s token_type = 55 12501s tokenize = 12501s tokens = [<[MemoryError() raised in repr()] TokenInfo object at 0xcdc02a40>, <[MemoryError() raised in repr()] TokenInfo object...sed in repr()] TokenInfo object at 0xcdc02b58>, <[MemoryError() raised in repr()] TokenInfo object at 0xcdc02b90>, ...] 12501s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12501s 12501s source = 12501s encoding = None, extra_tokens = True 12501s 12501s def _generate_tokens_from_c_tokenizer(source, encoding=None, extra_tokens=False): 12501s """Tokenize a source reading Python code as unicode strings using the internal C tokenizer""" 12501s if encoding is None: 12501s it = _tokenize.TokenizerIter(source, extra_tokens=extra_tokens) 12501s else: 12501s it = _tokenize.TokenizerIter(source, encoding=encoding, extra_tokens=extra_tokens) 12501s try: 12501s > for info in it: 12501s E MemoryError 12501s 12501s encoding = None 12501s extra_tokens = True 12502s info = (55, ',', (1, 55635), (1, 55636), "{'descr': [('f0', ' 12502s source = 12502s 12502s /usr/lib/python3.12/tokenize.py:537: MemoryError 12502s ____________________________ test_huge_header[None] ____________________________ 12502s 12502s tmpdir = local('/tmp/pytest-of-root/pytest-0/test_huge_header_None_0') 12502s mmap_mode = None 12502s 12502s @pytest.mark.parametrize("mmap_mode", ["r", None]) 12502s def test_huge_header(tmpdir, mmap_mode): 12502s f = os.path.join(tmpdir, f'large_header.npy') 12502s arr = np.array(1, dtype="i,"*10000+"i") 12502s 12502s with pytest.warns(UserWarning, match=".*format 2.0"): 12502s > np.save(f, arr) 12502s 12502s arr = <[MemoryError() raised in repr()] ndarray object at 0xcdfd0ef0> 12502s f = '/tmp/pytest-of-root/pytest-0/test_huge_header_None_0/large_header.npy' 12502s mmap_mode = None 12502s tmpdir = local('/tmp/pytest-of-root/pytest-0/test_huge_header_None_0') 12502s 12502s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:717: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s <__array_function__ internals>:200: in save 12502s ??? 12502s args = ('/tmp/pytest-of-root/pytest-0/test_huge_header_None_0/large_header.npy', <[MemoryError() raised in repr()] ndarray object at 0xcdfd0ef0>) 12502s dispatcher = 12502s implementation = 12502s kwargs = {} 12502s public_api = 12502s relevant_args = (<[MemoryError() raised in repr()] ndarray object at 0xcdfd0ef0>,) 12502s /usr/lib/python3/dist-packages/numpy/lib/npyio.py:522: in save 12502s format.write_array(fid, arr, allow_pickle=allow_pickle, 12502s allow_pickle = True 12502s arr = <[MemoryError() raised in repr()] ndarray object at 0xcdfd0ef0> 12502s fid = <_io.BufferedWriter name='/tmp/pytest-of-root/pytest-0/test_huge_header_None_0/large_header.npy'> 12502s file = '/tmp/pytest-of-root/pytest-0/test_huge_header_None_0/large_header.npy' 12502s file_ctx = <_io.BufferedWriter name='/tmp/pytest-of-root/pytest-0/test_huge_header_None_0/large_header.npy'> 12502s fix_imports = True 12502s /usr/lib/python3/dist-packages/numpy/lib/format.py:695: in write_array 12502s _write_array_header(fp, header_data_from_array_1_0(array), version) 12502s allow_pickle = True 12502s array = <[MemoryError() raised in repr()] ndarray object at 0xcdfd0ef0> 12502s fp = <_io.BufferedWriter name='/tmp/pytest-of-root/pytest-0/test_huge_header_None_0/large_header.npy'> 12502s pickle_kwargs = {'fix_imports': True} 12502s version = None 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s fp = <_io.BufferedWriter name='/tmp/pytest-of-root/pytest-0/test_huge_header_None_0/large_header.npy'> 12502s d = {'descr': [('f0', ' header.append("'%s': %s, " % (key, repr(value))) 12502s E MemoryError 12502s 12502s d = {'descr': [('f0', ' 12502s header = ['{'] 12502s key = 'descr' 12502s value = [('f0', ' with pytest.warns(UserWarning, match=".*format 2.0"): 12502s E Failed: DID NOT WARN. No warnings of type (,) were emitted. 12502s E Emitted warnings: []. 12502s 12502s arr = <[MemoryError() raised in repr()] ndarray object at 0xcdfd0ef0> 12502s f = '/tmp/pytest-of-root/pytest-0/test_huge_header_None_0/large_header.npy' 12502s mmap_mode = None 12502s tmpdir = local('/tmp/pytest-of-root/pytest-0/test_huge_header_None_0') 12502s 12502s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:716: Failed 12502s _____________________________ test_huge_header_npz _____________________________ 12502s 12502s tmpdir = local('/tmp/pytest-of-root/pytest-0/test_huge_header_npz0') 12502s 12502s def test_huge_header_npz(tmpdir): 12502s f = os.path.join(tmpdir, f'large_header.npz') 12502s arr = np.array(1, dtype="i,"*10000+"i") 12502s 12502s with pytest.warns(UserWarning, match=".*format 2.0"): 12502s > np.savez(f, arr=arr) 12502s 12502s arr = <[MemoryError() raised in repr()] ndarray object at 0xcdfd0b00> 12502s f = '/tmp/pytest-of-root/pytest-0/test_huge_header_npz0/large_header.npz' 12502s tmpdir = local('/tmp/pytest-of-root/pytest-0/test_huge_header_npz0') 12502s 12502s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:736: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s <__array_function__ internals>:200: in savez 12502s ??? 12502s args = ('/tmp/pytest-of-root/pytest-0/test_huge_header_npz0/large_header.npz',) 12502s dispatcher = 12502s implementation = 12502s kwargs = {'arr': <[MemoryError() raised in repr()] ndarray object at 0xcdfd0b00>} 12502s public_api = 12502s relevant_args = 12502s /usr/lib/python3/dist-packages/numpy/lib/npyio.py:615: in savez 12502s _savez(file, args, kwds, False) 12502s args = () 12502s file = '/tmp/pytest-of-root/pytest-0/test_huge_header_npz0/large_header.npz' 12502s kwds = {'arr': <[MemoryError() raised in repr()] ndarray object at 0xcdfd0b00>} 12502s /usr/lib/python3/dist-packages/numpy/lib/npyio.py:719: in _savez 12502s format.write_array(fid, val, 12502s allow_pickle = True 12502s args = () 12502s compress = False 12502s compression = 0 12502s fid = 12502s file = '/tmp/pytest-of-root/pytest-0/test_huge_header_npz0/large_header.npz' 12502s fname = 'arr.npy' 12502s key = 'arr' 12502s kwds = {'arr': <[MemoryError() raised in repr()] ndarray object at 0xcdfd0b00>} 12502s namedict = {'arr': <[MemoryError() raised in repr()] ndarray object at 0xcdfd0b00>} 12502s pickle_kwargs = None 12502s val = <[MemoryError() raised in repr()] ndarray object at 0xcdfd0b00> 12502s zipf = 12502s zipfile = 12502s /usr/lib/python3/dist-packages/numpy/lib/format.py:695: in write_array 12502s _write_array_header(fp, header_data_from_array_1_0(array), version) 12502s allow_pickle = True 12502s array = <[MemoryError() raised in repr()] ndarray object at 0xcdfd0b00> 12502s fp = 12502s pickle_kwargs = None 12502s version = None 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s fp = 12502s d = {'descr': [('f0', ' header.append("'%s': %s, " % (key, repr(value))) 12502s E MemoryError 12502s 12502s d = {'descr': [('f0', ' 12502s header = ['{'] 12502s key = 'descr' 12502s value = [('f0', ' with pytest.warns(UserWarning, match=".*format 2.0"): 12502s E Failed: DID NOT WARN. No warnings of type (,) were emitted. 12502s E Emitted warnings: []. 12502s 12502s arr = <[MemoryError() raised in repr()] ndarray object at 0xcdfd0b00> 12502s f = '/tmp/pytest-of-root/pytest-0/test_huge_header_npz0/large_header.npz' 12502s tmpdir = local('/tmp/pytest-of-root/pytest-0/test_huge_header_npz0') 12502s 12502s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:735: Failed 12502s ____________________________ TestThread.test_normal ____________________________ 12502s 12502s self = 12502s 12502s def test_normal(self): 12502s def gen_random(state, out): 12502s out[...] = state.normal(size=10000) 12502s 12502s > self.check_function(gen_random, sz=(10000,)) 12502s 12502s gen_random = .gen_random at 0xc41e5a78> 12502s self = 12502s 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2488: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2471: in check_function 12502s [x.start() for x in t] 12502s Thread = 12502s function = .gen_random at 0xc41e5a78> 12502s out1 = array([[-3.54790151e+21, -3.54790151e+21, 5.84417372e-06, ..., 12502s 4.38234653e-06, 2.68020121e-05, 2.34097504e... [ 1.62430673e-08, 6.60565960e-03, 5.32697525e-07, ..., 12502s 6.51825824e-05, 2.98448483e-08, 3.37085044e-04]]) 12502s out2 = array([[-3.17235669e+029, -5.99591678e+020, 0.00000000e+000, ..., 12502s 0.00000000e+000, 0.00000000e+000, 4.9406...94065646e-324, 2.12199579e-314, 0.00000000e+000, ..., 12502s 0.00000000e+000, 4.94065646e-324, 2.12199579e-314]]) 12502s self = 12502s sz = (10000,) 12502s t = [, , , ] 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s self = 12502s 12502s def start(self): 12502s """Start the thread's activity. 12502s 12502s It must be called at most once per thread object. It arranges for the 12502s object's run() method to be invoked in a separate thread of control. 12502s 12502s This method will raise a RuntimeError if called more than once on the 12502s same thread object. 12502s 12502s """ 12502s if not self._initialized: 12502s raise RuntimeError("thread.__init__() not called") 12502s 12502s if self._started.is_set(): 12502s raise RuntimeError("threads can only be started once") 12502s 12502s with _active_limbo_lock: 12502s _limbo[self] = self 12502s try: 12502s > _start_new_thread(self._bootstrap, ()) 12502s E RuntimeError: can't start new thread 12502s 12502s self = 12502s 12502s /usr/lib/python3.12/threading.py:992: RuntimeError 12502s _____________________________ TestThread.test_exp ______________________________ 12502s 12502s self = 12502s 12502s def test_exp(self): 12502s def gen_random(state, out): 12502s out[...] = state.exponential(scale=np.ones((100, 1000))) 12502s 12502s > self.check_function(gen_random, sz=(100, 1000)) 12502s 12502s gen_random = .gen_random at 0xc4104b68> 12502s self = 12502s 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2494: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2471: in check_function 12502s [x.start() for x in t] 12502s Thread = 12502s function = .gen_random at 0xc4104b68> 12502s out1 = array([[[ 7.16102434e+11, 7.16102434e+11, -5.60742686e-01, ..., 12502s -1.32284117e+00, 1.78204946e+00, -7.7485678...[-1.54206839e+00, 4.96333744e-01, 7.82184636e-01, ..., 12502s 9.48029622e-02, -5.96842692e-01, -1.48551801e+00]]]) 12502s out2 = array([[[ 7.16102434e+11, 7.16102434e+11, 1.66082508e+00, ..., 12502s -1.83093054e+00, -1.50804414e+00, 8.2652611...[-1.54036337e+00, -2.92297915e+00, 3.13500806e+00, ..., 12502s 2.00911681e+00, -2.44119032e+00, -2.54260692e+00]]]) 12502s self = 12502s sz = (100, 1000) 12502s t = [, , , ] 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s self = 12502s 12502s def start(self): 12502s """Start the thread's activity. 12502s 12502s It must be called at most once per thread object. It arranges for the 12502s object's run() method to be invoked in a separate thread of control. 12502s 12502s This method will raise a RuntimeError if called more than once on the 12502s same thread object. 12502s 12502s """ 12502s if not self._initialized: 12502s raise RuntimeError("thread.__init__() not called") 12502s 12502s if self._started.is_set(): 12502s raise RuntimeError("threads can only be started once") 12502s 12502s with _active_limbo_lock: 12502s _limbo[self] = self 12502s try: 12502s > _start_new_thread(self._bootstrap, ()) 12502s E RuntimeError: can't start new thread 12502s 12502s self = 12502s 12502s /usr/lib/python3.12/threading.py:992: RuntimeError 12502s _________________________ TestThread.test_multinomial __________________________ 12502s 12502s self = 12502s 12502s def test_multinomial(self): 12502s def gen_random(state, out): 12502s out[...] = state.multinomial(10, [1 / 6.] * 6, size=10000) 12502s 12502s > self.check_function(gen_random, sz=(10000, 6)) 12502s 12502s gen_random = .gen_random at 0xc4104d48> 12502s self = 12502s 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2500: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2471: in check_function 12502s [x.start() for x in t] 12502s Thread = 12502s function = .gen_random at 0xc4104d48> 12502s out1 = array([[[ 7.16102434e+11, 7.16102434e+11, 1.14826839e+00, 12502s 1.44420075e-01, -2.93052226e+00, -9.89312349e-01... [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 12502s 0.00000000e+00, 0.00000000e+00, 0.00000000e+00]]]) 12502s out2 = array([[[7.16102434e+11, 7.16102434e+11, 0.00000000e+00, 0.00000000e+00, 12502s 0.00000000e+00, 0.00000000e+00], 12502s ...], 12502s [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 12502s 0.00000000e+00, 0.00000000e+00]]]) 12502s self = 12502s sz = (10000, 6) 12502s t = [, , , ] 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s self = 12502s 12502s def start(self): 12502s """Start the thread's activity. 12502s 12502s It must be called at most once per thread object. It arranges for the 12502s object's run() method to be invoked in a separate thread of control. 12502s 12502s This method will raise a RuntimeError if called more than once on the 12502s same thread object. 12502s 12502s """ 12502s if not self._initialized: 12502s raise RuntimeError("thread.__init__() not called") 12502s 12502s if self._started.is_set(): 12502s raise RuntimeError("threads can only be started once") 12502s 12502s with _active_limbo_lock: 12502s _limbo[self] = self 12502s try: 12502s > _start_new_thread(self._bootstrap, ()) 12502s E RuntimeError: can't start new thread 12502s 12502s self = 12502s 12502s /usr/lib/python3.12/threading.py:992: RuntimeError 12502s ____________________________ TestThread.test_normal ____________________________ 12502s 12502s self = 12502s 12502s def test_normal(self): 12502s def gen_random(state, out): 12502s out[...] = state.normal(size=10000) 12502s > self.check_function(gen_random, sz=(10000,)) 12502s 12502s gen_random = .gen_random at 0xc41232a8> 12502s self = 12502s 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1649: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1633: in check_function 12502s [x.start() for x in t] 12502s Thread = 12502s function = .gen_random at 0xc41232a8> 12502s out1 = array([[-4.72247805e+021, -4.72247803e+021, 4.24399158e-314, ..., 12502s 6.36598737e-314, 1.06099790e-313, 1.0609...06099790e-313, 1.48539705e-313, 8.48798317e-314, ..., 12502s 0.00000000e+000, 4.94065646e-324, 2.12199579e-314]]) 12502s out2 = array([[-3.17235667e+029, -4.72247803e+021, 6.36598737e-314, ..., 12502s 6.36598737e-314, 3.18299369e-313, 2.3341...06099790e-313, 1.48539705e-313, 1.69759663e-313, ..., 12502s 6.51825824e-005, 2.98448483e-008, 3.37085044e-004]]) 12502s self = 12502s sz = (10000,) 12502s t = [, , , ] 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s self = 12502s 12502s def start(self): 12502s """Start the thread's activity. 12502s 12502s It must be called at most once per thread object. It arranges for the 12502s object's run() method to be invoked in a separate thread of control. 12502s 12502s This method will raise a RuntimeError if called more than once on the 12502s same thread object. 12502s 12502s """ 12502s if not self._initialized: 12502s raise RuntimeError("thread.__init__() not called") 12502s 12502s if self._started.is_set(): 12502s raise RuntimeError("threads can only be started once") 12502s 12502s with _active_limbo_lock: 12502s _limbo[self] = self 12502s try: 12502s > _start_new_thread(self._bootstrap, ()) 12502s E RuntimeError: can't start new thread 12502s 12502s self = 12502s 12502s /usr/lib/python3.12/threading.py:992: RuntimeError 12502s _____________________________ TestThread.test_exp ______________________________ 12502s 12502s self = 12502s 12502s def test_exp(self): 12502s def gen_random(state, out): 12502s out[...] = state.exponential(scale=np.ones((100, 1000))) 12502s > self.check_function(gen_random, sz=(100, 1000)) 12502s 12502s gen_random = .gen_random at 0xc44962b8> 12502s self = 12502s 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1654: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1633: in check_function 12502s [x.start() for x in t] 12502s Thread = 12502s function = .gen_random at 0xc44962b8> 12502s out1 = array([[[ 7.16102434e+11, 7.16102434e+11, 8.39005564e-01, ..., 12502s 2.61123001e+00, 1.62678072e+00, -2.9099626...[ 1.38818867e+00, 9.36725317e-01, -2.14075818e+00, ..., 12502s 1.29133336e+00, 3.02561398e+00, -2.37134271e+00]]]) 12502s out2 = array([[[ 7.16102434e+11, 7.16102434e+11, -2.26520104e+00, ..., 12502s -2.14701974e+00, -7.75839719e-02, 1.2675100...[ 2.56175314e+00, -5.00629052e-01, -3.10023598e+00, ..., 12502s 9.67742619e-01, -2.71145358e+00, 2.56708720e+00]]]) 12502s self = 12502s sz = (100, 1000) 12502s t = [, , , ] 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s self = 12502s 12502s def start(self): 12502s """Start the thread's activity. 12502s 12502s It must be called at most once per thread object. It arranges for the 12502s object's run() method to be invoked in a separate thread of control. 12502s 12502s This method will raise a RuntimeError if called more than once on the 12502s same thread object. 12502s 12502s """ 12502s if not self._initialized: 12502s raise RuntimeError("thread.__init__() not called") 12502s 12502s if self._started.is_set(): 12502s raise RuntimeError("threads can only be started once") 12502s 12502s with _active_limbo_lock: 12502s _limbo[self] = self 12502s try: 12502s > _start_new_thread(self._bootstrap, ()) 12502s E RuntimeError: can't start new thread 12502s 12502s self = 12502s 12502s /usr/lib/python3.12/threading.py:992: RuntimeError 12502s _________________________ TestThread.test_multinomial __________________________ 12502s 12502s self = 12502s 12502s def test_multinomial(self): 12502s def gen_random(state, out): 12502s out[...] = state.multinomial(10, [1/6.]*6, size=10000) 12502s > self.check_function(gen_random, sz=(10000, 6)) 12502s 12502s gen_random = .gen_random at 0xc47bc828> 12502s self = 12502s 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1659: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1633: in check_function 12502s [x.start() for x in t] 12502s Thread = 12502s function = .gen_random at 0xc47bc828> 12502s out1 = array([[[ 7.16102434e+11, 7.16102434e+11, -6.22008142e-01, 12502s 8.16676094e-01, 2.90582142e+00, 1.78484267e+00... [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 12502s 0.00000000e+00, 0.00000000e+00, 0.00000000e+00]]]) 12502s out2 = array([[[7.16102434e+11, 7.16102434e+11, 0.00000000e+00, 0.00000000e+00, 12502s 0.00000000e+00, 0.00000000e+00], 12502s ...], 12502s [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 12502s 0.00000000e+00, 0.00000000e+00]]]) 12502s self = 12502s sz = (10000, 6) 12502s t = [, , , ] 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s self = 12502s 12502s def start(self): 12502s """Start the thread's activity. 12502s 12502s It must be called at most once per thread object. It arranges for the 12502s object's run() method to be invoked in a separate thread of control. 12502s 12502s This method will raise a RuntimeError if called more than once on the 12502s same thread object. 12502s 12502s """ 12502s if not self._initialized: 12502s raise RuntimeError("thread.__init__() not called") 12502s 12502s if self._started.is_set(): 12502s raise RuntimeError("threads can only be started once") 12502s 12502s with _active_limbo_lock: 12502s _limbo[self] = self 12502s try: 12502s > _start_new_thread(self._bootstrap, ()) 12502s E RuntimeError: can't start new thread 12502s 12502s self = 12502s 12502s /usr/lib/python3.12/threading.py:992: RuntimeError 12502s ____________________________ TestThread.test_normal ____________________________ 12502s 12502s self = 12502s 12502s def test_normal(self): 12502s def gen_random(state, out): 12502s out[...] = state.normal(size=10000) 12502s 12502s > self.check_function(gen_random, sz=(10000,)) 12502s 12502s gen_random = .gen_random at 0xc4523290> 12502s self = 12502s 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1929: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1912: in check_function 12502s [x.start() for x in t] 12502s Thread = 12502s function = .gen_random at 0xc4523290> 12502s out1 = array([[-4.72247805e+021, -4.72247803e+021, 1.27319747e-313, ..., 12502s 8.48798316e-314, 1.48539705e-313, 1.0609...36598737e-314, 1.48539705e-313, 6.36598738e-314, ..., 12502s 0.00000000e+000, 4.94065646e-324, 2.12199579e-314]]) 12502s out2 = array([[-3.17235667e+029, -4.72247803e+021, 1.69759663e-313, ..., 12502s 2.75859453e-313, 8.48798317e-314, 2.1219...75859453e-313, 1.27319747e-313, 2.33419537e-313, ..., 12502s 6.51825824e-005, 2.98448483e-008, 3.37085044e-004]]) 12502s self = 12502s sz = (10000,) 12502s t = [, , , ] 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s self = 12502s 12502s def start(self): 12502s """Start the thread's activity. 12502s 12502s It must be called at most once per thread object. It arranges for the 12502s object's run() method to be invoked in a separate thread of control. 12502s 12502s This method will raise a RuntimeError if called more than once on the 12502s same thread object. 12502s 12502s """ 12502s if not self._initialized: 12502s raise RuntimeError("thread.__init__() not called") 12502s 12502s if self._started.is_set(): 12502s raise RuntimeError("threads can only be started once") 12502s 12502s with _active_limbo_lock: 12502s _limbo[self] = self 12502s try: 12502s > _start_new_thread(self._bootstrap, ()) 12502s E RuntimeError: can't start new thread 12502s 12502s self = 12502s 12502s /usr/lib/python3.12/threading.py:992: RuntimeError 12502s _____________________________ TestThread.test_exp ______________________________ 12502s 12502s self = 12502s 12502s def test_exp(self): 12502s def gen_random(state, out): 12502s out[...] = state.exponential(scale=np.ones((100, 1000))) 12502s 12502s > self.check_function(gen_random, sz=(100, 1000)) 12502s 12502s gen_random = .gen_random at 0xc46f9878> 12502s self = 12502s 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1935: 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1912: in check_function 12502s [x.start() for x in t] 12502s Thread = 12502s function = .gen_random at 0xc46f9878> 12502s out1 = array([[[ 1.20064633e-15, 1.20064633e-15, 8.39005564e-01, ..., 12502s 2.61123001e+00, 1.62678072e+00, -2.9099626...[ 1.38818867e+00, 9.36725317e-01, -2.14075818e+00, ..., 12502s 1.29133336e+00, 3.02561398e+00, -2.37134271e+00]]]) 12502s out2 = array([[[-5.74579807e+267, 0.00000000e+000, -2.26520104e+000, ..., 12502s -2.14701974e+000, -7.75839719e-002, 1.26...175314e+000, -5.00629052e-001, -3.10023598e+000, ..., 12502s 9.67742619e-001, -2.71145358e+000, 2.56708720e+000]]]) 12502s self = 12502s sz = (100, 1000) 12502s t = [, , , ] 12502s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12502s 12502s self = 12502s 12502s def start(self): 12502s """Start the thread's activity. 12502s 12502s It must be called at most once per thread object. It arranges for the 12502s object's run() method to be invoked in a separate thread of control. 12502s 12502s This method will raise a RuntimeError if called more than once on the 12502s same thread object. 12502s 12502s """ 12502s if not self._initialized: 12502s raise RuntimeError("thread.__init__() not called") 12502s 12502s if self._started.is_set(): 12502s raise RuntimeError("threads can only be started once") 12502s 12502s with _active_limbo_lock: 12502s _limbo[self] = self 12502s try: 12502s > _start_new_thread(self._bootstrap, ()) 12502s E RuntimeError: can't start new thread 12502s 12502s self = 12502s 12502s /usr/lib/python3.12/threading.py:992: RuntimeError 12502s _________________________ TestThread.test_multinomial __________________________ 12502s 12502s self = 12502s 12503s def test_multinomial(self): 12503s def gen_random(state, out): 12503s out[...] = state.multinomial(10, [1 / 6.] * 6, size=10000) 12503s 12503s > self.check_function(gen_random, sz=(10000, 6)) 12503s 12503s gen_random = .gen_random at 0xc4519978> 12503s self = 12503s 12503s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1941: 12503s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12503s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1912: in check_function 12503s [x.start() for x in t] 12503s Thread = 12503s function = .gen_random at 0xc4519978> 12503s out1 = array([[[ 7.16102434e+11, 7.16102434e+11, 8.39005564e-01, 12503s 1.68867393e+00, -1.27292806e+00, -4.27334976e-01... [ 2.26916781e+00, 1.77821589e+00, -3.14037119e+00, 12503s -1.58843649e+00, -2.54999449e+00, -2.76415385e+00]]]) 12503s out2 = array([[[ 7.16102434e+11, 7.16102434e+11, -2.93280788e+00, 12503s -1.83734627e-01, -6.84612567e-01, -6.56918108e-01... [ 1.68545252e+00, -1.94819402e+00, -1.17099355e+00, 12503s 2.01120079e+00, -7.27195403e-01, 1.65788208e+00]]]) 12503s self = 12503s sz = (10000, 6) 12503s t = [, , , ] 12503s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12503s 12503s self = 12503s 12503s def start(self): 12503s """Start the thread's activity. 12503s 12503s It must be called at most once per thread object. It arranges for the 12503s object's run() method to be invoked in a separate thread of control. 12503s 12503s This method will raise a RuntimeError if called more than once on the 12503s same thread object. 12503s 12503s """ 12503s if not self._initialized: 12503s raise RuntimeError("thread.__init__() not called") 12503s 12503s if self._started.is_set(): 12503s raise RuntimeError("threads can only be started once") 12503s 12503s with _active_limbo_lock: 12503s _limbo[self] = self 12503s try: 12503s > _start_new_thread(self._bootstrap, ()) 12503s E RuntimeError: can't start new thread 12503s 12503s self = 12503s 12503s /usr/lib/python3.12/threading.py:992: RuntimeError 12503s =============================== warnings summary =============================== 12503s ../../../usr/lib/python3/dist-packages/numpy/conftest.py:33 12503s /usr/lib/python3/dist-packages/numpy/conftest.py:33: HypothesisDeprecationWarning: `Healthcheck.all()` is deprecated; use `list(HealthCheck)` instead. 12503s The `hypothesis codemod` command-line tool can automatically refactor your code to fix this warning. 12503s suppress_health_check=hypothesis.HealthCheck.all(), 12503s 12503s ../../../usr/lib/python3/dist-packages/setuptools/_distutils/msvccompiler.py:66 12503s /usr/lib/python3/dist-packages/setuptools/_distutils/msvccompiler.py:66: DeprecationWarning: msvccompiler is deprecated and slated to be removed in the future. Please discontinue use or file an issue with pypa/distutils describing your use case. 12503s warnings.warn( 12503s 12503s ../../../usr/lib/python3/dist-packages/_pytest/mark/structures.py:357 12503s ../../../usr/lib/python3/dist-packages/_pytest/mark/structures.py:357 12503s /usr/lib/python3/dist-packages/_pytest/mark/structures.py:357: PytestRemovedIn9Warning: Marks applied to fixtures have no effect 12503s See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function 12503s store_mark(func, self.mark) 12503s 12503s core/tests/test_mem_policy.py::test_set_policy 12503s /usr/lib/python3/dist-packages/setuptools/sandbox.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html 12503s import pkg_resources 12503s 12503s core/tests/test_numeric.py::TestNonarrayArgs::test_dunder_round_edgecases[2147483647--1] 12503s /usr/lib/python3/dist-packages/numpy/core/tests/test_numeric.py:198: RuntimeWarning: invalid value encountered in cast 12503s assert_equal(round(val, ndigits), round(np.int32(val), ndigits)) 12503s 12503s distutils/tests/test_fcompiler_gnu.py: 10 warnings 12503s /usr/lib/python3/dist-packages/numpy/distutils/fcompiler/gnu.py:276: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 12503s if LooseVersion(v) >= "4": 12503s 12503s distutils/tests/test_fcompiler_gnu.py: 10 warnings 12503s /usr/lib/python3/dist-packages/setuptools/_distutils/version.py:345: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 12503s other = LooseVersion(other) 12503s 12503s f2py/tests/test_f2py2e.py::test_debugcapi_bld 12503s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 12503s !! 12503s 12503s ******************************************************************************** 12503s Please avoid running ``setup.py`` directly. 12503s Instead, use pypa/build, pypa/installer or other 12503s standards-based tools. 12503s 12503s See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 12503s ******************************************************************************** 12503s 12503s !! 12503s self.initialize_options() 12503s 12503s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 12503s =========================== short test summary info ============================ 12503s FAILED core/tests/test_cpu_features.py::Test_ARM_Features::test_features - As... 12503s FAILED core/tests/test_datetime.py::TestDateTime::test_datetime_as_string_timezone 12503s FAILED core/tests/test_deprecations.py::TestDatetime64Timezone::test_datetime 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[ones-1-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[ones-1-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[ones-1-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[ones-1-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[zeros-0-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[zeros-0-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[zeros-0-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[zeros-0-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_item_setting[] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_item_setting[] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_item_setting[] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_item_setting[] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape0-index0-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape0-index0-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape0-index0-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape0-index0-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape1-index1-4-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape1-index1-4-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape1-index1-4-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape1-index1-4-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape2-index2-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape2-index2-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape2-index2-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape2-index2-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape3-index3-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape3-index3-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape3-index3-2-] 12503s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape3-index3-2-] 12503s FAILED core/tests/test_regression.py::TestRegression::test_structured_arrays_with_objects2 12503s FAILED core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array 12503s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data16-escape16-f-sqrt] 12503s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data17-escape17-f-sqrt] 12503s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data18-escape18-f-sqrt] 12503s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data19-escape19-f-sqrt] 12503s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data20-escape20-f-sqrt] 12503s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data21-escape21-f-sqrt] 12503s FAILED lib/tests/test_format.py::test_huge_header[r] - MemoryError 12503s FAILED lib/tests/test_format.py::test_huge_header[None] - Failed: DID NOT WAR... 12503s FAILED lib/tests/test_format.py::test_huge_header_npz - Failed: DID NOT WARN.... 12503s FAILED random/tests/test_generator_mt19937.py::TestThread::test_normal - Runt... 12503s FAILED random/tests/test_generator_mt19937.py::TestThread::test_exp - Runtime... 12503s FAILED random/tests/test_generator_mt19937.py::TestThread::test_multinomial 12503s FAILED random/tests/test_random.py::TestThread::test_normal - RuntimeError: c... 12503s FAILED random/tests/test_random.py::TestThread::test_exp - RuntimeError: can'... 12503s FAILED random/tests/test_random.py::TestThread::test_multinomial - RuntimeErr... 12503s FAILED random/tests/test_randomstate.py::TestThread::test_normal - RuntimeErr... 12503s FAILED random/tests/test_randomstate.py::TestThread::test_exp - RuntimeError:... 12503s FAILED random/tests/test_randomstate.py::TestThread::test_multinomial - Runti... 12503s ERROR core/tests/test_mem_policy.py::test_set_policy - RuntimeError: could no... 12503s ERROR core/tests/test_mem_policy.py::test_default_policy_singleton - RuntimeE... 12503s ERROR core/tests/test_mem_policy.py::test_policy_propagation - RuntimeError: ... 12503s ERROR core/tests/test_mem_policy.py::test_context_locality - RuntimeError: co... 12503s ERROR core/tests/test_mem_policy.py::test_thread_locality - RuntimeError: cou... 12503s ERROR core/tests/test_mem_policy.py::test_switch_owner[0] - RuntimeError: cou... 12503s ERROR core/tests/test_mem_policy.py::test_switch_owner[1] - RuntimeError: cou... 12503s ERROR core/tests/test_mem_policy.py::test_switch_owner[None] - RuntimeError: ... 12503s ERROR core/tests/test_mem_policy.py::test_owner_is_base - RuntimeError: could... 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestIntent::test_in_out - RuntimeE... 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[BOOL] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[BYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[UBYTE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[SHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[USHORT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[INT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[UINT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[LONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[ULONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[LONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[ULONGLONG] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[FLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[DOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[CFLOAT] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[STRING1] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[STRING5] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[CHARACTER] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[LONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[CDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-2seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-2seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-2seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-2seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-23seq-C-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-23seq-C-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-23seq-F-w] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-23seq-F-ro] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[CLONGDOUBLE] 12503s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[CLONGDOUBLE] 12503s = 51 failed, 25040 passed, 1227 skipped, 1315 deselected, 32 xfailed, 5 xpassed, 27 warnings, 590 errors in 1225.42s (0:20:25) = 12517s === python3.12 === 12518s /usr/lib/python3/dist-packages/numpy/_pytesttester.py:143: DeprecationWarning: 12518s 12518s `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 12518s of the deprecation of `distutils` itself. It will be removed for 12518s Python >= 3.12. For older Python versions it will remain present. 12518s It is recommended to use `setuptools < 60.0` for those Python versions. 12518s For more details, see: 12518s https://numpy.org/devdocs/reference/distutils_status_migration.html 12518s 12518s 12518s from numpy.distutils import cpuinfo 12542s NumPy version 1.24.2 12542s NumPy relaxed strides checking option: True 12542s NumPy CPU features: NEON* NEON_FP16* NEON_VFPV4* ASIMD* ASIMDHP? ASIMDDP? ASIMDFHM? 12542s ============================= test session starts ============================== 12542s platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.4.0 12542s rootdir: /tmp/autopkgtest.b6ixTN/autopkgtest_tmp 12542s plugins: hypothesis-6.98.15 12542s collected 28260 items / 1315 deselected / 26945 selected 12542s 12547s array_api/tests/test_array_object.py ........................ [ 0%] 12547s array_api/tests/test_creation_functions.py .............. [ 0%] 12547s array_api/tests/test_data_type_functions.py .... [ 0%] 12547s array_api/tests/test_elementwise_functions.py .. [ 0%] 12550s array_api/tests/test_set_functions.py .. [ 0%] 12550s array_api/tests/test_sorting_functions.py .... [ 0%] 12550s array_api/tests/test_validation.py ... [ 0%] 12550s compat/tests/test_compat.py . [ 0%] 12550s core/tests/test__exceptions.py ........... [ 0%] 12550s core/tests/test_abc.py ..... [ 0%] 12551s core/tests/test_api.py ................................................. [ 0%] 12552s ............ [ 0%] 12552s core/tests/test_argparse.py ..... [ 0%] 12553s core/tests/test_array_coercion.py ...................................... [ 0%] 12554s .......................x................................................ [ 0%] 12555s ........................................................................ [ 1%] 12555s .s.......... [ 1%] 12555s core/tests/test_arraymethod.py ........................................s [ 1%] 12555s [ 1%] 12557s core/tests/test_arrayprint.py ..x....................................... [ 1%] 12557s .... [ 1%] 12558s core/tests/test_casting_floatingpoint_errors.py ........................ [ 1%] 12559s ........................................................................ [ 1%] 12560s ........................................................................ [ 2%] 12560s .............. [ 2%] 12560s core/tests/test_casting_unittests.py ................................... [ 2%] 12561s ........................................................................ [ 2%] 12563s ........................................................................ [ 2%] 12563s ........................................................................ [ 3%] 12564s .................................... [ 3%] 12564s core/tests/test_conversion_utils.py ........................... [ 3%] 12564s core/tests/test_cpu_dispatcher.py . [ 3%] 12564s core/tests/test_cpu_features.py sssF [ 3%] 12565s core/tests/test_custom_dtypes.py ............................. [ 3%] 12565s core/tests/test_cython.py ssssss [ 3%] 12565s core/tests/test_datetime.py ............................................ [ 3%] 12566s ........................................................................ [ 3%] 12568s ...........F............................................................ [ 4%] 12570s ...........................................x..........x..x..........x... [ 4%] 12570s [ 4%] 12571s core/tests/test_defchararray.py ........................................ [ 4%] 12572s ........................................... [ 4%] 12573s core/tests/test_deprecations.py .....F.................................. [ 4%] 12574s .................ssssssss............................................... [ 5%] 12575s ................................ [ 5%] 12575s core/tests/test_dlpack.py .............................................. [ 5%] 12575s ............ [ 5%] 12576s core/tests/test_dtype.py ............................................... [ 5%] 12596s ............................................ssssFFFFFFFFFFFFFFFFFFFFFFFF [ 6%] 12604s FFFF.................................................................... [ 6%] 12605s ........................................................................ [ 6%] 12605s ........................................................................ [ 6%] 12606s ........................................................................ [ 7%] 12606s ........................................................................ [ 7%] 12607s ........................................................................ [ 7%] 12607s ........................................................................ [ 7%] 12607s ........................................................................ [ 8%] 12608s ........................................................................ [ 8%] 12609s ........................................................................ [ 8%] 12609s ........................................................................ [ 8%] 12610s ........................................................................ [ 9%] 12610s ..............................s [ 9%] 12617s core/tests/test_einsum.py .............................................. [ 9%] 12617s .................. [ 9%] 12617s core/tests/test_errstate.py .... [ 9%] 12621s core/tests/test_extint128.py ............ [ 9%] 12622s core/tests/test_function_base.py .............................. [ 9%] 12622s core/tests/test_getlimits.py .............. [ 9%] 12623s core/tests/test_half.py ..................................... [ 9%] 12623s core/tests/test_hashtable.py ......... [ 9%] 12623s core/tests/test_indexerrors.py ........ [ 9%] 12624s core/tests/test_indexing.py ............................................ [ 10%] 12626s ....................................... [ 10%] 12626s core/tests/test_item_selection.py ..... [ 10%] 12626s core/tests/test_longdouble.py .s.....................sssssss.... [ 10%] 12626s core/tests/test_machar.py . [ 10%] 12637s core/tests/test_mem_overlap.py .................. [ 10%] 12640s core/tests/test_mem_policy.py EEEEEEEEE [ 10%] 12641s core/tests/test_memmap.py ................... [ 10%] 12642s core/tests/test_multiarray.py .......................................... [ 10%] 12643s ..............................s......................................... [ 11%] 12651s .............xx......................................................... [ 11%] 12652s ........................................................................ [ 11%] 12654s ........................................................................ [ 11%] 12658s .............................s.......................................... [ 12%] 12659s ........................................................................ [ 12%] 12661s ........................................................................ [ 12%] 12664s ........................................................................ [ 12%] 12668s ........................................................................ [ 13%] 12672s ........................................................................ [ 13%] 12675s ..............................................................s.s.s.s.s. [ 13%] 12676s s.....s.s.....s.s.s.s.......s.s.s.s..................................... [ 13%] 12681s ........................................................................ [ 14%] 12682s ........................................................................ [ 14%] 12684s ........................................................................ [ 14%] 12687s ........................................................................ [ 15%] 12697s ........................................................................ [ 15%] 12706s ........................................................................ [ 15%] 12706s ........................ [ 15%] 12706s core/tests/test_nditer.py .............................................. [ 15%] 12706s ........................................................................ [ 16%] 12707s ........................................................................ [ 16%] 12708s ........................................................................ [ 16%] 12710s ........................................................................ [ 16%] 12710s ........................................................................ [ 17%] 12710s ........................................................................ [ 17%] 12710s ........................................................................ [ 17%] 12711s ........................................................................ [ 17%] 12712s ........................................................................ [ 18%] 12715s ........................................................................ [ 18%] 12715s ................................... [ 18%] 12716s core/tests/test_nep50_promotions.py .......................... [ 18%] 12718s core/tests/test_numeric.py ..............................x...x.......... [ 18%] 12718s ........................................................................ [ 19%] 12718s ........................................................................ [ 19%] 12722s ..........................................................xx............ [ 19%] 12726s ........................................................................ [ 19%] 12727s .................... [ 20%] 12727s core/tests/test_numerictypes.py ........................................ [ 20%] 12727s ........................................................................ [ 20%] 12727s ...... [ 20%] 12728s core/tests/test_overrides.py ........................................... [ 20%] 12728s ........................................................................ [ 20%] 12728s ........... [ 20%] 12728s core/tests/test_print.py ...................sss [ 21%] 12729s core/tests/test_protocols.py .. [ 21%] 12729s core/tests/test_records.py ......................................... [ 21%] 12729s core/tests/test_regression.py .......................................... [ 21%] 12729s ........................................................................ [ 21%] 12730s ................................................F....................... [ 21%] 12735s ........................................................................ [ 22%] 12736s ......s..s.............................................................. [ 22%] 12736s ........................................................................ [ 22%] 12736s ............ [ 22%] 12736s core/tests/test_scalar_ctors.py ........................................ [ 22%] 12737s ........................................................................ [ 23%] 12737s .................................................. [ 23%] 12737s core/tests/test_scalar_methods.py ............................s......... [ 23%] 12738s ................................................................sss..... [ 23%] 12738s ...... [ 23%] 12738s core/tests/test_scalarbuffer.py ........................................ [ 23%] 12738s ...................................... [ 24%] 12738s core/tests/test_scalarinherit.py ..... [ 24%] 12743s core/tests/test_scalarmath.py .........................ss............... [ 24%] 12744s ........................................................................ [ 24%] 12744s ........................................................................ [ 24%] 12744s ......................ssssss............................................ [ 25%] 12745s ........................................................................ [ 25%] 12745s ...... [ 25%] 12745s core/tests/test_scalarprint.py .....s [ 25%] 12745s core/tests/test_shape_base.py .......................................... [ 25%] 12745s ........................................................................ [ 25%] 12746s ........................................................................ [ 26%] 12746s ........................ [ 26%] 12746s core/tests/test_simd.py ................................................ [ 26%] 12746s ........................................................................ [ 26%] 12747s ..............................ssssssssssssssssssssssssssssssssssssssssss [ 26%] 12747s .s...................................................................... [ 27%] 12748s ........................................................................ [ 27%] 12748s ........................................................................ [ 27%] 12749s ........................................................................ [ 27%] 12750s ........................................................................ [ 28%] 12751s ......................................ssssssssssssssssssssssssssssssssss [ 28%] 12751s ssssssssss.............................................................. [ 28%] 12752s ........................................................................ [ 28%] 12752s ................ssssssssssssssssssssssssssssssssssssssssss.s............ [ 29%] 12753s ........................................................................ [ 29%] 12753s ........................................................................ [ 29%] 12754s ........................................................................ [ 30%] 12755s ........................................................................ [ 30%] 12756s ........................................................................ [ 30%] 12757s ........................ssssssssssssssssssssssssssssssssssssssssssssssss [ 30%] 12757s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 12757s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 12758s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 12758s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 12758s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 12758s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 12758s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 12759s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 12759s ssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 33%] 12759s core/tests/test_simd_module.py .................................... [ 33%] 12763s core/tests/test_strings.py ............................................. [ 33%] 12770s ........................................................................ [ 33%] 12770s ................. [ 33%] 12770s core/tests/test_ufunc.py ............................................... [ 33%] 12771s ........................................................................ [ 34%] 12773s .........................F.............................................. [ 34%] 12773s ........................................................................ [ 34%] 12774s ........................................................................ [ 35%] 12774s ........................................................................ [ 35%] 12777s ..................................................xxxxxxx............. [ 35%] 12777s core/tests/test_umath.py ............................................... [ 35%] 12778s ........................................................................ [ 36%] 12778s ........................................................................ [ 36%] 12781s ........................................................................ [ 36%] 12785s ........................................................................ [ 36%] 12789s ........................................................................ [ 37%] 12789s ........................................................................ [ 37%] 12790s ........................................................................ [ 37%] 12790s ........................................................................ [ 37%] 12791s ........................................................................ [ 38%] 12792s ........................................................................ [ 38%] 12792s ........................................................................ [ 38%] 12793s ........................................................................ [ 38%] 12793s ........................................................................ [ 39%] 12794s ........................................................................ [ 39%] 12794s ........................................................................ [ 39%] 12794s ........................................................................ [ 40%] 12795s ........................................................................ [ 40%] 12795s ........................................................................ [ 40%] 12796s ........................................................................ [ 40%] 12796s ........................................................................ [ 41%] 12797s ........................................................................ [ 41%] 12797s ........................................................................ [ 41%] 12797s ........................................................................ [ 41%] 12798s ........................................................................ [ 42%] 12798s ........................................................................ [ 42%] 12798s ........................................................................ [ 42%] 12799s ........................................................................ [ 42%] 12799s ........................................................................ [ 43%] 12800s ........................................................................ [ 43%] 12800s ........................................................................ [ 43%] 12801s ........................................................................ [ 44%] 12801s ........................................................................ [ 44%] 12801s ........................................................................ [ 44%] 12802s ............................................................F........... [ 44%] 12802s ........................................................................ [ 45%] 12803s ....................................F................................... [ 45%] 12804s ........................................................................ [ 45%] 12804s ............F........................................................... [ 45%] 12805s ............................................................F........... [ 46%] 12805s ........................................................................ [ 46%] 12806s ....................................F................................... [ 46%] 12807s ........................................................................ [ 46%] 12808s ............F........................................................... [ 47%] 12808s ........................................................................ [ 47%] 12808s ........................................................................ [ 47%] 12809s ........................................................................ [ 48%] 12809s ........................................................................ [ 48%] 12810s ........................................................................ [ 48%] 12810s ........................................................................ [ 48%] 12810s ........................................................................ [ 49%] 12811s ........................................................................ [ 49%] 12812s ........................................................................ [ 49%] 12812s ........................................................................ [ 49%] 12815s ........................................................................ [ 50%] 12819s ........................................................................ [ 50%] 12820s ............s...s....................................................... [ 50%] 12821s ........................................................................ [ 50%] 12822s ........s............................................................... [ 51%] 12823s ........................................................................ [ 51%] 12824s ...........................................ssssssssssssss............... [ 51%] 12825s ........................................................................ [ 52%] 12826s ......................................... [ 52%] 12826s core/tests/test_umath_accuracy.py s..................................... [ 52%] 12826s ... [ 52%] 12826s core/tests/test_umath_complex.py ..s............s....................... [ 52%] 12827s ........................................................................ [ 52%] 12827s ........................................................................ [ 53%] 12827s ........................................................................ [ 53%] 12828s ........................................................................ [ 53%] 12828s ...... [ 53%] 12828s core/tests/test_unicode.py ............................................. [ 53%] 12828s ............................... [ 53%] 12831s distutils/tests/test_ccompiler_opt.py .................................. [ 53%] 12837s ........................................................................ [ 54%] 12841s ........................................................................ [ 54%] 12845s ........................................................................ [ 54%] 12845s ....................... [ 54%] 12846s distutils/tests/test_ccompiler_opt_conf.py . [ 54%] 12847s distutils/tests/test_exec_command.py ... [ 54%] 12847s distutils/tests/test_fcompiler.py . [ 54%] 12847s distutils/tests/test_fcompiler_gnu.py .... [ 54%] 12847s distutils/tests/test_fcompiler_intel.py .. [ 54%] 12847s distutils/tests/test_fcompiler_nagfor.py . [ 54%] 12847s distutils/tests/test_from_template.py . [ 54%] 12847s distutils/tests/test_log.py .... [ 54%] 12847s distutils/tests/test_mingw32ccompiler.py s [ 54%] 12847s distutils/tests/test_misc_util.py ....... [ 54%] 12847s distutils/tests/test_npy_pkg_config.py .... [ 54%] 12849s distutils/tests/test_shell_utils.py sssssssssssssss...............ssssss [ 55%] 12849s sssssssss............... [ 55%] 12849s distutils/tests/test_system_info.py ....ss.. [ 55%] 12851s f2py/tests/test_abstract_interface.py ss [ 55%] 12859s f2py/tests/test_array_from_pyobj.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 12881s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 12916s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 12969s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 13039s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 13133s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 13243s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 13374s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 57%] 13451s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 57%] 13451s f2py/tests/test_block_docstring.py s [ 57%] 13451s f2py/tests/test_callback.py ssssssssssssssss [ 57%] 13451s f2py/tests/test_character.py sssssssssssssssssssssssssssssssssssssssssss [ 57%] 13451s [ 57%] 13451s f2py/tests/test_common.py s [ 57%] 13451s f2py/tests/test_compile_function.py sssssss [ 57%] 13451s f2py/tests/test_crackfortran.py s.....sss....ssssssssssssssssss......s [ 57%] 13451s f2py/tests/test_docs.py sss [ 57%] 13451s f2py/tests/test_f2cmap.py s [ 57%] 13453s f2py/tests/test_f2py2e.py ..x.............x.........x.................. [ 57%] 13453s f2py/tests/test_kind.py s [ 57%] 13453s f2py/tests/test_mixed.py ss [ 57%] 13453s f2py/tests/test_module_doc.py s [ 57%] 13453s f2py/tests/test_quoted_character.py s [ 58%] 13453s f2py/tests/test_regression.py . [ 58%] 13454s f2py/tests/test_return_character.py sssssssssssssss [ 58%] 13454s f2py/tests/test_return_complex.py ssssssssssssssss [ 58%] 13454s f2py/tests/test_return_integer.py ssssssssssssssssssss [ 58%] 13454s f2py/tests/test_return_real.py ssssssssssssssssssss [ 58%] 13454s f2py/tests/test_semicolon_split.py ss [ 58%] 13454s f2py/tests/test_string.py sss [ 58%] 13454s f2py/tests/test_symbolic.py ........... [ 58%] 13454s f2py/tests/test_value_attrspec.py s [ 58%] 13455s fft/tests/test_helper.py ........ [ 58%] 13456s fft/tests/test_pocketfft.py ............................................ [ 58%] 13458s .................................... [ 58%] 13458s lib/tests/test__datasource.py .......................... [ 58%] 13458s lib/tests/test__iotools.py ........................ [ 58%] 13458s lib/tests/test__version.py ........ [ 58%] 13459s lib/tests/test_arraypad.py ............................................. [ 59%] 13459s ..................................x..................................... [ 59%] 13460s ........................................................................ [ 59%] 13460s ........................................................................ [ 59%] 13461s ........................................................................ [ 60%] 13461s ........................................................................ [ 60%] 13461s ........................................................................ [ 60%] 13462s ........................................................................ [ 60%] 13462s ................................... [ 61%] 13462s lib/tests/test_arraysetops.py .......................................... [ 61%] 13462s ................................ [ 61%] 13462s lib/tests/test_arrayterator.py . [ 61%] 13462s lib/tests/test_financial_expired.py . [ 61%] 13516s lib/tests/test_format.py .....................FFF................. [ 61%] 13517s lib/tests/test_function_base.py ........................................ [ 61%] 13519s ........................................................................ [ 61%] 13542s .............................................x.......................... [ 62%] 13543s ........................................................................ [ 62%] 13544s ........................................................................ [ 62%] 13544s ........................................................................ [ 62%] 13545s ........................................................................ [ 63%] 13545s ........................................................................ [ 63%] 13545s ........................................................................ [ 63%] 13546s ........................................................................ [ 64%] 13546s ........................................................................ [ 64%] 13550s ......................................X................................. [ 64%] 13550s ................................... [ 64%] 13554s lib/tests/test_histograms.py ........................................... [ 64%] 13554s .............. [ 64%] 13555s lib/tests/test_index_tricks.py ......................................... [ 65%] 13555s ...... [ 65%] 13558s lib/tests/test_io.py ................................................... [ 65%] 13559s ........................................................................ [ 65%] 13559s ........................................................................ [ 65%] 13570s .... [ 65%] 13571s lib/tests/test_loadtxt.py .............................................. [ 65%] 13571s ........................................................................ [ 66%] 13572s ........................................................................ [ 66%] 13573s .......................x...x.............s.....x........................ [ 66%] 13576s .................. [ 66%] 13576s lib/tests/test_mixins.py ........... [ 66%] 13577s lib/tests/test_nanfunctions.py .....................ss.ss.ss.ss.ss.ss.ss [ 67%] 13577s ..........................................ss.ss.ss.ss.ss.ss.ss.......... [ 67%] 13578s ........................................................................ [ 67%] 13578s ........................................................................ [ 67%] 13579s ........................................................................ [ 68%] 13579s ........................................................................ [ 68%] 13580s ........................................................................ [ 68%] 13581s ........................................................................ [ 68%] 13582s ........................................................................ [ 69%] 13582s ........................................................................ [ 69%] 13583s ........................................................................ [ 69%] 13584s ..............................ss.ss.ss.ss.ss.ss.ss...................... [ 69%] 13585s .....................ss.ss.ss.ss.ss.ss.ss............................... [ 70%] 13586s ........ss.ss.ss.ss.ss.ss.ss............................................ [ 70%] 13590s ........................................................................ [ 70%] 13591s ..ss.ss.ss.ss.ss.ss.ss.............................ss.ss.ss.ss.ss.ss.ss. [ 71%] 13591s ......................... [ 71%] 13593s lib/tests/test_packbits.py ............................................. [ 71%] 13594s ........................................................................ [ 71%] 13595s ........................................................................ [ 71%] 13595s ........................................................................ [ 72%] 13596s ................... [ 72%] 13596s lib/tests/test_polynomial.py ..................................... [ 72%] 13597s lib/tests/test_recfunctions.py ......................................... [ 72%] 13598s .......... [ 72%] 13600s lib/tests/test_regression.py ........................... [ 72%] 13600s lib/tests/test_shape_base.py ..............................s............ [ 72%] 13601s ................................. [ 72%] 13601s lib/tests/test_stride_tricks.py .......................... [ 72%] 13602s lib/tests/test_twodim_base.py ..................................... [ 73%] 13602s lib/tests/test_type_check.py ........................................... [ 73%] 13602s ......... [ 73%] 13602s lib/tests/test_ufunclike.py ...... [ 73%] 13605s lib/tests/test_utils.py ................. [ 73%] 13605s linalg/tests/test_deprecations.py . [ 73%] 13612s linalg/tests/test_linalg.py ............................................ [ 73%] 13622s ..x..................................................................... [ 73%] 13623s ........................................................................ [ 74%] 13625s ........................................................................ [ 74%] 13628s ........................................................................ [ 74%] 13629s ..............................................sx [ 74%] 13629s linalg/tests/test_regression.py ......... [ 74%] 13630s ma/tests/test_core.py .................................................. [ 75%] 13630s ........................................................................ [ 75%] 13631s ........................................................................ [ 75%] 13632s ........................................................................ [ 75%] 13633s ........................................................................ [ 76%] 13634s ........................................................................ [ 76%] 13635s ........................................................................ [ 76%] 13636s ........................................................................ [ 76%] 13637s ........................................................................ [ 77%] 13638s ........................................................................ [ 77%] 13639s ........................................................................ [ 77%] 13640s ........................................................................ [ 77%] 13640s ........................................................................ [ 78%] 13641s ........................................................................ [ 78%] 13642s ........................................................................ [ 78%] 13643s ........................................................................ [ 79%] 13644s ........................................................................ [ 79%] 13645s ........................................................................ [ 79%] 13646s ........................................................................ [ 79%] 13646s ........................................................................ [ 80%] 13647s ........................................................................ [ 80%] 13648s ........................................................................ [ 80%] 13649s ........................................................................ [ 80%] 13650s ........................................................................ [ 81%] 13651s ........................................................................ [ 81%] 13652s ........................................................................ [ 81%] 13653s ........................................................................ [ 81%] 13654s ........................................................................ [ 82%] 13655s ........................................................................ [ 82%] 13656s ........................................................................ [ 82%] 13657s ........................................................................ [ 83%] 13658s ........................................................................ [ 83%] 13659s ........................................................................ [ 83%] 13660s ........................................................................ [ 83%] 13661s ........................................................................ [ 84%] 13662s ........................................................................ [ 84%] 13662s ........................................................................ [ 84%] 13663s ........................................................................ [ 84%] 13664s ........................................................................ [ 85%] 13665s ........................................................................ [ 85%] 13666s ........................................................................ [ 85%] 13666s ........................................................................ [ 86%] 13667s ........................................................................ [ 86%] 13668s ........................................................................ [ 86%] 13668s ........................................................................ [ 86%] 13669s ........................................................................ [ 87%] 13669s ........................................................................ [ 87%] 13670s ........................................................................ [ 87%] 13671s ........................................................................ [ 87%] 13671s ........................................................................ [ 88%] 13673s ........................................................................ [ 88%] 13675s ........................................................................ [ 88%] 13678s ........................................xx.............................. [ 88%] 13679s ........................................................................ [ 89%] 13679s ........................................................................ [ 89%] 13679s ........................................................................ [ 89%] 13680s ......................................................... [ 89%] 13680s ma/tests/test_deprecations.py ..... [ 89%] 13680s ma/tests/test_extras.py ................................................ [ 90%] 13682s ................................................... [ 90%] 13682s ma/tests/test_mrecords.py ........................ [ 90%] 13683s ma/tests/test_old_ma.py ......................................... [ 90%] 13683s ma/tests/test_regression.py ............. [ 90%] 13683s ma/tests/test_subclassing.py ............... [ 90%] 13683s matrixlib/tests/test_defmatrix.py ...................................... [ 90%] 13683s ..... [ 90%] 13683s matrixlib/tests/test_interaction.py ....................... [ 90%] 13683s matrixlib/tests/test_masked_matrix.py .............. [ 90%] 13684s matrixlib/tests/test_matrix_linalg.py .................................. [ 91%] 13685s .................................................................... [ 91%] 13685s matrixlib/tests/test_multiarray.py .. [ 91%] 13685s matrixlib/tests/test_numeric.py .. [ 91%] 13685s matrixlib/tests/test_regression.py .... [ 91%] 13686s polynomial/tests/test_chebyshev.py ..................................... [ 91%] 13686s .... [ 91%] 13687s polynomial/tests/test_classes.py ....................................... [ 91%] 13687s ........................................................................ [ 91%] 13689s ........................................................................ [ 92%] 13690s ...................................................... [ 92%] 13690s polynomial/tests/test_hermite.py .................................. [ 92%] 13691s polynomial/tests/test_hermite_e.py .................................. [ 92%] 13692s polynomial/tests/test_laguerre.py .................................. [ 92%] 13693s polynomial/tests/test_legendre.py ...................................... [ 92%] 13693s [ 92%] 13693s polynomial/tests/test_polynomial.py ................................... [ 93%] 13693s polynomial/tests/test_polyutils.py ......... [ 93%] 13694s polynomial/tests/test_printing.py ...................................... [ 93%] 13694s ..................................... [ 93%] 13694s polynomial/tests/test_symbol.py ........................................ [ 93%] 13694s ............ [ 93%] 13695s random/tests/test_direct.py ..............s................s............ [ 93%] 13695s .....s.................s.................s.... [ 93%] 13695s random/tests/test_extending.py ss [ 93%] 13696s random/tests/test_generator_mt19937.py ................................. [ 94%] 13698s ........................................................................ [ 94%] 13700s ........................................................................ [ 94%] 13701s ........................................................................ [ 94%] 13705s ...........................FFF........................ [ 95%] 13710s random/tests/test_generator_mt19937_regressions.py ............ [ 95%] 13710s random/tests/test_random.py ............................................ [ 95%] 13711s ........................................................................ [ 95%] 13713s ..................FFF.... [ 95%] 13713s random/tests/test_randomstate.py .................................s..... [ 95%] 13714s ........................................................................ [ 96%] 13721s .......................................FFF.......................... [ 96%] 13726s random/tests/test_randomstate_regression.py ..............s.... [ 96%] 13730s random/tests/test_regression.py ........... [ 96%] 13730s random/tests/test_seed_sequence.py .. [ 96%] 13731s random/tests/test_smoke.py .s........................................... [ 96%] 13731s ........................................................................ [ 96%] 13732s ........................................................................ [ 97%] 13733s ........................................................................ [ 97%] 13734s ...............................ss....................................... [ 97%] 13734s ........................................................................ [ 97%] 13735s ........................................................................ [ 98%] 13736s ....................................................................... [ 98%] 13737s testing/tests/test_utils.py ............................................ [ 98%] 13738s ..................................................sss................... [ 98%] 13761s ......................... [ 98%] 13761s tests/test__all__.py . [ 98%] 13768s tests/test_ctypeslib.py ss..................... [ 99%] 13769s tests/test_lazyloading.py . [ 99%] 13769s tests/test_matlib.py ........ [ 99%] 13769s tests/test_numpy_version.py .. [ 99%] 13770s tests/test_public_api.py ..........X [ 99%] 13770s tests/test_reloading.py ..s [ 99%] 13773s tests/test_scripts.py XXX. [ 99%] 13773s typing/tests/test_generic_alias.py ..................................... [ 99%] 13774s ........................................................................ [ 99%] 13774s ........................................................................ [ 99%] 13775s ....................... [ 99%] 13775s typing/tests/test_isfile.py . [ 99%] 13777s typing/tests/test_runtime.py .....................x... [100%] 13777s 13777s ==================================== ERRORS ==================================== 13777s ______________________ ERROR at setup of test_set_policy _______________________ 13777s 13777s modname = 'mem_policy' 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s 13777s def build_and_import_extension( 13777s modname, functions, *, prologue="", build_dir=None, 13777s include_dirs=[], more_init=""): 13777s """ 13777s Build and imports a c-extension module `modname` from a list of function 13777s fragments `functions`. 13777s 13777s 13777s Parameters 13777s ---------- 13777s functions : list of fragments 13777s Each fragment is a sequence of func_name, calling convention, snippet. 13777s prologue : string 13777s Code to precede the rest, usually extra ``#include`` or ``#define`` 13777s macros. 13777s build_dir : pathlib.Path 13777s Where to build the module, usually a temporary directory 13777s include_dirs : list 13777s Extra directories to find include files when compiling 13777s more_init : string 13777s Code to appear in the module PyMODINIT_FUNC 13777s 13777s Returns 13777s ------- 13777s out: module 13777s The module will have been loaded and is ready for use 13777s 13777s Examples 13777s -------- 13777s >>> functions = [("test_bytes", "METH_O", \"\"\" 13777s if ( !PyBytesCheck(args)) { 13777s Py_RETURN_FALSE; 13777s } 13777s Py_RETURN_TRUE; 13777s \"\"\")] 13777s >>> mod = build_and_import_extension("testme", functions) 13777s >>> assert not mod.test_bytes(u'abc') 13777s >>> assert mod.test_bytes(b'abc') 13777s """ 13777s from distutils.errors import CompileError 13777s 13777s body = prologue + _make_methods(functions, modname) 13777s init = """PyObject *mod = PyModule_Create(&moduledef); 13777s """ 13777s if not build_dir: 13777s build_dir = pathlib.Path('.') 13777s if more_init: 13777s init += """#define INITERROR return NULL 13777s """ 13777s init += more_init 13777s init += "\nreturn mod;" 13777s source_string = _make_source(modname, init, body) 13777s try: 13777s > mod_so = compile_extension_module( 13777s modname, build_dir, include_dirs, source_string) 13777s 13777s CompileError = 13777s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13777s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_set_policy0') 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13777s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13777s modname = 'mem_policy' 13777s more_init = 'import_array();' 13777s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13777s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13777s libraries = [] 13777s library_dirs = [] 13777s link_extra = None 13777s new_compiler = 13777s objects = [] 13777s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13777s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_set_policy0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13777s m = lambda self, *args, **kw: func(self, *args, **kw) 13777s args = (['source.c'],) 13777s func = 13777s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13777s self = 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13777s single_compile(o) 13777s FCompiler = 13777s build = {'source.o': ('source.c', '.c')} 13777s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13777s debug = 0 13777s depends = None 13777s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13777s extra_postargs = [] 13777s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13777s has_f90_header = 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13777s is_f_file = 13777s jobs = 8 13777s macros = [] 13777s o = ('source.o', ('source.c', '.c')) 13777s objects = ['source.o'] 13777s output_dir = None 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s self = 13777s single_compile = .single_compile at 0xdbdcfe38> 13777s sources = ['source.c'] 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13777s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13777s args = ('source.o', ('source.c', '.c')) 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s ext = '.c' 13777s extra_postargs = [] 13777s obj = 'source.o' 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s self = 13777s src = 'source.c' 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13777s m = lambda self, *args, **kw: func(self, *args, **kw) 13777s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13777s func = 13777s kw = {} 13777s self = 13777s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13777s 13777s self = 13777s obj = 'source.o', src = 'source.c', ext = '.c' 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s extra_postargs = [] 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s 13777s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13777s """Compile a single source files with a Unix-style compiler.""" 13777s # HP ad-hoc fix, see ticket 1383 13777s ccomp = self.compiler_so 13777s if ccomp[0] == 'aCC': 13777s # remove flags that will trigger ANSI-C mode for aCC 13777s if '-Ae' in ccomp: 13777s ccomp.remove('-Ae') 13777s if '-Aa' in ccomp: 13777s ccomp.remove('-Aa') 13777s # add flags for (almost) sane C++ handling 13777s ccomp += ['-AA'] 13777s self.compiler_so = ccomp 13777s # ensure OPT environment variable is read 13777s if 'OPT' in os.environ: 13777s # XXX who uses this? 13777s from sysconfig import get_config_vars 13777s opt = shlex.join(shlex.split(os.environ['OPT'])) 13777s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13777s ccomp_s = shlex.join(self.compiler_so) 13777s if opt not in ccomp_s: 13777s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13777s self.compiler_so = shlex.split(ccomp_s) 13777s llink_s = shlex.join(self.linker_so) 13777s if opt not in llink_s: 13777s self.linker_so = self.linker_so + shlex.split(opt) 13777s 13777s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13777s 13777s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13777s # all headers needed by a c file as a side effect of compilation (-MMD) 13777s if getattr(self, '_auto_depends', False): 13777s deps = ['-MMD', '-MF', obj + '.d'] 13777s else: 13777s deps = [] 13777s 13777s try: 13777s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13777s extra_postargs, display = display) 13777s except DistutilsExecError as e: 13777s msg = str(e) 13777s > raise CompileError(msg) from None 13777s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13777s 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13777s deps = ['-MMD', '-MF', 'source.o.d'] 13777s display = 'arm-linux-gnueabihf-gcc: source.c' 13777s ext = '.c' 13777s extra_postargs = [] 13777s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13777s obj = 'source.o' 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s self = 13777s src = 'source.c' 13777s 13777s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13777s 13777s The above exception was the direct cause of the following exception: 13777s 13777s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_set_policy0') 13777s 13777s @pytest.fixture 13777s def get_module(tmp_path): 13777s """ Add a memory policy that returns a false pointer 64 bytes into the 13777s actual allocation, and fill the prefix with some text. Then check at each 13777s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13777s free/calloc go via the functions here. 13777s """ 13777s if sys.platform.startswith('cygwin'): 13777s pytest.skip('link fails on cygwin') 13777s if IS_WASM: 13777s pytest.skip("Can't build module inside Wasm") 13777s functions = [ 13777s ("get_default_policy", "METH_NOARGS", """ 13777s Py_INCREF(PyDataMem_DefaultHandler); 13777s return PyDataMem_DefaultHandler; 13777s """), 13777s ("set_secret_data_policy", "METH_NOARGS", """ 13777s PyObject *secret_data = 13777s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13777s if (secret_data == NULL) { 13777s return NULL; 13777s } 13777s PyObject *old = PyDataMem_SetHandler(secret_data); 13777s Py_DECREF(secret_data); 13777s return old; 13777s """), 13777s ("set_old_policy", "METH_O", """ 13777s PyObject *old; 13777s if (args != NULL && PyCapsule_CheckExact(args)) { 13777s old = PyDataMem_SetHandler(args); 13777s } 13777s else { 13777s old = PyDataMem_SetHandler(NULL); 13777s } 13777s return old; 13777s """), 13777s ("get_array", "METH_NOARGS", """ 13777s char *buf = (char *)malloc(20); 13777s npy_intp dims[1]; 13777s dims[0] = 20; 13777s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13777s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13777s buf, NPY_ARRAY_WRITEABLE, NULL); 13777s """), 13777s ("set_own", "METH_O", """ 13777s if (!PyArray_Check(args)) { 13777s PyErr_SetString(PyExc_ValueError, 13777s "need an ndarray"); 13777s return NULL; 13777s } 13777s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13777s // Maybe try this too? 13777s // PyArray_BASE(PyArrayObject *)args) = NULL; 13777s Py_RETURN_NONE; 13777s """), 13777s ("get_array_with_base", "METH_NOARGS", """ 13777s char *buf = (char *)malloc(20); 13777s npy_intp dims[1]; 13777s dims[0] = 20; 13777s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13777s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13777s NULL, buf, 13777s NPY_ARRAY_WRITEABLE, NULL); 13777s if (arr == NULL) return NULL; 13777s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13777s (PyCapsule_Destructor)&warn_on_free); 13777s if (obj == NULL) { 13777s Py_DECREF(arr); 13777s return NULL; 13777s } 13777s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13777s Py_DECREF(arr); 13777s Py_DECREF(obj); 13777s return NULL; 13777s } 13777s return arr; 13777s 13777s """), 13777s ] 13777s prologue = ''' 13777s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13777s #include 13777s /* 13777s * This struct allows the dynamic configuration of the allocator funcs 13777s * of the `secret_data_allocator`. It is provided here for 13777s * demonstration purposes, as a valid `ctx` use-case scenario. 13777s */ 13777s typedef struct { 13777s void *(*malloc)(size_t); 13777s void *(*calloc)(size_t, size_t); 13777s void *(*realloc)(void *, size_t); 13777s void (*free)(void *); 13777s } SecretDataAllocatorFuncs; 13777s 13777s NPY_NO_EXPORT void * 13777s shift_alloc(void *ctx, size_t sz) { 13777s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13777s char *real = (char *)funcs->malloc(sz + 64); 13777s if (real == NULL) { 13777s return NULL; 13777s } 13777s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13777s return (void *)(real + 64); 13777s } 13777s NPY_NO_EXPORT void * 13777s shift_zero(void *ctx, size_t sz, size_t cnt) { 13777s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13777s char *real = (char *)funcs->calloc(sz + 64, cnt); 13777s if (real == NULL) { 13777s return NULL; 13777s } 13777s snprintf(real, 64, "originally allocated %ld via zero", 13777s (unsigned long)sz); 13777s return (void *)(real + 64); 13777s } 13777s NPY_NO_EXPORT void 13777s shift_free(void *ctx, void * p, npy_uintp sz) { 13777s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13777s if (p == NULL) { 13777s return ; 13777s } 13777s char *real = (char *)p - 64; 13777s if (strncmp(real, "originally allocated", 20) != 0) { 13777s fprintf(stdout, "uh-oh, unmatched shift_free, " 13777s "no appropriate prefix\\n"); 13777s /* Make C runtime crash by calling free on the wrong address */ 13777s funcs->free((char *)p + 10); 13777s /* funcs->free(real); */ 13777s } 13777s else { 13777s npy_uintp i = (npy_uintp)atoi(real +20); 13777s if (i != sz) { 13777s fprintf(stderr, "uh-oh, unmatched shift_free" 13777s "(ptr, %ld) but allocated %ld\\n", sz, i); 13777s /* This happens in some places, only print */ 13777s funcs->free(real); 13777s } 13777s else { 13777s funcs->free(real); 13777s } 13777s } 13777s } 13777s NPY_NO_EXPORT void * 13777s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13777s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13777s if (p != NULL) { 13777s char *real = (char *)p - 64; 13777s if (strncmp(real, "originally allocated", 20) != 0) { 13777s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13777s return realloc(p, sz); 13777s } 13777s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13777s } 13777s else { 13777s char *real = (char *)funcs->realloc(p, sz + 64); 13777s if (real == NULL) { 13777s return NULL; 13777s } 13777s snprintf(real, 64, "originally allocated " 13777s "%ld via realloc", (unsigned long)sz); 13777s return (void *)(real + 64); 13777s } 13777s } 13777s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13777s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13777s malloc, 13777s calloc, 13777s realloc, 13777s free 13777s }; 13777s static PyDataMem_Handler secret_data_handler = { 13777s "secret_data_allocator", 13777s 1, 13777s { 13777s &secret_data_handler_ctx, /* ctx */ 13777s shift_alloc, /* malloc */ 13777s shift_zero, /* calloc */ 13777s shift_realloc, /* realloc */ 13777s shift_free /* free */ 13777s } 13777s }; 13777s void warn_on_free(void *capsule) { 13777s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13777s void * obj = PyCapsule_GetPointer(capsule, 13777s PyCapsule_GetName(capsule)); 13777s free(obj); 13777s }; 13777s ''' 13777s more_init = "import_array();" 13777s try: 13777s import mem_policy 13777s return mem_policy 13777s except ImportError: 13777s pass 13777s # if it does not exist, build and load it 13777s > return extbuild.build_and_import_extension('mem_policy', 13777s functions, 13777s prologue=prologue, 13777s include_dirs=[np.get_include()], 13777s build_dir=tmp_path, 13777s more_init=more_init) 13777s 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s more_init = 'import_array();' 13777s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13777s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_set_policy0') 13777s 13777s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13777s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13777s 13777s modname = 'mem_policy' 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s 13777s def build_and_import_extension( 13777s modname, functions, *, prologue="", build_dir=None, 13777s include_dirs=[], more_init=""): 13777s """ 13777s Build and imports a c-extension module `modname` from a list of function 13777s fragments `functions`. 13777s 13777s 13777s Parameters 13777s ---------- 13777s functions : list of fragments 13777s Each fragment is a sequence of func_name, calling convention, snippet. 13777s prologue : string 13777s Code to precede the rest, usually extra ``#include`` or ``#define`` 13777s macros. 13777s build_dir : pathlib.Path 13777s Where to build the module, usually a temporary directory 13777s include_dirs : list 13777s Extra directories to find include files when compiling 13777s more_init : string 13777s Code to appear in the module PyMODINIT_FUNC 13777s 13777s Returns 13777s ------- 13777s out: module 13777s The module will have been loaded and is ready for use 13777s 13777s Examples 13777s -------- 13777s >>> functions = [("test_bytes", "METH_O", \"\"\" 13777s if ( !PyBytesCheck(args)) { 13777s Py_RETURN_FALSE; 13777s } 13777s Py_RETURN_TRUE; 13777s \"\"\")] 13777s >>> mod = build_and_import_extension("testme", functions) 13777s >>> assert not mod.test_bytes(u'abc') 13777s >>> assert mod.test_bytes(b'abc') 13777s """ 13777s from distutils.errors import CompileError 13777s 13777s body = prologue + _make_methods(functions, modname) 13777s init = """PyObject *mod = PyModule_Create(&moduledef); 13777s """ 13777s if not build_dir: 13777s build_dir = pathlib.Path('.') 13777s if more_init: 13777s init += """#define INITERROR return NULL 13777s """ 13777s init += more_init 13777s init += "\nreturn mod;" 13777s source_string = _make_source(modname, init, body) 13777s try: 13777s mod_so = compile_extension_module( 13777s modname, build_dir, include_dirs, source_string) 13777s except CompileError as e: 13777s # shorten the exception chain 13777s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13777s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_set_policy0: 13777s 13777s CompileError = 13777s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13777s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_set_policy0') 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13777s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13777s modname = 'mem_policy' 13777s more_init = 'import_array();' 13777s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13777s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13777s | ^~~~~~~~~~ 13777s compilation terminated. 13777s _______________ ERROR at setup of test_default_policy_singleton ________________ 13777s 13777s modname = 'mem_policy' 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s 13777s def build_and_import_extension( 13777s modname, functions, *, prologue="", build_dir=None, 13777s include_dirs=[], more_init=""): 13777s """ 13777s Build and imports a c-extension module `modname` from a list of function 13777s fragments `functions`. 13777s 13777s 13777s Parameters 13777s ---------- 13777s functions : list of fragments 13777s Each fragment is a sequence of func_name, calling convention, snippet. 13777s prologue : string 13777s Code to precede the rest, usually extra ``#include`` or ``#define`` 13777s macros. 13777s build_dir : pathlib.Path 13777s Where to build the module, usually a temporary directory 13777s include_dirs : list 13777s Extra directories to find include files when compiling 13777s more_init : string 13777s Code to appear in the module PyMODINIT_FUNC 13777s 13777s Returns 13777s ------- 13777s out: module 13777s The module will have been loaded and is ready for use 13777s 13777s Examples 13777s -------- 13777s >>> functions = [("test_bytes", "METH_O", \"\"\" 13777s if ( !PyBytesCheck(args)) { 13777s Py_RETURN_FALSE; 13777s } 13777s Py_RETURN_TRUE; 13777s \"\"\")] 13777s >>> mod = build_and_import_extension("testme", functions) 13777s >>> assert not mod.test_bytes(u'abc') 13777s >>> assert mod.test_bytes(b'abc') 13777s """ 13777s from distutils.errors import CompileError 13777s 13777s body = prologue + _make_methods(functions, modname) 13777s init = """PyObject *mod = PyModule_Create(&moduledef); 13777s """ 13777s if not build_dir: 13777s build_dir = pathlib.Path('.') 13777s if more_init: 13777s init += """#define INITERROR return NULL 13777s """ 13777s init += more_init 13777s init += "\nreturn mod;" 13777s source_string = _make_source(modname, init, body) 13777s try: 13777s > mod_so = compile_extension_module( 13777s modname, build_dir, include_dirs, source_string) 13777s 13777s CompileError = 13777s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13777s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_default_policy_singleton0') 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13777s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13777s modname = 'mem_policy' 13777s more_init = 'import_array();' 13777s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13777s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13777s libraries = [] 13777s library_dirs = [] 13777s link_extra = None 13777s new_compiler = 13777s objects = [] 13777s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13777s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_default_policy_singleton0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13777s m = lambda self, *args, **kw: func(self, *args, **kw) 13777s args = (['source.c'],) 13777s func = 13777s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13777s self = 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13777s single_compile(o) 13777s FCompiler = 13777s build = {'source.o': ('source.c', '.c')} 13777s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13777s debug = 0 13777s depends = None 13777s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13777s extra_postargs = [] 13777s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13777s has_f90_header = 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13777s is_f_file = 13777s jobs = 8 13777s macros = [] 13777s o = ('source.o', ('source.c', '.c')) 13777s objects = ['source.o'] 13777s output_dir = None 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s self = 13777s single_compile = .single_compile at 0xdbcb0f78> 13777s sources = ['source.c'] 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13777s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13777s args = ('source.o', ('source.c', '.c')) 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s ext = '.c' 13777s extra_postargs = [] 13777s obj = 'source.o' 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s self = 13777s src = 'source.c' 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13777s m = lambda self, *args, **kw: func(self, *args, **kw) 13777s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13777s func = 13777s kw = {} 13777s self = 13777s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13777s 13777s self = 13777s obj = 'source.o', src = 'source.c', ext = '.c' 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s extra_postargs = [] 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s 13777s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13777s """Compile a single source files with a Unix-style compiler.""" 13777s # HP ad-hoc fix, see ticket 1383 13777s ccomp = self.compiler_so 13777s if ccomp[0] == 'aCC': 13777s # remove flags that will trigger ANSI-C mode for aCC 13777s if '-Ae' in ccomp: 13777s ccomp.remove('-Ae') 13777s if '-Aa' in ccomp: 13777s ccomp.remove('-Aa') 13777s # add flags for (almost) sane C++ handling 13777s ccomp += ['-AA'] 13777s self.compiler_so = ccomp 13777s # ensure OPT environment variable is read 13777s if 'OPT' in os.environ: 13777s # XXX who uses this? 13777s from sysconfig import get_config_vars 13777s opt = shlex.join(shlex.split(os.environ['OPT'])) 13777s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13777s ccomp_s = shlex.join(self.compiler_so) 13777s if opt not in ccomp_s: 13777s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13777s self.compiler_so = shlex.split(ccomp_s) 13777s llink_s = shlex.join(self.linker_so) 13777s if opt not in llink_s: 13777s self.linker_so = self.linker_so + shlex.split(opt) 13777s 13777s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13777s 13777s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13777s # all headers needed by a c file as a side effect of compilation (-MMD) 13777s if getattr(self, '_auto_depends', False): 13777s deps = ['-MMD', '-MF', obj + '.d'] 13777s else: 13777s deps = [] 13777s 13777s try: 13777s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13777s extra_postargs, display = display) 13777s except DistutilsExecError as e: 13777s msg = str(e) 13777s > raise CompileError(msg) from None 13777s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13777s 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13777s deps = ['-MMD', '-MF', 'source.o.d'] 13777s display = 'arm-linux-gnueabihf-gcc: source.c' 13777s ext = '.c' 13777s extra_postargs = [] 13777s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13777s obj = 'source.o' 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s self = 13777s src = 'source.c' 13777s 13777s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13777s 13777s The above exception was the direct cause of the following exception: 13777s 13777s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_default_policy_singleton0') 13777s 13777s @pytest.fixture 13777s def get_module(tmp_path): 13777s """ Add a memory policy that returns a false pointer 64 bytes into the 13777s actual allocation, and fill the prefix with some text. Then check at each 13777s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13777s free/calloc go via the functions here. 13777s """ 13777s if sys.platform.startswith('cygwin'): 13777s pytest.skip('link fails on cygwin') 13777s if IS_WASM: 13777s pytest.skip("Can't build module inside Wasm") 13777s functions = [ 13777s ("get_default_policy", "METH_NOARGS", """ 13777s Py_INCREF(PyDataMem_DefaultHandler); 13777s return PyDataMem_DefaultHandler; 13777s """), 13777s ("set_secret_data_policy", "METH_NOARGS", """ 13777s PyObject *secret_data = 13777s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13777s if (secret_data == NULL) { 13777s return NULL; 13777s } 13777s PyObject *old = PyDataMem_SetHandler(secret_data); 13777s Py_DECREF(secret_data); 13777s return old; 13777s """), 13777s ("set_old_policy", "METH_O", """ 13777s PyObject *old; 13777s if (args != NULL && PyCapsule_CheckExact(args)) { 13777s old = PyDataMem_SetHandler(args); 13777s } 13777s else { 13777s old = PyDataMem_SetHandler(NULL); 13777s } 13777s return old; 13777s """), 13777s ("get_array", "METH_NOARGS", """ 13777s char *buf = (char *)malloc(20); 13777s npy_intp dims[1]; 13777s dims[0] = 20; 13777s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13777s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13777s buf, NPY_ARRAY_WRITEABLE, NULL); 13777s """), 13777s ("set_own", "METH_O", """ 13777s if (!PyArray_Check(args)) { 13777s PyErr_SetString(PyExc_ValueError, 13777s "need an ndarray"); 13777s return NULL; 13777s } 13777s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13777s // Maybe try this too? 13777s // PyArray_BASE(PyArrayObject *)args) = NULL; 13777s Py_RETURN_NONE; 13777s """), 13777s ("get_array_with_base", "METH_NOARGS", """ 13777s char *buf = (char *)malloc(20); 13777s npy_intp dims[1]; 13777s dims[0] = 20; 13777s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13777s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13777s NULL, buf, 13777s NPY_ARRAY_WRITEABLE, NULL); 13777s if (arr == NULL) return NULL; 13777s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13777s (PyCapsule_Destructor)&warn_on_free); 13777s if (obj == NULL) { 13777s Py_DECREF(arr); 13777s return NULL; 13777s } 13777s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13777s Py_DECREF(arr); 13777s Py_DECREF(obj); 13777s return NULL; 13777s } 13777s return arr; 13777s 13777s """), 13777s ] 13777s prologue = ''' 13777s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13777s #include 13777s /* 13777s * This struct allows the dynamic configuration of the allocator funcs 13777s * of the `secret_data_allocator`. It is provided here for 13777s * demonstration purposes, as a valid `ctx` use-case scenario. 13777s */ 13777s typedef struct { 13777s void *(*malloc)(size_t); 13777s void *(*calloc)(size_t, size_t); 13777s void *(*realloc)(void *, size_t); 13777s void (*free)(void *); 13777s } SecretDataAllocatorFuncs; 13777s 13777s NPY_NO_EXPORT void * 13777s shift_alloc(void *ctx, size_t sz) { 13777s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13777s char *real = (char *)funcs->malloc(sz + 64); 13777s if (real == NULL) { 13777s return NULL; 13777s } 13777s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13777s return (void *)(real + 64); 13777s } 13777s NPY_NO_EXPORT void * 13777s shift_zero(void *ctx, size_t sz, size_t cnt) { 13777s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13777s char *real = (char *)funcs->calloc(sz + 64, cnt); 13777s if (real == NULL) { 13777s return NULL; 13777s } 13777s snprintf(real, 64, "originally allocated %ld via zero", 13777s (unsigned long)sz); 13777s return (void *)(real + 64); 13777s } 13777s NPY_NO_EXPORT void 13777s shift_free(void *ctx, void * p, npy_uintp sz) { 13777s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13777s if (p == NULL) { 13777s return ; 13777s } 13777s char *real = (char *)p - 64; 13777s if (strncmp(real, "originally allocated", 20) != 0) { 13777s fprintf(stdout, "uh-oh, unmatched shift_free, " 13777s "no appropriate prefix\\n"); 13777s /* Make C runtime crash by calling free on the wrong address */ 13777s funcs->free((char *)p + 10); 13777s /* funcs->free(real); */ 13777s } 13777s else { 13777s npy_uintp i = (npy_uintp)atoi(real +20); 13777s if (i != sz) { 13777s fprintf(stderr, "uh-oh, unmatched shift_free" 13777s "(ptr, %ld) but allocated %ld\\n", sz, i); 13777s /* This happens in some places, only print */ 13777s funcs->free(real); 13777s } 13777s else { 13777s funcs->free(real); 13777s } 13777s } 13777s } 13777s NPY_NO_EXPORT void * 13777s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13777s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13777s if (p != NULL) { 13777s char *real = (char *)p - 64; 13777s if (strncmp(real, "originally allocated", 20) != 0) { 13777s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13777s return realloc(p, sz); 13777s } 13777s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13777s } 13777s else { 13777s char *real = (char *)funcs->realloc(p, sz + 64); 13777s if (real == NULL) { 13777s return NULL; 13777s } 13777s snprintf(real, 64, "originally allocated " 13777s "%ld via realloc", (unsigned long)sz); 13777s return (void *)(real + 64); 13777s } 13777s } 13777s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13777s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13777s malloc, 13777s calloc, 13777s realloc, 13777s free 13777s }; 13777s static PyDataMem_Handler secret_data_handler = { 13777s "secret_data_allocator", 13777s 1, 13777s { 13777s &secret_data_handler_ctx, /* ctx */ 13777s shift_alloc, /* malloc */ 13777s shift_zero, /* calloc */ 13777s shift_realloc, /* realloc */ 13777s shift_free /* free */ 13777s } 13777s }; 13777s void warn_on_free(void *capsule) { 13777s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13777s void * obj = PyCapsule_GetPointer(capsule, 13777s PyCapsule_GetName(capsule)); 13777s free(obj); 13777s }; 13777s ''' 13777s more_init = "import_array();" 13777s try: 13777s import mem_policy 13777s return mem_policy 13777s except ImportError: 13777s pass 13777s # if it does not exist, build and load it 13777s > return extbuild.build_and_import_extension('mem_policy', 13777s functions, 13777s prologue=prologue, 13777s include_dirs=[np.get_include()], 13777s build_dir=tmp_path, 13777s more_init=more_init) 13777s 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s more_init = 'import_array();' 13777s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13777s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_default_policy_singleton0') 13777s 13777s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13777s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13777s 13777s modname = 'mem_policy' 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s 13777s def build_and_import_extension( 13777s modname, functions, *, prologue="", build_dir=None, 13777s include_dirs=[], more_init=""): 13777s """ 13777s Build and imports a c-extension module `modname` from a list of function 13777s fragments `functions`. 13777s 13777s 13777s Parameters 13777s ---------- 13777s functions : list of fragments 13777s Each fragment is a sequence of func_name, calling convention, snippet. 13777s prologue : string 13777s Code to precede the rest, usually extra ``#include`` or ``#define`` 13777s macros. 13777s build_dir : pathlib.Path 13777s Where to build the module, usually a temporary directory 13777s include_dirs : list 13777s Extra directories to find include files when compiling 13777s more_init : string 13777s Code to appear in the module PyMODINIT_FUNC 13777s 13777s Returns 13777s ------- 13777s out: module 13777s The module will have been loaded and is ready for use 13777s 13777s Examples 13777s -------- 13777s >>> functions = [("test_bytes", "METH_O", \"\"\" 13777s if ( !PyBytesCheck(args)) { 13777s Py_RETURN_FALSE; 13777s } 13777s Py_RETURN_TRUE; 13777s \"\"\")] 13777s >>> mod = build_and_import_extension("testme", functions) 13777s >>> assert not mod.test_bytes(u'abc') 13777s >>> assert mod.test_bytes(b'abc') 13777s """ 13777s from distutils.errors import CompileError 13777s 13777s body = prologue + _make_methods(functions, modname) 13777s init = """PyObject *mod = PyModule_Create(&moduledef); 13777s """ 13777s if not build_dir: 13777s build_dir = pathlib.Path('.') 13777s if more_init: 13777s init += """#define INITERROR return NULL 13777s """ 13777s init += more_init 13777s init += "\nreturn mod;" 13777s source_string = _make_source(modname, init, body) 13777s try: 13777s mod_so = compile_extension_module( 13777s modname, build_dir, include_dirs, source_string) 13777s except CompileError as e: 13777s # shorten the exception chain 13777s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13777s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_default_policy_singleton0: 13777s 13777s CompileError = 13777s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13777s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_default_policy_singleton0') 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13777s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13777s modname = 'mem_policy' 13777s more_init = 'import_array();' 13777s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13777s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13777s | ^~~~~~~~~~ 13777s compilation terminated. 13777s __________________ ERROR at setup of test_policy_propagation ___________________ 13777s 13777s modname = 'mem_policy' 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s 13777s def build_and_import_extension( 13777s modname, functions, *, prologue="", build_dir=None, 13777s include_dirs=[], more_init=""): 13777s """ 13777s Build and imports a c-extension module `modname` from a list of function 13777s fragments `functions`. 13777s 13777s 13777s Parameters 13777s ---------- 13777s functions : list of fragments 13777s Each fragment is a sequence of func_name, calling convention, snippet. 13777s prologue : string 13777s Code to precede the rest, usually extra ``#include`` or ``#define`` 13777s macros. 13777s build_dir : pathlib.Path 13777s Where to build the module, usually a temporary directory 13777s include_dirs : list 13777s Extra directories to find include files when compiling 13777s more_init : string 13777s Code to appear in the module PyMODINIT_FUNC 13777s 13777s Returns 13777s ------- 13777s out: module 13777s The module will have been loaded and is ready for use 13777s 13777s Examples 13777s -------- 13777s >>> functions = [("test_bytes", "METH_O", \"\"\" 13777s if ( !PyBytesCheck(args)) { 13777s Py_RETURN_FALSE; 13777s } 13777s Py_RETURN_TRUE; 13777s \"\"\")] 13777s >>> mod = build_and_import_extension("testme", functions) 13777s >>> assert not mod.test_bytes(u'abc') 13777s >>> assert mod.test_bytes(b'abc') 13777s """ 13777s from distutils.errors import CompileError 13777s 13777s body = prologue + _make_methods(functions, modname) 13777s init = """PyObject *mod = PyModule_Create(&moduledef); 13777s """ 13777s if not build_dir: 13777s build_dir = pathlib.Path('.') 13777s if more_init: 13777s init += """#define INITERROR return NULL 13777s """ 13777s init += more_init 13777s init += "\nreturn mod;" 13777s source_string = _make_source(modname, init, body) 13777s try: 13777s > mod_so = compile_extension_module( 13777s modname, build_dir, include_dirs, source_string) 13777s 13777s CompileError = 13777s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13777s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_policy_propagation0') 13777s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13777s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13777s modname = 'mem_policy' 13777s more_init = 'import_array();' 13777s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13777s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13777s libraries = [] 13777s library_dirs = [] 13777s link_extra = None 13777s new_compiler = 13777s objects = [] 13777s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13777s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_policy_propagation0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13777s m = lambda self, *args, **kw: func(self, *args, **kw) 13777s args = (['source.c'],) 13777s func = 13777s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13777s self = 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13777s single_compile(o) 13777s FCompiler = 13777s build = {'source.o': ('source.c', '.c')} 13777s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13777s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13777s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13777s debug = 0 13777s depends = None 13777s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13777s extra_postargs = [] 13777s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13777s has_f90_header = 13777s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13777s is_f_file = 13777s jobs = 8 13777s macros = [] 13777s o = ('source.o', ('source.c', '.c')) 13777s objects = ['source.o'] 13777s output_dir = None 13777s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13777s self = 13777s single_compile = .single_compile at 0xdbf498e8> 13777s sources = ['source.c'] 13777s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13777s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13777s args = ('source.o', ('source.c', '.c')) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ext = '.c' 13778s extra_postargs = [] 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13778s func = 13778s kw = {} 13778s self = 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s self = 13778s obj = 'source.o', src = 'source.c', ext = '.c' 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s extra_postargs = [] 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s 13778s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13778s """Compile a single source files with a Unix-style compiler.""" 13778s # HP ad-hoc fix, see ticket 1383 13778s ccomp = self.compiler_so 13778s if ccomp[0] == 'aCC': 13778s # remove flags that will trigger ANSI-C mode for aCC 13778s if '-Ae' in ccomp: 13778s ccomp.remove('-Ae') 13778s if '-Aa' in ccomp: 13778s ccomp.remove('-Aa') 13778s # add flags for (almost) sane C++ handling 13778s ccomp += ['-AA'] 13778s self.compiler_so = ccomp 13778s # ensure OPT environment variable is read 13778s if 'OPT' in os.environ: 13778s # XXX who uses this? 13778s from sysconfig import get_config_vars 13778s opt = shlex.join(shlex.split(os.environ['OPT'])) 13778s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13778s ccomp_s = shlex.join(self.compiler_so) 13778s if opt not in ccomp_s: 13778s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13778s self.compiler_so = shlex.split(ccomp_s) 13778s llink_s = shlex.join(self.linker_so) 13778s if opt not in llink_s: 13778s self.linker_so = self.linker_so + shlex.split(opt) 13778s 13778s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13778s 13778s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13778s # all headers needed by a c file as a side effect of compilation (-MMD) 13778s if getattr(self, '_auto_depends', False): 13778s deps = ['-MMD', '-MF', obj + '.d'] 13778s else: 13778s deps = [] 13778s 13778s try: 13778s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13778s extra_postargs, display = display) 13778s except DistutilsExecError as e: 13778s msg = str(e) 13778s > raise CompileError(msg) from None 13778s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13778s 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s deps = ['-MMD', '-MF', 'source.o.d'] 13778s display = 'arm-linux-gnueabihf-gcc: source.c' 13778s ext = '.c' 13778s extra_postargs = [] 13778s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s 13778s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13778s 13778s The above exception was the direct cause of the following exception: 13778s 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_policy_propagation0') 13778s 13778s @pytest.fixture 13778s def get_module(tmp_path): 13778s """ Add a memory policy that returns a false pointer 64 bytes into the 13778s actual allocation, and fill the prefix with some text. Then check at each 13778s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13778s free/calloc go via the functions here. 13778s """ 13778s if sys.platform.startswith('cygwin'): 13778s pytest.skip('link fails on cygwin') 13778s if IS_WASM: 13778s pytest.skip("Can't build module inside Wasm") 13778s functions = [ 13778s ("get_default_policy", "METH_NOARGS", """ 13778s Py_INCREF(PyDataMem_DefaultHandler); 13778s return PyDataMem_DefaultHandler; 13778s """), 13778s ("set_secret_data_policy", "METH_NOARGS", """ 13778s PyObject *secret_data = 13778s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13778s if (secret_data == NULL) { 13778s return NULL; 13778s } 13778s PyObject *old = PyDataMem_SetHandler(secret_data); 13778s Py_DECREF(secret_data); 13778s return old; 13778s """), 13778s ("set_old_policy", "METH_O", """ 13778s PyObject *old; 13778s if (args != NULL && PyCapsule_CheckExact(args)) { 13778s old = PyDataMem_SetHandler(args); 13778s } 13778s else { 13778s old = PyDataMem_SetHandler(NULL); 13778s } 13778s return old; 13778s """), 13778s ("get_array", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13778s buf, NPY_ARRAY_WRITEABLE, NULL); 13778s """), 13778s ("set_own", "METH_O", """ 13778s if (!PyArray_Check(args)) { 13778s PyErr_SetString(PyExc_ValueError, 13778s "need an ndarray"); 13778s return NULL; 13778s } 13778s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13778s // Maybe try this too? 13778s // PyArray_BASE(PyArrayObject *)args) = NULL; 13778s Py_RETURN_NONE; 13778s """), 13778s ("get_array_with_base", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13778s NULL, buf, 13778s NPY_ARRAY_WRITEABLE, NULL); 13778s if (arr == NULL) return NULL; 13778s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13778s (PyCapsule_Destructor)&warn_on_free); 13778s if (obj == NULL) { 13778s Py_DECREF(arr); 13778s return NULL; 13778s } 13778s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13778s Py_DECREF(arr); 13778s Py_DECREF(obj); 13778s return NULL; 13778s } 13778s return arr; 13778s 13778s """), 13778s ] 13778s prologue = ''' 13778s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13778s #include 13778s /* 13778s * This struct allows the dynamic configuration of the allocator funcs 13778s * of the `secret_data_allocator`. It is provided here for 13778s * demonstration purposes, as a valid `ctx` use-case scenario. 13778s */ 13778s typedef struct { 13778s void *(*malloc)(size_t); 13778s void *(*calloc)(size_t, size_t); 13778s void *(*realloc)(void *, size_t); 13778s void (*free)(void *); 13778s } SecretDataAllocatorFuncs; 13778s 13778s NPY_NO_EXPORT void * 13778s shift_alloc(void *ctx, size_t sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->malloc(sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_zero(void *ctx, size_t sz, size_t cnt) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->calloc(sz + 64, cnt); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld via zero", 13778s (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void 13778s shift_free(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p == NULL) { 13778s return ; 13778s } 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_free, " 13778s "no appropriate prefix\\n"); 13778s /* Make C runtime crash by calling free on the wrong address */ 13778s funcs->free((char *)p + 10); 13778s /* funcs->free(real); */ 13778s } 13778s else { 13778s npy_uintp i = (npy_uintp)atoi(real +20); 13778s if (i != sz) { 13778s fprintf(stderr, "uh-oh, unmatched shift_free" 13778s "(ptr, %ld) but allocated %ld\\n", sz, i); 13778s /* This happens in some places, only print */ 13778s funcs->free(real); 13778s } 13778s else { 13778s funcs->free(real); 13778s } 13778s } 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p != NULL) { 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13778s return realloc(p, sz); 13778s } 13778s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13778s } 13778s else { 13778s char *real = (char *)funcs->realloc(p, sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated " 13778s "%ld via realloc", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s } 13778s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13778s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13778s malloc, 13778s calloc, 13778s realloc, 13778s free 13778s }; 13778s static PyDataMem_Handler secret_data_handler = { 13778s "secret_data_allocator", 13778s 1, 13778s { 13778s &secret_data_handler_ctx, /* ctx */ 13778s shift_alloc, /* malloc */ 13778s shift_zero, /* calloc */ 13778s shift_realloc, /* realloc */ 13778s shift_free /* free */ 13778s } 13778s }; 13778s void warn_on_free(void *capsule) { 13778s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13778s void * obj = PyCapsule_GetPointer(capsule, 13778s PyCapsule_GetName(capsule)); 13778s free(obj); 13778s }; 13778s ''' 13778s more_init = "import_array();" 13778s try: 13778s import mem_policy 13778s return mem_policy 13778s except ImportError: 13778s pass 13778s # if it does not exist, build and load it 13778s > return extbuild.build_and_import_extension('mem_policy', 13778s functions, 13778s prologue=prologue, 13778s include_dirs=[np.get_include()], 13778s build_dir=tmp_path, 13778s more_init=more_init) 13778s 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_policy_propagation0') 13778s 13778s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s except CompileError as e: 13778s # shorten the exception chain 13778s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13778s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_policy_propagation0: 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_policy_propagation0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s | ^~~~~~~~~~ 13778s compilation terminated. 13778s ___________________ ERROR at setup of test_context_locality ____________________ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s > mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_context_locality0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s libraries = [] 13778s library_dirs = [] 13778s link_extra = None 13778s new_compiler = 13778s objects = [] 13778s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13778s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_context_locality0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = (['source.c'],) 13778s func = 13778s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13778s self = 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13778s single_compile(o) 13778s FCompiler = 13778s build = {'source.o': ('source.c', '.c')} 13778s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s debug = 0 13778s depends = None 13778s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13778s extra_postargs = [] 13778s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13778s has_f90_header = 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s is_f_file = 13778s jobs = 8 13778s macros = [] 13778s o = ('source.o', ('source.c', '.c')) 13778s objects = ['source.o'] 13778s output_dir = None 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s single_compile = .single_compile at 0xdbf63708> 13778s sources = ['source.c'] 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13778s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13778s args = ('source.o', ('source.c', '.c')) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ext = '.c' 13778s extra_postargs = [] 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13778s func = 13778s kw = {} 13778s self = 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s self = 13778s obj = 'source.o', src = 'source.c', ext = '.c' 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s extra_postargs = [] 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s 13778s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13778s """Compile a single source files with a Unix-style compiler.""" 13778s # HP ad-hoc fix, see ticket 1383 13778s ccomp = self.compiler_so 13778s if ccomp[0] == 'aCC': 13778s # remove flags that will trigger ANSI-C mode for aCC 13778s if '-Ae' in ccomp: 13778s ccomp.remove('-Ae') 13778s if '-Aa' in ccomp: 13778s ccomp.remove('-Aa') 13778s # add flags for (almost) sane C++ handling 13778s ccomp += ['-AA'] 13778s self.compiler_so = ccomp 13778s # ensure OPT environment variable is read 13778s if 'OPT' in os.environ: 13778s # XXX who uses this? 13778s from sysconfig import get_config_vars 13778s opt = shlex.join(shlex.split(os.environ['OPT'])) 13778s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13778s ccomp_s = shlex.join(self.compiler_so) 13778s if opt not in ccomp_s: 13778s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13778s self.compiler_so = shlex.split(ccomp_s) 13778s llink_s = shlex.join(self.linker_so) 13778s if opt not in llink_s: 13778s self.linker_so = self.linker_so + shlex.split(opt) 13778s 13778s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13778s 13778s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13778s # all headers needed by a c file as a side effect of compilation (-MMD) 13778s if getattr(self, '_auto_depends', False): 13778s deps = ['-MMD', '-MF', obj + '.d'] 13778s else: 13778s deps = [] 13778s 13778s try: 13778s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13778s extra_postargs, display = display) 13778s except DistutilsExecError as e: 13778s msg = str(e) 13778s > raise CompileError(msg) from None 13778s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13778s 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s deps = ['-MMD', '-MF', 'source.o.d'] 13778s display = 'arm-linux-gnueabihf-gcc: source.c' 13778s ext = '.c' 13778s extra_postargs = [] 13778s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s 13778s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13778s 13778s The above exception was the direct cause of the following exception: 13778s 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_context_locality0') 13778s 13778s @pytest.fixture 13778s def get_module(tmp_path): 13778s """ Add a memory policy that returns a false pointer 64 bytes into the 13778s actual allocation, and fill the prefix with some text. Then check at each 13778s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13778s free/calloc go via the functions here. 13778s """ 13778s if sys.platform.startswith('cygwin'): 13778s pytest.skip('link fails on cygwin') 13778s if IS_WASM: 13778s pytest.skip("Can't build module inside Wasm") 13778s functions = [ 13778s ("get_default_policy", "METH_NOARGS", """ 13778s Py_INCREF(PyDataMem_DefaultHandler); 13778s return PyDataMem_DefaultHandler; 13778s """), 13778s ("set_secret_data_policy", "METH_NOARGS", """ 13778s PyObject *secret_data = 13778s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13778s if (secret_data == NULL) { 13778s return NULL; 13778s } 13778s PyObject *old = PyDataMem_SetHandler(secret_data); 13778s Py_DECREF(secret_data); 13778s return old; 13778s """), 13778s ("set_old_policy", "METH_O", """ 13778s PyObject *old; 13778s if (args != NULL && PyCapsule_CheckExact(args)) { 13778s old = PyDataMem_SetHandler(args); 13778s } 13778s else { 13778s old = PyDataMem_SetHandler(NULL); 13778s } 13778s return old; 13778s """), 13778s ("get_array", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13778s buf, NPY_ARRAY_WRITEABLE, NULL); 13778s """), 13778s ("set_own", "METH_O", """ 13778s if (!PyArray_Check(args)) { 13778s PyErr_SetString(PyExc_ValueError, 13778s "need an ndarray"); 13778s return NULL; 13778s } 13778s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13778s // Maybe try this too? 13778s // PyArray_BASE(PyArrayObject *)args) = NULL; 13778s Py_RETURN_NONE; 13778s """), 13778s ("get_array_with_base", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13778s NULL, buf, 13778s NPY_ARRAY_WRITEABLE, NULL); 13778s if (arr == NULL) return NULL; 13778s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13778s (PyCapsule_Destructor)&warn_on_free); 13778s if (obj == NULL) { 13778s Py_DECREF(arr); 13778s return NULL; 13778s } 13778s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13778s Py_DECREF(arr); 13778s Py_DECREF(obj); 13778s return NULL; 13778s } 13778s return arr; 13778s 13778s """), 13778s ] 13778s prologue = ''' 13778s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13778s #include 13778s /* 13778s * This struct allows the dynamic configuration of the allocator funcs 13778s * of the `secret_data_allocator`. It is provided here for 13778s * demonstration purposes, as a valid `ctx` use-case scenario. 13778s */ 13778s typedef struct { 13778s void *(*malloc)(size_t); 13778s void *(*calloc)(size_t, size_t); 13778s void *(*realloc)(void *, size_t); 13778s void (*free)(void *); 13778s } SecretDataAllocatorFuncs; 13778s 13778s NPY_NO_EXPORT void * 13778s shift_alloc(void *ctx, size_t sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->malloc(sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_zero(void *ctx, size_t sz, size_t cnt) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->calloc(sz + 64, cnt); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld via zero", 13778s (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void 13778s shift_free(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p == NULL) { 13778s return ; 13778s } 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_free, " 13778s "no appropriate prefix\\n"); 13778s /* Make C runtime crash by calling free on the wrong address */ 13778s funcs->free((char *)p + 10); 13778s /* funcs->free(real); */ 13778s } 13778s else { 13778s npy_uintp i = (npy_uintp)atoi(real +20); 13778s if (i != sz) { 13778s fprintf(stderr, "uh-oh, unmatched shift_free" 13778s "(ptr, %ld) but allocated %ld\\n", sz, i); 13778s /* This happens in some places, only print */ 13778s funcs->free(real); 13778s } 13778s else { 13778s funcs->free(real); 13778s } 13778s } 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p != NULL) { 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13778s return realloc(p, sz); 13778s } 13778s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13778s } 13778s else { 13778s char *real = (char *)funcs->realloc(p, sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated " 13778s "%ld via realloc", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s } 13778s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13778s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13778s malloc, 13778s calloc, 13778s realloc, 13778s free 13778s }; 13778s static PyDataMem_Handler secret_data_handler = { 13778s "secret_data_allocator", 13778s 1, 13778s { 13778s &secret_data_handler_ctx, /* ctx */ 13778s shift_alloc, /* malloc */ 13778s shift_zero, /* calloc */ 13778s shift_realloc, /* realloc */ 13778s shift_free /* free */ 13778s } 13778s }; 13778s void warn_on_free(void *capsule) { 13778s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13778s void * obj = PyCapsule_GetPointer(capsule, 13778s PyCapsule_GetName(capsule)); 13778s free(obj); 13778s }; 13778s ''' 13778s more_init = "import_array();" 13778s try: 13778s import mem_policy 13778s return mem_policy 13778s except ImportError: 13778s pass 13778s # if it does not exist, build and load it 13778s > return extbuild.build_and_import_extension('mem_policy', 13778s functions, 13778s prologue=prologue, 13778s include_dirs=[np.get_include()], 13778s build_dir=tmp_path, 13778s more_init=more_init) 13778s 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_context_locality0') 13778s 13778s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s except CompileError as e: 13778s # shorten the exception chain 13778s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13778s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_context_locality0: 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_context_locality0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s | ^~~~~~~~~~ 13778s compilation terminated. 13778s ____________________ ERROR at setup of test_thread_locality ____________________ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s > mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_thread_locality0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s libraries = [] 13778s library_dirs = [] 13778s link_extra = None 13778s new_compiler = 13778s objects = [] 13778s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13778s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_thread_locality0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = (['source.c'],) 13778s func = 13778s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13778s self = 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13778s single_compile(o) 13778s FCompiler = 13778s build = {'source.o': ('source.c', '.c')} 13778s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s debug = 0 13778s depends = None 13778s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13778s extra_postargs = [] 13778s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13778s has_f90_header = 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s is_f_file = 13778s jobs = 8 13778s macros = [] 13778s o = ('source.o', ('source.c', '.c')) 13778s objects = ['source.o'] 13778s output_dir = None 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s single_compile = .single_compile at 0xdc32f8e8> 13778s sources = ['source.c'] 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13778s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13778s args = ('source.o', ('source.c', '.c')) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ext = '.c' 13778s extra_postargs = [] 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13778s func = 13778s kw = {} 13778s self = 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s self = 13778s obj = 'source.o', src = 'source.c', ext = '.c' 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s extra_postargs = [] 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s 13778s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13778s """Compile a single source files with a Unix-style compiler.""" 13778s # HP ad-hoc fix, see ticket 1383 13778s ccomp = self.compiler_so 13778s if ccomp[0] == 'aCC': 13778s # remove flags that will trigger ANSI-C mode for aCC 13778s if '-Ae' in ccomp: 13778s ccomp.remove('-Ae') 13778s if '-Aa' in ccomp: 13778s ccomp.remove('-Aa') 13778s # add flags for (almost) sane C++ handling 13778s ccomp += ['-AA'] 13778s self.compiler_so = ccomp 13778s # ensure OPT environment variable is read 13778s if 'OPT' in os.environ: 13778s # XXX who uses this? 13778s from sysconfig import get_config_vars 13778s opt = shlex.join(shlex.split(os.environ['OPT'])) 13778s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13778s ccomp_s = shlex.join(self.compiler_so) 13778s if opt not in ccomp_s: 13778s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13778s self.compiler_so = shlex.split(ccomp_s) 13778s llink_s = shlex.join(self.linker_so) 13778s if opt not in llink_s: 13778s self.linker_so = self.linker_so + shlex.split(opt) 13778s 13778s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13778s 13778s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13778s # all headers needed by a c file as a side effect of compilation (-MMD) 13778s if getattr(self, '_auto_depends', False): 13778s deps = ['-MMD', '-MF', obj + '.d'] 13778s else: 13778s deps = [] 13778s 13778s try: 13778s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13778s extra_postargs, display = display) 13778s except DistutilsExecError as e: 13778s msg = str(e) 13778s > raise CompileError(msg) from None 13778s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13778s 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s deps = ['-MMD', '-MF', 'source.o.d'] 13778s display = 'arm-linux-gnueabihf-gcc: source.c' 13778s ext = '.c' 13778s extra_postargs = [] 13778s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s 13778s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13778s 13778s The above exception was the direct cause of the following exception: 13778s 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_thread_locality0') 13778s 13778s @pytest.fixture 13778s def get_module(tmp_path): 13778s """ Add a memory policy that returns a false pointer 64 bytes into the 13778s actual allocation, and fill the prefix with some text. Then check at each 13778s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13778s free/calloc go via the functions here. 13778s """ 13778s if sys.platform.startswith('cygwin'): 13778s pytest.skip('link fails on cygwin') 13778s if IS_WASM: 13778s pytest.skip("Can't build module inside Wasm") 13778s functions = [ 13778s ("get_default_policy", "METH_NOARGS", """ 13778s Py_INCREF(PyDataMem_DefaultHandler); 13778s return PyDataMem_DefaultHandler; 13778s """), 13778s ("set_secret_data_policy", "METH_NOARGS", """ 13778s PyObject *secret_data = 13778s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13778s if (secret_data == NULL) { 13778s return NULL; 13778s } 13778s PyObject *old = PyDataMem_SetHandler(secret_data); 13778s Py_DECREF(secret_data); 13778s return old; 13778s """), 13778s ("set_old_policy", "METH_O", """ 13778s PyObject *old; 13778s if (args != NULL && PyCapsule_CheckExact(args)) { 13778s old = PyDataMem_SetHandler(args); 13778s } 13778s else { 13778s old = PyDataMem_SetHandler(NULL); 13778s } 13778s return old; 13778s """), 13778s ("get_array", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13778s buf, NPY_ARRAY_WRITEABLE, NULL); 13778s """), 13778s ("set_own", "METH_O", """ 13778s if (!PyArray_Check(args)) { 13778s PyErr_SetString(PyExc_ValueError, 13778s "need an ndarray"); 13778s return NULL; 13778s } 13778s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13778s // Maybe try this too? 13778s // PyArray_BASE(PyArrayObject *)args) = NULL; 13778s Py_RETURN_NONE; 13778s """), 13778s ("get_array_with_base", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13778s NULL, buf, 13778s NPY_ARRAY_WRITEABLE, NULL); 13778s if (arr == NULL) return NULL; 13778s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13778s (PyCapsule_Destructor)&warn_on_free); 13778s if (obj == NULL) { 13778s Py_DECREF(arr); 13778s return NULL; 13778s } 13778s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13778s Py_DECREF(arr); 13778s Py_DECREF(obj); 13778s return NULL; 13778s } 13778s return arr; 13778s 13778s """), 13778s ] 13778s prologue = ''' 13778s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13778s #include 13778s /* 13778s * This struct allows the dynamic configuration of the allocator funcs 13778s * of the `secret_data_allocator`. It is provided here for 13778s * demonstration purposes, as a valid `ctx` use-case scenario. 13778s */ 13778s typedef struct { 13778s void *(*malloc)(size_t); 13778s void *(*calloc)(size_t, size_t); 13778s void *(*realloc)(void *, size_t); 13778s void (*free)(void *); 13778s } SecretDataAllocatorFuncs; 13778s 13778s NPY_NO_EXPORT void * 13778s shift_alloc(void *ctx, size_t sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->malloc(sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_zero(void *ctx, size_t sz, size_t cnt) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->calloc(sz + 64, cnt); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld via zero", 13778s (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void 13778s shift_free(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p == NULL) { 13778s return ; 13778s } 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_free, " 13778s "no appropriate prefix\\n"); 13778s /* Make C runtime crash by calling free on the wrong address */ 13778s funcs->free((char *)p + 10); 13778s /* funcs->free(real); */ 13778s } 13778s else { 13778s npy_uintp i = (npy_uintp)atoi(real +20); 13778s if (i != sz) { 13778s fprintf(stderr, "uh-oh, unmatched shift_free" 13778s "(ptr, %ld) but allocated %ld\\n", sz, i); 13778s /* This happens in some places, only print */ 13778s funcs->free(real); 13778s } 13778s else { 13778s funcs->free(real); 13778s } 13778s } 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p != NULL) { 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13778s return realloc(p, sz); 13778s } 13778s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13778s } 13778s else { 13778s char *real = (char *)funcs->realloc(p, sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated " 13778s "%ld via realloc", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s } 13778s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13778s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13778s malloc, 13778s calloc, 13778s realloc, 13778s free 13778s }; 13778s static PyDataMem_Handler secret_data_handler = { 13778s "secret_data_allocator", 13778s 1, 13778s { 13778s &secret_data_handler_ctx, /* ctx */ 13778s shift_alloc, /* malloc */ 13778s shift_zero, /* calloc */ 13778s shift_realloc, /* realloc */ 13778s shift_free /* free */ 13778s } 13778s }; 13778s void warn_on_free(void *capsule) { 13778s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13778s void * obj = PyCapsule_GetPointer(capsule, 13778s PyCapsule_GetName(capsule)); 13778s free(obj); 13778s }; 13778s ''' 13778s more_init = "import_array();" 13778s try: 13778s import mem_policy 13778s return mem_policy 13778s except ImportError: 13778s pass 13778s # if it does not exist, build and load it 13778s > return extbuild.build_and_import_extension('mem_policy', 13778s functions, 13778s prologue=prologue, 13778s include_dirs=[np.get_include()], 13778s build_dir=tmp_path, 13778s more_init=more_init) 13778s 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_thread_locality0') 13778s 13778s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s except CompileError as e: 13778s # shorten the exception chain 13778s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13778s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_thread_locality0: 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_thread_locality0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s | ^~~~~~~~~~ 13778s compilation terminated. 13778s ____________________ ERROR at setup of test_switch_owner[0] ____________________ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s > mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_0_0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s libraries = [] 13778s library_dirs = [] 13778s link_extra = None 13778s new_compiler = 13778s objects = [] 13778s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13778s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_0_0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = (['source.c'],) 13778s func = 13778s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13778s self = 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13778s single_compile(o) 13778s FCompiler = 13778s build = {'source.o': ('source.c', '.c')} 13778s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s debug = 0 13778s depends = None 13778s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13778s extra_postargs = [] 13778s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13778s has_f90_header = 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s is_f_file = 13778s jobs = 8 13778s macros = [] 13778s o = ('source.o', ('source.c', '.c')) 13778s objects = ['source.o'] 13778s output_dir = None 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s single_compile = .single_compile at 0xdbde1898> 13778s sources = ['source.c'] 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13778s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13778s args = ('source.o', ('source.c', '.c')) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ext = '.c' 13778s extra_postargs = [] 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13778s func = 13778s kw = {} 13778s self = 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s self = 13778s obj = 'source.o', src = 'source.c', ext = '.c' 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s extra_postargs = [] 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s 13778s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13778s """Compile a single source files with a Unix-style compiler.""" 13778s # HP ad-hoc fix, see ticket 1383 13778s ccomp = self.compiler_so 13778s if ccomp[0] == 'aCC': 13778s # remove flags that will trigger ANSI-C mode for aCC 13778s if '-Ae' in ccomp: 13778s ccomp.remove('-Ae') 13778s if '-Aa' in ccomp: 13778s ccomp.remove('-Aa') 13778s # add flags for (almost) sane C++ handling 13778s ccomp += ['-AA'] 13778s self.compiler_so = ccomp 13778s # ensure OPT environment variable is read 13778s if 'OPT' in os.environ: 13778s # XXX who uses this? 13778s from sysconfig import get_config_vars 13778s opt = shlex.join(shlex.split(os.environ['OPT'])) 13778s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13778s ccomp_s = shlex.join(self.compiler_so) 13778s if opt not in ccomp_s: 13778s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13778s self.compiler_so = shlex.split(ccomp_s) 13778s llink_s = shlex.join(self.linker_so) 13778s if opt not in llink_s: 13778s self.linker_so = self.linker_so + shlex.split(opt) 13778s 13778s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13778s 13778s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13778s # all headers needed by a c file as a side effect of compilation (-MMD) 13778s if getattr(self, '_auto_depends', False): 13778s deps = ['-MMD', '-MF', obj + '.d'] 13778s else: 13778s deps = [] 13778s 13778s try: 13778s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13778s extra_postargs, display = display) 13778s except DistutilsExecError as e: 13778s msg = str(e) 13778s > raise CompileError(msg) from None 13778s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13778s 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s deps = ['-MMD', '-MF', 'source.o.d'] 13778s display = 'arm-linux-gnueabihf-gcc: source.c' 13778s ext = '.c' 13778s extra_postargs = [] 13778s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s 13778s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13778s 13778s The above exception was the direct cause of the following exception: 13778s 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_0_0') 13778s 13778s @pytest.fixture 13778s def get_module(tmp_path): 13778s """ Add a memory policy that returns a false pointer 64 bytes into the 13778s actual allocation, and fill the prefix with some text. Then check at each 13778s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13778s free/calloc go via the functions here. 13778s """ 13778s if sys.platform.startswith('cygwin'): 13778s pytest.skip('link fails on cygwin') 13778s if IS_WASM: 13778s pytest.skip("Can't build module inside Wasm") 13778s functions = [ 13778s ("get_default_policy", "METH_NOARGS", """ 13778s Py_INCREF(PyDataMem_DefaultHandler); 13778s return PyDataMem_DefaultHandler; 13778s """), 13778s ("set_secret_data_policy", "METH_NOARGS", """ 13778s PyObject *secret_data = 13778s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13778s if (secret_data == NULL) { 13778s return NULL; 13778s } 13778s PyObject *old = PyDataMem_SetHandler(secret_data); 13778s Py_DECREF(secret_data); 13778s return old; 13778s """), 13778s ("set_old_policy", "METH_O", """ 13778s PyObject *old; 13778s if (args != NULL && PyCapsule_CheckExact(args)) { 13778s old = PyDataMem_SetHandler(args); 13778s } 13778s else { 13778s old = PyDataMem_SetHandler(NULL); 13778s } 13778s return old; 13778s """), 13778s ("get_array", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13778s buf, NPY_ARRAY_WRITEABLE, NULL); 13778s """), 13778s ("set_own", "METH_O", """ 13778s if (!PyArray_Check(args)) { 13778s PyErr_SetString(PyExc_ValueError, 13778s "need an ndarray"); 13778s return NULL; 13778s } 13778s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13778s // Maybe try this too? 13778s // PyArray_BASE(PyArrayObject *)args) = NULL; 13778s Py_RETURN_NONE; 13778s """), 13778s ("get_array_with_base", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13778s NULL, buf, 13778s NPY_ARRAY_WRITEABLE, NULL); 13778s if (arr == NULL) return NULL; 13778s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13778s (PyCapsule_Destructor)&warn_on_free); 13778s if (obj == NULL) { 13778s Py_DECREF(arr); 13778s return NULL; 13778s } 13778s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13778s Py_DECREF(arr); 13778s Py_DECREF(obj); 13778s return NULL; 13778s } 13778s return arr; 13778s 13778s """), 13778s ] 13778s prologue = ''' 13778s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13778s #include 13778s /* 13778s * This struct allows the dynamic configuration of the allocator funcs 13778s * of the `secret_data_allocator`. It is provided here for 13778s * demonstration purposes, as a valid `ctx` use-case scenario. 13778s */ 13778s typedef struct { 13778s void *(*malloc)(size_t); 13778s void *(*calloc)(size_t, size_t); 13778s void *(*realloc)(void *, size_t); 13778s void (*free)(void *); 13778s } SecretDataAllocatorFuncs; 13778s 13778s NPY_NO_EXPORT void * 13778s shift_alloc(void *ctx, size_t sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->malloc(sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_zero(void *ctx, size_t sz, size_t cnt) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->calloc(sz + 64, cnt); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld via zero", 13778s (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void 13778s shift_free(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p == NULL) { 13778s return ; 13778s } 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_free, " 13778s "no appropriate prefix\\n"); 13778s /* Make C runtime crash by calling free on the wrong address */ 13778s funcs->free((char *)p + 10); 13778s /* funcs->free(real); */ 13778s } 13778s else { 13778s npy_uintp i = (npy_uintp)atoi(real +20); 13778s if (i != sz) { 13778s fprintf(stderr, "uh-oh, unmatched shift_free" 13778s "(ptr, %ld) but allocated %ld\\n", sz, i); 13778s /* This happens in some places, only print */ 13778s funcs->free(real); 13778s } 13778s else { 13778s funcs->free(real); 13778s } 13778s } 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p != NULL) { 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13778s return realloc(p, sz); 13778s } 13778s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13778s } 13778s else { 13778s char *real = (char *)funcs->realloc(p, sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated " 13778s "%ld via realloc", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s } 13778s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13778s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13778s malloc, 13778s calloc, 13778s realloc, 13778s free 13778s }; 13778s static PyDataMem_Handler secret_data_handler = { 13778s "secret_data_allocator", 13778s 1, 13778s { 13778s &secret_data_handler_ctx, /* ctx */ 13778s shift_alloc, /* malloc */ 13778s shift_zero, /* calloc */ 13778s shift_realloc, /* realloc */ 13778s shift_free /* free */ 13778s } 13778s }; 13778s void warn_on_free(void *capsule) { 13778s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13778s void * obj = PyCapsule_GetPointer(capsule, 13778s PyCapsule_GetName(capsule)); 13778s free(obj); 13778s }; 13778s ''' 13778s more_init = "import_array();" 13778s try: 13778s import mem_policy 13778s return mem_policy 13778s except ImportError: 13778s pass 13778s # if it does not exist, build and load it 13778s > return extbuild.build_and_import_extension('mem_policy', 13778s functions, 13778s prologue=prologue, 13778s include_dirs=[np.get_include()], 13778s build_dir=tmp_path, 13778s more_init=more_init) 13778s 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_0_0') 13778s 13778s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s except CompileError as e: 13778s # shorten the exception chain 13778s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13778s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_switch_owner_0_0: 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_0_0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s | ^~~~~~~~~~ 13778s compilation terminated. 13778s ____________________ ERROR at setup of test_switch_owner[1] ____________________ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s > mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_1_0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s libraries = [] 13778s library_dirs = [] 13778s link_extra = None 13778s new_compiler = 13778s objects = [] 13778s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13778s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_1_0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = (['source.c'],) 13778s func = 13778s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13778s self = 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13778s single_compile(o) 13778s FCompiler = 13778s build = {'source.o': ('source.c', '.c')} 13778s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s debug = 0 13778s depends = None 13778s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13778s extra_postargs = [] 13778s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13778s has_f90_header = 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s is_f_file = 13778s jobs = 8 13778s macros = [] 13778s o = ('source.o', ('source.c', '.c')) 13778s objects = ['source.o'] 13778s output_dir = None 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s single_compile = .single_compile at 0xdbd6b848> 13778s sources = ['source.c'] 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13778s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13778s args = ('source.o', ('source.c', '.c')) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ext = '.c' 13778s extra_postargs = [] 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13778s func = 13778s kw = {} 13778s self = 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s self = 13778s obj = 'source.o', src = 'source.c', ext = '.c' 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s extra_postargs = [] 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s 13778s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13778s """Compile a single source files with a Unix-style compiler.""" 13778s # HP ad-hoc fix, see ticket 1383 13778s ccomp = self.compiler_so 13778s if ccomp[0] == 'aCC': 13778s # remove flags that will trigger ANSI-C mode for aCC 13778s if '-Ae' in ccomp: 13778s ccomp.remove('-Ae') 13778s if '-Aa' in ccomp: 13778s ccomp.remove('-Aa') 13778s # add flags for (almost) sane C++ handling 13778s ccomp += ['-AA'] 13778s self.compiler_so = ccomp 13778s # ensure OPT environment variable is read 13778s if 'OPT' in os.environ: 13778s # XXX who uses this? 13778s from sysconfig import get_config_vars 13778s opt = shlex.join(shlex.split(os.environ['OPT'])) 13778s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13778s ccomp_s = shlex.join(self.compiler_so) 13778s if opt not in ccomp_s: 13778s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13778s self.compiler_so = shlex.split(ccomp_s) 13778s llink_s = shlex.join(self.linker_so) 13778s if opt not in llink_s: 13778s self.linker_so = self.linker_so + shlex.split(opt) 13778s 13778s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13778s 13778s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13778s # all headers needed by a c file as a side effect of compilation (-MMD) 13778s if getattr(self, '_auto_depends', False): 13778s deps = ['-MMD', '-MF', obj + '.d'] 13778s else: 13778s deps = [] 13778s 13778s try: 13778s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13778s extra_postargs, display = display) 13778s except DistutilsExecError as e: 13778s msg = str(e) 13778s > raise CompileError(msg) from None 13778s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13778s 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s deps = ['-MMD', '-MF', 'source.o.d'] 13778s display = 'arm-linux-gnueabihf-gcc: source.c' 13778s ext = '.c' 13778s extra_postargs = [] 13778s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s 13778s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13778s 13778s The above exception was the direct cause of the following exception: 13778s 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_1_0') 13778s 13778s @pytest.fixture 13778s def get_module(tmp_path): 13778s """ Add a memory policy that returns a false pointer 64 bytes into the 13778s actual allocation, and fill the prefix with some text. Then check at each 13778s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13778s free/calloc go via the functions here. 13778s """ 13778s if sys.platform.startswith('cygwin'): 13778s pytest.skip('link fails on cygwin') 13778s if IS_WASM: 13778s pytest.skip("Can't build module inside Wasm") 13778s functions = [ 13778s ("get_default_policy", "METH_NOARGS", """ 13778s Py_INCREF(PyDataMem_DefaultHandler); 13778s return PyDataMem_DefaultHandler; 13778s """), 13778s ("set_secret_data_policy", "METH_NOARGS", """ 13778s PyObject *secret_data = 13778s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13778s if (secret_data == NULL) { 13778s return NULL; 13778s } 13778s PyObject *old = PyDataMem_SetHandler(secret_data); 13778s Py_DECREF(secret_data); 13778s return old; 13778s """), 13778s ("set_old_policy", "METH_O", """ 13778s PyObject *old; 13778s if (args != NULL && PyCapsule_CheckExact(args)) { 13778s old = PyDataMem_SetHandler(args); 13778s } 13778s else { 13778s old = PyDataMem_SetHandler(NULL); 13778s } 13778s return old; 13778s """), 13778s ("get_array", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13778s buf, NPY_ARRAY_WRITEABLE, NULL); 13778s """), 13778s ("set_own", "METH_O", """ 13778s if (!PyArray_Check(args)) { 13778s PyErr_SetString(PyExc_ValueError, 13778s "need an ndarray"); 13778s return NULL; 13778s } 13778s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13778s // Maybe try this too? 13778s // PyArray_BASE(PyArrayObject *)args) = NULL; 13778s Py_RETURN_NONE; 13778s """), 13778s ("get_array_with_base", "METH_NOARGS", """ 13778s char *buf = (char *)malloc(20); 13778s npy_intp dims[1]; 13778s dims[0] = 20; 13778s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13778s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13778s NULL, buf, 13778s NPY_ARRAY_WRITEABLE, NULL); 13778s if (arr == NULL) return NULL; 13778s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13778s (PyCapsule_Destructor)&warn_on_free); 13778s if (obj == NULL) { 13778s Py_DECREF(arr); 13778s return NULL; 13778s } 13778s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13778s Py_DECREF(arr); 13778s Py_DECREF(obj); 13778s return NULL; 13778s } 13778s return arr; 13778s 13778s """), 13778s ] 13778s prologue = ''' 13778s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13778s #include 13778s /* 13778s * This struct allows the dynamic configuration of the allocator funcs 13778s * of the `secret_data_allocator`. It is provided here for 13778s * demonstration purposes, as a valid `ctx` use-case scenario. 13778s */ 13778s typedef struct { 13778s void *(*malloc)(size_t); 13778s void *(*calloc)(size_t, size_t); 13778s void *(*realloc)(void *, size_t); 13778s void (*free)(void *); 13778s } SecretDataAllocatorFuncs; 13778s 13778s NPY_NO_EXPORT void * 13778s shift_alloc(void *ctx, size_t sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->malloc(sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_zero(void *ctx, size_t sz, size_t cnt) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s char *real = (char *)funcs->calloc(sz + 64, cnt); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated %ld via zero", 13778s (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s NPY_NO_EXPORT void 13778s shift_free(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p == NULL) { 13778s return ; 13778s } 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_free, " 13778s "no appropriate prefix\\n"); 13778s /* Make C runtime crash by calling free on the wrong address */ 13778s funcs->free((char *)p + 10); 13778s /* funcs->free(real); */ 13778s } 13778s else { 13778s npy_uintp i = (npy_uintp)atoi(real +20); 13778s if (i != sz) { 13778s fprintf(stderr, "uh-oh, unmatched shift_free" 13778s "(ptr, %ld) but allocated %ld\\n", sz, i); 13778s /* This happens in some places, only print */ 13778s funcs->free(real); 13778s } 13778s else { 13778s funcs->free(real); 13778s } 13778s } 13778s } 13778s NPY_NO_EXPORT void * 13778s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13778s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13778s if (p != NULL) { 13778s char *real = (char *)p - 64; 13778s if (strncmp(real, "originally allocated", 20) != 0) { 13778s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13778s return realloc(p, sz); 13778s } 13778s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13778s } 13778s else { 13778s char *real = (char *)funcs->realloc(p, sz + 64); 13778s if (real == NULL) { 13778s return NULL; 13778s } 13778s snprintf(real, 64, "originally allocated " 13778s "%ld via realloc", (unsigned long)sz); 13778s return (void *)(real + 64); 13778s } 13778s } 13778s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13778s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13778s malloc, 13778s calloc, 13778s realloc, 13778s free 13778s }; 13778s static PyDataMem_Handler secret_data_handler = { 13778s "secret_data_allocator", 13778s 1, 13778s { 13778s &secret_data_handler_ctx, /* ctx */ 13778s shift_alloc, /* malloc */ 13778s shift_zero, /* calloc */ 13778s shift_realloc, /* realloc */ 13778s shift_free /* free */ 13778s } 13778s }; 13778s void warn_on_free(void *capsule) { 13778s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13778s void * obj = PyCapsule_GetPointer(capsule, 13778s PyCapsule_GetName(capsule)); 13778s free(obj); 13778s }; 13778s ''' 13778s more_init = "import_array();" 13778s try: 13778s import mem_policy 13778s return mem_policy 13778s except ImportError: 13778s pass 13778s # if it does not exist, build and load it 13778s > return extbuild.build_and_import_extension('mem_policy', 13778s functions, 13778s prologue=prologue, 13778s include_dirs=[np.get_include()], 13778s build_dir=tmp_path, 13778s more_init=more_init) 13778s 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_1_0') 13778s 13778s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s except CompileError as e: 13778s # shorten the exception chain 13778s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13778s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_switch_owner_1_0: 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_1_0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s | ^~~~~~~~~~ 13778s compilation terminated. 13778s __________________ ERROR at setup of test_switch_owner[None] ___________________ 13778s 13778s modname = 'mem_policy' 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s 13778s def build_and_import_extension( 13778s modname, functions, *, prologue="", build_dir=None, 13778s include_dirs=[], more_init=""): 13778s """ 13778s Build and imports a c-extension module `modname` from a list of function 13778s fragments `functions`. 13778s 13778s 13778s Parameters 13778s ---------- 13778s functions : list of fragments 13778s Each fragment is a sequence of func_name, calling convention, snippet. 13778s prologue : string 13778s Code to precede the rest, usually extra ``#include`` or ``#define`` 13778s macros. 13778s build_dir : pathlib.Path 13778s Where to build the module, usually a temporary directory 13778s include_dirs : list 13778s Extra directories to find include files when compiling 13778s more_init : string 13778s Code to appear in the module PyMODINIT_FUNC 13778s 13778s Returns 13778s ------- 13778s out: module 13778s The module will have been loaded and is ready for use 13778s 13778s Examples 13778s -------- 13778s >>> functions = [("test_bytes", "METH_O", \"\"\" 13778s if ( !PyBytesCheck(args)) { 13778s Py_RETURN_FALSE; 13778s } 13778s Py_RETURN_TRUE; 13778s \"\"\")] 13778s >>> mod = build_and_import_extension("testme", functions) 13778s >>> assert not mod.test_bytes(u'abc') 13778s >>> assert mod.test_bytes(b'abc') 13778s """ 13778s from distutils.errors import CompileError 13778s 13778s body = prologue + _make_methods(functions, modname) 13778s init = """PyObject *mod = PyModule_Create(&moduledef); 13778s """ 13778s if not build_dir: 13778s build_dir = pathlib.Path('.') 13778s if more_init: 13778s init += """#define INITERROR return NULL 13778s """ 13778s init += more_init 13778s init += "\nreturn mod;" 13778s source_string = _make_source(modname, init, body) 13778s try: 13778s > mod_so = compile_extension_module( 13778s modname, build_dir, include_dirs, source_string) 13778s 13778s CompileError = 13778s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13778s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_None_0') 13778s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13778s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13778s modname = 'mem_policy' 13778s more_init = 'import_array();' 13778s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13778s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s libraries = [] 13778s library_dirs = [] 13778s link_extra = None 13778s new_compiler = 13778s objects = [] 13778s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13778s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_None_0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = (['source.c'],) 13778s func = 13778s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13778s self = 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13778s single_compile(o) 13778s FCompiler = 13778s build = {'source.o': ('source.c', '.c')} 13778s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13778s debug = 0 13778s depends = None 13778s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13778s extra_postargs = [] 13778s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13778s has_f90_header = 13778s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13778s is_f_file = 13778s jobs = 8 13778s macros = [] 13778s o = ('source.o', ('source.c', '.c')) 13778s objects = ['source.o'] 13778s output_dir = None 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s single_compile = .single_compile at 0xdbe1d258> 13778s sources = ['source.c'] 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13778s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13778s args = ('source.o', ('source.c', '.c')) 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s ext = '.c' 13778s extra_postargs = [] 13778s obj = 'source.o' 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s self = 13778s src = 'source.c' 13778s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13778s m = lambda self, *args, **kw: func(self, *args, **kw) 13778s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13778s func = 13778s kw = {} 13778s self = 13778s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13778s 13778s self = 13778s obj = 'source.o', src = 'source.c', ext = '.c' 13778s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13778s extra_postargs = [] 13778s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13778s 13778s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13778s """Compile a single source files with a Unix-style compiler.""" 13778s # HP ad-hoc fix, see ticket 1383 13778s ccomp = self.compiler_so 13778s if ccomp[0] == 'aCC': 13778s # remove flags that will trigger ANSI-C mode for aCC 13778s if '-Ae' in ccomp: 13778s ccomp.remove('-Ae') 13778s if '-Aa' in ccomp: 13778s ccomp.remove('-Aa') 13778s # add flags for (almost) sane C++ handling 13778s ccomp += ['-AA'] 13778s self.compiler_so = ccomp 13778s # ensure OPT environment variable is read 13778s if 'OPT' in os.environ: 13778s # XXX who uses this? 13778s from sysconfig import get_config_vars 13778s opt = shlex.join(shlex.split(os.environ['OPT'])) 13778s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13778s ccomp_s = shlex.join(self.compiler_so) 13778s if opt not in ccomp_s: 13778s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13778s self.compiler_so = shlex.split(ccomp_s) 13778s llink_s = shlex.join(self.linker_so) 13778s if opt not in llink_s: 13778s self.linker_so = self.linker_so + shlex.split(opt) 13778s 13778s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13778s 13778s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13778s # all headers needed by a c file as a side effect of compilation (-MMD) 13779s if getattr(self, '_auto_depends', False): 13779s deps = ['-MMD', '-MF', obj + '.d'] 13779s else: 13779s deps = [] 13779s 13779s try: 13779s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13779s extra_postargs, display = display) 13779s except DistutilsExecError as e: 13779s msg = str(e) 13779s > raise CompileError(msg) from None 13779s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13779s 13779s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13779s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13779s deps = ['-MMD', '-MF', 'source.o.d'] 13779s display = 'arm-linux-gnueabihf-gcc: source.c' 13779s ext = '.c' 13779s extra_postargs = [] 13779s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13779s obj = 'source.o' 13779s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13779s self = 13779s src = 'source.c' 13779s 13779s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13779s 13779s The above exception was the direct cause of the following exception: 13779s 13779s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_None_0') 13779s 13779s @pytest.fixture 13779s def get_module(tmp_path): 13779s """ Add a memory policy that returns a false pointer 64 bytes into the 13779s actual allocation, and fill the prefix with some text. Then check at each 13779s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13779s free/calloc go via the functions here. 13779s """ 13779s if sys.platform.startswith('cygwin'): 13779s pytest.skip('link fails on cygwin') 13779s if IS_WASM: 13779s pytest.skip("Can't build module inside Wasm") 13779s functions = [ 13779s ("get_default_policy", "METH_NOARGS", """ 13779s Py_INCREF(PyDataMem_DefaultHandler); 13779s return PyDataMem_DefaultHandler; 13779s """), 13779s ("set_secret_data_policy", "METH_NOARGS", """ 13779s PyObject *secret_data = 13779s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13779s if (secret_data == NULL) { 13779s return NULL; 13779s } 13779s PyObject *old = PyDataMem_SetHandler(secret_data); 13779s Py_DECREF(secret_data); 13779s return old; 13779s """), 13779s ("set_old_policy", "METH_O", """ 13779s PyObject *old; 13779s if (args != NULL && PyCapsule_CheckExact(args)) { 13779s old = PyDataMem_SetHandler(args); 13779s } 13779s else { 13779s old = PyDataMem_SetHandler(NULL); 13779s } 13779s return old; 13779s """), 13779s ("get_array", "METH_NOARGS", """ 13779s char *buf = (char *)malloc(20); 13779s npy_intp dims[1]; 13779s dims[0] = 20; 13779s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13779s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13779s buf, NPY_ARRAY_WRITEABLE, NULL); 13779s """), 13779s ("set_own", "METH_O", """ 13779s if (!PyArray_Check(args)) { 13779s PyErr_SetString(PyExc_ValueError, 13779s "need an ndarray"); 13779s return NULL; 13779s } 13779s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13779s // Maybe try this too? 13779s // PyArray_BASE(PyArrayObject *)args) = NULL; 13779s Py_RETURN_NONE; 13779s """), 13779s ("get_array_with_base", "METH_NOARGS", """ 13779s char *buf = (char *)malloc(20); 13779s npy_intp dims[1]; 13779s dims[0] = 20; 13779s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13779s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13779s NULL, buf, 13779s NPY_ARRAY_WRITEABLE, NULL); 13779s if (arr == NULL) return NULL; 13779s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13779s (PyCapsule_Destructor)&warn_on_free); 13779s if (obj == NULL) { 13779s Py_DECREF(arr); 13779s return NULL; 13779s } 13779s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13779s Py_DECREF(arr); 13779s Py_DECREF(obj); 13779s return NULL; 13779s } 13779s return arr; 13779s 13779s """), 13779s ] 13779s prologue = ''' 13779s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13779s #include 13779s /* 13779s * This struct allows the dynamic configuration of the allocator funcs 13779s * of the `secret_data_allocator`. It is provided here for 13779s * demonstration purposes, as a valid `ctx` use-case scenario. 13779s */ 13779s typedef struct { 13779s void *(*malloc)(size_t); 13779s void *(*calloc)(size_t, size_t); 13779s void *(*realloc)(void *, size_t); 13779s void (*free)(void *); 13779s } SecretDataAllocatorFuncs; 13779s 13779s NPY_NO_EXPORT void * 13779s shift_alloc(void *ctx, size_t sz) { 13779s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13779s char *real = (char *)funcs->malloc(sz + 64); 13779s if (real == NULL) { 13779s return NULL; 13779s } 13779s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13779s return (void *)(real + 64); 13779s } 13779s NPY_NO_EXPORT void * 13779s shift_zero(void *ctx, size_t sz, size_t cnt) { 13779s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13779s char *real = (char *)funcs->calloc(sz + 64, cnt); 13779s if (real == NULL) { 13779s return NULL; 13779s } 13779s snprintf(real, 64, "originally allocated %ld via zero", 13779s (unsigned long)sz); 13779s return (void *)(real + 64); 13779s } 13779s NPY_NO_EXPORT void 13779s shift_free(void *ctx, void * p, npy_uintp sz) { 13779s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13779s if (p == NULL) { 13779s return ; 13779s } 13779s char *real = (char *)p - 64; 13779s if (strncmp(real, "originally allocated", 20) != 0) { 13779s fprintf(stdout, "uh-oh, unmatched shift_free, " 13779s "no appropriate prefix\\n"); 13779s /* Make C runtime crash by calling free on the wrong address */ 13779s funcs->free((char *)p + 10); 13779s /* funcs->free(real); */ 13779s } 13779s else { 13779s npy_uintp i = (npy_uintp)atoi(real +20); 13779s if (i != sz) { 13779s fprintf(stderr, "uh-oh, unmatched shift_free" 13779s "(ptr, %ld) but allocated %ld\\n", sz, i); 13779s /* This happens in some places, only print */ 13779s funcs->free(real); 13779s } 13779s else { 13779s funcs->free(real); 13779s } 13779s } 13779s } 13779s NPY_NO_EXPORT void * 13779s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13779s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13779s if (p != NULL) { 13779s char *real = (char *)p - 64; 13779s if (strncmp(real, "originally allocated", 20) != 0) { 13779s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13779s return realloc(p, sz); 13779s } 13779s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13779s } 13779s else { 13779s char *real = (char *)funcs->realloc(p, sz + 64); 13779s if (real == NULL) { 13779s return NULL; 13779s } 13779s snprintf(real, 64, "originally allocated " 13779s "%ld via realloc", (unsigned long)sz); 13779s return (void *)(real + 64); 13779s } 13779s } 13779s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13779s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13779s malloc, 13779s calloc, 13779s realloc, 13779s free 13779s }; 13779s static PyDataMem_Handler secret_data_handler = { 13779s "secret_data_allocator", 13779s 1, 13779s { 13779s &secret_data_handler_ctx, /* ctx */ 13779s shift_alloc, /* malloc */ 13779s shift_zero, /* calloc */ 13779s shift_realloc, /* realloc */ 13779s shift_free /* free */ 13779s } 13779s }; 13779s void warn_on_free(void *capsule) { 13779s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13779s void * obj = PyCapsule_GetPointer(capsule, 13779s PyCapsule_GetName(capsule)); 13779s free(obj); 13779s }; 13779s ''' 13779s more_init = "import_array();" 13779s try: 13779s import mem_policy 13779s return mem_policy 13779s except ImportError: 13779s pass 13779s # if it does not exist, build and load it 13779s > return extbuild.build_and_import_extension('mem_policy', 13779s functions, 13779s prologue=prologue, 13779s include_dirs=[np.get_include()], 13779s build_dir=tmp_path, 13779s more_init=more_init) 13779s 13779s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13779s more_init = 'import_array();' 13779s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13779s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_None_0') 13779s 13779s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s 13779s modname = 'mem_policy' 13779s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13779s 13779s def build_and_import_extension( 13779s modname, functions, *, prologue="", build_dir=None, 13779s include_dirs=[], more_init=""): 13779s """ 13779s Build and imports a c-extension module `modname` from a list of function 13779s fragments `functions`. 13779s 13779s 13779s Parameters 13779s ---------- 13779s functions : list of fragments 13779s Each fragment is a sequence of func_name, calling convention, snippet. 13779s prologue : string 13779s Code to precede the rest, usually extra ``#include`` or ``#define`` 13779s macros. 13779s build_dir : pathlib.Path 13779s Where to build the module, usually a temporary directory 13779s include_dirs : list 13779s Extra directories to find include files when compiling 13779s more_init : string 13779s Code to appear in the module PyMODINIT_FUNC 13779s 13779s Returns 13779s ------- 13779s out: module 13779s The module will have been loaded and is ready for use 13779s 13779s Examples 13779s -------- 13779s >>> functions = [("test_bytes", "METH_O", \"\"\" 13779s if ( !PyBytesCheck(args)) { 13779s Py_RETURN_FALSE; 13779s } 13779s Py_RETURN_TRUE; 13779s \"\"\")] 13779s >>> mod = build_and_import_extension("testme", functions) 13779s >>> assert not mod.test_bytes(u'abc') 13779s >>> assert mod.test_bytes(b'abc') 13779s """ 13779s from distutils.errors import CompileError 13779s 13779s body = prologue + _make_methods(functions, modname) 13779s init = """PyObject *mod = PyModule_Create(&moduledef); 13779s """ 13779s if not build_dir: 13779s build_dir = pathlib.Path('.') 13779s if more_init: 13779s init += """#define INITERROR return NULL 13779s """ 13779s init += more_init 13779s init += "\nreturn mod;" 13779s source_string = _make_source(modname, init, body) 13779s try: 13779s mod_so = compile_extension_module( 13779s modname, build_dir, include_dirs, source_string) 13779s except CompileError as e: 13779s # shorten the exception chain 13779s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13779s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_switch_owner_None_0: 13779s 13779s CompileError = 13779s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13779s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_switch_owner_None_0') 13779s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13779s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13779s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13779s modname = 'mem_policy' 13779s more_init = 'import_array();' 13779s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13779s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13779s | ^~~~~~~~~~ 13779s compilation terminated. 13779s _____________________ ERROR at setup of test_owner_is_base _____________________ 13779s 13779s modname = 'mem_policy' 13779s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13779s 13779s def build_and_import_extension( 13779s modname, functions, *, prologue="", build_dir=None, 13779s include_dirs=[], more_init=""): 13779s """ 13779s Build and imports a c-extension module `modname` from a list of function 13779s fragments `functions`. 13779s 13779s 13779s Parameters 13779s ---------- 13779s functions : list of fragments 13779s Each fragment is a sequence of func_name, calling convention, snippet. 13779s prologue : string 13779s Code to precede the rest, usually extra ``#include`` or ``#define`` 13779s macros. 13779s build_dir : pathlib.Path 13779s Where to build the module, usually a temporary directory 13779s include_dirs : list 13779s Extra directories to find include files when compiling 13779s more_init : string 13779s Code to appear in the module PyMODINIT_FUNC 13779s 13779s Returns 13779s ------- 13779s out: module 13779s The module will have been loaded and is ready for use 13779s 13779s Examples 13779s -------- 13779s >>> functions = [("test_bytes", "METH_O", \"\"\" 13779s if ( !PyBytesCheck(args)) { 13779s Py_RETURN_FALSE; 13779s } 13779s Py_RETURN_TRUE; 13779s \"\"\")] 13779s >>> mod = build_and_import_extension("testme", functions) 13779s >>> assert not mod.test_bytes(u'abc') 13779s >>> assert mod.test_bytes(b'abc') 13779s """ 13779s from distutils.errors import CompileError 13779s 13779s body = prologue + _make_methods(functions, modname) 13779s init = """PyObject *mod = PyModule_Create(&moduledef); 13779s """ 13779s if not build_dir: 13779s build_dir = pathlib.Path('.') 13779s if more_init: 13779s init += """#define INITERROR return NULL 13779s """ 13779s init += more_init 13779s init += "\nreturn mod;" 13779s source_string = _make_source(modname, init, body) 13779s try: 13779s > mod_so = compile_extension_module( 13779s modname, build_dir, include_dirs, source_string) 13779s 13779s CompileError = 13779s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13779s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_owner_is_base0') 13779s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13779s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13779s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13779s modname = 'mem_policy' 13779s more_init = 'import_array();' 13779s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13779s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13779s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13779s libraries = [] 13779s library_dirs = [] 13779s link_extra = None 13779s new_compiler = 13779s objects = [] 13779s old = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13779s outputfilename = PosixPath('/tmp/pytest-of-root/pytest-1/test_owner_is_base0/mem_policy/mem_policy.cpython-312-arm-linux-gnueabihf.so') 13779s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13779s m = lambda self, *args, **kw: func(self, *args, **kw) 13779s args = (['source.c'],) 13779s func = 13779s kw = {'extra_preargs': ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'], 'include_dirs': ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12']} 13779s self = 13779s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:365: in CCompiler_compile 13779s single_compile(o) 13779s FCompiler = 13779s build = {'source.o': ('source.c', '.c')} 13779s build_items = dict_items([('source.o', ('source.c', '.c'))]) 13779s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13779s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13779s debug = 0 13779s depends = None 13779s display = "compile options: '-O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c'" 13779s extra_postargs = [] 13779s extra_preargs = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC'] 13779s has_f90_header = 13779s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include', '/usr/include/python3.12'] 13779s is_f_file = 13779s jobs = 8 13779s macros = [] 13779s o = ('source.o', ('source.c', '.c')) 13779s objects = ['source.o'] 13779s output_dir = None 13779s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13779s self = 13779s single_compile = .single_compile at 0xdbe0e6b8> 13779s sources = ['source.c'] 13779s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:325: in single_compile 13779s self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 13779s args = ('source.o', ('source.c', '.c')) 13779s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13779s ext = '.c' 13779s extra_postargs = [] 13779s obj = 'source.o' 13779s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13779s self = 13779s src = 'source.c' 13779s /usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py:89: in 13779s m = lambda self, *args, **kw: func(self, *args, **kw) 13779s args = ('source.o', 'source.c', '.c', ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dis...sr/include/python3.12', ...], [], ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12']) 13779s func = 13779s kw = {} 13779s self = 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s 13779s self = 13779s obj = 'source.o', src = 'source.c', ext = '.c' 13779s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13779s extra_postargs = [] 13779s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13779s 13779s def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 13779s """Compile a single source files with a Unix-style compiler.""" 13779s # HP ad-hoc fix, see ticket 1383 13779s ccomp = self.compiler_so 13779s if ccomp[0] == 'aCC': 13779s # remove flags that will trigger ANSI-C mode for aCC 13779s if '-Ae' in ccomp: 13779s ccomp.remove('-Ae') 13779s if '-Aa' in ccomp: 13779s ccomp.remove('-Aa') 13779s # add flags for (almost) sane C++ handling 13779s ccomp += ['-AA'] 13779s self.compiler_so = ccomp 13779s # ensure OPT environment variable is read 13779s if 'OPT' in os.environ: 13779s # XXX who uses this? 13779s from sysconfig import get_config_vars 13779s opt = shlex.join(shlex.split(os.environ['OPT'])) 13779s gcv_opt = shlex.join(shlex.split(get_config_vars('OPT')[0])) 13779s ccomp_s = shlex.join(self.compiler_so) 13779s if opt not in ccomp_s: 13779s ccomp_s = ccomp_s.replace(gcv_opt, opt) 13779s self.compiler_so = shlex.split(ccomp_s) 13779s llink_s = shlex.join(self.linker_so) 13779s if opt not in llink_s: 13779s self.linker_so = self.linker_so + shlex.split(opt) 13779s 13779s display = '%s: %s' % (os.path.basename(self.compiler_so[0]), src) 13779s 13779s # gcc style automatic dependencies, outputs a makefile (-MF) that lists 13779s # all headers needed by a c file as a side effect of compilation (-MMD) 13779s if getattr(self, '_auto_depends', False): 13779s deps = ['-MMD', '-MF', obj + '.d'] 13779s else: 13779s deps = [] 13779s 13779s try: 13779s self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps + 13779s extra_postargs, display = display) 13779s except DistutilsExecError as e: 13779s msg = str(e) 13779s > raise CompileError(msg) from None 13779s E distutils.errors.CompileError: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -O0 -g -Werror=implicit-function-declaration -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1 13779s 13779s cc_args = ['-O0', '-g', '-Werror=implicit-function-declaration', '-fPIC', '-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12', ...] 13779s ccomp = ['arm-linux-gnueabihf-gcc', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O2', ...] 13779s deps = ['-MMD', '-MF', 'source.o.d'] 13779s display = 'arm-linux-gnueabihf-gcc: source.c' 13779s ext = '.c' 13779s extra_postargs = [] 13779s msg = 'Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-functi...es/numpy/core/include -I/usr/include/python3.12 -c source.c -o source.o -MMD -MF source.o.d" failed with exit status 1' 13779s obj = 'source.o' 13779s pp_opts = ['-I/usr/lib/python3/dist-packages/numpy/core/include', '-I/usr/include/python3.12'] 13779s self = 13779s src = 'source.c' 13779s 13779s /usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py:58: CompileError 13779s 13779s The above exception was the direct cause of the following exception: 13779s 13779s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_owner_is_base0') 13779s 13779s @pytest.fixture 13779s def get_module(tmp_path): 13779s """ Add a memory policy that returns a false pointer 64 bytes into the 13779s actual allocation, and fill the prefix with some text. Then check at each 13779s memory manipulation that the prefix exists, to make sure all alloc/realloc/ 13779s free/calloc go via the functions here. 13779s """ 13779s if sys.platform.startswith('cygwin'): 13779s pytest.skip('link fails on cygwin') 13779s if IS_WASM: 13779s pytest.skip("Can't build module inside Wasm") 13779s functions = [ 13779s ("get_default_policy", "METH_NOARGS", """ 13779s Py_INCREF(PyDataMem_DefaultHandler); 13779s return PyDataMem_DefaultHandler; 13779s """), 13779s ("set_secret_data_policy", "METH_NOARGS", """ 13779s PyObject *secret_data = 13779s PyCapsule_New(&secret_data_handler, "mem_handler", NULL); 13779s if (secret_data == NULL) { 13779s return NULL; 13779s } 13779s PyObject *old = PyDataMem_SetHandler(secret_data); 13779s Py_DECREF(secret_data); 13779s return old; 13779s """), 13779s ("set_old_policy", "METH_O", """ 13779s PyObject *old; 13779s if (args != NULL && PyCapsule_CheckExact(args)) { 13779s old = PyDataMem_SetHandler(args); 13779s } 13779s else { 13779s old = PyDataMem_SetHandler(NULL); 13779s } 13779s return old; 13779s """), 13779s ("get_array", "METH_NOARGS", """ 13779s char *buf = (char *)malloc(20); 13779s npy_intp dims[1]; 13779s dims[0] = 20; 13779s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13779s return PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, NULL, 13779s buf, NPY_ARRAY_WRITEABLE, NULL); 13779s """), 13779s ("set_own", "METH_O", """ 13779s if (!PyArray_Check(args)) { 13779s PyErr_SetString(PyExc_ValueError, 13779s "need an ndarray"); 13779s return NULL; 13779s } 13779s PyArray_ENABLEFLAGS((PyArrayObject*)args, NPY_ARRAY_OWNDATA); 13779s // Maybe try this too? 13779s // PyArray_BASE(PyArrayObject *)args) = NULL; 13779s Py_RETURN_NONE; 13779s """), 13779s ("get_array_with_base", "METH_NOARGS", """ 13779s char *buf = (char *)malloc(20); 13779s npy_intp dims[1]; 13779s dims[0] = 20; 13779s PyArray_Descr *descr = PyArray_DescrNewFromType(NPY_UINT8); 13779s PyObject *arr = PyArray_NewFromDescr(&PyArray_Type, descr, 1, dims, 13779s NULL, buf, 13779s NPY_ARRAY_WRITEABLE, NULL); 13779s if (arr == NULL) return NULL; 13779s PyObject *obj = PyCapsule_New(buf, "buf capsule", 13779s (PyCapsule_Destructor)&warn_on_free); 13779s if (obj == NULL) { 13779s Py_DECREF(arr); 13779s return NULL; 13779s } 13779s if (PyArray_SetBaseObject((PyArrayObject *)arr, obj) < 0) { 13779s Py_DECREF(arr); 13779s Py_DECREF(obj); 13779s return NULL; 13779s } 13779s return arr; 13779s 13779s """), 13779s ] 13779s prologue = ''' 13779s #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 13779s #include 13779s /* 13779s * This struct allows the dynamic configuration of the allocator funcs 13779s * of the `secret_data_allocator`. It is provided here for 13779s * demonstration purposes, as a valid `ctx` use-case scenario. 13779s */ 13779s typedef struct { 13779s void *(*malloc)(size_t); 13779s void *(*calloc)(size_t, size_t); 13779s void *(*realloc)(void *, size_t); 13779s void (*free)(void *); 13779s } SecretDataAllocatorFuncs; 13779s 13779s NPY_NO_EXPORT void * 13779s shift_alloc(void *ctx, size_t sz) { 13779s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13779s char *real = (char *)funcs->malloc(sz + 64); 13779s if (real == NULL) { 13779s return NULL; 13779s } 13779s snprintf(real, 64, "originally allocated %ld", (unsigned long)sz); 13779s return (void *)(real + 64); 13779s } 13779s NPY_NO_EXPORT void * 13779s shift_zero(void *ctx, size_t sz, size_t cnt) { 13779s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13779s char *real = (char *)funcs->calloc(sz + 64, cnt); 13779s if (real == NULL) { 13779s return NULL; 13779s } 13779s snprintf(real, 64, "originally allocated %ld via zero", 13779s (unsigned long)sz); 13779s return (void *)(real + 64); 13779s } 13779s NPY_NO_EXPORT void 13779s shift_free(void *ctx, void * p, npy_uintp sz) { 13779s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13779s if (p == NULL) { 13779s return ; 13779s } 13779s char *real = (char *)p - 64; 13779s if (strncmp(real, "originally allocated", 20) != 0) { 13779s fprintf(stdout, "uh-oh, unmatched shift_free, " 13779s "no appropriate prefix\\n"); 13779s /* Make C runtime crash by calling free on the wrong address */ 13779s funcs->free((char *)p + 10); 13779s /* funcs->free(real); */ 13779s } 13779s else { 13779s npy_uintp i = (npy_uintp)atoi(real +20); 13779s if (i != sz) { 13779s fprintf(stderr, "uh-oh, unmatched shift_free" 13779s "(ptr, %ld) but allocated %ld\\n", sz, i); 13779s /* This happens in some places, only print */ 13779s funcs->free(real); 13779s } 13779s else { 13779s funcs->free(real); 13779s } 13779s } 13779s } 13779s NPY_NO_EXPORT void * 13779s shift_realloc(void *ctx, void * p, npy_uintp sz) { 13779s SecretDataAllocatorFuncs *funcs = (SecretDataAllocatorFuncs *)ctx; 13779s if (p != NULL) { 13779s char *real = (char *)p - 64; 13779s if (strncmp(real, "originally allocated", 20) != 0) { 13779s fprintf(stdout, "uh-oh, unmatched shift_realloc\\n"); 13779s return realloc(p, sz); 13779s } 13779s return (void *)((char *)funcs->realloc(real, sz + 64) + 64); 13779s } 13779s else { 13779s char *real = (char *)funcs->realloc(p, sz + 64); 13779s if (real == NULL) { 13779s return NULL; 13779s } 13779s snprintf(real, 64, "originally allocated " 13779s "%ld via realloc", (unsigned long)sz); 13779s return (void *)(real + 64); 13779s } 13779s } 13779s /* As an example, we use the standard {m|c|re}alloc/free funcs. */ 13779s static SecretDataAllocatorFuncs secret_data_handler_ctx = { 13779s malloc, 13779s calloc, 13779s realloc, 13779s free 13779s }; 13779s static PyDataMem_Handler secret_data_handler = { 13779s "secret_data_allocator", 13779s 1, 13779s { 13779s &secret_data_handler_ctx, /* ctx */ 13779s shift_alloc, /* malloc */ 13779s shift_zero, /* calloc */ 13779s shift_realloc, /* realloc */ 13779s shift_free /* free */ 13779s } 13779s }; 13779s void warn_on_free(void *capsule) { 13779s PyErr_WarnEx(PyExc_UserWarning, "in warn_on_free", 1); 13779s void * obj = PyCapsule_GetPointer(capsule, 13779s PyCapsule_GetName(capsule)); 13779s free(obj); 13779s }; 13779s ''' 13779s more_init = "import_array();" 13779s try: 13779s import mem_policy 13779s return mem_policy 13779s except ImportError: 13779s pass 13779s # if it does not exist, build and load it 13779s > return extbuild.build_and_import_extension('mem_policy', 13779s functions, 13779s prologue=prologue, 13779s include_dirs=[np.get_include()], 13779s build_dir=tmp_path, 13779s more_init=more_init) 13779s 13779s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13779s more_init = 'import_array();' 13779s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13779s tmp_path = PosixPath('/tmp/pytest-of-root/pytest-1/test_owner_is_base0') 13779s 13779s /usr/lib/python3/dist-packages/numpy/core/tests/test_mem_policy.py:207: 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s 13779s modname = 'mem_policy' 13779s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13779s 13779s def build_and_import_extension( 13779s modname, functions, *, prologue="", build_dir=None, 13779s include_dirs=[], more_init=""): 13779s """ 13779s Build and imports a c-extension module `modname` from a list of function 13779s fragments `functions`. 13779s 13779s 13779s Parameters 13779s ---------- 13779s functions : list of fragments 13779s Each fragment is a sequence of func_name, calling convention, snippet. 13779s prologue : string 13779s Code to precede the rest, usually extra ``#include`` or ``#define`` 13779s macros. 13779s build_dir : pathlib.Path 13779s Where to build the module, usually a temporary directory 13779s include_dirs : list 13779s Extra directories to find include files when compiling 13779s more_init : string 13779s Code to appear in the module PyMODINIT_FUNC 13779s 13779s Returns 13779s ------- 13779s out: module 13779s The module will have been loaded and is ready for use 13779s 13779s Examples 13779s -------- 13779s >>> functions = [("test_bytes", "METH_O", \"\"\" 13779s if ( !PyBytesCheck(args)) { 13779s Py_RETURN_FALSE; 13779s } 13779s Py_RETURN_TRUE; 13779s \"\"\")] 13779s >>> mod = build_and_import_extension("testme", functions) 13779s >>> assert not mod.test_bytes(u'abc') 13779s >>> assert mod.test_bytes(b'abc') 13779s """ 13779s from distutils.errors import CompileError 13779s 13779s body = prologue + _make_methods(functions, modname) 13779s init = """PyObject *mod = PyModule_Create(&moduledef); 13779s """ 13779s if not build_dir: 13779s build_dir = pathlib.Path('.') 13779s if more_init: 13779s init += """#define INITERROR return NULL 13779s """ 13779s init += more_init 13779s init += "\nreturn mod;" 13779s source_string = _make_source(modname, init, body) 13779s try: 13779s mod_so = compile_extension_module( 13779s modname, build_dir, include_dirs, source_string) 13779s except CompileError as e: 13779s # shorten the exception chain 13779s > raise RuntimeError(f"could not compile in {build_dir}:") from e 13779s E RuntimeError: could not compile in /tmp/pytest-of-root/pytest-1/test_owner_is_base0: 13779s 13779s CompileError = 13779s body = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ...LL, /* m_doc */\n -1, /* m_size */\n methods, /* m_methods */\n };\n ' 13779s build_dir = PosixPath('/tmp/pytest-of-root/pytest-1/test_owner_is_base0') 13779s functions = [('get_default_policy', 'METH_NOARGS', '\n Py_INCREF(PyDataMem_DefaultHandler);\n return PyDat...\n Py_DECREF(obj);\n return NULL;\n }\n return arr;\n\n ')] 13779s include_dirs = ['/usr/lib/python3/dist-packages/numpy/core/include'] 13779s init = 'PyObject *mod = PyModule_Create(&moduledef);\n #define INITERROR return NULL\n import_array();\nreturn mod;' 13779s modname = 'mem_policy' 13779s more_init = 'import_array();' 13779s prologue = '\n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include \n /*\n ... PyCapsule_GetName(capsule));\n free(obj);\n };\n ' 13779s source_string = '\n #include \n\n \n #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\n #include 13779s | ^~~~~~~~~~ 13779s compilation terminated. 13779s ___________________ ERROR at setup of TestIntent.test_in_out ___________________ 13779s 13779s def setup_module(): 13779s """ 13779s Build the required testing extension module 13779s 13779s """ 13779s global wrap 13779s 13779s # Check compiler availability first 13779s if not util.has_c_compiler(): 13779s pytest.skip("No C compiler available") 13779s 13779s if wrap is None: 13779s config_code = """ 13779s config.add_extension('test_array_from_pyobj_ext', 13779s sources=['wrapmodule.c', 'fortranobject.c'], 13779s define_macros=[]) 13779s """ 13779s d = os.path.dirname(__file__) 13779s src = [ 13779s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13779s util.getpath("src", "fortranobject.c"), 13779s util.getpath("src", "fortranobject.h"), 13779s ] 13779s > wrap = util.build_module_distutils(src, config_code, 13779s "test_array_from_pyobj_ext") 13779s 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13779s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13779s memo[key] = func(*a, **kw) 13779s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13779s func = 13779s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13779s kw = {} 13779s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s 13779s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13779s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13779s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13779s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13779s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13779s 13779s @_memoize 13779s def build_module_distutils(source_files, config_code, module_name, **kw): 13779s """ 13779s Build a module via distutils and import it. 13779s 13779s """ 13779s d = get_module_dir() 13779s 13779s # Copy files 13779s dst_sources = [] 13779s for fn in source_files: 13779s if not os.path.isfile(fn): 13779s raise RuntimeError("%s is not a file" % fn) 13779s dst = os.path.join(d, os.path.basename(fn)) 13779s shutil.copyfile(fn, dst) 13779s dst_sources.append(dst) 13779s 13779s # Build script 13779s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13779s 13779s code = fr""" 13779s import os 13779s import sys 13779s sys.path = {repr(sys.path)} 13779s 13779s def configuration(parent_name='',top_path=None): 13779s from numpy.distutils.misc_util import Configuration 13779s config = Configuration('', parent_name, top_path) 13779s {config_code} 13779s return config 13779s 13779s if __name__ == "__main__": 13779s from numpy.distutils.core import setup 13779s setup(configuration=configuration) 13779s """ 13779s script = os.path.join(d, get_temp_module_name() + ".py") 13779s dst_sources.append(script) 13779s with open(script, "wb") as f: 13779s f.write(asbytes(code)) 13779s 13779s # Build 13779s cwd = os.getcwd() 13779s try: 13779s os.chdir(d) 13779s cmd = [sys.executable, script, "build_ext", "-i"] 13779s p = subprocess.Popen(cmd, 13779s stdout=subprocess.PIPE, 13779s stderr=subprocess.STDOUT) 13779s out, err = p.communicate() 13779s if p.returncode != 0: 13779s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13779s (cmd[4:], asstr(out))) 13779s E RuntimeError: Running distutils build failed: [] 13779s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13779s E 13779s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13779s E of the deprecation of `distutils` itself. It will be removed for 13779s E Python >= 3.12. For older Python versions it will remain present. 13779s E It is recommended to use `setuptools < 60.0` for those Python versions. 13779s E For more details, see: 13779s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13779s E 13779s E 13779s E from numpy.distutils.core import setup 13779s E running build_ext 13779s E running build_src 13779s E INFO: build_src 13779s E INFO: building extension "test_array_from_pyobj_ext" sources 13779s E INFO: build_src: building npy-pkg config files 13779s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13779s E !! 13779s E 13779s E ******************************************************************************** 13779s E Please avoid running ``setup.py`` directly. 13779s E Instead, use pypa/build, pypa/installer or other 13779s E standards-based tools. 13779s E 13779s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13779s E ******************************************************************************** 13779s E 13779s E !! 13779s E self.initialize_options() 13779s E INFO: customize UnixCCompiler 13779s E INFO: customize UnixCCompiler using build_ext 13779s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E creating /tmp/tmppq19o2st/tmp 13779s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E creating /tmp/tmppq19o2st/usr 13779s E creating /tmp/tmppq19o2st/usr/lib 13779s E creating /tmp/tmppq19o2st/usr/lib/python3 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-march=native' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-O3' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-Werror' 13779s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13779s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-vfpv4' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-march=armv8.2-a+fp16' 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13779s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13779s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13779s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13779s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13779s E INFO: building 'test_array_from_pyobj_ext' extension 13779s E INFO: compiling C sources 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13779s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13779s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13779s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13779s E 14 | #include 13779s E | ^~~~~~~~~~ 13779s E In file included from fortranobject.c:2: 13779s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13779s E 7 | #include 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E compilation terminated. 13779s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13779s E INFO: 13779s E ########### EXT COMPILER OPTIMIZATION ########### 13779s E INFO: Platform : 13779s E Architecture: armhf 13779s E Compiler : gcc 13779s E 13779s E CPU baseline : 13779s E Requested : 'min' 13779s E Enabled : none 13779s E Flags : none 13779s E Extra checks: none 13779s E 13779s E CPU dispatch : 13779s E Requested : 'max -xop -fma4' 13779s E Enabled : none 13779s E Generated : none 13779s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13779s 13779s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13779s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13779s d = '/tmp/tmpjj8q074z' 13779s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13779s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13779s err = None 13779s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13779s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s kw = {} 13779s module_name = 'test_array_from_pyobj_ext' 13779s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13779s p = 13779s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13779s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[BOOL] __________ 13779s 13779s def setup_module(): 13779s """ 13779s Build the required testing extension module 13779s 13779s """ 13779s global wrap 13779s 13779s # Check compiler availability first 13779s if not util.has_c_compiler(): 13779s pytest.skip("No C compiler available") 13779s 13779s if wrap is None: 13779s config_code = """ 13779s config.add_extension('test_array_from_pyobj_ext', 13779s sources=['wrapmodule.c', 'fortranobject.c'], 13779s define_macros=[]) 13779s """ 13779s d = os.path.dirname(__file__) 13779s src = [ 13779s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13779s util.getpath("src", "fortranobject.c"), 13779s util.getpath("src", "fortranobject.h"), 13779s ] 13779s > wrap = util.build_module_distutils(src, config_code, 13779s "test_array_from_pyobj_ext") 13779s 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13779s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13779s memo[key] = func(*a, **kw) 13779s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13779s func = 13779s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13779s kw = {} 13779s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s 13779s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13779s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13779s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13779s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13779s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13779s 13779s @_memoize 13779s def build_module_distutils(source_files, config_code, module_name, **kw): 13779s """ 13779s Build a module via distutils and import it. 13779s 13779s """ 13779s d = get_module_dir() 13779s 13779s # Copy files 13779s dst_sources = [] 13779s for fn in source_files: 13779s if not os.path.isfile(fn): 13779s raise RuntimeError("%s is not a file" % fn) 13779s dst = os.path.join(d, os.path.basename(fn)) 13779s shutil.copyfile(fn, dst) 13779s dst_sources.append(dst) 13779s 13779s # Build script 13779s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13779s 13779s code = fr""" 13779s import os 13779s import sys 13779s sys.path = {repr(sys.path)} 13779s 13779s def configuration(parent_name='',top_path=None): 13779s from numpy.distutils.misc_util import Configuration 13779s config = Configuration('', parent_name, top_path) 13779s {config_code} 13779s return config 13779s 13779s if __name__ == "__main__": 13779s from numpy.distutils.core import setup 13779s setup(configuration=configuration) 13779s """ 13779s script = os.path.join(d, get_temp_module_name() + ".py") 13779s dst_sources.append(script) 13779s with open(script, "wb") as f: 13779s f.write(asbytes(code)) 13779s 13779s # Build 13779s cwd = os.getcwd() 13779s try: 13779s os.chdir(d) 13779s cmd = [sys.executable, script, "build_ext", "-i"] 13779s p = subprocess.Popen(cmd, 13779s stdout=subprocess.PIPE, 13779s stderr=subprocess.STDOUT) 13779s out, err = p.communicate() 13779s if p.returncode != 0: 13779s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13779s (cmd[4:], asstr(out))) 13779s E RuntimeError: Running distutils build failed: [] 13779s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13779s E 13779s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13779s E of the deprecation of `distutils` itself. It will be removed for 13779s E Python >= 3.12. For older Python versions it will remain present. 13779s E It is recommended to use `setuptools < 60.0` for those Python versions. 13779s E For more details, see: 13779s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13779s E 13779s E 13779s E from numpy.distutils.core import setup 13779s E running build_ext 13779s E running build_src 13779s E INFO: build_src 13779s E INFO: building extension "test_array_from_pyobj_ext" sources 13779s E INFO: build_src: building npy-pkg config files 13779s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13779s E !! 13779s E 13779s E ******************************************************************************** 13779s E Please avoid running ``setup.py`` directly. 13779s E Instead, use pypa/build, pypa/installer or other 13779s E standards-based tools. 13779s E 13779s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13779s E ******************************************************************************** 13779s E 13779s E !! 13779s E self.initialize_options() 13779s E INFO: customize UnixCCompiler 13779s E INFO: customize UnixCCompiler using build_ext 13779s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E creating /tmp/tmppq19o2st/tmp 13779s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E creating /tmp/tmppq19o2st/usr 13779s E creating /tmp/tmppq19o2st/usr/lib 13779s E creating /tmp/tmppq19o2st/usr/lib/python3 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-march=native' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-O3' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-Werror' 13779s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13779s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-vfpv4' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-march=armv8.2-a+fp16' 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13779s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13779s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13779s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13779s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13779s E INFO: building 'test_array_from_pyobj_ext' extension 13779s E INFO: compiling C sources 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13779s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13779s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13779s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13779s E 14 | #include 13779s E | ^~~~~~~~~~ 13779s E In file included from fortranobject.c:2: 13779s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13779s E 7 | #include 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E compilation terminated. 13779s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13779s E INFO: 13779s E ########### EXT COMPILER OPTIMIZATION ########### 13779s E INFO: Platform : 13779s E Architecture: armhf 13779s E Compiler : gcc 13779s E 13779s E CPU baseline : 13779s E Requested : 'min' 13779s E Enabled : none 13779s E Flags : none 13779s E Extra checks: none 13779s E 13779s E CPU dispatch : 13779s E Requested : 'max -xop -fma4' 13779s E Enabled : none 13779s E Generated : none 13779s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13779s 13779s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13779s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13779s d = '/tmp/tmpjj8q074z' 13779s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13779s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13779s err = None 13779s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13779s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s kw = {} 13779s module_name = 'test_array_from_pyobj_ext' 13779s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13779s p = 13779s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13779s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[BOOL] ________ 13779s 13779s def setup_module(): 13779s """ 13779s Build the required testing extension module 13779s 13779s """ 13779s global wrap 13779s 13779s # Check compiler availability first 13779s if not util.has_c_compiler(): 13779s pytest.skip("No C compiler available") 13779s 13779s if wrap is None: 13779s config_code = """ 13779s config.add_extension('test_array_from_pyobj_ext', 13779s sources=['wrapmodule.c', 'fortranobject.c'], 13779s define_macros=[]) 13779s """ 13779s d = os.path.dirname(__file__) 13779s src = [ 13779s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13779s util.getpath("src", "fortranobject.c"), 13779s util.getpath("src", "fortranobject.h"), 13779s ] 13779s > wrap = util.build_module_distutils(src, config_code, 13779s "test_array_from_pyobj_ext") 13779s 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13779s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13779s memo[key] = func(*a, **kw) 13779s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13779s func = 13779s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13779s kw = {} 13779s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s 13779s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13779s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13779s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13779s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13779s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13779s 13779s @_memoize 13779s def build_module_distutils(source_files, config_code, module_name, **kw): 13779s """ 13779s Build a module via distutils and import it. 13779s 13779s """ 13779s d = get_module_dir() 13779s 13779s # Copy files 13779s dst_sources = [] 13779s for fn in source_files: 13779s if not os.path.isfile(fn): 13779s raise RuntimeError("%s is not a file" % fn) 13779s dst = os.path.join(d, os.path.basename(fn)) 13779s shutil.copyfile(fn, dst) 13779s dst_sources.append(dst) 13779s 13779s # Build script 13779s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13779s 13779s code = fr""" 13779s import os 13779s import sys 13779s sys.path = {repr(sys.path)} 13779s 13779s def configuration(parent_name='',top_path=None): 13779s from numpy.distutils.misc_util import Configuration 13779s config = Configuration('', parent_name, top_path) 13779s {config_code} 13779s return config 13779s 13779s if __name__ == "__main__": 13779s from numpy.distutils.core import setup 13779s setup(configuration=configuration) 13779s """ 13779s script = os.path.join(d, get_temp_module_name() + ".py") 13779s dst_sources.append(script) 13779s with open(script, "wb") as f: 13779s f.write(asbytes(code)) 13779s 13779s # Build 13779s cwd = os.getcwd() 13779s try: 13779s os.chdir(d) 13779s cmd = [sys.executable, script, "build_ext", "-i"] 13779s p = subprocess.Popen(cmd, 13779s stdout=subprocess.PIPE, 13779s stderr=subprocess.STDOUT) 13779s out, err = p.communicate() 13779s if p.returncode != 0: 13779s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13779s (cmd[4:], asstr(out))) 13779s E RuntimeError: Running distutils build failed: [] 13779s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13779s E 13779s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13779s E of the deprecation of `distutils` itself. It will be removed for 13779s E Python >= 3.12. For older Python versions it will remain present. 13779s E It is recommended to use `setuptools < 60.0` for those Python versions. 13779s E For more details, see: 13779s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13779s E 13779s E 13779s E from numpy.distutils.core import setup 13779s E running build_ext 13779s E running build_src 13779s E INFO: build_src 13779s E INFO: building extension "test_array_from_pyobj_ext" sources 13779s E INFO: build_src: building npy-pkg config files 13779s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13779s E !! 13779s E 13779s E ******************************************************************************** 13779s E Please avoid running ``setup.py`` directly. 13779s E Instead, use pypa/build, pypa/installer or other 13779s E standards-based tools. 13779s E 13779s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13779s E ******************************************************************************** 13779s E 13779s E !! 13779s E self.initialize_options() 13779s E INFO: customize UnixCCompiler 13779s E INFO: customize UnixCCompiler using build_ext 13779s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E creating /tmp/tmppq19o2st/tmp 13779s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E creating /tmp/tmppq19o2st/usr 13779s E creating /tmp/tmppq19o2st/usr/lib 13779s E creating /tmp/tmppq19o2st/usr/lib/python3 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-march=native' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-O3' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-Werror' 13779s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13779s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-vfpv4' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-march=armv8.2-a+fp16' 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13779s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13779s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13779s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13779s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13779s E INFO: building 'test_array_from_pyobj_ext' extension 13779s E INFO: compiling C sources 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13779s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13779s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13779s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13779s E 14 | #include 13779s E | ^~~~~~~~~~ 13779s E In file included from fortranobject.c:2: 13779s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13779s E 7 | #include 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E compilation terminated. 13779s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13779s E INFO: 13779s E ########### EXT COMPILER OPTIMIZATION ########### 13779s E INFO: Platform : 13779s E Architecture: armhf 13779s E Compiler : gcc 13779s E 13779s E CPU baseline : 13779s E Requested : 'min' 13779s E Enabled : none 13779s E Flags : none 13779s E Extra checks: none 13779s E 13779s E CPU dispatch : 13779s E Requested : 'max -xop -fma4' 13779s E Enabled : none 13779s E Generated : none 13779s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13779s 13779s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13779s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13779s d = '/tmp/tmpjj8q074z' 13779s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13779s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13779s err = None 13779s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13779s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s kw = {} 13779s module_name = 'test_array_from_pyobj_ext' 13779s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13779s p = 13779s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13779s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-2seq-C-w] _______ 13779s 13779s def setup_module(): 13779s """ 13779s Build the required testing extension module 13779s 13779s """ 13779s global wrap 13779s 13779s # Check compiler availability first 13779s if not util.has_c_compiler(): 13779s pytest.skip("No C compiler available") 13779s 13779s if wrap is None: 13779s config_code = """ 13779s config.add_extension('test_array_from_pyobj_ext', 13779s sources=['wrapmodule.c', 'fortranobject.c'], 13779s define_macros=[]) 13779s """ 13779s d = os.path.dirname(__file__) 13779s src = [ 13779s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13779s util.getpath("src", "fortranobject.c"), 13779s util.getpath("src", "fortranobject.h"), 13779s ] 13779s > wrap = util.build_module_distutils(src, config_code, 13779s "test_array_from_pyobj_ext") 13779s 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13779s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13779s memo[key] = func(*a, **kw) 13779s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13779s func = 13779s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13779s kw = {} 13779s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13779s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13779s 13779s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13779s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13779s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13779s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13779s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13779s 13779s @_memoize 13779s def build_module_distutils(source_files, config_code, module_name, **kw): 13779s """ 13779s Build a module via distutils and import it. 13779s 13779s """ 13779s d = get_module_dir() 13779s 13779s # Copy files 13779s dst_sources = [] 13779s for fn in source_files: 13779s if not os.path.isfile(fn): 13779s raise RuntimeError("%s is not a file" % fn) 13779s dst = os.path.join(d, os.path.basename(fn)) 13779s shutil.copyfile(fn, dst) 13779s dst_sources.append(dst) 13779s 13779s # Build script 13779s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13779s 13779s code = fr""" 13779s import os 13779s import sys 13779s sys.path = {repr(sys.path)} 13779s 13779s def configuration(parent_name='',top_path=None): 13779s from numpy.distutils.misc_util import Configuration 13779s config = Configuration('', parent_name, top_path) 13779s {config_code} 13779s return config 13779s 13779s if __name__ == "__main__": 13779s from numpy.distutils.core import setup 13779s setup(configuration=configuration) 13779s """ 13779s script = os.path.join(d, get_temp_module_name() + ".py") 13779s dst_sources.append(script) 13779s with open(script, "wb") as f: 13779s f.write(asbytes(code)) 13779s 13779s # Build 13779s cwd = os.getcwd() 13779s try: 13779s os.chdir(d) 13779s cmd = [sys.executable, script, "build_ext", "-i"] 13779s p = subprocess.Popen(cmd, 13779s stdout=subprocess.PIPE, 13779s stderr=subprocess.STDOUT) 13779s out, err = p.communicate() 13779s if p.returncode != 0: 13779s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13779s (cmd[4:], asstr(out))) 13779s E RuntimeError: Running distutils build failed: [] 13779s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13779s E 13779s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13779s E of the deprecation of `distutils` itself. It will be removed for 13779s E Python >= 3.12. For older Python versions it will remain present. 13779s E It is recommended to use `setuptools < 60.0` for those Python versions. 13779s E For more details, see: 13779s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13779s E 13779s E 13779s E from numpy.distutils.core import setup 13779s E running build_ext 13779s E running build_src 13779s E INFO: build_src 13779s E INFO: building extension "test_array_from_pyobj_ext" sources 13779s E INFO: build_src: building npy-pkg config files 13779s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13779s E !! 13779s E 13779s E ******************************************************************************** 13779s E Please avoid running ``setup.py`` directly. 13779s E Instead, use pypa/build, pypa/installer or other 13779s E standards-based tools. 13779s E 13779s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13779s E ******************************************************************************** 13779s E 13779s E !! 13779s E self.initialize_options() 13779s E INFO: customize UnixCCompiler 13779s E INFO: customize UnixCCompiler using build_ext 13779s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E creating /tmp/tmppq19o2st/tmp 13779s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E creating /tmp/tmppq19o2st/usr 13779s E creating /tmp/tmppq19o2st/usr/lib 13779s E creating /tmp/tmppq19o2st/usr/lib/python3 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13779s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-march=native' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-O3' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-Werror' 13779s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13779s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-vfpv4' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13779s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-march=armv8.2-a+fp16' 13779s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/include/python3.12 -c' 13779s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13779s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13779s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13779s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13779s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13779s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13779s E 9 | # include_next 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E 13779s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13779s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13779s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13779s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13779s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13779s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13779s E INFO: building 'test_array_from_pyobj_ext' extension 13779s E INFO: compiling C sources 13779s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13779s E 13779s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13779s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13779s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13779s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13779s E 14 | #include 13779s E | ^~~~~~~~~~ 13779s E In file included from fortranobject.c:2: 13779s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13779s E 7 | #include 13779s E | ^~~~~~~~~~ 13779s E compilation terminated. 13779s E compilation terminated. 13779s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13779s E INFO: 13779s E ########### EXT COMPILER OPTIMIZATION ########### 13779s E INFO: Platform : 13779s E Architecture: armhf 13779s E Compiler : gcc 13779s E 13779s E CPU baseline : 13779s E Requested : 'min' 13779s E Enabled : none 13779s E Flags : none 13779s E Extra checks: none 13779s E 13779s E CPU dispatch : 13779s E Requested : 'max -xop -fma4' 13779s E Enabled : none 13779s E Generated : none 13779s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13779s 13779s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13779s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13779s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13779s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13779s d = '/tmp/tmpjj8q074z' 13779s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13779s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13779s err = None 13779s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13779s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s kw = {} 13779s module_name = 'test_array_from_pyobj_ext' 13779s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13779s p = 13779s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13779s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13779s 13779s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13779s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-2seq-C-ro] _______ 13779s 13779s def setup_module(): 13779s """ 13779s Build the required testing extension module 13779s 13779s """ 13779s global wrap 13779s 13779s # Check compiler availability first 13779s if not util.has_c_compiler(): 13779s pytest.skip("No C compiler available") 13779s 13779s if wrap is None: 13779s config_code = """ 13780s config.add_extension('test_array_from_pyobj_ext', 13780s sources=['wrapmodule.c', 'fortranobject.c'], 13780s define_macros=[]) 13780s """ 13780s d = os.path.dirname(__file__) 13780s src = [ 13780s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13780s util.getpath("src", "fortranobject.c"), 13780s util.getpath("src", "fortranobject.h"), 13780s ] 13780s > wrap = util.build_module_distutils(src, config_code, 13780s "test_array_from_pyobj_ext") 13780s 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13780s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13780s memo[key] = func(*a, **kw) 13780s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13780s func = 13780s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13780s kw = {} 13780s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s 13780s @_memoize 13780s def build_module_distutils(source_files, config_code, module_name, **kw): 13780s """ 13780s Build a module via distutils and import it. 13780s 13780s """ 13780s d = get_module_dir() 13780s 13780s # Copy files 13780s dst_sources = [] 13780s for fn in source_files: 13780s if not os.path.isfile(fn): 13780s raise RuntimeError("%s is not a file" % fn) 13780s dst = os.path.join(d, os.path.basename(fn)) 13780s shutil.copyfile(fn, dst) 13780s dst_sources.append(dst) 13780s 13780s # Build script 13780s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13780s 13780s code = fr""" 13780s import os 13780s import sys 13780s sys.path = {repr(sys.path)} 13780s 13780s def configuration(parent_name='',top_path=None): 13780s from numpy.distutils.misc_util import Configuration 13780s config = Configuration('', parent_name, top_path) 13780s {config_code} 13780s return config 13780s 13780s if __name__ == "__main__": 13780s from numpy.distutils.core import setup 13780s setup(configuration=configuration) 13780s """ 13780s script = os.path.join(d, get_temp_module_name() + ".py") 13780s dst_sources.append(script) 13780s with open(script, "wb") as f: 13780s f.write(asbytes(code)) 13780s 13780s # Build 13780s cwd = os.getcwd() 13780s try: 13780s os.chdir(d) 13780s cmd = [sys.executable, script, "build_ext", "-i"] 13780s p = subprocess.Popen(cmd, 13780s stdout=subprocess.PIPE, 13780s stderr=subprocess.STDOUT) 13780s out, err = p.communicate() 13780s if p.returncode != 0: 13780s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13780s (cmd[4:], asstr(out))) 13780s E RuntimeError: Running distutils build failed: [] 13780s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13780s E 13780s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13780s E of the deprecation of `distutils` itself. It will be removed for 13780s E Python >= 3.12. For older Python versions it will remain present. 13780s E It is recommended to use `setuptools < 60.0` for those Python versions. 13780s E For more details, see: 13780s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13780s E 13780s E 13780s E from numpy.distutils.core import setup 13780s E running build_ext 13780s E running build_src 13780s E INFO: build_src 13780s E INFO: building extension "test_array_from_pyobj_ext" sources 13780s E INFO: build_src: building npy-pkg config files 13780s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13780s E !! 13780s E 13780s E ******************************************************************************** 13780s E Please avoid running ``setup.py`` directly. 13780s E Instead, use pypa/build, pypa/installer or other 13780s E standards-based tools. 13780s E 13780s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13780s E ******************************************************************************** 13780s E 13780s E !! 13780s E self.initialize_options() 13780s E INFO: customize UnixCCompiler 13780s E INFO: customize UnixCCompiler using build_ext 13780s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/tmp 13780s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/usr 13780s E creating /tmp/tmppq19o2st/usr/lib 13780s E creating /tmp/tmppq19o2st/usr/lib/python3 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=native' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-O3' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-Werror' 13780s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13780s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-vfpv4' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=armv8.2-a+fp16' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13780s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13780s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13780s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13780s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13780s E INFO: building 'test_array_from_pyobj_ext' extension 13780s E INFO: compiling C sources 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13780s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13780s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13780s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13780s E 14 | #include 13780s E | ^~~~~~~~~~ 13780s E In file included from fortranobject.c:2: 13780s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13780s E 7 | #include 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E compilation terminated. 13780s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13780s E INFO: 13780s E ########### EXT COMPILER OPTIMIZATION ########### 13780s E INFO: Platform : 13780s E Architecture: armhf 13780s E Compiler : gcc 13780s E 13780s E CPU baseline : 13780s E Requested : 'min' 13780s E Enabled : none 13780s E Flags : none 13780s E Extra checks: none 13780s E 13780s E CPU dispatch : 13780s E Requested : 'max -xop -fma4' 13780s E Enabled : none 13780s E Generated : none 13780s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13780s 13780s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13780s d = '/tmp/tmpjj8q074z' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s err = None 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s kw = {} 13780s module_name = 'test_array_from_pyobj_ext' 13780s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13780s p = 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13780s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-2seq-F-w] _______ 13780s 13780s def setup_module(): 13780s """ 13780s Build the required testing extension module 13780s 13780s """ 13780s global wrap 13780s 13780s # Check compiler availability first 13780s if not util.has_c_compiler(): 13780s pytest.skip("No C compiler available") 13780s 13780s if wrap is None: 13780s config_code = """ 13780s config.add_extension('test_array_from_pyobj_ext', 13780s sources=['wrapmodule.c', 'fortranobject.c'], 13780s define_macros=[]) 13780s """ 13780s d = os.path.dirname(__file__) 13780s src = [ 13780s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13780s util.getpath("src", "fortranobject.c"), 13780s util.getpath("src", "fortranobject.h"), 13780s ] 13780s > wrap = util.build_module_distutils(src, config_code, 13780s "test_array_from_pyobj_ext") 13780s 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13780s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13780s memo[key] = func(*a, **kw) 13780s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13780s func = 13780s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13780s kw = {} 13780s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s 13780s @_memoize 13780s def build_module_distutils(source_files, config_code, module_name, **kw): 13780s """ 13780s Build a module via distutils and import it. 13780s 13780s """ 13780s d = get_module_dir() 13780s 13780s # Copy files 13780s dst_sources = [] 13780s for fn in source_files: 13780s if not os.path.isfile(fn): 13780s raise RuntimeError("%s is not a file" % fn) 13780s dst = os.path.join(d, os.path.basename(fn)) 13780s shutil.copyfile(fn, dst) 13780s dst_sources.append(dst) 13780s 13780s # Build script 13780s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13780s 13780s code = fr""" 13780s import os 13780s import sys 13780s sys.path = {repr(sys.path)} 13780s 13780s def configuration(parent_name='',top_path=None): 13780s from numpy.distutils.misc_util import Configuration 13780s config = Configuration('', parent_name, top_path) 13780s {config_code} 13780s return config 13780s 13780s if __name__ == "__main__": 13780s from numpy.distutils.core import setup 13780s setup(configuration=configuration) 13780s """ 13780s script = os.path.join(d, get_temp_module_name() + ".py") 13780s dst_sources.append(script) 13780s with open(script, "wb") as f: 13780s f.write(asbytes(code)) 13780s 13780s # Build 13780s cwd = os.getcwd() 13780s try: 13780s os.chdir(d) 13780s cmd = [sys.executable, script, "build_ext", "-i"] 13780s p = subprocess.Popen(cmd, 13780s stdout=subprocess.PIPE, 13780s stderr=subprocess.STDOUT) 13780s out, err = p.communicate() 13780s if p.returncode != 0: 13780s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13780s (cmd[4:], asstr(out))) 13780s E RuntimeError: Running distutils build failed: [] 13780s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13780s E 13780s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13780s E of the deprecation of `distutils` itself. It will be removed for 13780s E Python >= 3.12. For older Python versions it will remain present. 13780s E It is recommended to use `setuptools < 60.0` for those Python versions. 13780s E For more details, see: 13780s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13780s E 13780s E 13780s E from numpy.distutils.core import setup 13780s E running build_ext 13780s E running build_src 13780s E INFO: build_src 13780s E INFO: building extension "test_array_from_pyobj_ext" sources 13780s E INFO: build_src: building npy-pkg config files 13780s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13780s E !! 13780s E 13780s E ******************************************************************************** 13780s E Please avoid running ``setup.py`` directly. 13780s E Instead, use pypa/build, pypa/installer or other 13780s E standards-based tools. 13780s E 13780s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13780s E ******************************************************************************** 13780s E 13780s E !! 13780s E self.initialize_options() 13780s E INFO: customize UnixCCompiler 13780s E INFO: customize UnixCCompiler using build_ext 13780s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/tmp 13780s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/usr 13780s E creating /tmp/tmppq19o2st/usr/lib 13780s E creating /tmp/tmppq19o2st/usr/lib/python3 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=native' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-O3' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-Werror' 13780s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13780s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-vfpv4' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=armv8.2-a+fp16' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13780s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13780s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13780s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13780s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13780s E INFO: building 'test_array_from_pyobj_ext' extension 13780s E INFO: compiling C sources 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13780s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13780s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13780s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13780s E 14 | #include 13780s E | ^~~~~~~~~~ 13780s E In file included from fortranobject.c:2: 13780s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13780s E 7 | #include 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E compilation terminated. 13780s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13780s E INFO: 13780s E ########### EXT COMPILER OPTIMIZATION ########### 13780s E INFO: Platform : 13780s E Architecture: armhf 13780s E Compiler : gcc 13780s E 13780s E CPU baseline : 13780s E Requested : 'min' 13780s E Enabled : none 13780s E Flags : none 13780s E Extra checks: none 13780s E 13780s E CPU dispatch : 13780s E Requested : 'max -xop -fma4' 13780s E Enabled : none 13780s E Generated : none 13780s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13780s 13780s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13780s d = '/tmp/tmpjj8q074z' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s err = None 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s kw = {} 13780s module_name = 'test_array_from_pyobj_ext' 13780s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13780s p = 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13780s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-2seq-F-ro] _______ 13780s 13780s def setup_module(): 13780s """ 13780s Build the required testing extension module 13780s 13780s """ 13780s global wrap 13780s 13780s # Check compiler availability first 13780s if not util.has_c_compiler(): 13780s pytest.skip("No C compiler available") 13780s 13780s if wrap is None: 13780s config_code = """ 13780s config.add_extension('test_array_from_pyobj_ext', 13780s sources=['wrapmodule.c', 'fortranobject.c'], 13780s define_macros=[]) 13780s """ 13780s d = os.path.dirname(__file__) 13780s src = [ 13780s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13780s util.getpath("src", "fortranobject.c"), 13780s util.getpath("src", "fortranobject.h"), 13780s ] 13780s > wrap = util.build_module_distutils(src, config_code, 13780s "test_array_from_pyobj_ext") 13780s 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13780s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13780s memo[key] = func(*a, **kw) 13780s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13780s func = 13780s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13780s kw = {} 13780s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s 13780s @_memoize 13780s def build_module_distutils(source_files, config_code, module_name, **kw): 13780s """ 13780s Build a module via distutils and import it. 13780s 13780s """ 13780s d = get_module_dir() 13780s 13780s # Copy files 13780s dst_sources = [] 13780s for fn in source_files: 13780s if not os.path.isfile(fn): 13780s raise RuntimeError("%s is not a file" % fn) 13780s dst = os.path.join(d, os.path.basename(fn)) 13780s shutil.copyfile(fn, dst) 13780s dst_sources.append(dst) 13780s 13780s # Build script 13780s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13780s 13780s code = fr""" 13780s import os 13780s import sys 13780s sys.path = {repr(sys.path)} 13780s 13780s def configuration(parent_name='',top_path=None): 13780s from numpy.distutils.misc_util import Configuration 13780s config = Configuration('', parent_name, top_path) 13780s {config_code} 13780s return config 13780s 13780s if __name__ == "__main__": 13780s from numpy.distutils.core import setup 13780s setup(configuration=configuration) 13780s """ 13780s script = os.path.join(d, get_temp_module_name() + ".py") 13780s dst_sources.append(script) 13780s with open(script, "wb") as f: 13780s f.write(asbytes(code)) 13780s 13780s # Build 13780s cwd = os.getcwd() 13780s try: 13780s os.chdir(d) 13780s cmd = [sys.executable, script, "build_ext", "-i"] 13780s p = subprocess.Popen(cmd, 13780s stdout=subprocess.PIPE, 13780s stderr=subprocess.STDOUT) 13780s out, err = p.communicate() 13780s if p.returncode != 0: 13780s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13780s (cmd[4:], asstr(out))) 13780s E RuntimeError: Running distutils build failed: [] 13780s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13780s E 13780s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13780s E of the deprecation of `distutils` itself. It will be removed for 13780s E Python >= 3.12. For older Python versions it will remain present. 13780s E It is recommended to use `setuptools < 60.0` for those Python versions. 13780s E For more details, see: 13780s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13780s E 13780s E 13780s E from numpy.distutils.core import setup 13780s E running build_ext 13780s E running build_src 13780s E INFO: build_src 13780s E INFO: building extension "test_array_from_pyobj_ext" sources 13780s E INFO: build_src: building npy-pkg config files 13780s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13780s E !! 13780s E 13780s E ******************************************************************************** 13780s E Please avoid running ``setup.py`` directly. 13780s E Instead, use pypa/build, pypa/installer or other 13780s E standards-based tools. 13780s E 13780s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13780s E ******************************************************************************** 13780s E 13780s E !! 13780s E self.initialize_options() 13780s E INFO: customize UnixCCompiler 13780s E INFO: customize UnixCCompiler using build_ext 13780s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/tmp 13780s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/usr 13780s E creating /tmp/tmppq19o2st/usr/lib 13780s E creating /tmp/tmppq19o2st/usr/lib/python3 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=native' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-O3' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-Werror' 13780s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13780s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-vfpv4' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=armv8.2-a+fp16' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13780s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13780s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13780s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13780s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13780s E INFO: building 'test_array_from_pyobj_ext' extension 13780s E INFO: compiling C sources 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13780s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13780s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13780s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13780s E 14 | #include 13780s E | ^~~~~~~~~~ 13780s E In file included from fortranobject.c:2: 13780s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13780s E 7 | #include 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E compilation terminated. 13780s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13780s E INFO: 13780s E ########### EXT COMPILER OPTIMIZATION ########### 13780s E INFO: Platform : 13780s E Architecture: armhf 13780s E Compiler : gcc 13780s E 13780s E CPU baseline : 13780s E Requested : 'min' 13780s E Enabled : none 13780s E Flags : none 13780s E Extra checks: none 13780s E 13780s E CPU dispatch : 13780s E Requested : 'max -xop -fma4' 13780s E Enabled : none 13780s E Generated : none 13780s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13780s 13780s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13780s d = '/tmp/tmpjj8q074z' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s err = None 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s kw = {} 13780s module_name = 'test_array_from_pyobj_ext' 13780s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13780s p = 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13780s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-23seq-C-w] _______ 13780s 13780s def setup_module(): 13780s """ 13780s Build the required testing extension module 13780s 13780s """ 13780s global wrap 13780s 13780s # Check compiler availability first 13780s if not util.has_c_compiler(): 13780s pytest.skip("No C compiler available") 13780s 13780s if wrap is None: 13780s config_code = """ 13780s config.add_extension('test_array_from_pyobj_ext', 13780s sources=['wrapmodule.c', 'fortranobject.c'], 13780s define_macros=[]) 13780s """ 13780s d = os.path.dirname(__file__) 13780s src = [ 13780s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13780s util.getpath("src", "fortranobject.c"), 13780s util.getpath("src", "fortranobject.h"), 13780s ] 13780s > wrap = util.build_module_distutils(src, config_code, 13780s "test_array_from_pyobj_ext") 13780s 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13780s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13780s memo[key] = func(*a, **kw) 13780s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13780s func = 13780s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13780s kw = {} 13780s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s 13780s @_memoize 13780s def build_module_distutils(source_files, config_code, module_name, **kw): 13780s """ 13780s Build a module via distutils and import it. 13780s 13780s """ 13780s d = get_module_dir() 13780s 13780s # Copy files 13780s dst_sources = [] 13780s for fn in source_files: 13780s if not os.path.isfile(fn): 13780s raise RuntimeError("%s is not a file" % fn) 13780s dst = os.path.join(d, os.path.basename(fn)) 13780s shutil.copyfile(fn, dst) 13780s dst_sources.append(dst) 13780s 13780s # Build script 13780s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13780s 13780s code = fr""" 13780s import os 13780s import sys 13780s sys.path = {repr(sys.path)} 13780s 13780s def configuration(parent_name='',top_path=None): 13780s from numpy.distutils.misc_util import Configuration 13780s config = Configuration('', parent_name, top_path) 13780s {config_code} 13780s return config 13780s 13780s if __name__ == "__main__": 13780s from numpy.distutils.core import setup 13780s setup(configuration=configuration) 13780s """ 13780s script = os.path.join(d, get_temp_module_name() + ".py") 13780s dst_sources.append(script) 13780s with open(script, "wb") as f: 13780s f.write(asbytes(code)) 13780s 13780s # Build 13780s cwd = os.getcwd() 13780s try: 13780s os.chdir(d) 13780s cmd = [sys.executable, script, "build_ext", "-i"] 13780s p = subprocess.Popen(cmd, 13780s stdout=subprocess.PIPE, 13780s stderr=subprocess.STDOUT) 13780s out, err = p.communicate() 13780s if p.returncode != 0: 13780s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13780s (cmd[4:], asstr(out))) 13780s E RuntimeError: Running distutils build failed: [] 13780s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13780s E 13780s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13780s E of the deprecation of `distutils` itself. It will be removed for 13780s E Python >= 3.12. For older Python versions it will remain present. 13780s E It is recommended to use `setuptools < 60.0` for those Python versions. 13780s E For more details, see: 13780s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13780s E 13780s E 13780s E from numpy.distutils.core import setup 13780s E running build_ext 13780s E running build_src 13780s E INFO: build_src 13780s E INFO: building extension "test_array_from_pyobj_ext" sources 13780s E INFO: build_src: building npy-pkg config files 13780s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13780s E !! 13780s E 13780s E ******************************************************************************** 13780s E Please avoid running ``setup.py`` directly. 13780s E Instead, use pypa/build, pypa/installer or other 13780s E standards-based tools. 13780s E 13780s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13780s E ******************************************************************************** 13780s E 13780s E !! 13780s E self.initialize_options() 13780s E INFO: customize UnixCCompiler 13780s E INFO: customize UnixCCompiler using build_ext 13780s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/tmp 13780s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/usr 13780s E creating /tmp/tmppq19o2st/usr/lib 13780s E creating /tmp/tmppq19o2st/usr/lib/python3 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=native' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-O3' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-Werror' 13780s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13780s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-vfpv4' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=armv8.2-a+fp16' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13780s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13780s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13780s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13780s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13780s E INFO: building 'test_array_from_pyobj_ext' extension 13780s E INFO: compiling C sources 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13780s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13780s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13780s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13780s E 14 | #include 13780s E | ^~~~~~~~~~ 13780s E In file included from fortranobject.c:2: 13780s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13780s E 7 | #include 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E compilation terminated. 13780s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13780s E INFO: 13780s E ########### EXT COMPILER OPTIMIZATION ########### 13780s E INFO: Platform : 13780s E Architecture: armhf 13780s E Compiler : gcc 13780s E 13780s E CPU baseline : 13780s E Requested : 'min' 13780s E Enabled : none 13780s E Flags : none 13780s E Extra checks: none 13780s E 13780s E CPU dispatch : 13780s E Requested : 'max -xop -fma4' 13780s E Enabled : none 13780s E Generated : none 13780s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13780s 13780s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13780s d = '/tmp/tmpjj8q074z' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s err = None 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s kw = {} 13780s module_name = 'test_array_from_pyobj_ext' 13780s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13780s p = 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13780s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-23seq-C-ro] ______ 13780s 13780s def setup_module(): 13780s """ 13780s Build the required testing extension module 13780s 13780s """ 13780s global wrap 13780s 13780s # Check compiler availability first 13780s if not util.has_c_compiler(): 13780s pytest.skip("No C compiler available") 13780s 13780s if wrap is None: 13780s config_code = """ 13780s config.add_extension('test_array_from_pyobj_ext', 13780s sources=['wrapmodule.c', 'fortranobject.c'], 13780s define_macros=[]) 13780s """ 13780s d = os.path.dirname(__file__) 13780s src = [ 13780s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13780s util.getpath("src", "fortranobject.c"), 13780s util.getpath("src", "fortranobject.h"), 13780s ] 13780s > wrap = util.build_module_distutils(src, config_code, 13780s "test_array_from_pyobj_ext") 13780s 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13780s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13780s memo[key] = func(*a, **kw) 13780s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13780s func = 13780s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13780s kw = {} 13780s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s 13780s @_memoize 13780s def build_module_distutils(source_files, config_code, module_name, **kw): 13780s """ 13780s Build a module via distutils and import it. 13780s 13780s """ 13780s d = get_module_dir() 13780s 13780s # Copy files 13780s dst_sources = [] 13780s for fn in source_files: 13780s if not os.path.isfile(fn): 13780s raise RuntimeError("%s is not a file" % fn) 13780s dst = os.path.join(d, os.path.basename(fn)) 13780s shutil.copyfile(fn, dst) 13780s dst_sources.append(dst) 13780s 13780s # Build script 13780s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13780s 13780s code = fr""" 13780s import os 13780s import sys 13780s sys.path = {repr(sys.path)} 13780s 13780s def configuration(parent_name='',top_path=None): 13780s from numpy.distutils.misc_util import Configuration 13780s config = Configuration('', parent_name, top_path) 13780s {config_code} 13780s return config 13780s 13780s if __name__ == "__main__": 13780s from numpy.distutils.core import setup 13780s setup(configuration=configuration) 13780s """ 13780s script = os.path.join(d, get_temp_module_name() + ".py") 13780s dst_sources.append(script) 13780s with open(script, "wb") as f: 13780s f.write(asbytes(code)) 13780s 13780s # Build 13780s cwd = os.getcwd() 13780s try: 13780s os.chdir(d) 13780s cmd = [sys.executable, script, "build_ext", "-i"] 13780s p = subprocess.Popen(cmd, 13780s stdout=subprocess.PIPE, 13780s stderr=subprocess.STDOUT) 13780s out, err = p.communicate() 13780s if p.returncode != 0: 13780s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13780s (cmd[4:], asstr(out))) 13780s E RuntimeError: Running distutils build failed: [] 13780s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13780s E 13780s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13780s E of the deprecation of `distutils` itself. It will be removed for 13780s E Python >= 3.12. For older Python versions it will remain present. 13780s E It is recommended to use `setuptools < 60.0` for those Python versions. 13780s E For more details, see: 13780s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13780s E 13780s E 13780s E from numpy.distutils.core import setup 13780s E running build_ext 13780s E running build_src 13780s E INFO: build_src 13780s E INFO: building extension "test_array_from_pyobj_ext" sources 13780s E INFO: build_src: building npy-pkg config files 13780s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13780s E !! 13780s E 13780s E ******************************************************************************** 13780s E Please avoid running ``setup.py`` directly. 13780s E Instead, use pypa/build, pypa/installer or other 13780s E standards-based tools. 13780s E 13780s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13780s E ******************************************************************************** 13780s E 13780s E !! 13780s E self.initialize_options() 13780s E INFO: customize UnixCCompiler 13780s E INFO: customize UnixCCompiler using build_ext 13780s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/tmp 13780s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/usr 13780s E creating /tmp/tmppq19o2st/usr/lib 13780s E creating /tmp/tmppq19o2st/usr/lib/python3 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=native' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-O3' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-Werror' 13780s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13780s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-vfpv4' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=armv8.2-a+fp16' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13780s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13780s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13780s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13780s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13780s E INFO: building 'test_array_from_pyobj_ext' extension 13780s E INFO: compiling C sources 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13780s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13780s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13780s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13780s E 14 | #include 13780s E | ^~~~~~~~~~ 13780s E In file included from fortranobject.c:2: 13780s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13780s E 7 | #include 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E compilation terminated. 13780s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13780s E INFO: 13780s E ########### EXT COMPILER OPTIMIZATION ########### 13780s E INFO: Platform : 13780s E Architecture: armhf 13780s E Compiler : gcc 13780s E 13780s E CPU baseline : 13780s E Requested : 'min' 13780s E Enabled : none 13780s E Flags : none 13780s E Extra checks: none 13780s E 13780s E CPU dispatch : 13780s E Requested : 'max -xop -fma4' 13780s E Enabled : none 13780s E Generated : none 13780s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13780s 13780s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13780s d = '/tmp/tmpjj8q074z' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s err = None 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s kw = {} 13780s module_name = 'test_array_from_pyobj_ext' 13780s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13780s p = 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13780s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-23seq-F-w] _______ 13780s 13780s def setup_module(): 13780s """ 13780s Build the required testing extension module 13780s 13780s """ 13780s global wrap 13780s 13780s # Check compiler availability first 13780s if not util.has_c_compiler(): 13780s pytest.skip("No C compiler available") 13780s 13780s if wrap is None: 13780s config_code = """ 13780s config.add_extension('test_array_from_pyobj_ext', 13780s sources=['wrapmodule.c', 'fortranobject.c'], 13780s define_macros=[]) 13780s """ 13780s d = os.path.dirname(__file__) 13780s src = [ 13780s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13780s util.getpath("src", "fortranobject.c"), 13780s util.getpath("src", "fortranobject.h"), 13780s ] 13780s > wrap = util.build_module_distutils(src, config_code, 13780s "test_array_from_pyobj_ext") 13780s 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13780s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13780s memo[key] = func(*a, **kw) 13780s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13780s func = 13780s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13780s kw = {} 13780s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s 13780s @_memoize 13780s def build_module_distutils(source_files, config_code, module_name, **kw): 13780s """ 13780s Build a module via distutils and import it. 13780s 13780s """ 13780s d = get_module_dir() 13780s 13780s # Copy files 13780s dst_sources = [] 13780s for fn in source_files: 13780s if not os.path.isfile(fn): 13780s raise RuntimeError("%s is not a file" % fn) 13780s dst = os.path.join(d, os.path.basename(fn)) 13780s shutil.copyfile(fn, dst) 13780s dst_sources.append(dst) 13780s 13780s # Build script 13780s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13780s 13780s code = fr""" 13780s import os 13780s import sys 13780s sys.path = {repr(sys.path)} 13780s 13780s def configuration(parent_name='',top_path=None): 13780s from numpy.distutils.misc_util import Configuration 13780s config = Configuration('', parent_name, top_path) 13780s {config_code} 13780s return config 13780s 13780s if __name__ == "__main__": 13780s from numpy.distutils.core import setup 13780s setup(configuration=configuration) 13780s """ 13780s script = os.path.join(d, get_temp_module_name() + ".py") 13780s dst_sources.append(script) 13780s with open(script, "wb") as f: 13780s f.write(asbytes(code)) 13780s 13780s # Build 13780s cwd = os.getcwd() 13780s try: 13780s os.chdir(d) 13780s cmd = [sys.executable, script, "build_ext", "-i"] 13780s p = subprocess.Popen(cmd, 13780s stdout=subprocess.PIPE, 13780s stderr=subprocess.STDOUT) 13780s out, err = p.communicate() 13780s if p.returncode != 0: 13780s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13780s (cmd[4:], asstr(out))) 13780s E RuntimeError: Running distutils build failed: [] 13780s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13780s E 13780s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13780s E of the deprecation of `distutils` itself. It will be removed for 13780s E Python >= 3.12. For older Python versions it will remain present. 13780s E It is recommended to use `setuptools < 60.0` for those Python versions. 13780s E For more details, see: 13780s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13780s E 13780s E 13780s E from numpy.distutils.core import setup 13780s E running build_ext 13780s E running build_src 13780s E INFO: build_src 13780s E INFO: building extension "test_array_from_pyobj_ext" sources 13780s E INFO: build_src: building npy-pkg config files 13780s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13780s E !! 13780s E 13780s E ******************************************************************************** 13780s E Please avoid running ``setup.py`` directly. 13780s E Instead, use pypa/build, pypa/installer or other 13780s E standards-based tools. 13780s E 13780s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13780s E ******************************************************************************** 13780s E 13780s E !! 13780s E self.initialize_options() 13780s E INFO: customize UnixCCompiler 13780s E INFO: customize UnixCCompiler using build_ext 13780s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/tmp 13780s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/usr 13780s E creating /tmp/tmppq19o2st/usr/lib 13780s E creating /tmp/tmppq19o2st/usr/lib/python3 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=native' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-O3' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-Werror' 13780s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13780s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-vfpv4' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=armv8.2-a+fp16' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13780s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13780s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13780s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13780s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13780s E INFO: building 'test_array_from_pyobj_ext' extension 13780s E INFO: compiling C sources 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13780s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13780s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13780s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13780s E 14 | #include 13780s E | ^~~~~~~~~~ 13780s E In file included from fortranobject.c:2: 13780s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13780s E 7 | #include 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E compilation terminated. 13780s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13780s E INFO: 13780s E ########### EXT COMPILER OPTIMIZATION ########### 13780s E INFO: Platform : 13780s E Architecture: armhf 13780s E Compiler : gcc 13780s E 13780s E CPU baseline : 13780s E Requested : 'min' 13780s E Enabled : none 13780s E Flags : none 13780s E Extra checks: none 13780s E 13780s E CPU dispatch : 13780s E Requested : 'max -xop -fma4' 13780s E Enabled : none 13780s E Generated : none 13780s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13780s 13780s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13780s d = '/tmp/tmpjj8q074z' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s err = None 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s kw = {} 13780s module_name = 'test_array_from_pyobj_ext' 13780s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13780s p = 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13780s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BOOL-23seq-F-ro] ______ 13780s 13780s def setup_module(): 13780s """ 13780s Build the required testing extension module 13780s 13780s """ 13780s global wrap 13780s 13780s # Check compiler availability first 13780s if not util.has_c_compiler(): 13780s pytest.skip("No C compiler available") 13780s 13780s if wrap is None: 13780s config_code = """ 13780s config.add_extension('test_array_from_pyobj_ext', 13780s sources=['wrapmodule.c', 'fortranobject.c'], 13780s define_macros=[]) 13780s """ 13780s d = os.path.dirname(__file__) 13780s src = [ 13780s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13780s util.getpath("src", "fortranobject.c"), 13780s util.getpath("src", "fortranobject.h"), 13780s ] 13780s > wrap = util.build_module_distutils(src, config_code, 13780s "test_array_from_pyobj_ext") 13780s 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13780s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13780s memo[key] = func(*a, **kw) 13780s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13780s func = 13780s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13780s kw = {} 13780s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s 13780s @_memoize 13780s def build_module_distutils(source_files, config_code, module_name, **kw): 13780s """ 13780s Build a module via distutils and import it. 13780s 13780s """ 13780s d = get_module_dir() 13780s 13780s # Copy files 13780s dst_sources = [] 13780s for fn in source_files: 13780s if not os.path.isfile(fn): 13780s raise RuntimeError("%s is not a file" % fn) 13780s dst = os.path.join(d, os.path.basename(fn)) 13780s shutil.copyfile(fn, dst) 13780s dst_sources.append(dst) 13780s 13780s # Build script 13780s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13780s 13780s code = fr""" 13780s import os 13780s import sys 13780s sys.path = {repr(sys.path)} 13780s 13780s def configuration(parent_name='',top_path=None): 13780s from numpy.distutils.misc_util import Configuration 13780s config = Configuration('', parent_name, top_path) 13780s {config_code} 13780s return config 13780s 13780s if __name__ == "__main__": 13780s from numpy.distutils.core import setup 13780s setup(configuration=configuration) 13780s """ 13780s script = os.path.join(d, get_temp_module_name() + ".py") 13780s dst_sources.append(script) 13780s with open(script, "wb") as f: 13780s f.write(asbytes(code)) 13780s 13780s # Build 13780s cwd = os.getcwd() 13780s try: 13780s os.chdir(d) 13780s cmd = [sys.executable, script, "build_ext", "-i"] 13780s p = subprocess.Popen(cmd, 13780s stdout=subprocess.PIPE, 13780s stderr=subprocess.STDOUT) 13780s out, err = p.communicate() 13780s if p.returncode != 0: 13780s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13780s (cmd[4:], asstr(out))) 13780s E RuntimeError: Running distutils build failed: [] 13780s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13780s E 13780s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13780s E of the deprecation of `distutils` itself. It will be removed for 13780s E Python >= 3.12. For older Python versions it will remain present. 13780s E It is recommended to use `setuptools < 60.0` for those Python versions. 13780s E For more details, see: 13780s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13780s E 13780s E 13780s E from numpy.distutils.core import setup 13780s E running build_ext 13780s E running build_src 13780s E INFO: build_src 13780s E INFO: building extension "test_array_from_pyobj_ext" sources 13780s E INFO: build_src: building npy-pkg config files 13780s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13780s E !! 13780s E 13780s E ******************************************************************************** 13780s E Please avoid running ``setup.py`` directly. 13780s E Instead, use pypa/build, pypa/installer or other 13780s E standards-based tools. 13780s E 13780s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13780s E ******************************************************************************** 13780s E 13780s E !! 13780s E self.initialize_options() 13780s E INFO: customize UnixCCompiler 13780s E INFO: customize UnixCCompiler using build_ext 13780s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/tmp 13780s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E creating /tmp/tmppq19o2st/usr 13780s E creating /tmp/tmppq19o2st/usr/lib 13780s E creating /tmp/tmppq19o2st/usr/lib/python3 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13780s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=native' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-O3' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-Werror' 13780s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13780s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-vfpv4' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13780s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-march=armv8.2-a+fp16' 13780s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/include/python3.12 -c' 13780s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13780s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13780s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13780s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13780s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13780s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13780s E 9 | # include_next 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E 13780s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13780s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13780s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13780s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13780s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13780s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13780s E INFO: building 'test_array_from_pyobj_ext' extension 13780s E INFO: compiling C sources 13780s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13780s E 13780s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13780s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13780s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13780s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13780s E 14 | #include 13780s E | ^~~~~~~~~~ 13780s E In file included from fortranobject.c:2: 13780s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13780s E 7 | #include 13780s E | ^~~~~~~~~~ 13780s E compilation terminated. 13780s E compilation terminated. 13780s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13780s E INFO: 13780s E ########### EXT COMPILER OPTIMIZATION ########### 13780s E INFO: Platform : 13780s E Architecture: armhf 13780s E Compiler : gcc 13780s E 13780s E CPU baseline : 13780s E Requested : 'min' 13780s E Enabled : none 13780s E Flags : none 13780s E Extra checks: none 13780s E 13780s E CPU dispatch : 13780s E Requested : 'max -xop -fma4' 13780s E Enabled : none 13780s E Generated : none 13780s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13780s 13780s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13780s d = '/tmp/tmpjj8q074z' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s err = None 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s kw = {} 13780s module_name = 'test_array_from_pyobj_ext' 13780s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13780s p = 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13780s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[BOOL] ___________ 13780s 13780s def setup_module(): 13780s """ 13780s Build the required testing extension module 13780s 13780s """ 13780s global wrap 13780s 13780s # Check compiler availability first 13780s if not util.has_c_compiler(): 13780s pytest.skip("No C compiler available") 13780s 13780s if wrap is None: 13780s config_code = """ 13780s config.add_extension('test_array_from_pyobj_ext', 13780s sources=['wrapmodule.c', 'fortranobject.c'], 13780s define_macros=[]) 13780s """ 13780s d = os.path.dirname(__file__) 13780s src = [ 13780s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13780s util.getpath("src", "fortranobject.c"), 13780s util.getpath("src", "fortranobject.h"), 13780s ] 13780s > wrap = util.build_module_distutils(src, config_code, 13780s "test_array_from_pyobj_ext") 13780s 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13780s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13780s memo[key] = func(*a, **kw) 13780s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13780s func = 13780s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13780s kw = {} 13780s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13780s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13780s 13780s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13780s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13780s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13780s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13780s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13780s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13780s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13780s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13780s 13780s @_memoize 13780s def build_module_distutils(source_files, config_code, module_name, **kw): 13780s """ 13780s Build a module via distutils and import it. 13780s 13780s """ 13780s d = get_module_dir() 13780s 13780s # Copy files 13780s dst_sources = [] 13780s for fn in source_files: 13780s if not os.path.isfile(fn): 13780s raise RuntimeError("%s is not a file" % fn) 13780s dst = os.path.join(d, os.path.basename(fn)) 13780s shutil.copyfile(fn, dst) 13780s dst_sources.append(dst) 13780s 13780s # Build script 13780s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13780s 13780s code = fr""" 13780s import os 13780s import sys 13780s sys.path = {repr(sys.path)} 13780s 13780s def configuration(parent_name='',top_path=None): 13780s from numpy.distutils.misc_util import Configuration 13780s config = Configuration('', parent_name, top_path) 13780s {config_code} 13780s return config 13780s 13780s if __name__ == "__main__": 13780s from numpy.distutils.core import setup 13780s setup(configuration=configuration) 13780s """ 13780s script = os.path.join(d, get_temp_module_name() + ".py") 13780s dst_sources.append(script) 13780s with open(script, "wb") as f: 13780s f.write(asbytes(code)) 13780s 13780s # Build 13780s cwd = os.getcwd() 13780s try: 13780s os.chdir(d) 13780s cmd = [sys.executable, script, "build_ext", "-i"] 13780s p = subprocess.Popen(cmd, 13780s stdout=subprocess.PIPE, 13780s stderr=subprocess.STDOUT) 13780s out, err = p.communicate() 13780s if p.returncode != 0: 13780s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13780s (cmd[4:], asstr(out))) 13780s E RuntimeError: Running distutils build failed: [] 13780s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13780s E 13780s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13780s E of the deprecation of `distutils` itself. It will be removed for 13780s E Python >= 3.12. For older Python versions it will remain present. 13780s E It is recommended to use `setuptools < 60.0` for those Python versions. 13780s E For more details, see: 13780s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[BOOL] __________ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[BOOL] __________ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[BOOL] _____ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[BOOL] _________ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[BOOL] _______ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[BOOL] ______ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[BOOL] ______ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[BOOL] ____ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[BOOL] ____ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[BOOL] _____ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13781s d = '/tmp/tmpjj8q074z' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s err = None 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s kw = {} 13781s module_name = 'test_array_from_pyobj_ext' 13781s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13781s p = 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13781s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[BOOL] _ 13781s 13781s def setup_module(): 13781s """ 13781s Build the required testing extension module 13781s 13781s """ 13781s global wrap 13781s 13781s # Check compiler availability first 13781s if not util.has_c_compiler(): 13781s pytest.skip("No C compiler available") 13781s 13781s if wrap is None: 13781s config_code = """ 13781s config.add_extension('test_array_from_pyobj_ext', 13781s sources=['wrapmodule.c', 'fortranobject.c'], 13781s define_macros=[]) 13781s """ 13781s d = os.path.dirname(__file__) 13781s src = [ 13781s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13781s util.getpath("src", "fortranobject.c"), 13781s util.getpath("src", "fortranobject.h"), 13781s ] 13781s > wrap = util.build_module_distutils(src, config_code, 13781s "test_array_from_pyobj_ext") 13781s 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13781s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13781s memo[key] = func(*a, **kw) 13781s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13781s func = 13781s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13781s kw = {} 13781s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13781s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13781s 13781s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13781s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13781s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13781s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13781s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13781s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13781s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13781s 13781s @_memoize 13781s def build_module_distutils(source_files, config_code, module_name, **kw): 13781s """ 13781s Build a module via distutils and import it. 13781s 13781s """ 13781s d = get_module_dir() 13781s 13781s # Copy files 13781s dst_sources = [] 13781s for fn in source_files: 13781s if not os.path.isfile(fn): 13781s raise RuntimeError("%s is not a file" % fn) 13781s dst = os.path.join(d, os.path.basename(fn)) 13781s shutil.copyfile(fn, dst) 13781s dst_sources.append(dst) 13781s 13781s # Build script 13781s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13781s 13781s code = fr""" 13781s import os 13781s import sys 13781s sys.path = {repr(sys.path)} 13781s 13781s def configuration(parent_name='',top_path=None): 13781s from numpy.distutils.misc_util import Configuration 13781s config = Configuration('', parent_name, top_path) 13781s {config_code} 13781s return config 13781s 13781s if __name__ == "__main__": 13781s from numpy.distutils.core import setup 13781s setup(configuration=configuration) 13781s """ 13781s script = os.path.join(d, get_temp_module_name() + ".py") 13781s dst_sources.append(script) 13781s with open(script, "wb") as f: 13781s f.write(asbytes(code)) 13781s 13781s # Build 13781s cwd = os.getcwd() 13781s try: 13781s os.chdir(d) 13781s cmd = [sys.executable, script, "build_ext", "-i"] 13781s p = subprocess.Popen(cmd, 13781s stdout=subprocess.PIPE, 13781s stderr=subprocess.STDOUT) 13781s out, err = p.communicate() 13781s if p.returncode != 0: 13781s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13781s (cmd[4:], asstr(out))) 13781s E RuntimeError: Running distutils build failed: [] 13781s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13781s E 13781s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13781s E of the deprecation of `distutils` itself. It will be removed for 13781s E Python >= 3.12. For older Python versions it will remain present. 13781s E It is recommended to use `setuptools < 60.0` for those Python versions. 13781s E For more details, see: 13781s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13781s E 13781s E 13781s E from numpy.distutils.core import setup 13781s E running build_ext 13781s E running build_src 13781s E INFO: build_src 13781s E INFO: building extension "test_array_from_pyobj_ext" sources 13781s E INFO: build_src: building npy-pkg config files 13781s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13781s E !! 13781s E 13781s E ******************************************************************************** 13781s E Please avoid running ``setup.py`` directly. 13781s E Instead, use pypa/build, pypa/installer or other 13781s E standards-based tools. 13781s E 13781s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13781s E ******************************************************************************** 13781s E 13781s E !! 13781s E self.initialize_options() 13781s E INFO: customize UnixCCompiler 13781s E INFO: customize UnixCCompiler using build_ext 13781s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/tmp 13781s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E creating /tmp/tmppq19o2st/usr 13781s E creating /tmp/tmppq19o2st/usr/lib 13781s E creating /tmp/tmppq19o2st/usr/lib/python3 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13781s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=native' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-O3' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-Werror' 13781s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13781s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-vfpv4' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13781s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-march=armv8.2-a+fp16' 13781s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/include/python3.12 -c' 13781s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13781s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13781s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13781s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13781s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13781s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13781s E 9 | # include_next 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E 13781s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13781s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13781s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13781s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13781s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13781s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13781s E INFO: building 'test_array_from_pyobj_ext' extension 13781s E INFO: compiling C sources 13781s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13781s E 13781s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13781s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13781s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13781s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13781s E 14 | #include 13781s E | ^~~~~~~~~~ 13781s E In file included from fortranobject.c:2: 13781s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13781s E 7 | #include 13781s E | ^~~~~~~~~~ 13781s E compilation terminated. 13781s E compilation terminated. 13781s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13781s E INFO: 13781s E ########### EXT COMPILER OPTIMIZATION ########### 13781s E INFO: Platform : 13781s E Architecture: armhf 13781s E Compiler : gcc 13781s E 13781s E CPU baseline : 13781s E Requested : 'min' 13781s E Enabled : none 13781s E Flags : none 13781s E Extra checks: none 13781s E 13781s E CPU dispatch : 13781s E Requested : 'max -xop -fma4' 13781s E Enabled : none 13781s E Generated : none 13781s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13781s 13781s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13781s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[BOOL] __________ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s _____________ ERROR at setup of TestSharedMemory.test_hidden[BOOL] _____________ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s _________ ERROR at setup of TestSharedMemory.test_optional_none[BOOL] __________ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[BOOL] _______ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[BOOL] _______ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s ____________ ERROR at setup of TestSharedMemory.test_inplace[BOOL] _____________ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[BOOL] ______ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[BYTE] __________ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[BYTE] ________ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-2seq-C-w] _______ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-2seq-C-ro] _______ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13782s sources=['wrapmodule.c', 'fortranobject.c'], 13782s define_macros=[]) 13782s """ 13782s d = os.path.dirname(__file__) 13782s src = [ 13782s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13782s util.getpath("src", "fortranobject.c"), 13782s util.getpath("src", "fortranobject.h"), 13782s ] 13782s > wrap = util.build_module_distutils(src, config_code, 13782s "test_array_from_pyobj_ext") 13782s 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13782s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13782s memo[key] = func(*a, **kw) 13782s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13782s func = 13782s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13782s kw = {} 13782s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13782s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13782s 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s 13782s @_memoize 13782s def build_module_distutils(source_files, config_code, module_name, **kw): 13782s """ 13782s Build a module via distutils and import it. 13782s 13782s """ 13782s d = get_module_dir() 13782s 13782s # Copy files 13782s dst_sources = [] 13782s for fn in source_files: 13782s if not os.path.isfile(fn): 13782s raise RuntimeError("%s is not a file" % fn) 13782s dst = os.path.join(d, os.path.basename(fn)) 13782s shutil.copyfile(fn, dst) 13782s dst_sources.append(dst) 13782s 13782s # Build script 13782s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13782s 13782s code = fr""" 13782s import os 13782s import sys 13782s sys.path = {repr(sys.path)} 13782s 13782s def configuration(parent_name='',top_path=None): 13782s from numpy.distutils.misc_util import Configuration 13782s config = Configuration('', parent_name, top_path) 13782s {config_code} 13782s return config 13782s 13782s if __name__ == "__main__": 13782s from numpy.distutils.core import setup 13782s setup(configuration=configuration) 13782s """ 13782s script = os.path.join(d, get_temp_module_name() + ".py") 13782s dst_sources.append(script) 13782s with open(script, "wb") as f: 13782s f.write(asbytes(code)) 13782s 13782s # Build 13782s cwd = os.getcwd() 13782s try: 13782s os.chdir(d) 13782s cmd = [sys.executable, script, "build_ext", "-i"] 13782s p = subprocess.Popen(cmd, 13782s stdout=subprocess.PIPE, 13782s stderr=subprocess.STDOUT) 13782s out, err = p.communicate() 13782s if p.returncode != 0: 13782s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13782s (cmd[4:], asstr(out))) 13782s E RuntimeError: Running distutils build failed: [] 13782s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13782s E 13782s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13782s E of the deprecation of `distutils` itself. It will be removed for 13782s E Python >= 3.12. For older Python versions it will remain present. 13782s E It is recommended to use `setuptools < 60.0` for those Python versions. 13782s E For more details, see: 13782s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13782s E 13782s E 13782s E from numpy.distutils.core import setup 13782s E running build_ext 13782s E running build_src 13782s E INFO: build_src 13782s E INFO: building extension "test_array_from_pyobj_ext" sources 13782s E INFO: build_src: building npy-pkg config files 13782s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13782s E !! 13782s E 13782s E ******************************************************************************** 13782s E Please avoid running ``setup.py`` directly. 13782s E Instead, use pypa/build, pypa/installer or other 13782s E standards-based tools. 13782s E 13782s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13782s E ******************************************************************************** 13782s E 13782s E !! 13782s E self.initialize_options() 13782s E INFO: customize UnixCCompiler 13782s E INFO: customize UnixCCompiler using build_ext 13782s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/tmp 13782s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E creating /tmp/tmppq19o2st/usr 13782s E creating /tmp/tmppq19o2st/usr/lib 13782s E creating /tmp/tmppq19o2st/usr/lib/python3 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13782s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=native' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-O3' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-Werror' 13782s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13782s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-vfpv4' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13782s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-march=armv8.2-a+fp16' 13782s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/include/python3.12 -c' 13782s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13782s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13782s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13782s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13782s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13782s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13782s E 9 | # include_next 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E 13782s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13782s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13782s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13782s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13782s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13782s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13782s E INFO: building 'test_array_from_pyobj_ext' extension 13782s E INFO: compiling C sources 13782s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13782s E 13782s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13782s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13782s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13782s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13782s E 14 | #include 13782s E | ^~~~~~~~~~ 13782s E In file included from fortranobject.c:2: 13782s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13782s E 7 | #include 13782s E | ^~~~~~~~~~ 13782s E compilation terminated. 13782s E compilation terminated. 13782s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13782s E INFO: 13782s E ########### EXT COMPILER OPTIMIZATION ########### 13782s E INFO: Platform : 13782s E Architecture: armhf 13782s E Compiler : gcc 13782s E 13782s E CPU baseline : 13782s E Requested : 'min' 13782s E Enabled : none 13782s E Flags : none 13782s E Extra checks: none 13782s E 13782s E CPU dispatch : 13782s E Requested : 'max -xop -fma4' 13782s E Enabled : none 13782s E Generated : none 13782s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13782s 13782s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13782s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13782s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13782s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13782s d = '/tmp/tmpjj8q074z' 13782s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13782s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13782s err = None 13782s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13782s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s kw = {} 13782s module_name = 'test_array_from_pyobj_ext' 13782s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13782s p = 13782s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13782s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13782s 13782s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13782s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-2seq-F-w] _______ 13782s 13782s def setup_module(): 13782s """ 13782s Build the required testing extension module 13782s 13782s """ 13782s global wrap 13782s 13782s # Check compiler availability first 13782s if not util.has_c_compiler(): 13782s pytest.skip("No C compiler available") 13782s 13782s if wrap is None: 13782s config_code = """ 13782s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-2seq-F-ro] _______ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-23seq-C-w] _______ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-23seq-C-ro] ______ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-23seq-F-w] _______ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[BYTE-23seq-F-ro] ______ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[BYTE] ___________ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[BYTE] __________ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[BYTE] __________ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[BYTE] _____ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[BYTE] _________ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[BYTE] _______ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[BYTE] ______ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-vfpv4' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=armv8.2-a+fp16' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13783s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13783s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13783s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13783s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13783s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13783s E 9 | # include_next 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E 13783s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13783s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13783s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13783s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13783s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13783s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13783s E INFO: building 'test_array_from_pyobj_ext' extension 13783s E INFO: compiling C sources 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13783s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13783s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13783s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13783s E 14 | #include 13783s E | ^~~~~~~~~~ 13783s E In file included from fortranobject.c:2: 13783s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13783s E 7 | #include 13783s E | ^~~~~~~~~~ 13783s E compilation terminated. 13783s E compilation terminated. 13783s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13783s E INFO: 13783s E ########### EXT COMPILER OPTIMIZATION ########### 13783s E INFO: Platform : 13783s E Architecture: armhf 13783s E Compiler : gcc 13783s E 13783s E CPU baseline : 13783s E Requested : 'min' 13783s E Enabled : none 13783s E Flags : none 13783s E Extra checks: none 13783s E 13783s E CPU dispatch : 13783s E Requested : 'max -xop -fma4' 13783s E Enabled : none 13783s E Generated : none 13783s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13783s 13783s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13783s d = '/tmp/tmpjj8q074z' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s err = None 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s kw = {} 13783s module_name = 'test_array_from_pyobj_ext' 13783s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13783s p = 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13783s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[BYTE] ______ 13783s 13783s def setup_module(): 13783s """ 13783s Build the required testing extension module 13783s 13783s """ 13783s global wrap 13783s 13783s # Check compiler availability first 13783s if not util.has_c_compiler(): 13783s pytest.skip("No C compiler available") 13783s 13783s if wrap is None: 13783s config_code = """ 13783s config.add_extension('test_array_from_pyobj_ext', 13783s sources=['wrapmodule.c', 'fortranobject.c'], 13783s define_macros=[]) 13783s """ 13783s d = os.path.dirname(__file__) 13783s src = [ 13783s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13783s util.getpath("src", "fortranobject.c"), 13783s util.getpath("src", "fortranobject.h"), 13783s ] 13783s > wrap = util.build_module_distutils(src, config_code, 13783s "test_array_from_pyobj_ext") 13783s 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13783s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13783s memo[key] = func(*a, **kw) 13783s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13783s func = 13783s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13783s kw = {} 13783s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13783s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13783s 13783s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13783s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13783s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13783s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13783s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13783s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13783s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13783s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13783s 13783s @_memoize 13783s def build_module_distutils(source_files, config_code, module_name, **kw): 13783s """ 13783s Build a module via distutils and import it. 13783s 13783s """ 13783s d = get_module_dir() 13783s 13783s # Copy files 13783s dst_sources = [] 13783s for fn in source_files: 13783s if not os.path.isfile(fn): 13783s raise RuntimeError("%s is not a file" % fn) 13783s dst = os.path.join(d, os.path.basename(fn)) 13783s shutil.copyfile(fn, dst) 13783s dst_sources.append(dst) 13783s 13783s # Build script 13783s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13783s 13783s code = fr""" 13783s import os 13783s import sys 13783s sys.path = {repr(sys.path)} 13783s 13783s def configuration(parent_name='',top_path=None): 13783s from numpy.distutils.misc_util import Configuration 13783s config = Configuration('', parent_name, top_path) 13783s {config_code} 13783s return config 13783s 13783s if __name__ == "__main__": 13783s from numpy.distutils.core import setup 13783s setup(configuration=configuration) 13783s """ 13783s script = os.path.join(d, get_temp_module_name() + ".py") 13783s dst_sources.append(script) 13783s with open(script, "wb") as f: 13783s f.write(asbytes(code)) 13783s 13783s # Build 13783s cwd = os.getcwd() 13783s try: 13783s os.chdir(d) 13783s cmd = [sys.executable, script, "build_ext", "-i"] 13783s p = subprocess.Popen(cmd, 13783s stdout=subprocess.PIPE, 13783s stderr=subprocess.STDOUT) 13783s out, err = p.communicate() 13783s if p.returncode != 0: 13783s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13783s (cmd[4:], asstr(out))) 13783s E RuntimeError: Running distutils build failed: [] 13783s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13783s E 13783s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13783s E of the deprecation of `distutils` itself. It will be removed for 13783s E Python >= 3.12. For older Python versions it will remain present. 13783s E It is recommended to use `setuptools < 60.0` for those Python versions. 13783s E For more details, see: 13783s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13783s E 13783s E 13783s E from numpy.distutils.core import setup 13783s E running build_ext 13783s E running build_src 13783s E INFO: build_src 13783s E INFO: building extension "test_array_from_pyobj_ext" sources 13783s E INFO: build_src: building npy-pkg config files 13783s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13783s E !! 13783s E 13783s E ******************************************************************************** 13783s E Please avoid running ``setup.py`` directly. 13783s E Instead, use pypa/build, pypa/installer or other 13783s E standards-based tools. 13783s E 13783s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13783s E ******************************************************************************** 13783s E 13783s E !! 13783s E self.initialize_options() 13783s E INFO: customize UnixCCompiler 13783s E INFO: customize UnixCCompiler using build_ext 13783s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/tmp 13783s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E creating /tmp/tmppq19o2st/usr 13783s E creating /tmp/tmppq19o2st/usr/lib 13783s E creating /tmp/tmppq19o2st/usr/lib/python3 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13783s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-march=native' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-O3' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-Werror' 13783s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13783s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon' 13783s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13783s E 13783s E INFO: compile options: '-I/usr/include/python3.12 -c' 13783s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13783s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13783s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[BYTE] ____ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[BYTE] ____ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[BYTE] _____ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[BYTE] _ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[BYTE] __________ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s _____________ ERROR at setup of TestSharedMemory.test_hidden[BYTE] _____________ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s _________ ERROR at setup of TestSharedMemory.test_optional_none[BYTE] __________ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[BYTE] _______ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[BYTE] _______ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s ____________ ERROR at setup of TestSharedMemory.test_inplace[BYTE] _____________ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[BYTE] ______ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[UBYTE] __________ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[UBYTE] _______ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-2seq-C-w] _______ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13784s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/usr 13784s E creating /tmp/tmppq19o2st/usr/lib 13784s E creating /tmp/tmppq19o2st/usr/lib/python3 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13784s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=native' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-O3' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-Werror' 13784s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13784s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-vfpv4' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13784s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-march=armv8.2-a+fp16' 13784s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/include/python3.12 -c' 13784s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13784s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13784s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13784s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13784s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13784s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13784s E 9 | # include_next 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E 13784s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13784s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13784s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13784s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13784s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13784s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13784s E INFO: building 'test_array_from_pyobj_ext' extension 13784s E INFO: compiling C sources 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13784s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13784s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13784s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13784s E 14 | #include 13784s E | ^~~~~~~~~~ 13784s E In file included from fortranobject.c:2: 13784s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13784s E 7 | #include 13784s E | ^~~~~~~~~~ 13784s E compilation terminated. 13784s E compilation terminated. 13784s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13784s E INFO: 13784s E ########### EXT COMPILER OPTIMIZATION ########### 13784s E INFO: Platform : 13784s E Architecture: armhf 13784s E Compiler : gcc 13784s E 13784s E CPU baseline : 13784s E Requested : 'min' 13784s E Enabled : none 13784s E Flags : none 13784s E Extra checks: none 13784s E 13784s E CPU dispatch : 13784s E Requested : 'max -xop -fma4' 13784s E Enabled : none 13784s E Generated : none 13784s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13784s 13784s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13784s d = '/tmp/tmpjj8q074z' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s err = None 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s kw = {} 13784s module_name = 'test_array_from_pyobj_ext' 13784s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13784s p = 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13784s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-2seq-C-ro] ______ 13784s 13784s def setup_module(): 13784s """ 13784s Build the required testing extension module 13784s 13784s """ 13784s global wrap 13784s 13784s # Check compiler availability first 13784s if not util.has_c_compiler(): 13784s pytest.skip("No C compiler available") 13784s 13784s if wrap is None: 13784s config_code = """ 13784s config.add_extension('test_array_from_pyobj_ext', 13784s sources=['wrapmodule.c', 'fortranobject.c'], 13784s define_macros=[]) 13784s """ 13784s d = os.path.dirname(__file__) 13784s src = [ 13784s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13784s util.getpath("src", "fortranobject.c"), 13784s util.getpath("src", "fortranobject.h"), 13784s ] 13784s > wrap = util.build_module_distutils(src, config_code, 13784s "test_array_from_pyobj_ext") 13784s 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13784s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13784s memo[key] = func(*a, **kw) 13784s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13784s func = 13784s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13784s kw = {} 13784s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13784s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13784s 13784s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13784s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13784s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13784s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13784s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13784s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13784s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13784s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13784s 13784s @_memoize 13784s def build_module_distutils(source_files, config_code, module_name, **kw): 13784s """ 13784s Build a module via distutils and import it. 13784s 13784s """ 13784s d = get_module_dir() 13784s 13784s # Copy files 13784s dst_sources = [] 13784s for fn in source_files: 13784s if not os.path.isfile(fn): 13784s raise RuntimeError("%s is not a file" % fn) 13784s dst = os.path.join(d, os.path.basename(fn)) 13784s shutil.copyfile(fn, dst) 13784s dst_sources.append(dst) 13784s 13784s # Build script 13784s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13784s 13784s code = fr""" 13784s import os 13784s import sys 13784s sys.path = {repr(sys.path)} 13784s 13784s def configuration(parent_name='',top_path=None): 13784s from numpy.distutils.misc_util import Configuration 13784s config = Configuration('', parent_name, top_path) 13784s {config_code} 13784s return config 13784s 13784s if __name__ == "__main__": 13784s from numpy.distutils.core import setup 13784s setup(configuration=configuration) 13784s """ 13784s script = os.path.join(d, get_temp_module_name() + ".py") 13784s dst_sources.append(script) 13784s with open(script, "wb") as f: 13784s f.write(asbytes(code)) 13784s 13784s # Build 13784s cwd = os.getcwd() 13784s try: 13784s os.chdir(d) 13784s cmd = [sys.executable, script, "build_ext", "-i"] 13784s p = subprocess.Popen(cmd, 13784s stdout=subprocess.PIPE, 13784s stderr=subprocess.STDOUT) 13784s out, err = p.communicate() 13784s if p.returncode != 0: 13784s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13784s (cmd[4:], asstr(out))) 13784s E RuntimeError: Running distutils build failed: [] 13784s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13784s E 13784s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13784s E of the deprecation of `distutils` itself. It will be removed for 13784s E Python >= 3.12. For older Python versions it will remain present. 13784s E It is recommended to use `setuptools < 60.0` for those Python versions. 13784s E For more details, see: 13784s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13784s E 13784s E 13784s E from numpy.distutils.core import setup 13784s E running build_ext 13784s E running build_src 13784s E INFO: build_src 13784s E INFO: building extension "test_array_from_pyobj_ext" sources 13784s E INFO: build_src: building npy-pkg config files 13784s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13784s E !! 13784s E 13784s E ******************************************************************************** 13784s E Please avoid running ``setup.py`` directly. 13784s E Instead, use pypa/build, pypa/installer or other 13784s E standards-based tools. 13784s E 13784s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13784s E ******************************************************************************** 13784s E 13784s E !! 13784s E self.initialize_options() 13784s E INFO: customize UnixCCompiler 13784s E INFO: customize UnixCCompiler using build_ext 13784s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13784s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13784s E 13784s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-2seq-F-w] _______ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-2seq-F-ro] ______ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-23seq-C-w] ______ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-23seq-C-ro] ______ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-23seq-F-w] ______ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[UBYTE-23seq-F-ro] ______ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[UBYTE] ___________ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[UBYTE] _________ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[UBYTE] _________ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13785s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13785s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13785s E INFO: building 'test_array_from_pyobj_ext' extension 13785s E INFO: compiling C sources 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13785s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13785s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13785s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13785s E 14 | #include 13785s E | ^~~~~~~~~~ 13785s E In file included from fortranobject.c:2: 13785s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13785s E 7 | #include 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E compilation terminated. 13785s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13785s E INFO: 13785s E ########### EXT COMPILER OPTIMIZATION ########### 13785s E INFO: Platform : 13785s E Architecture: armhf 13785s E Compiler : gcc 13785s E 13785s E CPU baseline : 13785s E Requested : 'min' 13785s E Enabled : none 13785s E Flags : none 13785s E Extra checks: none 13785s E 13785s E CPU dispatch : 13785s E Requested : 'max -xop -fma4' 13785s E Enabled : none 13785s E Generated : none 13785s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13785s 13785s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13785s d = '/tmp/tmpjj8q074z' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s err = None 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s kw = {} 13785s module_name = 'test_array_from_pyobj_ext' 13785s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13785s p = 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13785s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[UBYTE] _____ 13785s 13785s def setup_module(): 13785s """ 13785s Build the required testing extension module 13785s 13785s """ 13785s global wrap 13785s 13785s # Check compiler availability first 13785s if not util.has_c_compiler(): 13785s pytest.skip("No C compiler available") 13785s 13785s if wrap is None: 13785s config_code = """ 13785s config.add_extension('test_array_from_pyobj_ext', 13785s sources=['wrapmodule.c', 'fortranobject.c'], 13785s define_macros=[]) 13785s """ 13785s d = os.path.dirname(__file__) 13785s src = [ 13785s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13785s util.getpath("src", "fortranobject.c"), 13785s util.getpath("src", "fortranobject.h"), 13785s ] 13785s > wrap = util.build_module_distutils(src, config_code, 13785s "test_array_from_pyobj_ext") 13785s 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13785s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13785s memo[key] = func(*a, **kw) 13785s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13785s func = 13785s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13785s kw = {} 13785s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13785s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13785s 13785s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13785s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13785s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13785s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13785s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13785s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13785s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13785s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13785s 13785s @_memoize 13785s def build_module_distutils(source_files, config_code, module_name, **kw): 13785s """ 13785s Build a module via distutils and import it. 13785s 13785s """ 13785s d = get_module_dir() 13785s 13785s # Copy files 13785s dst_sources = [] 13785s for fn in source_files: 13785s if not os.path.isfile(fn): 13785s raise RuntimeError("%s is not a file" % fn) 13785s dst = os.path.join(d, os.path.basename(fn)) 13785s shutil.copyfile(fn, dst) 13785s dst_sources.append(dst) 13785s 13785s # Build script 13785s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13785s 13785s code = fr""" 13785s import os 13785s import sys 13785s sys.path = {repr(sys.path)} 13785s 13785s def configuration(parent_name='',top_path=None): 13785s from numpy.distutils.misc_util import Configuration 13785s config = Configuration('', parent_name, top_path) 13785s {config_code} 13785s return config 13785s 13785s if __name__ == "__main__": 13785s from numpy.distutils.core import setup 13785s setup(configuration=configuration) 13785s """ 13785s script = os.path.join(d, get_temp_module_name() + ".py") 13785s dst_sources.append(script) 13785s with open(script, "wb") as f: 13785s f.write(asbytes(code)) 13785s 13785s # Build 13785s cwd = os.getcwd() 13785s try: 13785s os.chdir(d) 13785s cmd = [sys.executable, script, "build_ext", "-i"] 13785s p = subprocess.Popen(cmd, 13785s stdout=subprocess.PIPE, 13785s stderr=subprocess.STDOUT) 13785s out, err = p.communicate() 13785s if p.returncode != 0: 13785s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13785s (cmd[4:], asstr(out))) 13785s E RuntimeError: Running distutils build failed: [] 13785s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13785s E 13785s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13785s E of the deprecation of `distutils` itself. It will be removed for 13785s E Python >= 3.12. For older Python versions it will remain present. 13785s E It is recommended to use `setuptools < 60.0` for those Python versions. 13785s E For more details, see: 13785s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13785s E 13785s E 13785s E from numpy.distutils.core import setup 13785s E running build_ext 13785s E running build_src 13785s E INFO: build_src 13785s E INFO: building extension "test_array_from_pyobj_ext" sources 13785s E INFO: build_src: building npy-pkg config files 13785s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13785s E !! 13785s E 13785s E ******************************************************************************** 13785s E Please avoid running ``setup.py`` directly. 13785s E Instead, use pypa/build, pypa/installer or other 13785s E standards-based tools. 13785s E 13785s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13785s E ******************************************************************************** 13785s E 13785s E !! 13785s E self.initialize_options() 13785s E INFO: customize UnixCCompiler 13785s E INFO: customize UnixCCompiler using build_ext 13785s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/tmp 13785s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E creating /tmp/tmppq19o2st/usr 13785s E creating /tmp/tmppq19o2st/usr/lib 13785s E creating /tmp/tmppq19o2st/usr/lib/python3 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13785s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=native' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-O3' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-Werror' 13785s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13785s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-vfpv4' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13785s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-march=armv8.2-a+fp16' 13785s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13785s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13785s E 13785s E INFO: compile options: '-I/usr/include/python3.12 -c' 13785s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13785s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13785s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13785s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13785s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13785s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13785s E 9 | # include_next 13785s E | ^~~~~~~~~~ 13785s E compilation terminated. 13785s E 13785s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13785s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13785s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13785s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13786s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13786s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13786s E INFO: building 'test_array_from_pyobj_ext' extension 13786s E INFO: compiling C sources 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13786s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13786s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13786s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13786s E 14 | #include 13786s E | ^~~~~~~~~~ 13786s E In file included from fortranobject.c:2: 13786s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13786s E 7 | #include 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E compilation terminated. 13786s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13786s E INFO: 13786s E ########### EXT COMPILER OPTIMIZATION ########### 13786s E INFO: Platform : 13786s E Architecture: armhf 13786s E Compiler : gcc 13786s E 13786s E CPU baseline : 13786s E Requested : 'min' 13786s E Enabled : none 13786s E Flags : none 13786s E Extra checks: none 13786s E 13786s E CPU dispatch : 13786s E Requested : 'max -xop -fma4' 13786s E Enabled : none 13786s E Generated : none 13786s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13786s 13786s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13786s d = '/tmp/tmpjj8q074z' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s err = None 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s kw = {} 13786s module_name = 'test_array_from_pyobj_ext' 13786s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13786s p = 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13786s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[UBYTE] ________ 13786s 13786s def setup_module(): 13786s """ 13786s Build the required testing extension module 13786s 13786s """ 13786s global wrap 13786s 13786s # Check compiler availability first 13786s if not util.has_c_compiler(): 13786s pytest.skip("No C compiler available") 13786s 13786s if wrap is None: 13786s config_code = """ 13786s config.add_extension('test_array_from_pyobj_ext', 13786s sources=['wrapmodule.c', 'fortranobject.c'], 13786s define_macros=[]) 13786s """ 13786s d = os.path.dirname(__file__) 13786s src = [ 13786s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13786s util.getpath("src", "fortranobject.c"), 13786s util.getpath("src", "fortranobject.h"), 13786s ] 13786s > wrap = util.build_module_distutils(src, config_code, 13786s "test_array_from_pyobj_ext") 13786s 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13786s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13786s memo[key] = func(*a, **kw) 13786s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13786s func = 13786s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13786s kw = {} 13786s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s 13786s @_memoize 13786s def build_module_distutils(source_files, config_code, module_name, **kw): 13786s """ 13786s Build a module via distutils and import it. 13786s 13786s """ 13786s d = get_module_dir() 13786s 13786s # Copy files 13786s dst_sources = [] 13786s for fn in source_files: 13786s if not os.path.isfile(fn): 13786s raise RuntimeError("%s is not a file" % fn) 13786s dst = os.path.join(d, os.path.basename(fn)) 13786s shutil.copyfile(fn, dst) 13786s dst_sources.append(dst) 13786s 13786s # Build script 13786s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13786s 13786s code = fr""" 13786s import os 13786s import sys 13786s sys.path = {repr(sys.path)} 13786s 13786s def configuration(parent_name='',top_path=None): 13786s from numpy.distutils.misc_util import Configuration 13786s config = Configuration('', parent_name, top_path) 13786s {config_code} 13786s return config 13786s 13786s if __name__ == "__main__": 13786s from numpy.distutils.core import setup 13786s setup(configuration=configuration) 13786s """ 13786s script = os.path.join(d, get_temp_module_name() + ".py") 13786s dst_sources.append(script) 13786s with open(script, "wb") as f: 13786s f.write(asbytes(code)) 13786s 13786s # Build 13786s cwd = os.getcwd() 13786s try: 13786s os.chdir(d) 13786s cmd = [sys.executable, script, "build_ext", "-i"] 13786s p = subprocess.Popen(cmd, 13786s stdout=subprocess.PIPE, 13786s stderr=subprocess.STDOUT) 13786s out, err = p.communicate() 13786s if p.returncode != 0: 13786s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13786s (cmd[4:], asstr(out))) 13786s E RuntimeError: Running distutils build failed: [] 13786s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13786s E 13786s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13786s E of the deprecation of `distutils` itself. It will be removed for 13786s E Python >= 3.12. For older Python versions it will remain present. 13786s E It is recommended to use `setuptools < 60.0` for those Python versions. 13786s E For more details, see: 13786s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13786s E 13786s E 13786s E from numpy.distutils.core import setup 13786s E running build_ext 13786s E running build_src 13786s E INFO: build_src 13786s E INFO: building extension "test_array_from_pyobj_ext" sources 13786s E INFO: build_src: building npy-pkg config files 13786s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13786s E !! 13786s E 13786s E ******************************************************************************** 13786s E Please avoid running ``setup.py`` directly. 13786s E Instead, use pypa/build, pypa/installer or other 13786s E standards-based tools. 13786s E 13786s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13786s E ******************************************************************************** 13786s E 13786s E !! 13786s E self.initialize_options() 13786s E INFO: customize UnixCCompiler 13786s E INFO: customize UnixCCompiler using build_ext 13786s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/tmp 13786s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/usr 13786s E creating /tmp/tmppq19o2st/usr/lib 13786s E creating /tmp/tmppq19o2st/usr/lib/python3 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=native' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-O3' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-Werror' 13786s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13786s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-vfpv4' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=armv8.2-a+fp16' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13786s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13786s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13786s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13786s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13786s E INFO: building 'test_array_from_pyobj_ext' extension 13786s E INFO: compiling C sources 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13786s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13786s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13786s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13786s E 14 | #include 13786s E | ^~~~~~~~~~ 13786s E In file included from fortranobject.c:2: 13786s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13786s E 7 | #include 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E compilation terminated. 13786s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13786s E INFO: 13786s E ########### EXT COMPILER OPTIMIZATION ########### 13786s E INFO: Platform : 13786s E Architecture: armhf 13786s E Compiler : gcc 13786s E 13786s E CPU baseline : 13786s E Requested : 'min' 13786s E Enabled : none 13786s E Flags : none 13786s E Extra checks: none 13786s E 13786s E CPU dispatch : 13786s E Requested : 'max -xop -fma4' 13786s E Enabled : none 13786s E Generated : none 13786s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13786s 13786s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13786s d = '/tmp/tmpjj8q074z' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s err = None 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s kw = {} 13786s module_name = 'test_array_from_pyobj_ext' 13786s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13786s p = 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13786s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[UBYTE] _______ 13786s 13786s def setup_module(): 13786s """ 13786s Build the required testing extension module 13786s 13786s """ 13786s global wrap 13786s 13786s # Check compiler availability first 13786s if not util.has_c_compiler(): 13786s pytest.skip("No C compiler available") 13786s 13786s if wrap is None: 13786s config_code = """ 13786s config.add_extension('test_array_from_pyobj_ext', 13786s sources=['wrapmodule.c', 'fortranobject.c'], 13786s define_macros=[]) 13786s """ 13786s d = os.path.dirname(__file__) 13786s src = [ 13786s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13786s util.getpath("src", "fortranobject.c"), 13786s util.getpath("src", "fortranobject.h"), 13786s ] 13786s > wrap = util.build_module_distutils(src, config_code, 13786s "test_array_from_pyobj_ext") 13786s 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13786s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13786s memo[key] = func(*a, **kw) 13786s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13786s func = 13786s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13786s kw = {} 13786s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s 13786s @_memoize 13786s def build_module_distutils(source_files, config_code, module_name, **kw): 13786s """ 13786s Build a module via distutils and import it. 13786s 13786s """ 13786s d = get_module_dir() 13786s 13786s # Copy files 13786s dst_sources = [] 13786s for fn in source_files: 13786s if not os.path.isfile(fn): 13786s raise RuntimeError("%s is not a file" % fn) 13786s dst = os.path.join(d, os.path.basename(fn)) 13786s shutil.copyfile(fn, dst) 13786s dst_sources.append(dst) 13786s 13786s # Build script 13786s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13786s 13786s code = fr""" 13786s import os 13786s import sys 13786s sys.path = {repr(sys.path)} 13786s 13786s def configuration(parent_name='',top_path=None): 13786s from numpy.distutils.misc_util import Configuration 13786s config = Configuration('', parent_name, top_path) 13786s {config_code} 13786s return config 13786s 13786s if __name__ == "__main__": 13786s from numpy.distutils.core import setup 13786s setup(configuration=configuration) 13786s """ 13786s script = os.path.join(d, get_temp_module_name() + ".py") 13786s dst_sources.append(script) 13786s with open(script, "wb") as f: 13786s f.write(asbytes(code)) 13786s 13786s # Build 13786s cwd = os.getcwd() 13786s try: 13786s os.chdir(d) 13786s cmd = [sys.executable, script, "build_ext", "-i"] 13786s p = subprocess.Popen(cmd, 13786s stdout=subprocess.PIPE, 13786s stderr=subprocess.STDOUT) 13786s out, err = p.communicate() 13786s if p.returncode != 0: 13786s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13786s (cmd[4:], asstr(out))) 13786s E RuntimeError: Running distutils build failed: [] 13786s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13786s E 13786s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13786s E of the deprecation of `distutils` itself. It will be removed for 13786s E Python >= 3.12. For older Python versions it will remain present. 13786s E It is recommended to use `setuptools < 60.0` for those Python versions. 13786s E For more details, see: 13786s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13786s E 13786s E 13786s E from numpy.distutils.core import setup 13786s E running build_ext 13786s E running build_src 13786s E INFO: build_src 13786s E INFO: building extension "test_array_from_pyobj_ext" sources 13786s E INFO: build_src: building npy-pkg config files 13786s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13786s E !! 13786s E 13786s E ******************************************************************************** 13786s E Please avoid running ``setup.py`` directly. 13786s E Instead, use pypa/build, pypa/installer or other 13786s E standards-based tools. 13786s E 13786s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13786s E ******************************************************************************** 13786s E 13786s E !! 13786s E self.initialize_options() 13786s E INFO: customize UnixCCompiler 13786s E INFO: customize UnixCCompiler using build_ext 13786s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/tmp 13786s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/usr 13786s E creating /tmp/tmppq19o2st/usr/lib 13786s E creating /tmp/tmppq19o2st/usr/lib/python3 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=native' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-O3' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-Werror' 13786s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13786s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-vfpv4' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=armv8.2-a+fp16' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13786s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13786s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13786s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13786s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13786s E INFO: building 'test_array_from_pyobj_ext' extension 13786s E INFO: compiling C sources 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13786s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13786s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13786s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13786s E 14 | #include 13786s E | ^~~~~~~~~~ 13786s E In file included from fortranobject.c:2: 13786s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13786s E 7 | #include 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E compilation terminated. 13786s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13786s E INFO: 13786s E ########### EXT COMPILER OPTIMIZATION ########### 13786s E INFO: Platform : 13786s E Architecture: armhf 13786s E Compiler : gcc 13786s E 13786s E CPU baseline : 13786s E Requested : 'min' 13786s E Enabled : none 13786s E Flags : none 13786s E Extra checks: none 13786s E 13786s E CPU dispatch : 13786s E Requested : 'max -xop -fma4' 13786s E Enabled : none 13786s E Generated : none 13786s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13786s 13786s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13786s d = '/tmp/tmpjj8q074z' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s err = None 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s kw = {} 13786s module_name = 'test_array_from_pyobj_ext' 13786s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13786s p = 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13786s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[UBYTE] ______ 13786s 13786s def setup_module(): 13786s """ 13786s Build the required testing extension module 13786s 13786s """ 13786s global wrap 13786s 13786s # Check compiler availability first 13786s if not util.has_c_compiler(): 13786s pytest.skip("No C compiler available") 13786s 13786s if wrap is None: 13786s config_code = """ 13786s config.add_extension('test_array_from_pyobj_ext', 13786s sources=['wrapmodule.c', 'fortranobject.c'], 13786s define_macros=[]) 13786s """ 13786s d = os.path.dirname(__file__) 13786s src = [ 13786s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13786s util.getpath("src", "fortranobject.c"), 13786s util.getpath("src", "fortranobject.h"), 13786s ] 13786s > wrap = util.build_module_distutils(src, config_code, 13786s "test_array_from_pyobj_ext") 13786s 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13786s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13786s memo[key] = func(*a, **kw) 13786s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13786s func = 13786s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13786s kw = {} 13786s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s 13786s @_memoize 13786s def build_module_distutils(source_files, config_code, module_name, **kw): 13786s """ 13786s Build a module via distutils and import it. 13786s 13786s """ 13786s d = get_module_dir() 13786s 13786s # Copy files 13786s dst_sources = [] 13786s for fn in source_files: 13786s if not os.path.isfile(fn): 13786s raise RuntimeError("%s is not a file" % fn) 13786s dst = os.path.join(d, os.path.basename(fn)) 13786s shutil.copyfile(fn, dst) 13786s dst_sources.append(dst) 13786s 13786s # Build script 13786s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13786s 13786s code = fr""" 13786s import os 13786s import sys 13786s sys.path = {repr(sys.path)} 13786s 13786s def configuration(parent_name='',top_path=None): 13786s from numpy.distutils.misc_util import Configuration 13786s config = Configuration('', parent_name, top_path) 13786s {config_code} 13786s return config 13786s 13786s if __name__ == "__main__": 13786s from numpy.distutils.core import setup 13786s setup(configuration=configuration) 13786s """ 13786s script = os.path.join(d, get_temp_module_name() + ".py") 13786s dst_sources.append(script) 13786s with open(script, "wb") as f: 13786s f.write(asbytes(code)) 13786s 13786s # Build 13786s cwd = os.getcwd() 13786s try: 13786s os.chdir(d) 13786s cmd = [sys.executable, script, "build_ext", "-i"] 13786s p = subprocess.Popen(cmd, 13786s stdout=subprocess.PIPE, 13786s stderr=subprocess.STDOUT) 13786s out, err = p.communicate() 13786s if p.returncode != 0: 13786s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13786s (cmd[4:], asstr(out))) 13786s E RuntimeError: Running distutils build failed: [] 13786s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13786s E 13786s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13786s E of the deprecation of `distutils` itself. It will be removed for 13786s E Python >= 3.12. For older Python versions it will remain present. 13786s E It is recommended to use `setuptools < 60.0` for those Python versions. 13786s E For more details, see: 13786s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13786s E 13786s E 13786s E from numpy.distutils.core import setup 13786s E running build_ext 13786s E running build_src 13786s E INFO: build_src 13786s E INFO: building extension "test_array_from_pyobj_ext" sources 13786s E INFO: build_src: building npy-pkg config files 13786s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13786s E !! 13786s E 13786s E ******************************************************************************** 13786s E Please avoid running ``setup.py`` directly. 13786s E Instead, use pypa/build, pypa/installer or other 13786s E standards-based tools. 13786s E 13786s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13786s E ******************************************************************************** 13786s E 13786s E !! 13786s E self.initialize_options() 13786s E INFO: customize UnixCCompiler 13786s E INFO: customize UnixCCompiler using build_ext 13786s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/tmp 13786s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/usr 13786s E creating /tmp/tmppq19o2st/usr/lib 13786s E creating /tmp/tmppq19o2st/usr/lib/python3 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=native' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-O3' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-Werror' 13786s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13786s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-vfpv4' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=armv8.2-a+fp16' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13786s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13786s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13786s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13786s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13786s E INFO: building 'test_array_from_pyobj_ext' extension 13786s E INFO: compiling C sources 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13786s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13786s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13786s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13786s E 14 | #include 13786s E | ^~~~~~~~~~ 13786s E In file included from fortranobject.c:2: 13786s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13786s E 7 | #include 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E compilation terminated. 13786s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13786s E INFO: 13786s E ########### EXT COMPILER OPTIMIZATION ########### 13786s E INFO: Platform : 13786s E Architecture: armhf 13786s E Compiler : gcc 13786s E 13786s E CPU baseline : 13786s E Requested : 'min' 13786s E Enabled : none 13786s E Flags : none 13786s E Extra checks: none 13786s E 13786s E CPU dispatch : 13786s E Requested : 'max -xop -fma4' 13786s E Enabled : none 13786s E Generated : none 13786s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13786s 13786s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13786s d = '/tmp/tmpjj8q074z' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s err = None 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s kw = {} 13786s module_name = 'test_array_from_pyobj_ext' 13786s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13786s p = 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13786s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[UBYTE] ______ 13786s 13786s def setup_module(): 13786s """ 13786s Build the required testing extension module 13786s 13786s """ 13786s global wrap 13786s 13786s # Check compiler availability first 13786s if not util.has_c_compiler(): 13786s pytest.skip("No C compiler available") 13786s 13786s if wrap is None: 13786s config_code = """ 13786s config.add_extension('test_array_from_pyobj_ext', 13786s sources=['wrapmodule.c', 'fortranobject.c'], 13786s define_macros=[]) 13786s """ 13786s d = os.path.dirname(__file__) 13786s src = [ 13786s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13786s util.getpath("src", "fortranobject.c"), 13786s util.getpath("src", "fortranobject.h"), 13786s ] 13786s > wrap = util.build_module_distutils(src, config_code, 13786s "test_array_from_pyobj_ext") 13786s 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13786s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13786s memo[key] = func(*a, **kw) 13786s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13786s func = 13786s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13786s kw = {} 13786s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s 13786s @_memoize 13786s def build_module_distutils(source_files, config_code, module_name, **kw): 13786s """ 13786s Build a module via distutils and import it. 13786s 13786s """ 13786s d = get_module_dir() 13786s 13786s # Copy files 13786s dst_sources = [] 13786s for fn in source_files: 13786s if not os.path.isfile(fn): 13786s raise RuntimeError("%s is not a file" % fn) 13786s dst = os.path.join(d, os.path.basename(fn)) 13786s shutil.copyfile(fn, dst) 13786s dst_sources.append(dst) 13786s 13786s # Build script 13786s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13786s 13786s code = fr""" 13786s import os 13786s import sys 13786s sys.path = {repr(sys.path)} 13786s 13786s def configuration(parent_name='',top_path=None): 13786s from numpy.distutils.misc_util import Configuration 13786s config = Configuration('', parent_name, top_path) 13786s {config_code} 13786s return config 13786s 13786s if __name__ == "__main__": 13786s from numpy.distutils.core import setup 13786s setup(configuration=configuration) 13786s """ 13786s script = os.path.join(d, get_temp_module_name() + ".py") 13786s dst_sources.append(script) 13786s with open(script, "wb") as f: 13786s f.write(asbytes(code)) 13786s 13786s # Build 13786s cwd = os.getcwd() 13786s try: 13786s os.chdir(d) 13786s cmd = [sys.executable, script, "build_ext", "-i"] 13786s p = subprocess.Popen(cmd, 13786s stdout=subprocess.PIPE, 13786s stderr=subprocess.STDOUT) 13786s out, err = p.communicate() 13786s if p.returncode != 0: 13786s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13786s (cmd[4:], asstr(out))) 13786s E RuntimeError: Running distutils build failed: [] 13786s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13786s E 13786s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13786s E of the deprecation of `distutils` itself. It will be removed for 13786s E Python >= 3.12. For older Python versions it will remain present. 13786s E It is recommended to use `setuptools < 60.0` for those Python versions. 13786s E For more details, see: 13786s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13786s E 13786s E 13786s E from numpy.distutils.core import setup 13786s E running build_ext 13786s E running build_src 13786s E INFO: build_src 13786s E INFO: building extension "test_array_from_pyobj_ext" sources 13786s E INFO: build_src: building npy-pkg config files 13786s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13786s E !! 13786s E 13786s E ******************************************************************************** 13786s E Please avoid running ``setup.py`` directly. 13786s E Instead, use pypa/build, pypa/installer or other 13786s E standards-based tools. 13786s E 13786s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13786s E ******************************************************************************** 13786s E 13786s E !! 13786s E self.initialize_options() 13786s E INFO: customize UnixCCompiler 13786s E INFO: customize UnixCCompiler using build_ext 13786s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/tmp 13786s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/usr 13786s E creating /tmp/tmppq19o2st/usr/lib 13786s E creating /tmp/tmppq19o2st/usr/lib/python3 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=native' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-O3' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-Werror' 13786s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13786s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-vfpv4' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=armv8.2-a+fp16' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13786s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13786s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13786s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13786s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13786s E INFO: building 'test_array_from_pyobj_ext' extension 13786s E INFO: compiling C sources 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13786s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13786s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13786s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13786s E 14 | #include 13786s E | ^~~~~~~~~~ 13786s E In file included from fortranobject.c:2: 13786s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13786s E 7 | #include 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E compilation terminated. 13786s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13786s E INFO: 13786s E ########### EXT COMPILER OPTIMIZATION ########### 13786s E INFO: Platform : 13786s E Architecture: armhf 13786s E Compiler : gcc 13786s E 13786s E CPU baseline : 13786s E Requested : 'min' 13786s E Enabled : none 13786s E Flags : none 13786s E Extra checks: none 13786s E 13786s E CPU dispatch : 13786s E Requested : 'max -xop -fma4' 13786s E Enabled : none 13786s E Generated : none 13786s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13786s 13786s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13786s d = '/tmp/tmpjj8q074z' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s err = None 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s kw = {} 13786s module_name = 'test_array_from_pyobj_ext' 13786s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13786s p = 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13786s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[UBYTE] ___ 13786s 13786s def setup_module(): 13786s """ 13786s Build the required testing extension module 13786s 13786s """ 13786s global wrap 13786s 13786s # Check compiler availability first 13786s if not util.has_c_compiler(): 13786s pytest.skip("No C compiler available") 13786s 13786s if wrap is None: 13786s config_code = """ 13786s config.add_extension('test_array_from_pyobj_ext', 13786s sources=['wrapmodule.c', 'fortranobject.c'], 13786s define_macros=[]) 13786s """ 13786s d = os.path.dirname(__file__) 13786s src = [ 13786s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13786s util.getpath("src", "fortranobject.c"), 13786s util.getpath("src", "fortranobject.h"), 13786s ] 13786s > wrap = util.build_module_distutils(src, config_code, 13786s "test_array_from_pyobj_ext") 13786s 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13786s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13786s memo[key] = func(*a, **kw) 13786s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13786s func = 13786s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13786s kw = {} 13786s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s 13786s @_memoize 13786s def build_module_distutils(source_files, config_code, module_name, **kw): 13786s """ 13786s Build a module via distutils and import it. 13786s 13786s """ 13786s d = get_module_dir() 13786s 13786s # Copy files 13786s dst_sources = [] 13786s for fn in source_files: 13786s if not os.path.isfile(fn): 13786s raise RuntimeError("%s is not a file" % fn) 13786s dst = os.path.join(d, os.path.basename(fn)) 13786s shutil.copyfile(fn, dst) 13786s dst_sources.append(dst) 13786s 13786s # Build script 13786s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13786s 13786s code = fr""" 13786s import os 13786s import sys 13786s sys.path = {repr(sys.path)} 13786s 13786s def configuration(parent_name='',top_path=None): 13786s from numpy.distutils.misc_util import Configuration 13786s config = Configuration('', parent_name, top_path) 13786s {config_code} 13786s return config 13786s 13786s if __name__ == "__main__": 13786s from numpy.distutils.core import setup 13786s setup(configuration=configuration) 13786s """ 13786s script = os.path.join(d, get_temp_module_name() + ".py") 13786s dst_sources.append(script) 13786s with open(script, "wb") as f: 13786s f.write(asbytes(code)) 13786s 13786s # Build 13786s cwd = os.getcwd() 13786s try: 13786s os.chdir(d) 13786s cmd = [sys.executable, script, "build_ext", "-i"] 13786s p = subprocess.Popen(cmd, 13786s stdout=subprocess.PIPE, 13786s stderr=subprocess.STDOUT) 13786s out, err = p.communicate() 13786s if p.returncode != 0: 13786s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13786s (cmd[4:], asstr(out))) 13786s E RuntimeError: Running distutils build failed: [] 13786s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13786s E 13786s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13786s E of the deprecation of `distutils` itself. It will be removed for 13786s E Python >= 3.12. For older Python versions it will remain present. 13786s E It is recommended to use `setuptools < 60.0` for those Python versions. 13786s E For more details, see: 13786s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13786s E 13786s E 13786s E from numpy.distutils.core import setup 13786s E running build_ext 13786s E running build_src 13786s E INFO: build_src 13786s E INFO: building extension "test_array_from_pyobj_ext" sources 13786s E INFO: build_src: building npy-pkg config files 13786s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13786s E !! 13786s E 13786s E ******************************************************************************** 13786s E Please avoid running ``setup.py`` directly. 13786s E Instead, use pypa/build, pypa/installer or other 13786s E standards-based tools. 13786s E 13786s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13786s E ******************************************************************************** 13786s E 13786s E !! 13786s E self.initialize_options() 13786s E INFO: customize UnixCCompiler 13786s E INFO: customize UnixCCompiler using build_ext 13786s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/tmp 13786s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/usr 13786s E creating /tmp/tmppq19o2st/usr/lib 13786s E creating /tmp/tmppq19o2st/usr/lib/python3 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=native' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-O3' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-Werror' 13786s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13786s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-vfpv4' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=armv8.2-a+fp16' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13786s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13786s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13786s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13786s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13786s E INFO: building 'test_array_from_pyobj_ext' extension 13786s E INFO: compiling C sources 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13786s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13786s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13786s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13786s E 14 | #include 13786s E | ^~~~~~~~~~ 13786s E In file included from fortranobject.c:2: 13786s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13786s E 7 | #include 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E compilation terminated. 13786s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13786s E INFO: 13786s E ########### EXT COMPILER OPTIMIZATION ########### 13786s E INFO: Platform : 13786s E Architecture: armhf 13786s E Compiler : gcc 13786s E 13786s E CPU baseline : 13786s E Requested : 'min' 13786s E Enabled : none 13786s E Flags : none 13786s E Extra checks: none 13786s E 13786s E CPU dispatch : 13786s E Requested : 'max -xop -fma4' 13786s E Enabled : none 13786s E Generated : none 13786s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13786s 13786s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13786s d = '/tmp/tmpjj8q074z' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s err = None 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s kw = {} 13786s module_name = 'test_array_from_pyobj_ext' 13786s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13786s p = 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13786s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[UBYTE] ___ 13786s 13786s def setup_module(): 13786s """ 13786s Build the required testing extension module 13786s 13786s """ 13786s global wrap 13786s 13786s # Check compiler availability first 13786s if not util.has_c_compiler(): 13786s pytest.skip("No C compiler available") 13786s 13786s if wrap is None: 13786s config_code = """ 13786s config.add_extension('test_array_from_pyobj_ext', 13786s sources=['wrapmodule.c', 'fortranobject.c'], 13786s define_macros=[]) 13786s """ 13786s d = os.path.dirname(__file__) 13786s src = [ 13786s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13786s util.getpath("src", "fortranobject.c"), 13786s util.getpath("src", "fortranobject.h"), 13786s ] 13786s > wrap = util.build_module_distutils(src, config_code, 13786s "test_array_from_pyobj_ext") 13786s 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13786s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13786s memo[key] = func(*a, **kw) 13786s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13786s func = 13786s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13786s kw = {} 13786s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s 13786s @_memoize 13786s def build_module_distutils(source_files, config_code, module_name, **kw): 13786s """ 13786s Build a module via distutils and import it. 13786s 13786s """ 13786s d = get_module_dir() 13786s 13786s # Copy files 13786s dst_sources = [] 13786s for fn in source_files: 13786s if not os.path.isfile(fn): 13786s raise RuntimeError("%s is not a file" % fn) 13786s dst = os.path.join(d, os.path.basename(fn)) 13786s shutil.copyfile(fn, dst) 13786s dst_sources.append(dst) 13786s 13786s # Build script 13786s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13786s 13786s code = fr""" 13786s import os 13786s import sys 13786s sys.path = {repr(sys.path)} 13786s 13786s def configuration(parent_name='',top_path=None): 13786s from numpy.distutils.misc_util import Configuration 13786s config = Configuration('', parent_name, top_path) 13786s {config_code} 13786s return config 13786s 13786s if __name__ == "__main__": 13786s from numpy.distutils.core import setup 13786s setup(configuration=configuration) 13786s """ 13786s script = os.path.join(d, get_temp_module_name() + ".py") 13786s dst_sources.append(script) 13786s with open(script, "wb") as f: 13786s f.write(asbytes(code)) 13786s 13786s # Build 13786s cwd = os.getcwd() 13786s try: 13786s os.chdir(d) 13786s cmd = [sys.executable, script, "build_ext", "-i"] 13786s p = subprocess.Popen(cmd, 13786s stdout=subprocess.PIPE, 13786s stderr=subprocess.STDOUT) 13786s out, err = p.communicate() 13786s if p.returncode != 0: 13786s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13786s (cmd[4:], asstr(out))) 13786s E RuntimeError: Running distutils build failed: [] 13786s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13786s E 13786s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13786s E of the deprecation of `distutils` itself. It will be removed for 13786s E Python >= 3.12. For older Python versions it will remain present. 13786s E It is recommended to use `setuptools < 60.0` for those Python versions. 13786s E For more details, see: 13786s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13786s E 13786s E 13786s E from numpy.distutils.core import setup 13786s E running build_ext 13786s E running build_src 13786s E INFO: build_src 13786s E INFO: building extension "test_array_from_pyobj_ext" sources 13786s E INFO: build_src: building npy-pkg config files 13786s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13786s E !! 13786s E 13786s E ******************************************************************************** 13786s E Please avoid running ``setup.py`` directly. 13786s E Instead, use pypa/build, pypa/installer or other 13786s E standards-based tools. 13786s E 13786s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13786s E ******************************************************************************** 13786s E 13786s E !! 13786s E self.initialize_options() 13786s E INFO: customize UnixCCompiler 13786s E INFO: customize UnixCCompiler using build_ext 13786s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/tmp 13786s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/usr 13786s E creating /tmp/tmppq19o2st/usr/lib 13786s E creating /tmp/tmppq19o2st/usr/lib/python3 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=native' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-O3' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-Werror' 13786s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13786s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-vfpv4' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=armv8.2-a+fp16' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13786s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13786s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13786s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13786s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13786s E INFO: building 'test_array_from_pyobj_ext' extension 13786s E INFO: compiling C sources 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13786s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13786s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13786s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13786s E 14 | #include 13786s E | ^~~~~~~~~~ 13786s E In file included from fortranobject.c:2: 13786s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13786s E 7 | #include 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E compilation terminated. 13786s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13786s E INFO: 13786s E ########### EXT COMPILER OPTIMIZATION ########### 13786s E INFO: Platform : 13786s E Architecture: armhf 13786s E Compiler : gcc 13786s E 13786s E CPU baseline : 13786s E Requested : 'min' 13786s E Enabled : none 13786s E Flags : none 13786s E Extra checks: none 13786s E 13786s E CPU dispatch : 13786s E Requested : 'max -xop -fma4' 13786s E Enabled : none 13786s E Generated : none 13786s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13786s 13786s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13786s d = '/tmp/tmpjj8q074z' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s err = None 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s kw = {} 13786s module_name = 'test_array_from_pyobj_ext' 13786s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13786s p = 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13786s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[UBYTE] ____ 13786s 13786s def setup_module(): 13786s """ 13786s Build the required testing extension module 13786s 13786s """ 13786s global wrap 13786s 13786s # Check compiler availability first 13786s if not util.has_c_compiler(): 13786s pytest.skip("No C compiler available") 13786s 13786s if wrap is None: 13786s config_code = """ 13786s config.add_extension('test_array_from_pyobj_ext', 13786s sources=['wrapmodule.c', 'fortranobject.c'], 13786s define_macros=[]) 13786s """ 13786s d = os.path.dirname(__file__) 13786s src = [ 13786s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13786s util.getpath("src", "fortranobject.c"), 13786s util.getpath("src", "fortranobject.h"), 13786s ] 13786s > wrap = util.build_module_distutils(src, config_code, 13786s "test_array_from_pyobj_ext") 13786s 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13786s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13786s memo[key] = func(*a, **kw) 13786s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13786s func = 13786s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13786s kw = {} 13786s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s 13786s @_memoize 13786s def build_module_distutils(source_files, config_code, module_name, **kw): 13786s """ 13786s Build a module via distutils and import it. 13786s 13786s """ 13786s d = get_module_dir() 13786s 13786s # Copy files 13786s dst_sources = [] 13786s for fn in source_files: 13786s if not os.path.isfile(fn): 13786s raise RuntimeError("%s is not a file" % fn) 13786s dst = os.path.join(d, os.path.basename(fn)) 13786s shutil.copyfile(fn, dst) 13786s dst_sources.append(dst) 13786s 13786s # Build script 13786s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13786s 13786s code = fr""" 13786s import os 13786s import sys 13786s sys.path = {repr(sys.path)} 13786s 13786s def configuration(parent_name='',top_path=None): 13786s from numpy.distutils.misc_util import Configuration 13786s config = Configuration('', parent_name, top_path) 13786s {config_code} 13786s return config 13786s 13786s if __name__ == "__main__": 13786s from numpy.distutils.core import setup 13786s setup(configuration=configuration) 13786s """ 13786s script = os.path.join(d, get_temp_module_name() + ".py") 13786s dst_sources.append(script) 13786s with open(script, "wb") as f: 13786s f.write(asbytes(code)) 13786s 13786s # Build 13786s cwd = os.getcwd() 13786s try: 13786s os.chdir(d) 13786s cmd = [sys.executable, script, "build_ext", "-i"] 13786s p = subprocess.Popen(cmd, 13786s stdout=subprocess.PIPE, 13786s stderr=subprocess.STDOUT) 13786s out, err = p.communicate() 13786s if p.returncode != 0: 13786s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13786s (cmd[4:], asstr(out))) 13786s E RuntimeError: Running distutils build failed: [] 13786s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13786s E 13786s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13786s E of the deprecation of `distutils` itself. It will be removed for 13786s E Python >= 3.12. For older Python versions it will remain present. 13786s E It is recommended to use `setuptools < 60.0` for those Python versions. 13786s E For more details, see: 13786s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13786s E 13786s E 13786s E from numpy.distutils.core import setup 13786s E running build_ext 13786s E running build_src 13786s E INFO: build_src 13786s E INFO: building extension "test_array_from_pyobj_ext" sources 13786s E INFO: build_src: building npy-pkg config files 13786s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13786s E !! 13786s E 13786s E ******************************************************************************** 13786s E Please avoid running ``setup.py`` directly. 13786s E Instead, use pypa/build, pypa/installer or other 13786s E standards-based tools. 13786s E 13786s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13786s E ******************************************************************************** 13786s E 13786s E !! 13786s E self.initialize_options() 13786s E INFO: customize UnixCCompiler 13786s E INFO: customize UnixCCompiler using build_ext 13786s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/tmp 13786s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/usr 13786s E creating /tmp/tmppq19o2st/usr/lib 13786s E creating /tmp/tmppq19o2st/usr/lib/python3 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=native' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-O3' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-Werror' 13786s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13786s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-vfpv4' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=armv8.2-a+fp16' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13786s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13786s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13786s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13786s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13786s E INFO: building 'test_array_from_pyobj_ext' extension 13786s E INFO: compiling C sources 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13786s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13786s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13786s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13786s E 14 | #include 13786s E | ^~~~~~~~~~ 13786s E In file included from fortranobject.c:2: 13786s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13786s E 7 | #include 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E compilation terminated. 13786s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13786s E INFO: 13786s E ########### EXT COMPILER OPTIMIZATION ########### 13786s E INFO: Platform : 13786s E Architecture: armhf 13786s E Compiler : gcc 13786s E 13786s E CPU baseline : 13786s E Requested : 'min' 13786s E Enabled : none 13786s E Flags : none 13786s E Extra checks: none 13786s E 13786s E CPU dispatch : 13786s E Requested : 'max -xop -fma4' 13786s E Enabled : none 13786s E Generated : none 13786s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13786s 13786s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13786s d = '/tmp/tmpjj8q074z' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s err = None 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s kw = {} 13786s module_name = 'test_array_from_pyobj_ext' 13786s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13786s p = 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13786s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[UBYTE] _ 13786s 13786s def setup_module(): 13786s """ 13786s Build the required testing extension module 13786s 13786s """ 13786s global wrap 13786s 13786s # Check compiler availability first 13786s if not util.has_c_compiler(): 13786s pytest.skip("No C compiler available") 13786s 13786s if wrap is None: 13786s config_code = """ 13786s config.add_extension('test_array_from_pyobj_ext', 13786s sources=['wrapmodule.c', 'fortranobject.c'], 13786s define_macros=[]) 13786s """ 13786s d = os.path.dirname(__file__) 13786s src = [ 13786s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13786s util.getpath("src", "fortranobject.c"), 13786s util.getpath("src", "fortranobject.h"), 13786s ] 13786s > wrap = util.build_module_distutils(src, config_code, 13786s "test_array_from_pyobj_ext") 13786s 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13786s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13786s memo[key] = func(*a, **kw) 13786s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13786s func = 13786s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13786s kw = {} 13786s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13786s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13786s 13786s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13786s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13786s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13786s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13786s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13786s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13786s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13786s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13786s 13786s @_memoize 13786s def build_module_distutils(source_files, config_code, module_name, **kw): 13786s """ 13786s Build a module via distutils and import it. 13786s 13786s """ 13786s d = get_module_dir() 13786s 13786s # Copy files 13786s dst_sources = [] 13786s for fn in source_files: 13786s if not os.path.isfile(fn): 13786s raise RuntimeError("%s is not a file" % fn) 13786s dst = os.path.join(d, os.path.basename(fn)) 13786s shutil.copyfile(fn, dst) 13786s dst_sources.append(dst) 13786s 13786s # Build script 13786s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13786s 13786s code = fr""" 13786s import os 13786s import sys 13786s sys.path = {repr(sys.path)} 13786s 13786s def configuration(parent_name='',top_path=None): 13786s from numpy.distutils.misc_util import Configuration 13786s config = Configuration('', parent_name, top_path) 13786s {config_code} 13786s return config 13786s 13786s if __name__ == "__main__": 13786s from numpy.distutils.core import setup 13786s setup(configuration=configuration) 13786s """ 13786s script = os.path.join(d, get_temp_module_name() + ".py") 13786s dst_sources.append(script) 13786s with open(script, "wb") as f: 13786s f.write(asbytes(code)) 13786s 13786s # Build 13786s cwd = os.getcwd() 13786s try: 13786s os.chdir(d) 13786s cmd = [sys.executable, script, "build_ext", "-i"] 13786s p = subprocess.Popen(cmd, 13786s stdout=subprocess.PIPE, 13786s stderr=subprocess.STDOUT) 13786s out, err = p.communicate() 13786s if p.returncode != 0: 13786s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13786s (cmd[4:], asstr(out))) 13786s E RuntimeError: Running distutils build failed: [] 13786s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13786s E 13786s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13786s E of the deprecation of `distutils` itself. It will be removed for 13786s E Python >= 3.12. For older Python versions it will remain present. 13786s E It is recommended to use `setuptools < 60.0` for those Python versions. 13786s E For more details, see: 13786s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13786s E 13786s E 13786s E from numpy.distutils.core import setup 13786s E running build_ext 13786s E running build_src 13786s E INFO: build_src 13786s E INFO: building extension "test_array_from_pyobj_ext" sources 13786s E INFO: build_src: building npy-pkg config files 13786s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13786s E !! 13786s E 13786s E ******************************************************************************** 13786s E Please avoid running ``setup.py`` directly. 13786s E Instead, use pypa/build, pypa/installer or other 13786s E standards-based tools. 13786s E 13786s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13786s E ******************************************************************************** 13786s E 13786s E !! 13786s E self.initialize_options() 13786s E INFO: customize UnixCCompiler 13786s E INFO: customize UnixCCompiler using build_ext 13786s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/tmp 13786s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E creating /tmp/tmppq19o2st/usr 13786s E creating /tmp/tmppq19o2st/usr/lib 13786s E creating /tmp/tmppq19o2st/usr/lib/python3 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13786s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=native' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-O3' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-Werror' 13786s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13786s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-vfpv4' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13786s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-march=armv8.2-a+fp16' 13786s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13786s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13786s E 13786s E INFO: compile options: '-I/usr/include/python3.12 -c' 13786s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13786s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13786s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13786s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13786s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13786s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13786s E 9 | # include_next 13786s E | ^~~~~~~~~~ 13786s E compilation terminated. 13786s E 13786s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[UBYTE] __________ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s 13787s @_memoize 13787s def build_module_distutils(source_files, config_code, module_name, **kw): 13787s """ 13787s Build a module via distutils and import it. 13787s 13787s """ 13787s d = get_module_dir() 13787s 13787s # Copy files 13787s dst_sources = [] 13787s for fn in source_files: 13787s if not os.path.isfile(fn): 13787s raise RuntimeError("%s is not a file" % fn) 13787s dst = os.path.join(d, os.path.basename(fn)) 13787s shutil.copyfile(fn, dst) 13787s dst_sources.append(dst) 13787s 13787s # Build script 13787s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13787s 13787s code = fr""" 13787s import os 13787s import sys 13787s sys.path = {repr(sys.path)} 13787s 13787s def configuration(parent_name='',top_path=None): 13787s from numpy.distutils.misc_util import Configuration 13787s config = Configuration('', parent_name, top_path) 13787s {config_code} 13787s return config 13787s 13787s if __name__ == "__main__": 13787s from numpy.distutils.core import setup 13787s setup(configuration=configuration) 13787s """ 13787s script = os.path.join(d, get_temp_module_name() + ".py") 13787s dst_sources.append(script) 13787s with open(script, "wb") as f: 13787s f.write(asbytes(code)) 13787s 13787s # Build 13787s cwd = os.getcwd() 13787s try: 13787s os.chdir(d) 13787s cmd = [sys.executable, script, "build_ext", "-i"] 13787s p = subprocess.Popen(cmd, 13787s stdout=subprocess.PIPE, 13787s stderr=subprocess.STDOUT) 13787s out, err = p.communicate() 13787s if p.returncode != 0: 13787s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13787s (cmd[4:], asstr(out))) 13787s E RuntimeError: Running distutils build failed: [] 13787s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13787s E 13787s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13787s E of the deprecation of `distutils` itself. It will be removed for 13787s E Python >= 3.12. For older Python versions it will remain present. 13787s E It is recommended to use `setuptools < 60.0` for those Python versions. 13787s E For more details, see: 13787s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13787s E 13787s E 13787s E from numpy.distutils.core import setup 13787s E running build_ext 13787s E running build_src 13787s E INFO: build_src 13787s E INFO: building extension "test_array_from_pyobj_ext" sources 13787s E INFO: build_src: building npy-pkg config files 13787s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13787s E !! 13787s E 13787s E ******************************************************************************** 13787s E Please avoid running ``setup.py`` directly. 13787s E Instead, use pypa/build, pypa/installer or other 13787s E standards-based tools. 13787s E 13787s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13787s E ******************************************************************************** 13787s E 13787s E !! 13787s E self.initialize_options() 13787s E INFO: customize UnixCCompiler 13787s E INFO: customize UnixCCompiler using build_ext 13787s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/tmp 13787s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/usr 13787s E creating /tmp/tmppq19o2st/usr/lib 13787s E creating /tmp/tmppq19o2st/usr/lib/python3 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=native' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-O3' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-Werror' 13787s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13787s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-vfpv4' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=armv8.2-a+fp16' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s ____________ ERROR at setup of TestSharedMemory.test_hidden[UBYTE] _____________ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s 13787s @_memoize 13787s def build_module_distutils(source_files, config_code, module_name, **kw): 13787s """ 13787s Build a module via distutils and import it. 13787s 13787s """ 13787s d = get_module_dir() 13787s 13787s # Copy files 13787s dst_sources = [] 13787s for fn in source_files: 13787s if not os.path.isfile(fn): 13787s raise RuntimeError("%s is not a file" % fn) 13787s dst = os.path.join(d, os.path.basename(fn)) 13787s shutil.copyfile(fn, dst) 13787s dst_sources.append(dst) 13787s 13787s # Build script 13787s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13787s 13787s code = fr""" 13787s import os 13787s import sys 13787s sys.path = {repr(sys.path)} 13787s 13787s def configuration(parent_name='',top_path=None): 13787s from numpy.distutils.misc_util import Configuration 13787s config = Configuration('', parent_name, top_path) 13787s {config_code} 13787s return config 13787s 13787s if __name__ == "__main__": 13787s from numpy.distutils.core import setup 13787s setup(configuration=configuration) 13787s """ 13787s script = os.path.join(d, get_temp_module_name() + ".py") 13787s dst_sources.append(script) 13787s with open(script, "wb") as f: 13787s f.write(asbytes(code)) 13787s 13787s # Build 13787s cwd = os.getcwd() 13787s try: 13787s os.chdir(d) 13787s cmd = [sys.executable, script, "build_ext", "-i"] 13787s p = subprocess.Popen(cmd, 13787s stdout=subprocess.PIPE, 13787s stderr=subprocess.STDOUT) 13787s out, err = p.communicate() 13787s if p.returncode != 0: 13787s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13787s (cmd[4:], asstr(out))) 13787s E RuntimeError: Running distutils build failed: [] 13787s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13787s E 13787s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13787s E of the deprecation of `distutils` itself. It will be removed for 13787s E Python >= 3.12. For older Python versions it will remain present. 13787s E It is recommended to use `setuptools < 60.0` for those Python versions. 13787s E For more details, see: 13787s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13787s E 13787s E 13787s E from numpy.distutils.core import setup 13787s E running build_ext 13787s E running build_src 13787s E INFO: build_src 13787s E INFO: building extension "test_array_from_pyobj_ext" sources 13787s E INFO: build_src: building npy-pkg config files 13787s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13787s E !! 13787s E 13787s E ******************************************************************************** 13787s E Please avoid running ``setup.py`` directly. 13787s E Instead, use pypa/build, pypa/installer or other 13787s E standards-based tools. 13787s E 13787s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13787s E ******************************************************************************** 13787s E 13787s E !! 13787s E self.initialize_options() 13787s E INFO: customize UnixCCompiler 13787s E INFO: customize UnixCCompiler using build_ext 13787s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/tmp 13787s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/usr 13787s E creating /tmp/tmppq19o2st/usr/lib 13787s E creating /tmp/tmppq19o2st/usr/lib/python3 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=native' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-O3' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-Werror' 13787s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13787s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-vfpv4' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=armv8.2-a+fp16' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s _________ ERROR at setup of TestSharedMemory.test_optional_none[UBYTE] _________ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s 13787s @_memoize 13787s def build_module_distutils(source_files, config_code, module_name, **kw): 13787s """ 13787s Build a module via distutils and import it. 13787s 13787s """ 13787s d = get_module_dir() 13787s 13787s # Copy files 13787s dst_sources = [] 13787s for fn in source_files: 13787s if not os.path.isfile(fn): 13787s raise RuntimeError("%s is not a file" % fn) 13787s dst = os.path.join(d, os.path.basename(fn)) 13787s shutil.copyfile(fn, dst) 13787s dst_sources.append(dst) 13787s 13787s # Build script 13787s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13787s 13787s code = fr""" 13787s import os 13787s import sys 13787s sys.path = {repr(sys.path)} 13787s 13787s def configuration(parent_name='',top_path=None): 13787s from numpy.distutils.misc_util import Configuration 13787s config = Configuration('', parent_name, top_path) 13787s {config_code} 13787s return config 13787s 13787s if __name__ == "__main__": 13787s from numpy.distutils.core import setup 13787s setup(configuration=configuration) 13787s """ 13787s script = os.path.join(d, get_temp_module_name() + ".py") 13787s dst_sources.append(script) 13787s with open(script, "wb") as f: 13787s f.write(asbytes(code)) 13787s 13787s # Build 13787s cwd = os.getcwd() 13787s try: 13787s os.chdir(d) 13787s cmd = [sys.executable, script, "build_ext", "-i"] 13787s p = subprocess.Popen(cmd, 13787s stdout=subprocess.PIPE, 13787s stderr=subprocess.STDOUT) 13787s out, err = p.communicate() 13787s if p.returncode != 0: 13787s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13787s (cmd[4:], asstr(out))) 13787s E RuntimeError: Running distutils build failed: [] 13787s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13787s E 13787s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13787s E of the deprecation of `distutils` itself. It will be removed for 13787s E Python >= 3.12. For older Python versions it will remain present. 13787s E It is recommended to use `setuptools < 60.0` for those Python versions. 13787s E For more details, see: 13787s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13787s E 13787s E 13787s E from numpy.distutils.core import setup 13787s E running build_ext 13787s E running build_src 13787s E INFO: build_src 13787s E INFO: building extension "test_array_from_pyobj_ext" sources 13787s E INFO: build_src: building npy-pkg config files 13787s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13787s E !! 13787s E 13787s E ******************************************************************************** 13787s E Please avoid running ``setup.py`` directly. 13787s E Instead, use pypa/build, pypa/installer or other 13787s E standards-based tools. 13787s E 13787s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13787s E ******************************************************************************** 13787s E 13787s E !! 13787s E self.initialize_options() 13787s E INFO: customize UnixCCompiler 13787s E INFO: customize UnixCCompiler using build_ext 13787s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/tmp 13787s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/usr 13787s E creating /tmp/tmppq19o2st/usr/lib 13787s E creating /tmp/tmppq19o2st/usr/lib/python3 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=native' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-O3' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-Werror' 13787s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13787s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-vfpv4' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=armv8.2-a+fp16' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[UBYTE] _______ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s 13787s @_memoize 13787s def build_module_distutils(source_files, config_code, module_name, **kw): 13787s """ 13787s Build a module via distutils and import it. 13787s 13787s """ 13787s d = get_module_dir() 13787s 13787s # Copy files 13787s dst_sources = [] 13787s for fn in source_files: 13787s if not os.path.isfile(fn): 13787s raise RuntimeError("%s is not a file" % fn) 13787s dst = os.path.join(d, os.path.basename(fn)) 13787s shutil.copyfile(fn, dst) 13787s dst_sources.append(dst) 13787s 13787s # Build script 13787s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13787s 13787s code = fr""" 13787s import os 13787s import sys 13787s sys.path = {repr(sys.path)} 13787s 13787s def configuration(parent_name='',top_path=None): 13787s from numpy.distutils.misc_util import Configuration 13787s config = Configuration('', parent_name, top_path) 13787s {config_code} 13787s return config 13787s 13787s if __name__ == "__main__": 13787s from numpy.distutils.core import setup 13787s setup(configuration=configuration) 13787s """ 13787s script = os.path.join(d, get_temp_module_name() + ".py") 13787s dst_sources.append(script) 13787s with open(script, "wb") as f: 13787s f.write(asbytes(code)) 13787s 13787s # Build 13787s cwd = os.getcwd() 13787s try: 13787s os.chdir(d) 13787s cmd = [sys.executable, script, "build_ext", "-i"] 13787s p = subprocess.Popen(cmd, 13787s stdout=subprocess.PIPE, 13787s stderr=subprocess.STDOUT) 13787s out, err = p.communicate() 13787s if p.returncode != 0: 13787s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13787s (cmd[4:], asstr(out))) 13787s E RuntimeError: Running distutils build failed: [] 13787s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13787s E 13787s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13787s E of the deprecation of `distutils` itself. It will be removed for 13787s E Python >= 3.12. For older Python versions it will remain present. 13787s E It is recommended to use `setuptools < 60.0` for those Python versions. 13787s E For more details, see: 13787s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13787s E 13787s E 13787s E from numpy.distutils.core import setup 13787s E running build_ext 13787s E running build_src 13787s E INFO: build_src 13787s E INFO: building extension "test_array_from_pyobj_ext" sources 13787s E INFO: build_src: building npy-pkg config files 13787s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13787s E !! 13787s E 13787s E ******************************************************************************** 13787s E Please avoid running ``setup.py`` directly. 13787s E Instead, use pypa/build, pypa/installer or other 13787s E standards-based tools. 13787s E 13787s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13787s E ******************************************************************************** 13787s E 13787s E !! 13787s E self.initialize_options() 13787s E INFO: customize UnixCCompiler 13787s E INFO: customize UnixCCompiler using build_ext 13787s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/tmp 13787s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/usr 13787s E creating /tmp/tmppq19o2st/usr/lib 13787s E creating /tmp/tmppq19o2st/usr/lib/python3 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=native' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-O3' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-Werror' 13787s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13787s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-vfpv4' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=armv8.2-a+fp16' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[UBYTE] ______ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s 13787s @_memoize 13787s def build_module_distutils(source_files, config_code, module_name, **kw): 13787s """ 13787s Build a module via distutils and import it. 13787s 13787s """ 13787s d = get_module_dir() 13787s 13787s # Copy files 13787s dst_sources = [] 13787s for fn in source_files: 13787s if not os.path.isfile(fn): 13787s raise RuntimeError("%s is not a file" % fn) 13787s dst = os.path.join(d, os.path.basename(fn)) 13787s shutil.copyfile(fn, dst) 13787s dst_sources.append(dst) 13787s 13787s # Build script 13787s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13787s 13787s code = fr""" 13787s import os 13787s import sys 13787s sys.path = {repr(sys.path)} 13787s 13787s def configuration(parent_name='',top_path=None): 13787s from numpy.distutils.misc_util import Configuration 13787s config = Configuration('', parent_name, top_path) 13787s {config_code} 13787s return config 13787s 13787s if __name__ == "__main__": 13787s from numpy.distutils.core import setup 13787s setup(configuration=configuration) 13787s """ 13787s script = os.path.join(d, get_temp_module_name() + ".py") 13787s dst_sources.append(script) 13787s with open(script, "wb") as f: 13787s f.write(asbytes(code)) 13787s 13787s # Build 13787s cwd = os.getcwd() 13787s try: 13787s os.chdir(d) 13787s cmd = [sys.executable, script, "build_ext", "-i"] 13787s p = subprocess.Popen(cmd, 13787s stdout=subprocess.PIPE, 13787s stderr=subprocess.STDOUT) 13787s out, err = p.communicate() 13787s if p.returncode != 0: 13787s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13787s (cmd[4:], asstr(out))) 13787s E RuntimeError: Running distutils build failed: [] 13787s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13787s E 13787s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13787s E of the deprecation of `distutils` itself. It will be removed for 13787s E Python >= 3.12. For older Python versions it will remain present. 13787s E It is recommended to use `setuptools < 60.0` for those Python versions. 13787s E For more details, see: 13787s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13787s E 13787s E 13787s E from numpy.distutils.core import setup 13787s E running build_ext 13787s E running build_src 13787s E INFO: build_src 13787s E INFO: building extension "test_array_from_pyobj_ext" sources 13787s E INFO: build_src: building npy-pkg config files 13787s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13787s E !! 13787s E 13787s E ******************************************************************************** 13787s E Please avoid running ``setup.py`` directly. 13787s E Instead, use pypa/build, pypa/installer or other 13787s E standards-based tools. 13787s E 13787s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13787s E ******************************************************************************** 13787s E 13787s E !! 13787s E self.initialize_options() 13787s E INFO: customize UnixCCompiler 13787s E INFO: customize UnixCCompiler using build_ext 13787s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/tmp 13787s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/usr 13787s E creating /tmp/tmppq19o2st/usr/lib 13787s E creating /tmp/tmppq19o2st/usr/lib/python3 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=native' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-O3' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-Werror' 13787s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13787s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-vfpv4' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=armv8.2-a+fp16' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s ____________ ERROR at setup of TestSharedMemory.test_inplace[UBYTE] ____________ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s 13787s @_memoize 13787s def build_module_distutils(source_files, config_code, module_name, **kw): 13787s """ 13787s Build a module via distutils and import it. 13787s 13787s """ 13787s d = get_module_dir() 13787s 13787s # Copy files 13787s dst_sources = [] 13787s for fn in source_files: 13787s if not os.path.isfile(fn): 13787s raise RuntimeError("%s is not a file" % fn) 13787s dst = os.path.join(d, os.path.basename(fn)) 13787s shutil.copyfile(fn, dst) 13787s dst_sources.append(dst) 13787s 13787s # Build script 13787s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13787s 13787s code = fr""" 13787s import os 13787s import sys 13787s sys.path = {repr(sys.path)} 13787s 13787s def configuration(parent_name='',top_path=None): 13787s from numpy.distutils.misc_util import Configuration 13787s config = Configuration('', parent_name, top_path) 13787s {config_code} 13787s return config 13787s 13787s if __name__ == "__main__": 13787s from numpy.distutils.core import setup 13787s setup(configuration=configuration) 13787s """ 13787s script = os.path.join(d, get_temp_module_name() + ".py") 13787s dst_sources.append(script) 13787s with open(script, "wb") as f: 13787s f.write(asbytes(code)) 13787s 13787s # Build 13787s cwd = os.getcwd() 13787s try: 13787s os.chdir(d) 13787s cmd = [sys.executable, script, "build_ext", "-i"] 13787s p = subprocess.Popen(cmd, 13787s stdout=subprocess.PIPE, 13787s stderr=subprocess.STDOUT) 13787s out, err = p.communicate() 13787s if p.returncode != 0: 13787s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13787s (cmd[4:], asstr(out))) 13787s E RuntimeError: Running distutils build failed: [] 13787s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13787s E 13787s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13787s E of the deprecation of `distutils` itself. It will be removed for 13787s E Python >= 3.12. For older Python versions it will remain present. 13787s E It is recommended to use `setuptools < 60.0` for those Python versions. 13787s E For more details, see: 13787s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13787s E 13787s E 13787s E from numpy.distutils.core import setup 13787s E running build_ext 13787s E running build_src 13787s E INFO: build_src 13787s E INFO: building extension "test_array_from_pyobj_ext" sources 13787s E INFO: build_src: building npy-pkg config files 13787s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13787s E !! 13787s E 13787s E ******************************************************************************** 13787s E Please avoid running ``setup.py`` directly. 13787s E Instead, use pypa/build, pypa/installer or other 13787s E standards-based tools. 13787s E 13787s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13787s E ******************************************************************************** 13787s E 13787s E !! 13787s E self.initialize_options() 13787s E INFO: customize UnixCCompiler 13787s E INFO: customize UnixCCompiler using build_ext 13787s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/tmp 13787s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/usr 13787s E creating /tmp/tmppq19o2st/usr/lib 13787s E creating /tmp/tmppq19o2st/usr/lib/python3 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=native' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-O3' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-Werror' 13787s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13787s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-vfpv4' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=armv8.2-a+fp16' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[UBYTE] _____ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s 13787s @_memoize 13787s def build_module_distutils(source_files, config_code, module_name, **kw): 13787s """ 13787s Build a module via distutils and import it. 13787s 13787s """ 13787s d = get_module_dir() 13787s 13787s # Copy files 13787s dst_sources = [] 13787s for fn in source_files: 13787s if not os.path.isfile(fn): 13787s raise RuntimeError("%s is not a file" % fn) 13787s dst = os.path.join(d, os.path.basename(fn)) 13787s shutil.copyfile(fn, dst) 13787s dst_sources.append(dst) 13787s 13787s # Build script 13787s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13787s 13787s code = fr""" 13787s import os 13787s import sys 13787s sys.path = {repr(sys.path)} 13787s 13787s def configuration(parent_name='',top_path=None): 13787s from numpy.distutils.misc_util import Configuration 13787s config = Configuration('', parent_name, top_path) 13787s {config_code} 13787s return config 13787s 13787s if __name__ == "__main__": 13787s from numpy.distutils.core import setup 13787s setup(configuration=configuration) 13787s """ 13787s script = os.path.join(d, get_temp_module_name() + ".py") 13787s dst_sources.append(script) 13787s with open(script, "wb") as f: 13787s f.write(asbytes(code)) 13787s 13787s # Build 13787s cwd = os.getcwd() 13787s try: 13787s os.chdir(d) 13787s cmd = [sys.executable, script, "build_ext", "-i"] 13787s p = subprocess.Popen(cmd, 13787s stdout=subprocess.PIPE, 13787s stderr=subprocess.STDOUT) 13787s out, err = p.communicate() 13787s if p.returncode != 0: 13787s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13787s (cmd[4:], asstr(out))) 13787s E RuntimeError: Running distutils build failed: [] 13787s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13787s E 13787s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13787s E of the deprecation of `distutils` itself. It will be removed for 13787s E Python >= 3.12. For older Python versions it will remain present. 13787s E It is recommended to use `setuptools < 60.0` for those Python versions. 13787s E For more details, see: 13787s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13787s E 13787s E 13787s E from numpy.distutils.core import setup 13787s E running build_ext 13787s E running build_src 13787s E INFO: build_src 13787s E INFO: building extension "test_array_from_pyobj_ext" sources 13787s E INFO: build_src: building npy-pkg config files 13787s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13787s E !! 13787s E 13787s E ******************************************************************************** 13787s E Please avoid running ``setup.py`` directly. 13787s E Instead, use pypa/build, pypa/installer or other 13787s E standards-based tools. 13787s E 13787s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13787s E ******************************************************************************** 13787s E 13787s E !! 13787s E self.initialize_options() 13787s E INFO: customize UnixCCompiler 13787s E INFO: customize UnixCCompiler using build_ext 13787s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/tmp 13787s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/usr 13787s E creating /tmp/tmppq19o2st/usr/lib 13787s E creating /tmp/tmppq19o2st/usr/lib/python3 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=native' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-O3' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-Werror' 13787s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13787s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-vfpv4' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=armv8.2-a+fp16' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[SHORT] __________ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s 13787s @_memoize 13787s def build_module_distutils(source_files, config_code, module_name, **kw): 13787s """ 13787s Build a module via distutils and import it. 13787s 13787s """ 13787s d = get_module_dir() 13787s 13787s # Copy files 13787s dst_sources = [] 13787s for fn in source_files: 13787s if not os.path.isfile(fn): 13787s raise RuntimeError("%s is not a file" % fn) 13787s dst = os.path.join(d, os.path.basename(fn)) 13787s shutil.copyfile(fn, dst) 13787s dst_sources.append(dst) 13787s 13787s # Build script 13787s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13787s 13787s code = fr""" 13787s import os 13787s import sys 13787s sys.path = {repr(sys.path)} 13787s 13787s def configuration(parent_name='',top_path=None): 13787s from numpy.distutils.misc_util import Configuration 13787s config = Configuration('', parent_name, top_path) 13787s {config_code} 13787s return config 13787s 13787s if __name__ == "__main__": 13787s from numpy.distutils.core import setup 13787s setup(configuration=configuration) 13787s """ 13787s script = os.path.join(d, get_temp_module_name() + ".py") 13787s dst_sources.append(script) 13787s with open(script, "wb") as f: 13787s f.write(asbytes(code)) 13787s 13787s # Build 13787s cwd = os.getcwd() 13787s try: 13787s os.chdir(d) 13787s cmd = [sys.executable, script, "build_ext", "-i"] 13787s p = subprocess.Popen(cmd, 13787s stdout=subprocess.PIPE, 13787s stderr=subprocess.STDOUT) 13787s out, err = p.communicate() 13787s if p.returncode != 0: 13787s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13787s (cmd[4:], asstr(out))) 13787s E RuntimeError: Running distutils build failed: [] 13787s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13787s E 13787s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13787s E of the deprecation of `distutils` itself. It will be removed for 13787s E Python >= 3.12. For older Python versions it will remain present. 13787s E It is recommended to use `setuptools < 60.0` for those Python versions. 13787s E For more details, see: 13787s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13787s E 13787s E 13787s E from numpy.distutils.core import setup 13787s E running build_ext 13787s E running build_src 13787s E INFO: build_src 13787s E INFO: building extension "test_array_from_pyobj_ext" sources 13787s E INFO: build_src: building npy-pkg config files 13787s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13787s E !! 13787s E 13787s E ******************************************************************************** 13787s E Please avoid running ``setup.py`` directly. 13787s E Instead, use pypa/build, pypa/installer or other 13787s E standards-based tools. 13787s E 13787s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13787s E ******************************************************************************** 13787s E 13787s E !! 13787s E self.initialize_options() 13787s E INFO: customize UnixCCompiler 13787s E INFO: customize UnixCCompiler using build_ext 13787s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/tmp 13787s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E creating /tmp/tmppq19o2st/usr 13787s E creating /tmp/tmppq19o2st/usr/lib 13787s E creating /tmp/tmppq19o2st/usr/lib/python3 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13787s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=native' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-O3' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-Werror' 13787s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13787s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-vfpv4' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13787s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-march=armv8.2-a+fp16' 13787s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/include/python3.12 -c' 13787s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13787s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13787s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13787s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13787s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13787s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13787s E 9 | # include_next 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E 13787s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13787s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13787s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13787s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13787s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13787s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13787s E INFO: building 'test_array_from_pyobj_ext' extension 13787s E INFO: compiling C sources 13787s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13787s E 13787s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13787s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13787s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13787s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13787s E 14 | #include 13787s E | ^~~~~~~~~~ 13787s E In file included from fortranobject.c:2: 13787s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13787s E 7 | #include 13787s E | ^~~~~~~~~~ 13787s E compilation terminated. 13787s E compilation terminated. 13787s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13787s E INFO: 13787s E ########### EXT COMPILER OPTIMIZATION ########### 13787s E INFO: Platform : 13787s E Architecture: armhf 13787s E Compiler : gcc 13787s E 13787s E CPU baseline : 13787s E Requested : 'min' 13787s E Enabled : none 13787s E Flags : none 13787s E Extra checks: none 13787s E 13787s E CPU dispatch : 13787s E Requested : 'max -xop -fma4' 13787s E Enabled : none 13787s E Generated : none 13787s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13787s 13787s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13787s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13787s d = '/tmp/tmpjj8q074z' 13787s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13787s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13787s err = None 13787s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13787s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s kw = {} 13787s module_name = 'test_array_from_pyobj_ext' 13787s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13787s p = 13787s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13787s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[SHORT] _______ 13787s 13787s def setup_module(): 13787s """ 13787s Build the required testing extension module 13787s 13787s """ 13787s global wrap 13787s 13787s # Check compiler availability first 13787s if not util.has_c_compiler(): 13787s pytest.skip("No C compiler available") 13787s 13787s if wrap is None: 13787s config_code = """ 13787s config.add_extension('test_array_from_pyobj_ext', 13787s sources=['wrapmodule.c', 'fortranobject.c'], 13787s define_macros=[]) 13787s """ 13787s d = os.path.dirname(__file__) 13787s src = [ 13787s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13787s util.getpath("src", "fortranobject.c"), 13787s util.getpath("src", "fortranobject.h"), 13787s ] 13787s > wrap = util.build_module_distutils(src, config_code, 13787s "test_array_from_pyobj_ext") 13787s 13787s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13787s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13787s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13787s 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13787s memo[key] = func(*a, **kw) 13787s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13787s func = 13787s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13787s kw = {} 13787s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13787s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13787s 13787s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-2seq-C-w] _______ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-2seq-C-ro] ______ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-2seq-F-w] _______ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-2seq-F-ro] ______ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-23seq-C-w] ______ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-23seq-C-ro] ______ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-23seq-F-w] ______ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[SHORT-23seq-F-ro] ______ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[SHORT] ___________ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[SHORT] _________ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13788s config.add_extension('test_array_from_pyobj_ext', 13788s sources=['wrapmodule.c', 'fortranobject.c'], 13788s define_macros=[]) 13788s """ 13788s d = os.path.dirname(__file__) 13788s src = [ 13788s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13788s util.getpath("src", "fortranobject.c"), 13788s util.getpath("src", "fortranobject.h"), 13788s ] 13788s > wrap = util.build_module_distutils(src, config_code, 13788s "test_array_from_pyobj_ext") 13788s 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13788s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13788s memo[key] = func(*a, **kw) 13788s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13788s func = 13788s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13788s kw = {} 13788s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13788s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13788s 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s 13788s @_memoize 13788s def build_module_distutils(source_files, config_code, module_name, **kw): 13788s """ 13788s Build a module via distutils and import it. 13788s 13788s """ 13788s d = get_module_dir() 13788s 13788s # Copy files 13788s dst_sources = [] 13788s for fn in source_files: 13788s if not os.path.isfile(fn): 13788s raise RuntimeError("%s is not a file" % fn) 13788s dst = os.path.join(d, os.path.basename(fn)) 13788s shutil.copyfile(fn, dst) 13788s dst_sources.append(dst) 13788s 13788s # Build script 13788s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13788s 13788s code = fr""" 13788s import os 13788s import sys 13788s sys.path = {repr(sys.path)} 13788s 13788s def configuration(parent_name='',top_path=None): 13788s from numpy.distutils.misc_util import Configuration 13788s config = Configuration('', parent_name, top_path) 13788s {config_code} 13788s return config 13788s 13788s if __name__ == "__main__": 13788s from numpy.distutils.core import setup 13788s setup(configuration=configuration) 13788s """ 13788s script = os.path.join(d, get_temp_module_name() + ".py") 13788s dst_sources.append(script) 13788s with open(script, "wb") as f: 13788s f.write(asbytes(code)) 13788s 13788s # Build 13788s cwd = os.getcwd() 13788s try: 13788s os.chdir(d) 13788s cmd = [sys.executable, script, "build_ext", "-i"] 13788s p = subprocess.Popen(cmd, 13788s stdout=subprocess.PIPE, 13788s stderr=subprocess.STDOUT) 13788s out, err = p.communicate() 13788s if p.returncode != 0: 13788s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13788s (cmd[4:], asstr(out))) 13788s E RuntimeError: Running distutils build failed: [] 13788s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13788s E 13788s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13788s E of the deprecation of `distutils` itself. It will be removed for 13788s E Python >= 3.12. For older Python versions it will remain present. 13788s E It is recommended to use `setuptools < 60.0` for those Python versions. 13788s E For more details, see: 13788s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13788s E 13788s E 13788s E from numpy.distutils.core import setup 13788s E running build_ext 13788s E running build_src 13788s E INFO: build_src 13788s E INFO: building extension "test_array_from_pyobj_ext" sources 13788s E INFO: build_src: building npy-pkg config files 13788s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13788s E !! 13788s E 13788s E ******************************************************************************** 13788s E Please avoid running ``setup.py`` directly. 13788s E Instead, use pypa/build, pypa/installer or other 13788s E standards-based tools. 13788s E 13788s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13788s E ******************************************************************************** 13788s E 13788s E !! 13788s E self.initialize_options() 13788s E INFO: customize UnixCCompiler 13788s E INFO: customize UnixCCompiler using build_ext 13788s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/tmp 13788s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E creating /tmp/tmppq19o2st/usr 13788s E creating /tmp/tmppq19o2st/usr/lib 13788s E creating /tmp/tmppq19o2st/usr/lib/python3 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13788s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=native' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-O3' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-Werror' 13788s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13788s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-vfpv4' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13788s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-march=armv8.2-a+fp16' 13788s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/include/python3.12 -c' 13788s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13788s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13788s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13788s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13788s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13788s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13788s E 9 | # include_next 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E 13788s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13788s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13788s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13788s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13788s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13788s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13788s E INFO: building 'test_array_from_pyobj_ext' extension 13788s E INFO: compiling C sources 13788s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13788s E 13788s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13788s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13788s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13788s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13788s E 14 | #include 13788s E | ^~~~~~~~~~ 13788s E In file included from fortranobject.c:2: 13788s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13788s E 7 | #include 13788s E | ^~~~~~~~~~ 13788s E compilation terminated. 13788s E compilation terminated. 13788s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13788s E INFO: 13788s E ########### EXT COMPILER OPTIMIZATION ########### 13788s E INFO: Platform : 13788s E Architecture: armhf 13788s E Compiler : gcc 13788s E 13788s E CPU baseline : 13788s E Requested : 'min' 13788s E Enabled : none 13788s E Flags : none 13788s E Extra checks: none 13788s E 13788s E CPU dispatch : 13788s E Requested : 'max -xop -fma4' 13788s E Enabled : none 13788s E Generated : none 13788s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13788s 13788s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13788s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13788s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13788s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13788s d = '/tmp/tmpjj8q074z' 13788s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13788s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13788s err = None 13788s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13788s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s kw = {} 13788s module_name = 'test_array_from_pyobj_ext' 13788s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13788s p = 13788s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13788s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13788s 13788s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13788s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[SHORT] _________ 13788s 13788s def setup_module(): 13788s """ 13788s Build the required testing extension module 13788s 13788s """ 13788s global wrap 13788s 13788s # Check compiler availability first 13788s if not util.has_c_compiler(): 13788s pytest.skip("No C compiler available") 13788s 13788s if wrap is None: 13788s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[SHORT] _____ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[SHORT] ________ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[SHORT] _______ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[SHORT] ______ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[SHORT] ______ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[SHORT] ___ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[SHORT] ___ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[SHORT] ____ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[SHORT] _ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[SHORT] __________ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-Werror' 13789s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13789s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-vfpv4' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=armv8.2-a+fp16' 13789s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13789s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13789s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13789s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13789s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13789s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13789s E 9 | # include_next 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E 13789s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13789s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13789s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13789s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13789s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13789s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13789s E INFO: building 'test_array_from_pyobj_ext' extension 13789s E INFO: compiling C sources 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13789s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13789s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13789s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13789s E 14 | #include 13789s E | ^~~~~~~~~~ 13789s E In file included from fortranobject.c:2: 13789s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13789s E 7 | #include 13789s E | ^~~~~~~~~~ 13789s E compilation terminated. 13789s E compilation terminated. 13789s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13789s E INFO: 13789s E ########### EXT COMPILER OPTIMIZATION ########### 13789s E INFO: Platform : 13789s E Architecture: armhf 13789s E Compiler : gcc 13789s E 13789s E CPU baseline : 13789s E Requested : 'min' 13789s E Enabled : none 13789s E Flags : none 13789s E Extra checks: none 13789s E 13789s E CPU dispatch : 13789s E Requested : 'max -xop -fma4' 13789s E Enabled : none 13789s E Generated : none 13789s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13789s 13789s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13789s d = '/tmp/tmpjj8q074z' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s err = None 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s kw = {} 13789s module_name = 'test_array_from_pyobj_ext' 13789s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13789s p = 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13789s ____________ ERROR at setup of TestSharedMemory.test_hidden[SHORT] _____________ 13789s 13789s def setup_module(): 13789s """ 13789s Build the required testing extension module 13789s 13789s """ 13789s global wrap 13789s 13789s # Check compiler availability first 13789s if not util.has_c_compiler(): 13789s pytest.skip("No C compiler available") 13789s 13789s if wrap is None: 13789s config_code = """ 13789s config.add_extension('test_array_from_pyobj_ext', 13789s sources=['wrapmodule.c', 'fortranobject.c'], 13789s define_macros=[]) 13789s """ 13789s d = os.path.dirname(__file__) 13789s src = [ 13789s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13789s util.getpath("src", "fortranobject.c"), 13789s util.getpath("src", "fortranobject.h"), 13789s ] 13789s > wrap = util.build_module_distutils(src, config_code, 13789s "test_array_from_pyobj_ext") 13789s 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13789s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13789s memo[key] = func(*a, **kw) 13789s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13789s func = 13789s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13789s kw = {} 13789s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13789s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13789s 13789s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13789s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13789s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13789s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13789s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13789s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13789s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13789s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13789s 13789s @_memoize 13789s def build_module_distutils(source_files, config_code, module_name, **kw): 13789s """ 13789s Build a module via distutils and import it. 13789s 13789s """ 13789s d = get_module_dir() 13789s 13789s # Copy files 13789s dst_sources = [] 13789s for fn in source_files: 13789s if not os.path.isfile(fn): 13789s raise RuntimeError("%s is not a file" % fn) 13789s dst = os.path.join(d, os.path.basename(fn)) 13789s shutil.copyfile(fn, dst) 13789s dst_sources.append(dst) 13789s 13789s # Build script 13789s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13789s 13789s code = fr""" 13789s import os 13789s import sys 13789s sys.path = {repr(sys.path)} 13789s 13789s def configuration(parent_name='',top_path=None): 13789s from numpy.distutils.misc_util import Configuration 13789s config = Configuration('', parent_name, top_path) 13789s {config_code} 13789s return config 13789s 13789s if __name__ == "__main__": 13789s from numpy.distutils.core import setup 13789s setup(configuration=configuration) 13789s """ 13789s script = os.path.join(d, get_temp_module_name() + ".py") 13789s dst_sources.append(script) 13789s with open(script, "wb") as f: 13789s f.write(asbytes(code)) 13789s 13789s # Build 13789s cwd = os.getcwd() 13789s try: 13789s os.chdir(d) 13789s cmd = [sys.executable, script, "build_ext", "-i"] 13789s p = subprocess.Popen(cmd, 13789s stdout=subprocess.PIPE, 13789s stderr=subprocess.STDOUT) 13789s out, err = p.communicate() 13789s if p.returncode != 0: 13789s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13789s (cmd[4:], asstr(out))) 13789s E RuntimeError: Running distutils build failed: [] 13789s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13789s E 13789s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13789s E of the deprecation of `distutils` itself. It will be removed for 13789s E Python >= 3.12. For older Python versions it will remain present. 13789s E It is recommended to use `setuptools < 60.0` for those Python versions. 13789s E For more details, see: 13789s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13789s E 13789s E 13789s E from numpy.distutils.core import setup 13789s E running build_ext 13789s E running build_src 13789s E INFO: build_src 13789s E INFO: building extension "test_array_from_pyobj_ext" sources 13789s E INFO: build_src: building npy-pkg config files 13789s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13789s E !! 13789s E 13789s E ******************************************************************************** 13789s E Please avoid running ``setup.py`` directly. 13789s E Instead, use pypa/build, pypa/installer or other 13789s E standards-based tools. 13789s E 13789s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13789s E ******************************************************************************** 13789s E 13789s E !! 13789s E self.initialize_options() 13789s E INFO: customize UnixCCompiler 13789s E INFO: customize UnixCCompiler using build_ext 13789s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/tmp 13789s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E creating /tmp/tmppq19o2st/usr 13789s E creating /tmp/tmppq19o2st/usr/lib 13789s E creating /tmp/tmppq19o2st/usr/lib/python3 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13789s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-march=native' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13789s E INFO: compile options: '-I/usr/include/python3.12 -c' 13789s E extra options: '-O3' 13789s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13789s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13789s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-Werror' 13790s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13790s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-vfpv4' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=armv8.2-a+fp16' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13790s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13790s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13790s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13790s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13790s E INFO: building 'test_array_from_pyobj_ext' extension 13790s E INFO: compiling C sources 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13790s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13790s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13790s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13790s E 14 | #include 13790s E | ^~~~~~~~~~ 13790s E In file included from fortranobject.c:2: 13790s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13790s E 7 | #include 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E compilation terminated. 13790s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13790s E INFO: 13790s E ########### EXT COMPILER OPTIMIZATION ########### 13790s E INFO: Platform : 13790s E Architecture: armhf 13790s E Compiler : gcc 13790s E 13790s E CPU baseline : 13790s E Requested : 'min' 13790s E Enabled : none 13790s E Flags : none 13790s E Extra checks: none 13790s E 13790s E CPU dispatch : 13790s E Requested : 'max -xop -fma4' 13790s E Enabled : none 13790s E Generated : none 13790s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13790s 13790s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13790s d = '/tmp/tmpjj8q074z' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s err = None 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s kw = {} 13790s module_name = 'test_array_from_pyobj_ext' 13790s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13790s p = 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13790s _________ ERROR at setup of TestSharedMemory.test_optional_none[SHORT] _________ 13790s 13790s def setup_module(): 13790s """ 13790s Build the required testing extension module 13790s 13790s """ 13790s global wrap 13790s 13790s # Check compiler availability first 13790s if not util.has_c_compiler(): 13790s pytest.skip("No C compiler available") 13790s 13790s if wrap is None: 13790s config_code = """ 13790s config.add_extension('test_array_from_pyobj_ext', 13790s sources=['wrapmodule.c', 'fortranobject.c'], 13790s define_macros=[]) 13790s """ 13790s d = os.path.dirname(__file__) 13790s src = [ 13790s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13790s util.getpath("src", "fortranobject.c"), 13790s util.getpath("src", "fortranobject.h"), 13790s ] 13790s > wrap = util.build_module_distutils(src, config_code, 13790s "test_array_from_pyobj_ext") 13790s 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13790s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13790s memo[key] = func(*a, **kw) 13790s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13790s func = 13790s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13790s kw = {} 13790s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s 13790s @_memoize 13790s def build_module_distutils(source_files, config_code, module_name, **kw): 13790s """ 13790s Build a module via distutils and import it. 13790s 13790s """ 13790s d = get_module_dir() 13790s 13790s # Copy files 13790s dst_sources = [] 13790s for fn in source_files: 13790s if not os.path.isfile(fn): 13790s raise RuntimeError("%s is not a file" % fn) 13790s dst = os.path.join(d, os.path.basename(fn)) 13790s shutil.copyfile(fn, dst) 13790s dst_sources.append(dst) 13790s 13790s # Build script 13790s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13790s 13790s code = fr""" 13790s import os 13790s import sys 13790s sys.path = {repr(sys.path)} 13790s 13790s def configuration(parent_name='',top_path=None): 13790s from numpy.distutils.misc_util import Configuration 13790s config = Configuration('', parent_name, top_path) 13790s {config_code} 13790s return config 13790s 13790s if __name__ == "__main__": 13790s from numpy.distutils.core import setup 13790s setup(configuration=configuration) 13790s """ 13790s script = os.path.join(d, get_temp_module_name() + ".py") 13790s dst_sources.append(script) 13790s with open(script, "wb") as f: 13790s f.write(asbytes(code)) 13790s 13790s # Build 13790s cwd = os.getcwd() 13790s try: 13790s os.chdir(d) 13790s cmd = [sys.executable, script, "build_ext", "-i"] 13790s p = subprocess.Popen(cmd, 13790s stdout=subprocess.PIPE, 13790s stderr=subprocess.STDOUT) 13790s out, err = p.communicate() 13790s if p.returncode != 0: 13790s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13790s (cmd[4:], asstr(out))) 13790s E RuntimeError: Running distutils build failed: [] 13790s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13790s E 13790s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13790s E of the deprecation of `distutils` itself. It will be removed for 13790s E Python >= 3.12. For older Python versions it will remain present. 13790s E It is recommended to use `setuptools < 60.0` for those Python versions. 13790s E For more details, see: 13790s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13790s E 13790s E 13790s E from numpy.distutils.core import setup 13790s E running build_ext 13790s E running build_src 13790s E INFO: build_src 13790s E INFO: building extension "test_array_from_pyobj_ext" sources 13790s E INFO: build_src: building npy-pkg config files 13790s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13790s E !! 13790s E 13790s E ******************************************************************************** 13790s E Please avoid running ``setup.py`` directly. 13790s E Instead, use pypa/build, pypa/installer or other 13790s E standards-based tools. 13790s E 13790s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13790s E ******************************************************************************** 13790s E 13790s E !! 13790s E self.initialize_options() 13790s E INFO: customize UnixCCompiler 13790s E INFO: customize UnixCCompiler using build_ext 13790s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E creating /tmp/tmppq19o2st/tmp 13790s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E creating /tmp/tmppq19o2st/usr 13790s E creating /tmp/tmppq19o2st/usr/lib 13790s E creating /tmp/tmppq19o2st/usr/lib/python3 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=native' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-O3' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-Werror' 13790s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13790s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-vfpv4' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=armv8.2-a+fp16' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13790s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13790s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13790s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13790s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13790s E INFO: building 'test_array_from_pyobj_ext' extension 13790s E INFO: compiling C sources 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13790s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13790s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13790s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13790s E 14 | #include 13790s E | ^~~~~~~~~~ 13790s E In file included from fortranobject.c:2: 13790s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13790s E 7 | #include 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E compilation terminated. 13790s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13790s E INFO: 13790s E ########### EXT COMPILER OPTIMIZATION ########### 13790s E INFO: Platform : 13790s E Architecture: armhf 13790s E Compiler : gcc 13790s E 13790s E CPU baseline : 13790s E Requested : 'min' 13790s E Enabled : none 13790s E Flags : none 13790s E Extra checks: none 13790s E 13790s E CPU dispatch : 13790s E Requested : 'max -xop -fma4' 13790s E Enabled : none 13790s E Generated : none 13790s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13790s 13790s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13790s d = '/tmp/tmpjj8q074z' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s err = None 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s kw = {} 13790s module_name = 'test_array_from_pyobj_ext' 13790s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13790s p = 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13790s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[SHORT] _______ 13790s 13790s def setup_module(): 13790s """ 13790s Build the required testing extension module 13790s 13790s """ 13790s global wrap 13790s 13790s # Check compiler availability first 13790s if not util.has_c_compiler(): 13790s pytest.skip("No C compiler available") 13790s 13790s if wrap is None: 13790s config_code = """ 13790s config.add_extension('test_array_from_pyobj_ext', 13790s sources=['wrapmodule.c', 'fortranobject.c'], 13790s define_macros=[]) 13790s """ 13790s d = os.path.dirname(__file__) 13790s src = [ 13790s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13790s util.getpath("src", "fortranobject.c"), 13790s util.getpath("src", "fortranobject.h"), 13790s ] 13790s > wrap = util.build_module_distutils(src, config_code, 13790s "test_array_from_pyobj_ext") 13790s 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13790s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13790s memo[key] = func(*a, **kw) 13790s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13790s func = 13790s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13790s kw = {} 13790s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s 13790s @_memoize 13790s def build_module_distutils(source_files, config_code, module_name, **kw): 13790s """ 13790s Build a module via distutils and import it. 13790s 13790s """ 13790s d = get_module_dir() 13790s 13790s # Copy files 13790s dst_sources = [] 13790s for fn in source_files: 13790s if not os.path.isfile(fn): 13790s raise RuntimeError("%s is not a file" % fn) 13790s dst = os.path.join(d, os.path.basename(fn)) 13790s shutil.copyfile(fn, dst) 13790s dst_sources.append(dst) 13790s 13790s # Build script 13790s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13790s 13790s code = fr""" 13790s import os 13790s import sys 13790s sys.path = {repr(sys.path)} 13790s 13790s def configuration(parent_name='',top_path=None): 13790s from numpy.distutils.misc_util import Configuration 13790s config = Configuration('', parent_name, top_path) 13790s {config_code} 13790s return config 13790s 13790s if __name__ == "__main__": 13790s from numpy.distutils.core import setup 13790s setup(configuration=configuration) 13790s """ 13790s script = os.path.join(d, get_temp_module_name() + ".py") 13790s dst_sources.append(script) 13790s with open(script, "wb") as f: 13790s f.write(asbytes(code)) 13790s 13790s # Build 13790s cwd = os.getcwd() 13790s try: 13790s os.chdir(d) 13790s cmd = [sys.executable, script, "build_ext", "-i"] 13790s p = subprocess.Popen(cmd, 13790s stdout=subprocess.PIPE, 13790s stderr=subprocess.STDOUT) 13790s out, err = p.communicate() 13790s if p.returncode != 0: 13790s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13790s (cmd[4:], asstr(out))) 13790s E RuntimeError: Running distutils build failed: [] 13790s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13790s E 13790s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13790s E of the deprecation of `distutils` itself. It will be removed for 13790s E Python >= 3.12. For older Python versions it will remain present. 13790s E It is recommended to use `setuptools < 60.0` for those Python versions. 13790s E For more details, see: 13790s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13790s E 13790s E 13790s E from numpy.distutils.core import setup 13790s E running build_ext 13790s E running build_src 13790s E INFO: build_src 13790s E INFO: building extension "test_array_from_pyobj_ext" sources 13790s E INFO: build_src: building npy-pkg config files 13790s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13790s E !! 13790s E 13790s E ******************************************************************************** 13790s E Please avoid running ``setup.py`` directly. 13790s E Instead, use pypa/build, pypa/installer or other 13790s E standards-based tools. 13790s E 13790s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13790s E ******************************************************************************** 13790s E 13790s E !! 13790s E self.initialize_options() 13790s E INFO: customize UnixCCompiler 13790s E INFO: customize UnixCCompiler using build_ext 13790s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E creating /tmp/tmppq19o2st/tmp 13790s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E creating /tmp/tmppq19o2st/usr 13790s E creating /tmp/tmppq19o2st/usr/lib 13790s E creating /tmp/tmppq19o2st/usr/lib/python3 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=native' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-O3' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-Werror' 13790s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13790s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-vfpv4' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=armv8.2-a+fp16' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13790s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13790s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13790s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13790s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13790s E INFO: building 'test_array_from_pyobj_ext' extension 13790s E INFO: compiling C sources 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13790s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13790s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13790s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13790s E 14 | #include 13790s E | ^~~~~~~~~~ 13790s E In file included from fortranobject.c:2: 13790s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13790s E 7 | #include 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E compilation terminated. 13790s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13790s E INFO: 13790s E ########### EXT COMPILER OPTIMIZATION ########### 13790s E INFO: Platform : 13790s E Architecture: armhf 13790s E Compiler : gcc 13790s E 13790s E CPU baseline : 13790s E Requested : 'min' 13790s E Enabled : none 13790s E Flags : none 13790s E Extra checks: none 13790s E 13790s E CPU dispatch : 13790s E Requested : 'max -xop -fma4' 13790s E Enabled : none 13790s E Generated : none 13790s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13790s 13790s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13790s d = '/tmp/tmpjj8q074z' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s err = None 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s kw = {} 13790s module_name = 'test_array_from_pyobj_ext' 13790s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13790s p = 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13790s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[SHORT] ______ 13790s 13790s def setup_module(): 13790s """ 13790s Build the required testing extension module 13790s 13790s """ 13790s global wrap 13790s 13790s # Check compiler availability first 13790s if not util.has_c_compiler(): 13790s pytest.skip("No C compiler available") 13790s 13790s if wrap is None: 13790s config_code = """ 13790s config.add_extension('test_array_from_pyobj_ext', 13790s sources=['wrapmodule.c', 'fortranobject.c'], 13790s define_macros=[]) 13790s """ 13790s d = os.path.dirname(__file__) 13790s src = [ 13790s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13790s util.getpath("src", "fortranobject.c"), 13790s util.getpath("src", "fortranobject.h"), 13790s ] 13790s > wrap = util.build_module_distutils(src, config_code, 13790s "test_array_from_pyobj_ext") 13790s 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13790s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13790s memo[key] = func(*a, **kw) 13790s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13790s func = 13790s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13790s kw = {} 13790s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s 13790s @_memoize 13790s def build_module_distutils(source_files, config_code, module_name, **kw): 13790s """ 13790s Build a module via distutils and import it. 13790s 13790s """ 13790s d = get_module_dir() 13790s 13790s # Copy files 13790s dst_sources = [] 13790s for fn in source_files: 13790s if not os.path.isfile(fn): 13790s raise RuntimeError("%s is not a file" % fn) 13790s dst = os.path.join(d, os.path.basename(fn)) 13790s shutil.copyfile(fn, dst) 13790s dst_sources.append(dst) 13790s 13790s # Build script 13790s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13790s 13790s code = fr""" 13790s import os 13790s import sys 13790s sys.path = {repr(sys.path)} 13790s 13790s def configuration(parent_name='',top_path=None): 13790s from numpy.distutils.misc_util import Configuration 13790s config = Configuration('', parent_name, top_path) 13790s {config_code} 13790s return config 13790s 13790s if __name__ == "__main__": 13790s from numpy.distutils.core import setup 13790s setup(configuration=configuration) 13790s """ 13790s script = os.path.join(d, get_temp_module_name() + ".py") 13790s dst_sources.append(script) 13790s with open(script, "wb") as f: 13790s f.write(asbytes(code)) 13790s 13790s # Build 13790s cwd = os.getcwd() 13790s try: 13790s os.chdir(d) 13790s cmd = [sys.executable, script, "build_ext", "-i"] 13790s p = subprocess.Popen(cmd, 13790s stdout=subprocess.PIPE, 13790s stderr=subprocess.STDOUT) 13790s out, err = p.communicate() 13790s if p.returncode != 0: 13790s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13790s (cmd[4:], asstr(out))) 13790s E RuntimeError: Running distutils build failed: [] 13790s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13790s E 13790s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13790s E of the deprecation of `distutils` itself. It will be removed for 13790s E Python >= 3.12. For older Python versions it will remain present. 13790s E It is recommended to use `setuptools < 60.0` for those Python versions. 13790s E For more details, see: 13790s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13790s E 13790s E 13790s E from numpy.distutils.core import setup 13790s E running build_ext 13790s E running build_src 13790s E INFO: build_src 13790s E INFO: building extension "test_array_from_pyobj_ext" sources 13790s E INFO: build_src: building npy-pkg config files 13790s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13790s E !! 13790s E 13790s E ******************************************************************************** 13790s E Please avoid running ``setup.py`` directly. 13790s E Instead, use pypa/build, pypa/installer or other 13790s E standards-based tools. 13790s E 13790s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13790s E ******************************************************************************** 13790s E 13790s E !! 13790s E self.initialize_options() 13790s E INFO: customize UnixCCompiler 13790s E INFO: customize UnixCCompiler using build_ext 13790s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E creating /tmp/tmppq19o2st/tmp 13790s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E creating /tmp/tmppq19o2st/usr 13790s E creating /tmp/tmppq19o2st/usr/lib 13790s E creating /tmp/tmppq19o2st/usr/lib/python3 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=native' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-O3' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-Werror' 13790s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13790s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-vfpv4' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=armv8.2-a+fp16' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13790s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13790s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13790s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13790s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13790s E INFO: building 'test_array_from_pyobj_ext' extension 13790s E INFO: compiling C sources 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13790s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13790s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13790s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13790s E 14 | #include 13790s E | ^~~~~~~~~~ 13790s E In file included from fortranobject.c:2: 13790s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13790s E 7 | #include 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E compilation terminated. 13790s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13790s E INFO: 13790s E ########### EXT COMPILER OPTIMIZATION ########### 13790s E INFO: Platform : 13790s E Architecture: armhf 13790s E Compiler : gcc 13790s E 13790s E CPU baseline : 13790s E Requested : 'min' 13790s E Enabled : none 13790s E Flags : none 13790s E Extra checks: none 13790s E 13790s E CPU dispatch : 13790s E Requested : 'max -xop -fma4' 13790s E Enabled : none 13790s E Generated : none 13790s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13790s 13790s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13790s d = '/tmp/tmpjj8q074z' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s err = None 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s kw = {} 13790s module_name = 'test_array_from_pyobj_ext' 13790s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13790s p = 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13790s ____________ ERROR at setup of TestSharedMemory.test_inplace[SHORT] ____________ 13790s 13790s def setup_module(): 13790s """ 13790s Build the required testing extension module 13790s 13790s """ 13790s global wrap 13790s 13790s # Check compiler availability first 13790s if not util.has_c_compiler(): 13790s pytest.skip("No C compiler available") 13790s 13790s if wrap is None: 13790s config_code = """ 13790s config.add_extension('test_array_from_pyobj_ext', 13790s sources=['wrapmodule.c', 'fortranobject.c'], 13790s define_macros=[]) 13790s """ 13790s d = os.path.dirname(__file__) 13790s src = [ 13790s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13790s util.getpath("src", "fortranobject.c"), 13790s util.getpath("src", "fortranobject.h"), 13790s ] 13790s > wrap = util.build_module_distutils(src, config_code, 13790s "test_array_from_pyobj_ext") 13790s 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13790s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13790s memo[key] = func(*a, **kw) 13790s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13790s func = 13790s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13790s kw = {} 13790s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s 13790s @_memoize 13790s def build_module_distutils(source_files, config_code, module_name, **kw): 13790s """ 13790s Build a module via distutils and import it. 13790s 13790s """ 13790s d = get_module_dir() 13790s 13790s # Copy files 13790s dst_sources = [] 13790s for fn in source_files: 13790s if not os.path.isfile(fn): 13790s raise RuntimeError("%s is not a file" % fn) 13790s dst = os.path.join(d, os.path.basename(fn)) 13790s shutil.copyfile(fn, dst) 13790s dst_sources.append(dst) 13790s 13790s # Build script 13790s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13790s 13790s code = fr""" 13790s import os 13790s import sys 13790s sys.path = {repr(sys.path)} 13790s 13790s def configuration(parent_name='',top_path=None): 13790s from numpy.distutils.misc_util import Configuration 13790s config = Configuration('', parent_name, top_path) 13790s {config_code} 13790s return config 13790s 13790s if __name__ == "__main__": 13790s from numpy.distutils.core import setup 13790s setup(configuration=configuration) 13790s """ 13790s script = os.path.join(d, get_temp_module_name() + ".py") 13790s dst_sources.append(script) 13790s with open(script, "wb") as f: 13790s f.write(asbytes(code)) 13790s 13790s # Build 13790s cwd = os.getcwd() 13790s try: 13790s os.chdir(d) 13790s cmd = [sys.executable, script, "build_ext", "-i"] 13790s p = subprocess.Popen(cmd, 13790s stdout=subprocess.PIPE, 13790s stderr=subprocess.STDOUT) 13790s out, err = p.communicate() 13790s if p.returncode != 0: 13790s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13790s (cmd[4:], asstr(out))) 13790s E RuntimeError: Running distutils build failed: [] 13790s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13790s E 13790s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13790s E of the deprecation of `distutils` itself. It will be removed for 13790s E Python >= 3.12. For older Python versions it will remain present. 13790s E It is recommended to use `setuptools < 60.0` for those Python versions. 13790s E For more details, see: 13790s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13790s E 13790s E 13790s E from numpy.distutils.core import setup 13790s E running build_ext 13790s E running build_src 13790s E INFO: build_src 13790s E INFO: building extension "test_array_from_pyobj_ext" sources 13790s E INFO: build_src: building npy-pkg config files 13790s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13790s E !! 13790s E 13790s E ******************************************************************************** 13790s E Please avoid running ``setup.py`` directly. 13790s E Instead, use pypa/build, pypa/installer or other 13790s E standards-based tools. 13790s E 13790s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13790s E ******************************************************************************** 13790s E 13790s E !! 13790s E self.initialize_options() 13790s E INFO: customize UnixCCompiler 13790s E INFO: customize UnixCCompiler using build_ext 13790s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E creating /tmp/tmppq19o2st/tmp 13790s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E creating /tmp/tmppq19o2st/usr 13790s E creating /tmp/tmppq19o2st/usr/lib 13790s E creating /tmp/tmppq19o2st/usr/lib/python3 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13790s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=native' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-O3' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-Werror' 13790s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13790s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-vfpv4' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13790s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-march=armv8.2-a+fp16' 13790s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/include/python3.12 -c' 13790s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13790s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13790s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13790s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13790s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13790s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13790s E 9 | # include_next 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E 13790s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13790s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13790s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13790s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13790s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13790s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13790s E INFO: building 'test_array_from_pyobj_ext' extension 13790s E INFO: compiling C sources 13790s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13790s E 13790s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13790s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13790s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13790s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13790s E 14 | #include 13790s E | ^~~~~~~~~~ 13790s E In file included from fortranobject.c:2: 13790s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13790s E 7 | #include 13790s E | ^~~~~~~~~~ 13790s E compilation terminated. 13790s E compilation terminated. 13790s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13790s E INFO: 13790s E ########### EXT COMPILER OPTIMIZATION ########### 13790s E INFO: Platform : 13790s E Architecture: armhf 13790s E Compiler : gcc 13790s E 13790s E CPU baseline : 13790s E Requested : 'min' 13790s E Enabled : none 13790s E Flags : none 13790s E Extra checks: none 13790s E 13790s E CPU dispatch : 13790s E Requested : 'max -xop -fma4' 13790s E Enabled : none 13790s E Generated : none 13790s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13790s 13790s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13790s d = '/tmp/tmpjj8q074z' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s err = None 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s kw = {} 13790s module_name = 'test_array_from_pyobj_ext' 13790s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13790s p = 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13790s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[SHORT] _____ 13790s 13790s def setup_module(): 13790s """ 13790s Build the required testing extension module 13790s 13790s """ 13790s global wrap 13790s 13790s # Check compiler availability first 13790s if not util.has_c_compiler(): 13790s pytest.skip("No C compiler available") 13790s 13790s if wrap is None: 13790s config_code = """ 13790s config.add_extension('test_array_from_pyobj_ext', 13790s sources=['wrapmodule.c', 'fortranobject.c'], 13790s define_macros=[]) 13790s """ 13790s d = os.path.dirname(__file__) 13790s src = [ 13790s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13790s util.getpath("src", "fortranobject.c"), 13790s util.getpath("src", "fortranobject.h"), 13790s ] 13790s > wrap = util.build_module_distutils(src, config_code, 13790s "test_array_from_pyobj_ext") 13790s 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13790s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13790s memo[key] = func(*a, **kw) 13790s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13790s func = 13790s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13790s kw = {} 13790s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13790s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13790s 13790s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13790s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13790s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13790s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13790s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13790s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13790s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13790s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13790s 13790s @_memoize 13790s def build_module_distutils(source_files, config_code, module_name, **kw): 13790s """ 13790s Build a module via distutils and import it. 13790s 13790s """ 13790s d = get_module_dir() 13790s 13790s # Copy files 13790s dst_sources = [] 13790s for fn in source_files: 13790s if not os.path.isfile(fn): 13790s raise RuntimeError("%s is not a file" % fn) 13790s dst = os.path.join(d, os.path.basename(fn)) 13790s shutil.copyfile(fn, dst) 13790s dst_sources.append(dst) 13790s 13790s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-vfpv4' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=armv8.2-a+fp16' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13791s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13791s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13791s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13791s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13791s E INFO: building 'test_array_from_pyobj_ext' extension 13791s E INFO: compiling C sources 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13791s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13791s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13791s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13791s E 14 | #include 13791s E | ^~~~~~~~~~ 13791s E In file included from fortranobject.c:2: 13791s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13791s E 7 | #include 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E compilation terminated. 13791s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13791s E INFO: 13791s E ########### EXT COMPILER OPTIMIZATION ########### 13791s E INFO: Platform : 13791s E Architecture: armhf 13791s E Compiler : gcc 13791s E 13791s E CPU baseline : 13791s E Requested : 'min' 13791s E Enabled : none 13791s E Flags : none 13791s E Extra checks: none 13791s E 13791s E CPU dispatch : 13791s E Requested : 'max -xop -fma4' 13791s E Enabled : none 13791s E Generated : none 13791s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13791s 13791s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13791s d = '/tmp/tmpjj8q074z' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s err = None 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s kw = {} 13791s module_name = 'test_array_from_pyobj_ext' 13791s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13791s p = 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13791s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[USHORT] _________ 13791s 13791s def setup_module(): 13791s """ 13791s Build the required testing extension module 13791s 13791s """ 13791s global wrap 13791s 13791s # Check compiler availability first 13791s if not util.has_c_compiler(): 13791s pytest.skip("No C compiler available") 13791s 13791s if wrap is None: 13791s config_code = """ 13791s config.add_extension('test_array_from_pyobj_ext', 13791s sources=['wrapmodule.c', 'fortranobject.c'], 13791s define_macros=[]) 13791s """ 13791s d = os.path.dirname(__file__) 13791s src = [ 13791s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13791s util.getpath("src", "fortranobject.c"), 13791s util.getpath("src", "fortranobject.h"), 13791s ] 13791s > wrap = util.build_module_distutils(src, config_code, 13791s "test_array_from_pyobj_ext") 13791s 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13791s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13791s memo[key] = func(*a, **kw) 13791s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13791s func = 13791s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13791s kw = {} 13791s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s 13791s @_memoize 13791s def build_module_distutils(source_files, config_code, module_name, **kw): 13791s """ 13791s Build a module via distutils and import it. 13791s 13791s """ 13791s d = get_module_dir() 13791s 13791s # Copy files 13791s dst_sources = [] 13791s for fn in source_files: 13791s if not os.path.isfile(fn): 13791s raise RuntimeError("%s is not a file" % fn) 13791s dst = os.path.join(d, os.path.basename(fn)) 13791s shutil.copyfile(fn, dst) 13791s dst_sources.append(dst) 13791s 13791s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-vfpv4' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=armv8.2-a+fp16' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13791s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13791s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13791s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13791s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13791s E INFO: building 'test_array_from_pyobj_ext' extension 13791s E INFO: compiling C sources 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13791s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13791s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13791s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13791s E 14 | #include 13791s E | ^~~~~~~~~~ 13791s E In file included from fortranobject.c:2: 13791s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13791s E 7 | #include 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E compilation terminated. 13791s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13791s E INFO: 13791s E ########### EXT COMPILER OPTIMIZATION ########### 13791s E INFO: Platform : 13791s E Architecture: armhf 13791s E Compiler : gcc 13791s E 13791s E CPU baseline : 13791s E Requested : 'min' 13791s E Enabled : none 13791s E Flags : none 13791s E Extra checks: none 13791s E 13791s E CPU dispatch : 13791s E Requested : 'max -xop -fma4' 13791s E Enabled : none 13791s E Generated : none 13791s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13791s 13791s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13791s d = '/tmp/tmpjj8q074z' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s err = None 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s kw = {} 13791s module_name = 'test_array_from_pyobj_ext' 13791s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13791s p = 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13791s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[USHORT] _______ 13791s 13791s def setup_module(): 13791s """ 13791s Build the required testing extension module 13791s 13791s """ 13791s global wrap 13791s 13791s # Check compiler availability first 13791s if not util.has_c_compiler(): 13791s pytest.skip("No C compiler available") 13791s 13791s if wrap is None: 13791s config_code = """ 13791s config.add_extension('test_array_from_pyobj_ext', 13791s sources=['wrapmodule.c', 'fortranobject.c'], 13791s define_macros=[]) 13791s """ 13791s d = os.path.dirname(__file__) 13791s src = [ 13791s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13791s util.getpath("src", "fortranobject.c"), 13791s util.getpath("src", "fortranobject.h"), 13791s ] 13791s > wrap = util.build_module_distutils(src, config_code, 13791s "test_array_from_pyobj_ext") 13791s 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13791s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13791s memo[key] = func(*a, **kw) 13791s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13791s func = 13791s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13791s kw = {} 13791s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s 13791s @_memoize 13791s def build_module_distutils(source_files, config_code, module_name, **kw): 13791s """ 13791s Build a module via distutils and import it. 13791s 13791s """ 13791s d = get_module_dir() 13791s 13791s # Copy files 13791s dst_sources = [] 13791s for fn in source_files: 13791s if not os.path.isfile(fn): 13791s raise RuntimeError("%s is not a file" % fn) 13791s dst = os.path.join(d, os.path.basename(fn)) 13791s shutil.copyfile(fn, dst) 13791s dst_sources.append(dst) 13791s 13791s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-vfpv4' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=armv8.2-a+fp16' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13791s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13791s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13791s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13791s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13791s E INFO: building 'test_array_from_pyobj_ext' extension 13791s E INFO: compiling C sources 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13791s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13791s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13791s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13791s E 14 | #include 13791s E | ^~~~~~~~~~ 13791s E In file included from fortranobject.c:2: 13791s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13791s E 7 | #include 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E compilation terminated. 13791s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13791s E INFO: 13791s E ########### EXT COMPILER OPTIMIZATION ########### 13791s E INFO: Platform : 13791s E Architecture: armhf 13791s E Compiler : gcc 13791s E 13791s E CPU baseline : 13791s E Requested : 'min' 13791s E Enabled : none 13791s E Flags : none 13791s E Extra checks: none 13791s E 13791s E CPU dispatch : 13791s E Requested : 'max -xop -fma4' 13791s E Enabled : none 13791s E Generated : none 13791s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13791s 13791s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13791s d = '/tmp/tmpjj8q074z' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s err = None 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s kw = {} 13791s module_name = 'test_array_from_pyobj_ext' 13791s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13791s p = 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13791s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-2seq-C-w] ______ 13791s 13791s def setup_module(): 13791s """ 13791s Build the required testing extension module 13791s 13791s """ 13791s global wrap 13791s 13791s # Check compiler availability first 13791s if not util.has_c_compiler(): 13791s pytest.skip("No C compiler available") 13791s 13791s if wrap is None: 13791s config_code = """ 13791s config.add_extension('test_array_from_pyobj_ext', 13791s sources=['wrapmodule.c', 'fortranobject.c'], 13791s define_macros=[]) 13791s """ 13791s d = os.path.dirname(__file__) 13791s src = [ 13791s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13791s util.getpath("src", "fortranobject.c"), 13791s util.getpath("src", "fortranobject.h"), 13791s ] 13791s > wrap = util.build_module_distutils(src, config_code, 13791s "test_array_from_pyobj_ext") 13791s 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13791s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13791s memo[key] = func(*a, **kw) 13791s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13791s func = 13791s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13791s kw = {} 13791s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s 13791s @_memoize 13791s def build_module_distutils(source_files, config_code, module_name, **kw): 13791s """ 13791s Build a module via distutils and import it. 13791s 13791s """ 13791s d = get_module_dir() 13791s 13791s # Copy files 13791s dst_sources = [] 13791s for fn in source_files: 13791s if not os.path.isfile(fn): 13791s raise RuntimeError("%s is not a file" % fn) 13791s dst = os.path.join(d, os.path.basename(fn)) 13791s shutil.copyfile(fn, dst) 13791s dst_sources.append(dst) 13791s 13791s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-vfpv4' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=armv8.2-a+fp16' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13791s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13791s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13791s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13791s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13791s E INFO: building 'test_array_from_pyobj_ext' extension 13791s E INFO: compiling C sources 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13791s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13791s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13791s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13791s E 14 | #include 13791s E | ^~~~~~~~~~ 13791s E In file included from fortranobject.c:2: 13791s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13791s E 7 | #include 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E compilation terminated. 13791s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13791s E INFO: 13791s E ########### EXT COMPILER OPTIMIZATION ########### 13791s E INFO: Platform : 13791s E Architecture: armhf 13791s E Compiler : gcc 13791s E 13791s E CPU baseline : 13791s E Requested : 'min' 13791s E Enabled : none 13791s E Flags : none 13791s E Extra checks: none 13791s E 13791s E CPU dispatch : 13791s E Requested : 'max -xop -fma4' 13791s E Enabled : none 13791s E Generated : none 13791s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13791s 13791s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13791s d = '/tmp/tmpjj8q074z' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s err = None 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s kw = {} 13791s module_name = 'test_array_from_pyobj_ext' 13791s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13791s p = 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13791s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-2seq-C-ro] ______ 13791s 13791s def setup_module(): 13791s """ 13791s Build the required testing extension module 13791s 13791s """ 13791s global wrap 13791s 13791s # Check compiler availability first 13791s if not util.has_c_compiler(): 13791s pytest.skip("No C compiler available") 13791s 13791s if wrap is None: 13791s config_code = """ 13791s config.add_extension('test_array_from_pyobj_ext', 13791s sources=['wrapmodule.c', 'fortranobject.c'], 13791s define_macros=[]) 13791s """ 13791s d = os.path.dirname(__file__) 13791s src = [ 13791s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13791s util.getpath("src", "fortranobject.c"), 13791s util.getpath("src", "fortranobject.h"), 13791s ] 13791s > wrap = util.build_module_distutils(src, config_code, 13791s "test_array_from_pyobj_ext") 13791s 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13791s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13791s memo[key] = func(*a, **kw) 13791s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13791s func = 13791s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13791s kw = {} 13791s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s 13791s @_memoize 13791s def build_module_distutils(source_files, config_code, module_name, **kw): 13791s """ 13791s Build a module via distutils and import it. 13791s 13791s """ 13791s d = get_module_dir() 13791s 13791s # Copy files 13791s dst_sources = [] 13791s for fn in source_files: 13791s if not os.path.isfile(fn): 13791s raise RuntimeError("%s is not a file" % fn) 13791s dst = os.path.join(d, os.path.basename(fn)) 13791s shutil.copyfile(fn, dst) 13791s dst_sources.append(dst) 13791s 13791s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-vfpv4' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=armv8.2-a+fp16' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13791s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13791s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13791s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13791s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13791s E INFO: building 'test_array_from_pyobj_ext' extension 13791s E INFO: compiling C sources 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13791s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13791s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13791s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13791s E 14 | #include 13791s E | ^~~~~~~~~~ 13791s E In file included from fortranobject.c:2: 13791s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13791s E 7 | #include 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E compilation terminated. 13791s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13791s E INFO: 13791s E ########### EXT COMPILER OPTIMIZATION ########### 13791s E INFO: Platform : 13791s E Architecture: armhf 13791s E Compiler : gcc 13791s E 13791s E CPU baseline : 13791s E Requested : 'min' 13791s E Enabled : none 13791s E Flags : none 13791s E Extra checks: none 13791s E 13791s E CPU dispatch : 13791s E Requested : 'max -xop -fma4' 13791s E Enabled : none 13791s E Generated : none 13791s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13791s 13791s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13791s d = '/tmp/tmpjj8q074z' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s err = None 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s kw = {} 13791s module_name = 'test_array_from_pyobj_ext' 13791s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13791s p = 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13791s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-2seq-F-w] ______ 13791s 13791s def setup_module(): 13791s """ 13791s Build the required testing extension module 13791s 13791s """ 13791s global wrap 13791s 13791s # Check compiler availability first 13791s if not util.has_c_compiler(): 13791s pytest.skip("No C compiler available") 13791s 13791s if wrap is None: 13791s config_code = """ 13791s config.add_extension('test_array_from_pyobj_ext', 13791s sources=['wrapmodule.c', 'fortranobject.c'], 13791s define_macros=[]) 13791s """ 13791s d = os.path.dirname(__file__) 13791s src = [ 13791s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13791s util.getpath("src", "fortranobject.c"), 13791s util.getpath("src", "fortranobject.h"), 13791s ] 13791s > wrap = util.build_module_distutils(src, config_code, 13791s "test_array_from_pyobj_ext") 13791s 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13791s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13791s memo[key] = func(*a, **kw) 13791s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13791s func = 13791s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13791s kw = {} 13791s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s 13791s @_memoize 13791s def build_module_distutils(source_files, config_code, module_name, **kw): 13791s """ 13791s Build a module via distutils and import it. 13791s 13791s """ 13791s d = get_module_dir() 13791s 13791s # Copy files 13791s dst_sources = [] 13791s for fn in source_files: 13791s if not os.path.isfile(fn): 13791s raise RuntimeError("%s is not a file" % fn) 13791s dst = os.path.join(d, os.path.basename(fn)) 13791s shutil.copyfile(fn, dst) 13791s dst_sources.append(dst) 13791s 13791s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-vfpv4' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=armv8.2-a+fp16' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13791s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13791s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13791s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13791s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13791s E INFO: building 'test_array_from_pyobj_ext' extension 13791s E INFO: compiling C sources 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13791s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13791s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13791s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13791s E 14 | #include 13791s E | ^~~~~~~~~~ 13791s E In file included from fortranobject.c:2: 13791s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13791s E 7 | #include 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E compilation terminated. 13791s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13791s E INFO: 13791s E ########### EXT COMPILER OPTIMIZATION ########### 13791s E INFO: Platform : 13791s E Architecture: armhf 13791s E Compiler : gcc 13791s E 13791s E CPU baseline : 13791s E Requested : 'min' 13791s E Enabled : none 13791s E Flags : none 13791s E Extra checks: none 13791s E 13791s E CPU dispatch : 13791s E Requested : 'max -xop -fma4' 13791s E Enabled : none 13791s E Generated : none 13791s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13791s 13791s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13791s d = '/tmp/tmpjj8q074z' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s err = None 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s kw = {} 13791s module_name = 'test_array_from_pyobj_ext' 13791s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13791s p = 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13791s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-2seq-F-ro] ______ 13791s 13791s def setup_module(): 13791s """ 13791s Build the required testing extension module 13791s 13791s """ 13791s global wrap 13791s 13791s # Check compiler availability first 13791s if not util.has_c_compiler(): 13791s pytest.skip("No C compiler available") 13791s 13791s if wrap is None: 13791s config_code = """ 13791s config.add_extension('test_array_from_pyobj_ext', 13791s sources=['wrapmodule.c', 'fortranobject.c'], 13791s define_macros=[]) 13791s """ 13791s d = os.path.dirname(__file__) 13791s src = [ 13791s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13791s util.getpath("src", "fortranobject.c"), 13791s util.getpath("src", "fortranobject.h"), 13791s ] 13791s > wrap = util.build_module_distutils(src, config_code, 13791s "test_array_from_pyobj_ext") 13791s 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13791s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13791s memo[key] = func(*a, **kw) 13791s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13791s func = 13791s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13791s kw = {} 13791s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s 13791s @_memoize 13791s def build_module_distutils(source_files, config_code, module_name, **kw): 13791s """ 13791s Build a module via distutils and import it. 13791s 13791s """ 13791s d = get_module_dir() 13791s 13791s # Copy files 13791s dst_sources = [] 13791s for fn in source_files: 13791s if not os.path.isfile(fn): 13791s raise RuntimeError("%s is not a file" % fn) 13791s dst = os.path.join(d, os.path.basename(fn)) 13791s shutil.copyfile(fn, dst) 13791s dst_sources.append(dst) 13791s 13791s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-vfpv4' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=armv8.2-a+fp16' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13791s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13791s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13791s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13791s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13791s E INFO: building 'test_array_from_pyobj_ext' extension 13791s E INFO: compiling C sources 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13791s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13791s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13791s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13791s E 14 | #include 13791s E | ^~~~~~~~~~ 13791s E In file included from fortranobject.c:2: 13791s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13791s E 7 | #include 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E compilation terminated. 13791s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13791s E INFO: 13791s E ########### EXT COMPILER OPTIMIZATION ########### 13791s E INFO: Platform : 13791s E Architecture: armhf 13791s E Compiler : gcc 13791s E 13791s E CPU baseline : 13791s E Requested : 'min' 13791s E Enabled : none 13791s E Flags : none 13791s E Extra checks: none 13791s E 13791s E CPU dispatch : 13791s E Requested : 'max -xop -fma4' 13791s E Enabled : none 13791s E Generated : none 13791s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13791s 13791s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13791s d = '/tmp/tmpjj8q074z' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s err = None 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s kw = {} 13791s module_name = 'test_array_from_pyobj_ext' 13791s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13791s p = 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13791s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-23seq-C-w] ______ 13791s 13791s def setup_module(): 13791s """ 13791s Build the required testing extension module 13791s 13791s """ 13791s global wrap 13791s 13791s # Check compiler availability first 13791s if not util.has_c_compiler(): 13791s pytest.skip("No C compiler available") 13791s 13791s if wrap is None: 13791s config_code = """ 13791s config.add_extension('test_array_from_pyobj_ext', 13791s sources=['wrapmodule.c', 'fortranobject.c'], 13791s define_macros=[]) 13791s """ 13791s d = os.path.dirname(__file__) 13791s src = [ 13791s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13791s util.getpath("src", "fortranobject.c"), 13791s util.getpath("src", "fortranobject.h"), 13791s ] 13791s > wrap = util.build_module_distutils(src, config_code, 13791s "test_array_from_pyobj_ext") 13791s 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13791s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13791s memo[key] = func(*a, **kw) 13791s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13791s func = 13791s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13791s kw = {} 13791s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s 13791s @_memoize 13791s def build_module_distutils(source_files, config_code, module_name, **kw): 13791s """ 13791s Build a module via distutils and import it. 13791s 13791s """ 13791s d = get_module_dir() 13791s 13791s # Copy files 13791s dst_sources = [] 13791s for fn in source_files: 13791s if not os.path.isfile(fn): 13791s raise RuntimeError("%s is not a file" % fn) 13791s dst = os.path.join(d, os.path.basename(fn)) 13791s shutil.copyfile(fn, dst) 13791s dst_sources.append(dst) 13791s 13791s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-vfpv4' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=armv8.2-a+fp16' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13791s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13791s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13791s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13791s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13791s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13791s E 9 | # include_next 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E 13791s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13791s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13791s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13791s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13791s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13791s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13791s E INFO: building 'test_array_from_pyobj_ext' extension 13791s E INFO: compiling C sources 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13791s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13791s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13791s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13791s E 14 | #include 13791s E | ^~~~~~~~~~ 13791s E In file included from fortranobject.c:2: 13791s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13791s E 7 | #include 13791s E | ^~~~~~~~~~ 13791s E compilation terminated. 13791s E compilation terminated. 13791s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13791s E INFO: 13791s E ########### EXT COMPILER OPTIMIZATION ########### 13791s E INFO: Platform : 13791s E Architecture: armhf 13791s E Compiler : gcc 13791s E 13791s E CPU baseline : 13791s E Requested : 'min' 13791s E Enabled : none 13791s E Flags : none 13791s E Extra checks: none 13791s E 13791s E CPU dispatch : 13791s E Requested : 'max -xop -fma4' 13791s E Enabled : none 13791s E Generated : none 13791s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13791s 13791s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13791s d = '/tmp/tmpjj8q074z' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s err = None 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s kw = {} 13791s module_name = 'test_array_from_pyobj_ext' 13791s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13791s p = 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13791s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-23seq-C-ro] _____ 13791s 13791s def setup_module(): 13791s """ 13791s Build the required testing extension module 13791s 13791s """ 13791s global wrap 13791s 13791s # Check compiler availability first 13791s if not util.has_c_compiler(): 13791s pytest.skip("No C compiler available") 13791s 13791s if wrap is None: 13791s config_code = """ 13791s config.add_extension('test_array_from_pyobj_ext', 13791s sources=['wrapmodule.c', 'fortranobject.c'], 13791s define_macros=[]) 13791s """ 13791s d = os.path.dirname(__file__) 13791s src = [ 13791s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13791s util.getpath("src", "fortranobject.c"), 13791s util.getpath("src", "fortranobject.h"), 13791s ] 13791s > wrap = util.build_module_distutils(src, config_code, 13791s "test_array_from_pyobj_ext") 13791s 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13791s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13791s memo[key] = func(*a, **kw) 13791s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13791s func = 13791s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13791s kw = {} 13791s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13791s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13791s 13791s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13791s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13791s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13791s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13791s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13791s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13791s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13791s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13791s 13791s @_memoize 13791s def build_module_distutils(source_files, config_code, module_name, **kw): 13791s """ 13791s Build a module via distutils and import it. 13791s 13791s """ 13791s d = get_module_dir() 13791s 13791s # Copy files 13791s dst_sources = [] 13791s for fn in source_files: 13791s if not os.path.isfile(fn): 13791s raise RuntimeError("%s is not a file" % fn) 13791s dst = os.path.join(d, os.path.basename(fn)) 13791s shutil.copyfile(fn, dst) 13791s dst_sources.append(dst) 13791s 13791s # Build script 13791s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13791s 13791s code = fr""" 13791s import os 13791s import sys 13791s sys.path = {repr(sys.path)} 13791s 13791s def configuration(parent_name='',top_path=None): 13791s from numpy.distutils.misc_util import Configuration 13791s config = Configuration('', parent_name, top_path) 13791s {config_code} 13791s return config 13791s 13791s if __name__ == "__main__": 13791s from numpy.distutils.core import setup 13791s setup(configuration=configuration) 13791s """ 13791s script = os.path.join(d, get_temp_module_name() + ".py") 13791s dst_sources.append(script) 13791s with open(script, "wb") as f: 13791s f.write(asbytes(code)) 13791s 13791s # Build 13791s cwd = os.getcwd() 13791s try: 13791s os.chdir(d) 13791s cmd = [sys.executable, script, "build_ext", "-i"] 13791s p = subprocess.Popen(cmd, 13791s stdout=subprocess.PIPE, 13791s stderr=subprocess.STDOUT) 13791s out, err = p.communicate() 13791s if p.returncode != 0: 13791s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13791s (cmd[4:], asstr(out))) 13791s E RuntimeError: Running distutils build failed: [] 13791s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13791s E 13791s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13791s E of the deprecation of `distutils` itself. It will be removed for 13791s E Python >= 3.12. For older Python versions it will remain present. 13791s E It is recommended to use `setuptools < 60.0` for those Python versions. 13791s E For more details, see: 13791s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13791s E 13791s E 13791s E from numpy.distutils.core import setup 13791s E running build_ext 13791s E running build_src 13791s E INFO: build_src 13791s E INFO: building extension "test_array_from_pyobj_ext" sources 13791s E INFO: build_src: building npy-pkg config files 13791s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13791s E !! 13791s E 13791s E ******************************************************************************** 13791s E Please avoid running ``setup.py`` directly. 13791s E Instead, use pypa/build, pypa/installer or other 13791s E standards-based tools. 13791s E 13791s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13791s E ******************************************************************************** 13791s E 13791s E !! 13791s E self.initialize_options() 13791s E INFO: customize UnixCCompiler 13791s E INFO: customize UnixCCompiler using build_ext 13791s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/tmp 13791s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E creating /tmp/tmppq19o2st/usr 13791s E creating /tmp/tmppq19o2st/usr/lib 13791s E creating /tmp/tmppq19o2st/usr/lib/python3 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13791s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-march=native' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-O3' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-Werror' 13791s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13791s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon' 13791s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13791s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13791s E 13791s E INFO: compile options: '-I/usr/include/python3.12 -c' 13791s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13791s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-23seq-F-w] ______ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[USHORT-23seq-F-ro] _____ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[USHORT] __________ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[USHORT] _________ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[USHORT] _________ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[USHORT] ____ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[USHORT] ________ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[USHORT] ______ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[USHORT] _____ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[USHORT] _____ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[USHORT] ___ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/tmp 13792s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E creating /tmp/tmppq19o2st/usr 13792s E creating /tmp/tmppq19o2st/usr/lib 13792s E creating /tmp/tmppq19o2st/usr/lib/python3 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13792s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=native' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-O3' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-Werror' 13792s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13792s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-vfpv4' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13792s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-march=armv8.2-a+fp16' 13792s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/include/python3.12 -c' 13792s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13792s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13792s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13792s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13792s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13792s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13792s E 9 | # include_next 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E 13792s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13792s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13792s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13792s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13792s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13792s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13792s E INFO: building 'test_array_from_pyobj_ext' extension 13792s E INFO: compiling C sources 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13792s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13792s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13792s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13792s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13792s E 14 | #include 13792s E | ^~~~~~~~~~ 13792s E In file included from fortranobject.c:2: 13792s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13792s E 7 | #include 13792s E | ^~~~~~~~~~ 13792s E compilation terminated. 13792s E compilation terminated. 13792s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13792s E INFO: 13792s E ########### EXT COMPILER OPTIMIZATION ########### 13792s E INFO: Platform : 13792s E Architecture: armhf 13792s E Compiler : gcc 13792s E 13792s E CPU baseline : 13792s E Requested : 'min' 13792s E Enabled : none 13792s E Flags : none 13792s E Extra checks: none 13792s E 13792s E CPU dispatch : 13792s E Requested : 'max -xop -fma4' 13792s E Enabled : none 13792s E Generated : none 13792s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13792s 13792s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13792s d = '/tmp/tmpjj8q074z' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s err = None 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s kw = {} 13792s module_name = 'test_array_from_pyobj_ext' 13792s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13792s p = 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13792s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[USHORT] ___ 13792s 13792s def setup_module(): 13792s """ 13792s Build the required testing extension module 13792s 13792s """ 13792s global wrap 13792s 13792s # Check compiler availability first 13792s if not util.has_c_compiler(): 13792s pytest.skip("No C compiler available") 13792s 13792s if wrap is None: 13792s config_code = """ 13792s config.add_extension('test_array_from_pyobj_ext', 13792s sources=['wrapmodule.c', 'fortranobject.c'], 13792s define_macros=[]) 13792s """ 13792s d = os.path.dirname(__file__) 13792s src = [ 13792s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13792s util.getpath("src", "fortranobject.c"), 13792s util.getpath("src", "fortranobject.h"), 13792s ] 13792s > wrap = util.build_module_distutils(src, config_code, 13792s "test_array_from_pyobj_ext") 13792s 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13792s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13792s memo[key] = func(*a, **kw) 13792s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13792s func = 13792s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13792s kw = {} 13792s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13792s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13792s 13792s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13792s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13792s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13792s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13792s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13792s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13792s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13792s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13792s 13792s @_memoize 13792s def build_module_distutils(source_files, config_code, module_name, **kw): 13792s """ 13792s Build a module via distutils and import it. 13792s 13792s """ 13792s d = get_module_dir() 13792s 13792s # Copy files 13792s dst_sources = [] 13792s for fn in source_files: 13792s if not os.path.isfile(fn): 13792s raise RuntimeError("%s is not a file" % fn) 13792s dst = os.path.join(d, os.path.basename(fn)) 13792s shutil.copyfile(fn, dst) 13792s dst_sources.append(dst) 13792s 13792s # Build script 13792s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13792s 13792s code = fr""" 13792s import os 13792s import sys 13792s sys.path = {repr(sys.path)} 13792s 13792s def configuration(parent_name='',top_path=None): 13792s from numpy.distutils.misc_util import Configuration 13792s config = Configuration('', parent_name, top_path) 13792s {config_code} 13792s return config 13792s 13792s if __name__ == "__main__": 13792s from numpy.distutils.core import setup 13792s setup(configuration=configuration) 13792s """ 13792s script = os.path.join(d, get_temp_module_name() + ".py") 13792s dst_sources.append(script) 13792s with open(script, "wb") as f: 13792s f.write(asbytes(code)) 13792s 13792s # Build 13792s cwd = os.getcwd() 13792s try: 13792s os.chdir(d) 13792s cmd = [sys.executable, script, "build_ext", "-i"] 13792s p = subprocess.Popen(cmd, 13792s stdout=subprocess.PIPE, 13792s stderr=subprocess.STDOUT) 13792s out, err = p.communicate() 13792s if p.returncode != 0: 13792s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13792s (cmd[4:], asstr(out))) 13792s E RuntimeError: Running distutils build failed: [] 13792s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13792s E 13792s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13792s E of the deprecation of `distutils` itself. It will be removed for 13792s E Python >= 3.12. For older Python versions it will remain present. 13792s E It is recommended to use `setuptools < 60.0` for those Python versions. 13792s E For more details, see: 13792s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13792s E 13792s E 13792s E from numpy.distutils.core import setup 13792s E running build_ext 13792s E running build_src 13792s E INFO: build_src 13792s E INFO: building extension "test_array_from_pyobj_ext" sources 13792s E INFO: build_src: building npy-pkg config files 13792s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13792s E !! 13792s E 13792s E ******************************************************************************** 13792s E Please avoid running ``setup.py`` directly. 13792s E Instead, use pypa/build, pypa/installer or other 13792s E standards-based tools. 13792s E 13792s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13792s E ******************************************************************************** 13792s E 13792s E !! 13792s E self.initialize_options() 13792s E INFO: customize UnixCCompiler 13792s E INFO: customize UnixCCompiler using build_ext 13792s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13792s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13792s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[USHORT] ____ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[USHORT] _ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[USHORT] _________ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s ____________ ERROR at setup of TestSharedMemory.test_hidden[USHORT] ____________ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s ________ ERROR at setup of TestSharedMemory.test_optional_none[USHORT] _________ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[USHORT] ______ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[USHORT] ______ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s ___________ ERROR at setup of TestSharedMemory.test_inplace[USHORT] ____________ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-vfpv4' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=armv8.2-a+fp16' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13793s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13793s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13793s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13793s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13793s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13793s E INFO: building 'test_array_from_pyobj_ext' extension 13793s E INFO: compiling C sources 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13793s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13793s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13793s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13793s E 14 | #include 13793s E | ^~~~~~~~~~ 13793s E In file included from fortranobject.c:2: 13793s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13793s E 7 | #include 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E compilation terminated. 13793s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13793s E INFO: 13793s E ########### EXT COMPILER OPTIMIZATION ########### 13793s E INFO: Platform : 13793s E Architecture: armhf 13793s E Compiler : gcc 13793s E 13793s E CPU baseline : 13793s E Requested : 'min' 13793s E Enabled : none 13793s E Flags : none 13793s E Extra checks: none 13793s E 13793s E CPU dispatch : 13793s E Requested : 'max -xop -fma4' 13793s E Enabled : none 13793s E Generated : none 13793s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13793s 13793s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13793s d = '/tmp/tmpjj8q074z' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s err = None 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s kw = {} 13793s module_name = 'test_array_from_pyobj_ext' 13793s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13793s p = 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13793s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[USHORT] _____ 13793s 13793s def setup_module(): 13793s """ 13793s Build the required testing extension module 13793s 13793s """ 13793s global wrap 13793s 13793s # Check compiler availability first 13793s if not util.has_c_compiler(): 13793s pytest.skip("No C compiler available") 13793s 13793s if wrap is None: 13793s config_code = """ 13793s config.add_extension('test_array_from_pyobj_ext', 13793s sources=['wrapmodule.c', 'fortranobject.c'], 13793s define_macros=[]) 13793s """ 13793s d = os.path.dirname(__file__) 13793s src = [ 13793s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13793s util.getpath("src", "fortranobject.c"), 13793s util.getpath("src", "fortranobject.h"), 13793s ] 13793s > wrap = util.build_module_distutils(src, config_code, 13793s "test_array_from_pyobj_ext") 13793s 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13793s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13793s memo[key] = func(*a, **kw) 13793s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13793s func = 13793s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13793s kw = {} 13793s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13793s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13793s 13793s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13793s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13793s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13793s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13793s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13793s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13793s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13793s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13793s 13793s @_memoize 13793s def build_module_distutils(source_files, config_code, module_name, **kw): 13793s """ 13793s Build a module via distutils and import it. 13793s 13793s """ 13793s d = get_module_dir() 13793s 13793s # Copy files 13793s dst_sources = [] 13793s for fn in source_files: 13793s if not os.path.isfile(fn): 13793s raise RuntimeError("%s is not a file" % fn) 13793s dst = os.path.join(d, os.path.basename(fn)) 13793s shutil.copyfile(fn, dst) 13793s dst_sources.append(dst) 13793s 13793s # Build script 13793s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13793s 13793s code = fr""" 13793s import os 13793s import sys 13793s sys.path = {repr(sys.path)} 13793s 13793s def configuration(parent_name='',top_path=None): 13793s from numpy.distutils.misc_util import Configuration 13793s config = Configuration('', parent_name, top_path) 13793s {config_code} 13793s return config 13793s 13793s if __name__ == "__main__": 13793s from numpy.distutils.core import setup 13793s setup(configuration=configuration) 13793s """ 13793s script = os.path.join(d, get_temp_module_name() + ".py") 13793s dst_sources.append(script) 13793s with open(script, "wb") as f: 13793s f.write(asbytes(code)) 13793s 13793s # Build 13793s cwd = os.getcwd() 13793s try: 13793s os.chdir(d) 13793s cmd = [sys.executable, script, "build_ext", "-i"] 13793s p = subprocess.Popen(cmd, 13793s stdout=subprocess.PIPE, 13793s stderr=subprocess.STDOUT) 13793s out, err = p.communicate() 13793s if p.returncode != 0: 13793s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13793s (cmd[4:], asstr(out))) 13793s E RuntimeError: Running distutils build failed: [] 13793s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13793s E 13793s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13793s E of the deprecation of `distutils` itself. It will be removed for 13793s E Python >= 3.12. For older Python versions it will remain present. 13793s E It is recommended to use `setuptools < 60.0` for those Python versions. 13793s E For more details, see: 13793s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13793s E 13793s E 13793s E from numpy.distutils.core import setup 13793s E running build_ext 13793s E running build_src 13793s E INFO: build_src 13793s E INFO: building extension "test_array_from_pyobj_ext" sources 13793s E INFO: build_src: building npy-pkg config files 13793s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13793s E !! 13793s E 13793s E ******************************************************************************** 13793s E Please avoid running ``setup.py`` directly. 13793s E Instead, use pypa/build, pypa/installer or other 13793s E standards-based tools. 13793s E 13793s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13793s E ******************************************************************************** 13793s E 13793s E !! 13793s E self.initialize_options() 13793s E INFO: customize UnixCCompiler 13793s E INFO: customize UnixCCompiler using build_ext 13793s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/tmp 13793s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E creating /tmp/tmppq19o2st/usr 13793s E creating /tmp/tmppq19o2st/usr/lib 13793s E creating /tmp/tmppq19o2st/usr/lib/python3 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13793s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-march=native' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-O3' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-Werror' 13793s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13793s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon' 13793s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13793s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13793s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13793s E 13793s E INFO: compile options: '-I/usr/include/python3.12 -c' 13793s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13793s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13793s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13793s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13793s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13793s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13793s E 9 | # include_next 13793s E | ^~~~~~~~~~ 13793s E compilation terminated. 13793s E 13793s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[INT] ___________ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s ________ ERROR at setup of TestSharedMemory.test_in_from_2casttype[INT] ________ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-2seq-C-w] ________ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-2seq-C-ro] _______ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-2seq-F-w] ________ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-2seq-F-ro] _______ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-23seq-C-w] _______ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-23seq-C-ro] _______ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-23seq-F-w] _______ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[INT-23seq-F-ro] _______ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13794s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13794s 13794s code = fr""" 13794s import os 13794s import sys 13794s sys.path = {repr(sys.path)} 13794s 13794s def configuration(parent_name='',top_path=None): 13794s from numpy.distutils.misc_util import Configuration 13794s config = Configuration('', parent_name, top_path) 13794s {config_code} 13794s return config 13794s 13794s if __name__ == "__main__": 13794s from numpy.distutils.core import setup 13794s setup(configuration=configuration) 13794s """ 13794s script = os.path.join(d, get_temp_module_name() + ".py") 13794s dst_sources.append(script) 13794s with open(script, "wb") as f: 13794s f.write(asbytes(code)) 13794s 13794s # Build 13794s cwd = os.getcwd() 13794s try: 13794s os.chdir(d) 13794s cmd = [sys.executable, script, "build_ext", "-i"] 13794s p = subprocess.Popen(cmd, 13794s stdout=subprocess.PIPE, 13794s stderr=subprocess.STDOUT) 13794s out, err = p.communicate() 13794s if p.returncode != 0: 13794s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13794s (cmd[4:], asstr(out))) 13794s E RuntimeError: Running distutils build failed: [] 13794s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13794s E 13794s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13794s E of the deprecation of `distutils` itself. It will be removed for 13794s E Python >= 3.12. For older Python versions it will remain present. 13794s E It is recommended to use `setuptools < 60.0` for those Python versions. 13794s E For more details, see: 13794s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13794s E 13794s E 13794s E from numpy.distutils.core import setup 13794s E running build_ext 13794s E running build_src 13794s E INFO: build_src 13794s E INFO: building extension "test_array_from_pyobj_ext" sources 13794s E INFO: build_src: building npy-pkg config files 13794s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13794s E !! 13794s E 13794s E ******************************************************************************** 13794s E Please avoid running ``setup.py`` directly. 13794s E Instead, use pypa/build, pypa/installer or other 13794s E standards-based tools. 13794s E 13794s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13794s E ******************************************************************************** 13794s E 13794s E !! 13794s E self.initialize_options() 13794s E INFO: customize UnixCCompiler 13794s E INFO: customize UnixCCompiler using build_ext 13794s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/tmp 13794s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E creating /tmp/tmppq19o2st/usr 13794s E creating /tmp/tmppq19o2st/usr/lib 13794s E creating /tmp/tmppq19o2st/usr/lib/python3 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13794s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=native' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-O3' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-Werror' 13794s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13794s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-vfpv4' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13794s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-march=armv8.2-a+fp16' 13794s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/include/python3.12 -c' 13794s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13794s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13794s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13794s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13794s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13794s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13794s E 9 | # include_next 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E 13794s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13794s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13794s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13794s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13794s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13794s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13794s E INFO: building 'test_array_from_pyobj_ext' extension 13794s E INFO: compiling C sources 13794s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13794s E 13794s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13794s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13794s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13794s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13794s E 14 | #include 13794s E | ^~~~~~~~~~ 13794s E In file included from fortranobject.c:2: 13794s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13794s E 7 | #include 13794s E | ^~~~~~~~~~ 13794s E compilation terminated. 13794s E compilation terminated. 13794s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13794s E INFO: 13794s E ########### EXT COMPILER OPTIMIZATION ########### 13794s E INFO: Platform : 13794s E Architecture: armhf 13794s E Compiler : gcc 13794s E 13794s E CPU baseline : 13794s E Requested : 'min' 13794s E Enabled : none 13794s E Flags : none 13794s E Extra checks: none 13794s E 13794s E CPU dispatch : 13794s E Requested : 'max -xop -fma4' 13794s E Enabled : none 13794s E Generated : none 13794s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13794s 13794s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13794s d = '/tmp/tmpjj8q074z' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s err = None 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s kw = {} 13794s module_name = 'test_array_from_pyobj_ext' 13794s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13794s p = 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13794s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[INT] ____________ 13794s 13794s def setup_module(): 13794s """ 13794s Build the required testing extension module 13794s 13794s """ 13794s global wrap 13794s 13794s # Check compiler availability first 13794s if not util.has_c_compiler(): 13794s pytest.skip("No C compiler available") 13794s 13794s if wrap is None: 13794s config_code = """ 13794s config.add_extension('test_array_from_pyobj_ext', 13794s sources=['wrapmodule.c', 'fortranobject.c'], 13794s define_macros=[]) 13794s """ 13794s d = os.path.dirname(__file__) 13794s src = [ 13794s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13794s util.getpath("src", "fortranobject.c"), 13794s util.getpath("src", "fortranobject.h"), 13794s ] 13794s > wrap = util.build_module_distutils(src, config_code, 13794s "test_array_from_pyobj_ext") 13794s 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13794s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13794s memo[key] = func(*a, **kw) 13794s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13794s func = 13794s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13794s kw = {} 13794s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13794s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13794s 13794s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13794s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13794s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13794s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13794s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13794s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13794s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13794s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13794s 13794s @_memoize 13794s def build_module_distutils(source_files, config_code, module_name, **kw): 13794s """ 13794s Build a module via distutils and import it. 13794s 13794s """ 13794s d = get_module_dir() 13794s 13794s # Copy files 13794s dst_sources = [] 13794s for fn in source_files: 13794s if not os.path.isfile(fn): 13794s raise RuntimeError("%s is not a file" % fn) 13794s dst = os.path.join(d, os.path.basename(fn)) 13794s shutil.copyfile(fn, dst) 13794s dst_sources.append(dst) 13794s 13794s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s __________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[INT] __________ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s __________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[INT] __________ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[INT] ______ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s _________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[INT] _________ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[INT] ________ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[INT] _______ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[INT] _______ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s ____ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[INT] ____ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s ____ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[INT] ____ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13795s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13795s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13795s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13795s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13795s E INFO: building 'test_array_from_pyobj_ext' extension 13795s E INFO: compiling C sources 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13795s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13795s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13795s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13795s E 14 | #include 13795s E | ^~~~~~~~~~ 13795s E In file included from fortranobject.c:2: 13795s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13795s E 7 | #include 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E compilation terminated. 13795s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13795s E INFO: 13795s E ########### EXT COMPILER OPTIMIZATION ########### 13795s E INFO: Platform : 13795s E Architecture: armhf 13795s E Compiler : gcc 13795s E 13795s E CPU baseline : 13795s E Requested : 'min' 13795s E Enabled : none 13795s E Flags : none 13795s E Extra checks: none 13795s E 13795s E CPU dispatch : 13795s E Requested : 'max -xop -fma4' 13795s E Enabled : none 13795s E Generated : none 13795s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13795s 13795s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13795s d = '/tmp/tmpjj8q074z' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s err = None 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s kw = {} 13795s module_name = 'test_array_from_pyobj_ext' 13795s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13795s p = 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13795s _____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[INT] _____ 13795s 13795s def setup_module(): 13795s """ 13795s Build the required testing extension module 13795s 13795s """ 13795s global wrap 13795s 13795s # Check compiler availability first 13795s if not util.has_c_compiler(): 13795s pytest.skip("No C compiler available") 13795s 13795s if wrap is None: 13795s config_code = """ 13795s config.add_extension('test_array_from_pyobj_ext', 13795s sources=['wrapmodule.c', 'fortranobject.c'], 13795s define_macros=[]) 13795s """ 13795s d = os.path.dirname(__file__) 13795s src = [ 13795s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13795s util.getpath("src", "fortranobject.c"), 13795s util.getpath("src", "fortranobject.h"), 13795s ] 13795s > wrap = util.build_module_distutils(src, config_code, 13795s "test_array_from_pyobj_ext") 13795s 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13795s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13795s memo[key] = func(*a, **kw) 13795s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13795s func = 13795s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13795s kw = {} 13795s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13795s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13795s 13795s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13795s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13795s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13795s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13795s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13795s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13795s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13795s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13795s 13795s @_memoize 13795s def build_module_distutils(source_files, config_code, module_name, **kw): 13795s """ 13795s Build a module via distutils and import it. 13795s 13795s """ 13795s d = get_module_dir() 13795s 13795s # Copy files 13795s dst_sources = [] 13795s for fn in source_files: 13795s if not os.path.isfile(fn): 13795s raise RuntimeError("%s is not a file" % fn) 13795s dst = os.path.join(d, os.path.basename(fn)) 13795s shutil.copyfile(fn, dst) 13795s dst_sources.append(dst) 13795s 13795s # Build script 13795s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13795s 13795s code = fr""" 13795s import os 13795s import sys 13795s sys.path = {repr(sys.path)} 13795s 13795s def configuration(parent_name='',top_path=None): 13795s from numpy.distutils.misc_util import Configuration 13795s config = Configuration('', parent_name, top_path) 13795s {config_code} 13795s return config 13795s 13795s if __name__ == "__main__": 13795s from numpy.distutils.core import setup 13795s setup(configuration=configuration) 13795s """ 13795s script = os.path.join(d, get_temp_module_name() + ".py") 13795s dst_sources.append(script) 13795s with open(script, "wb") as f: 13795s f.write(asbytes(code)) 13795s 13795s # Build 13795s cwd = os.getcwd() 13795s try: 13795s os.chdir(d) 13795s cmd = [sys.executable, script, "build_ext", "-i"] 13795s p = subprocess.Popen(cmd, 13795s stdout=subprocess.PIPE, 13795s stderr=subprocess.STDOUT) 13795s out, err = p.communicate() 13795s if p.returncode != 0: 13795s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13795s (cmd[4:], asstr(out))) 13795s E RuntimeError: Running distutils build failed: [] 13795s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13795s E 13795s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13795s E of the deprecation of `distutils` itself. It will be removed for 13795s E Python >= 3.12. For older Python versions it will remain present. 13795s E It is recommended to use `setuptools < 60.0` for those Python versions. 13795s E For more details, see: 13795s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13795s E 13795s E 13795s E from numpy.distutils.core import setup 13795s E running build_ext 13795s E running build_src 13795s E INFO: build_src 13795s E INFO: building extension "test_array_from_pyobj_ext" sources 13795s E INFO: build_src: building npy-pkg config files 13795s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13795s E !! 13795s E 13795s E ******************************************************************************** 13795s E Please avoid running ``setup.py`` directly. 13795s E Instead, use pypa/build, pypa/installer or other 13795s E standards-based tools. 13795s E 13795s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13795s E ******************************************************************************** 13795s E 13795s E !! 13795s E self.initialize_options() 13795s E INFO: customize UnixCCompiler 13795s E INFO: customize UnixCCompiler using build_ext 13795s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/tmp 13795s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E creating /tmp/tmppq19o2st/usr 13795s E creating /tmp/tmppq19o2st/usr/lib 13795s E creating /tmp/tmppq19o2st/usr/lib/python3 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13795s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=native' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-O3' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-Werror' 13795s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13795s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-vfpv4' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13795s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-march=armv8.2-a+fp16' 13795s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13795s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13795s E 13795s E INFO: compile options: '-I/usr/include/python3.12 -c' 13795s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13795s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13795s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13795s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13795s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13795s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13795s E 9 | # include_next 13795s E | ^~~~~~~~~~ 13795s E compilation terminated. 13795s E 13795s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13795s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13796s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13796s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13796s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13796s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13796s E INFO: building 'test_array_from_pyobj_ext' extension 13796s E INFO: compiling C sources 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13796s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13796s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13796s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13796s E 14 | #include 13796s E | ^~~~~~~~~~ 13796s E In file included from fortranobject.c:2: 13796s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13796s E 7 | #include 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E compilation terminated. 13796s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13796s E INFO: 13796s E ########### EXT COMPILER OPTIMIZATION ########### 13796s E INFO: Platform : 13796s E Architecture: armhf 13796s E Compiler : gcc 13796s E 13796s E CPU baseline : 13796s E Requested : 'min' 13796s E Enabled : none 13796s E Flags : none 13796s E Extra checks: none 13796s E 13796s E CPU dispatch : 13796s E Requested : 'max -xop -fma4' 13796s E Enabled : none 13796s E Generated : none 13796s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13796s 13796s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13796s d = '/tmp/tmpjj8q074z' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s err = None 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s kw = {} 13796s module_name = 'test_array_from_pyobj_ext' 13796s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13796s p = 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13796s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[INT] _ 13796s 13796s def setup_module(): 13796s """ 13796s Build the required testing extension module 13796s 13796s """ 13796s global wrap 13796s 13796s # Check compiler availability first 13796s if not util.has_c_compiler(): 13796s pytest.skip("No C compiler available") 13796s 13796s if wrap is None: 13796s config_code = """ 13796s config.add_extension('test_array_from_pyobj_ext', 13796s sources=['wrapmodule.c', 'fortranobject.c'], 13796s define_macros=[]) 13796s """ 13796s d = os.path.dirname(__file__) 13796s src = [ 13796s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13796s util.getpath("src", "fortranobject.c"), 13796s util.getpath("src", "fortranobject.h"), 13796s ] 13796s > wrap = util.build_module_distutils(src, config_code, 13796s "test_array_from_pyobj_ext") 13796s 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13796s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13796s memo[key] = func(*a, **kw) 13796s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13796s func = 13796s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13796s kw = {} 13796s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s 13796s @_memoize 13796s def build_module_distutils(source_files, config_code, module_name, **kw): 13796s """ 13796s Build a module via distutils and import it. 13796s 13796s """ 13796s d = get_module_dir() 13796s 13796s # Copy files 13796s dst_sources = [] 13796s for fn in source_files: 13796s if not os.path.isfile(fn): 13796s raise RuntimeError("%s is not a file" % fn) 13796s dst = os.path.join(d, os.path.basename(fn)) 13796s shutil.copyfile(fn, dst) 13796s dst_sources.append(dst) 13796s 13796s # Build script 13796s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13796s 13796s code = fr""" 13796s import os 13796s import sys 13796s sys.path = {repr(sys.path)} 13796s 13796s def configuration(parent_name='',top_path=None): 13796s from numpy.distutils.misc_util import Configuration 13796s config = Configuration('', parent_name, top_path) 13796s {config_code} 13796s return config 13796s 13796s if __name__ == "__main__": 13796s from numpy.distutils.core import setup 13796s setup(configuration=configuration) 13796s """ 13796s script = os.path.join(d, get_temp_module_name() + ".py") 13796s dst_sources.append(script) 13796s with open(script, "wb") as f: 13796s f.write(asbytes(code)) 13796s 13796s # Build 13796s cwd = os.getcwd() 13796s try: 13796s os.chdir(d) 13796s cmd = [sys.executable, script, "build_ext", "-i"] 13796s p = subprocess.Popen(cmd, 13796s stdout=subprocess.PIPE, 13796s stderr=subprocess.STDOUT) 13796s out, err = p.communicate() 13796s if p.returncode != 0: 13796s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13796s (cmd[4:], asstr(out))) 13796s E RuntimeError: Running distutils build failed: [] 13796s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13796s E 13796s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13796s E of the deprecation of `distutils` itself. It will be removed for 13796s E Python >= 3.12. For older Python versions it will remain present. 13796s E It is recommended to use `setuptools < 60.0` for those Python versions. 13796s E For more details, see: 13796s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13796s E 13796s E 13796s E from numpy.distutils.core import setup 13796s E running build_ext 13796s E running build_src 13796s E INFO: build_src 13796s E INFO: building extension "test_array_from_pyobj_ext" sources 13796s E INFO: build_src: building npy-pkg config files 13796s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13796s E !! 13796s E 13796s E ******************************************************************************** 13796s E Please avoid running ``setup.py`` directly. 13796s E Instead, use pypa/build, pypa/installer or other 13796s E standards-based tools. 13796s E 13796s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13796s E ******************************************************************************** 13796s E 13796s E !! 13796s E self.initialize_options() 13796s E INFO: customize UnixCCompiler 13796s E INFO: customize UnixCCompiler using build_ext 13796s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/tmp 13796s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/usr 13796s E creating /tmp/tmppq19o2st/usr/lib 13796s E creating /tmp/tmppq19o2st/usr/lib/python3 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=native' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-O3' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-Werror' 13796s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13796s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-vfpv4' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=armv8.2-a+fp16' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13796s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13796s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13796s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13796s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13796s E INFO: building 'test_array_from_pyobj_ext' extension 13796s E INFO: compiling C sources 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13796s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13796s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13796s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13796s E 14 | #include 13796s E | ^~~~~~~~~~ 13796s E In file included from fortranobject.c:2: 13796s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13796s E 7 | #include 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E compilation terminated. 13796s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13796s E INFO: 13796s E ########### EXT COMPILER OPTIMIZATION ########### 13796s E INFO: Platform : 13796s E Architecture: armhf 13796s E Compiler : gcc 13796s E 13796s E CPU baseline : 13796s E Requested : 'min' 13796s E Enabled : none 13796s E Flags : none 13796s E Extra checks: none 13796s E 13796s E CPU dispatch : 13796s E Requested : 'max -xop -fma4' 13796s E Enabled : none 13796s E Generated : none 13796s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13796s 13796s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13796s d = '/tmp/tmpjj8q074z' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s err = None 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s kw = {} 13796s module_name = 'test_array_from_pyobj_ext' 13796s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13796s p = 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13796s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[INT] ___________ 13796s 13796s def setup_module(): 13796s """ 13796s Build the required testing extension module 13796s 13796s """ 13796s global wrap 13796s 13796s # Check compiler availability first 13796s if not util.has_c_compiler(): 13796s pytest.skip("No C compiler available") 13796s 13796s if wrap is None: 13796s config_code = """ 13796s config.add_extension('test_array_from_pyobj_ext', 13796s sources=['wrapmodule.c', 'fortranobject.c'], 13796s define_macros=[]) 13796s """ 13796s d = os.path.dirname(__file__) 13796s src = [ 13796s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13796s util.getpath("src", "fortranobject.c"), 13796s util.getpath("src", "fortranobject.h"), 13796s ] 13796s > wrap = util.build_module_distutils(src, config_code, 13796s "test_array_from_pyobj_ext") 13796s 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13796s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13796s memo[key] = func(*a, **kw) 13796s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13796s func = 13796s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13796s kw = {} 13796s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s 13796s @_memoize 13796s def build_module_distutils(source_files, config_code, module_name, **kw): 13796s """ 13796s Build a module via distutils and import it. 13796s 13796s """ 13796s d = get_module_dir() 13796s 13796s # Copy files 13796s dst_sources = [] 13796s for fn in source_files: 13796s if not os.path.isfile(fn): 13796s raise RuntimeError("%s is not a file" % fn) 13796s dst = os.path.join(d, os.path.basename(fn)) 13796s shutil.copyfile(fn, dst) 13796s dst_sources.append(dst) 13796s 13796s # Build script 13796s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13796s 13796s code = fr""" 13796s import os 13796s import sys 13796s sys.path = {repr(sys.path)} 13796s 13796s def configuration(parent_name='',top_path=None): 13796s from numpy.distutils.misc_util import Configuration 13796s config = Configuration('', parent_name, top_path) 13796s {config_code} 13796s return config 13796s 13796s if __name__ == "__main__": 13796s from numpy.distutils.core import setup 13796s setup(configuration=configuration) 13796s """ 13796s script = os.path.join(d, get_temp_module_name() + ".py") 13796s dst_sources.append(script) 13796s with open(script, "wb") as f: 13796s f.write(asbytes(code)) 13796s 13796s # Build 13796s cwd = os.getcwd() 13796s try: 13796s os.chdir(d) 13796s cmd = [sys.executable, script, "build_ext", "-i"] 13796s p = subprocess.Popen(cmd, 13796s stdout=subprocess.PIPE, 13796s stderr=subprocess.STDOUT) 13796s out, err = p.communicate() 13796s if p.returncode != 0: 13796s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13796s (cmd[4:], asstr(out))) 13796s E RuntimeError: Running distutils build failed: [] 13796s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13796s E 13796s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13796s E of the deprecation of `distutils` itself. It will be removed for 13796s E Python >= 3.12. For older Python versions it will remain present. 13796s E It is recommended to use `setuptools < 60.0` for those Python versions. 13796s E For more details, see: 13796s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13796s E 13796s E 13796s E from numpy.distutils.core import setup 13796s E running build_ext 13796s E running build_src 13796s E INFO: build_src 13796s E INFO: building extension "test_array_from_pyobj_ext" sources 13796s E INFO: build_src: building npy-pkg config files 13796s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13796s E !! 13796s E 13796s E ******************************************************************************** 13796s E Please avoid running ``setup.py`` directly. 13796s E Instead, use pypa/build, pypa/installer or other 13796s E standards-based tools. 13796s E 13796s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13796s E ******************************************************************************** 13796s E 13796s E !! 13796s E self.initialize_options() 13796s E INFO: customize UnixCCompiler 13796s E INFO: customize UnixCCompiler using build_ext 13796s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/tmp 13796s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/usr 13796s E creating /tmp/tmppq19o2st/usr/lib 13796s E creating /tmp/tmppq19o2st/usr/lib/python3 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=native' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-O3' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-Werror' 13796s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13796s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-vfpv4' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=armv8.2-a+fp16' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13796s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13796s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13796s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13796s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13796s E INFO: building 'test_array_from_pyobj_ext' extension 13796s E INFO: compiling C sources 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13796s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13796s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13796s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13796s E 14 | #include 13796s E | ^~~~~~~~~~ 13796s E In file included from fortranobject.c:2: 13796s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13796s E 7 | #include 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E compilation terminated. 13796s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13796s E INFO: 13796s E ########### EXT COMPILER OPTIMIZATION ########### 13796s E INFO: Platform : 13796s E Architecture: armhf 13796s E Compiler : gcc 13796s E 13796s E CPU baseline : 13796s E Requested : 'min' 13796s E Enabled : none 13796s E Flags : none 13796s E Extra checks: none 13796s E 13796s E CPU dispatch : 13796s E Requested : 'max -xop -fma4' 13796s E Enabled : none 13796s E Generated : none 13796s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13796s 13796s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13796s d = '/tmp/tmpjj8q074z' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s err = None 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s kw = {} 13796s module_name = 'test_array_from_pyobj_ext' 13796s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13796s p = 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13796s _____________ ERROR at setup of TestSharedMemory.test_hidden[INT] ______________ 13796s 13796s def setup_module(): 13796s """ 13796s Build the required testing extension module 13796s 13796s """ 13796s global wrap 13796s 13796s # Check compiler availability first 13796s if not util.has_c_compiler(): 13796s pytest.skip("No C compiler available") 13796s 13796s if wrap is None: 13796s config_code = """ 13796s config.add_extension('test_array_from_pyobj_ext', 13796s sources=['wrapmodule.c', 'fortranobject.c'], 13796s define_macros=[]) 13796s """ 13796s d = os.path.dirname(__file__) 13796s src = [ 13796s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13796s util.getpath("src", "fortranobject.c"), 13796s util.getpath("src", "fortranobject.h"), 13796s ] 13796s > wrap = util.build_module_distutils(src, config_code, 13796s "test_array_from_pyobj_ext") 13796s 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13796s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13796s memo[key] = func(*a, **kw) 13796s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13796s func = 13796s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13796s kw = {} 13796s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s 13796s @_memoize 13796s def build_module_distutils(source_files, config_code, module_name, **kw): 13796s """ 13796s Build a module via distutils and import it. 13796s 13796s """ 13796s d = get_module_dir() 13796s 13796s # Copy files 13796s dst_sources = [] 13796s for fn in source_files: 13796s if not os.path.isfile(fn): 13796s raise RuntimeError("%s is not a file" % fn) 13796s dst = os.path.join(d, os.path.basename(fn)) 13796s shutil.copyfile(fn, dst) 13796s dst_sources.append(dst) 13796s 13796s # Build script 13796s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13796s 13796s code = fr""" 13796s import os 13796s import sys 13796s sys.path = {repr(sys.path)} 13796s 13796s def configuration(parent_name='',top_path=None): 13796s from numpy.distutils.misc_util import Configuration 13796s config = Configuration('', parent_name, top_path) 13796s {config_code} 13796s return config 13796s 13796s if __name__ == "__main__": 13796s from numpy.distutils.core import setup 13796s setup(configuration=configuration) 13796s """ 13796s script = os.path.join(d, get_temp_module_name() + ".py") 13796s dst_sources.append(script) 13796s with open(script, "wb") as f: 13796s f.write(asbytes(code)) 13796s 13796s # Build 13796s cwd = os.getcwd() 13796s try: 13796s os.chdir(d) 13796s cmd = [sys.executable, script, "build_ext", "-i"] 13796s p = subprocess.Popen(cmd, 13796s stdout=subprocess.PIPE, 13796s stderr=subprocess.STDOUT) 13796s out, err = p.communicate() 13796s if p.returncode != 0: 13796s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13796s (cmd[4:], asstr(out))) 13796s E RuntimeError: Running distutils build failed: [] 13796s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13796s E 13796s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13796s E of the deprecation of `distutils` itself. It will be removed for 13796s E Python >= 3.12. For older Python versions it will remain present. 13796s E It is recommended to use `setuptools < 60.0` for those Python versions. 13796s E For more details, see: 13796s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13796s E 13796s E 13796s E from numpy.distutils.core import setup 13796s E running build_ext 13796s E running build_src 13796s E INFO: build_src 13796s E INFO: building extension "test_array_from_pyobj_ext" sources 13796s E INFO: build_src: building npy-pkg config files 13796s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13796s E !! 13796s E 13796s E ******************************************************************************** 13796s E Please avoid running ``setup.py`` directly. 13796s E Instead, use pypa/build, pypa/installer or other 13796s E standards-based tools. 13796s E 13796s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13796s E ******************************************************************************** 13796s E 13796s E !! 13796s E self.initialize_options() 13796s E INFO: customize UnixCCompiler 13796s E INFO: customize UnixCCompiler using build_ext 13796s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/tmp 13796s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/usr 13796s E creating /tmp/tmppq19o2st/usr/lib 13796s E creating /tmp/tmppq19o2st/usr/lib/python3 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=native' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-O3' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-Werror' 13796s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13796s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-vfpv4' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=armv8.2-a+fp16' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13796s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13796s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13796s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13796s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13796s E INFO: building 'test_array_from_pyobj_ext' extension 13796s E INFO: compiling C sources 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13796s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13796s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13796s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13796s E 14 | #include 13796s E | ^~~~~~~~~~ 13796s E In file included from fortranobject.c:2: 13796s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13796s E 7 | #include 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E compilation terminated. 13796s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13796s E INFO: 13796s E ########### EXT COMPILER OPTIMIZATION ########### 13796s E INFO: Platform : 13796s E Architecture: armhf 13796s E Compiler : gcc 13796s E 13796s E CPU baseline : 13796s E Requested : 'min' 13796s E Enabled : none 13796s E Flags : none 13796s E Extra checks: none 13796s E 13796s E CPU dispatch : 13796s E Requested : 'max -xop -fma4' 13796s E Enabled : none 13796s E Generated : none 13796s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13796s 13796s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13796s d = '/tmp/tmpjj8q074z' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s err = None 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s kw = {} 13796s module_name = 'test_array_from_pyobj_ext' 13796s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13796s p = 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13796s __________ ERROR at setup of TestSharedMemory.test_optional_none[INT] __________ 13796s 13796s def setup_module(): 13796s """ 13796s Build the required testing extension module 13796s 13796s """ 13796s global wrap 13796s 13796s # Check compiler availability first 13796s if not util.has_c_compiler(): 13796s pytest.skip("No C compiler available") 13796s 13796s if wrap is None: 13796s config_code = """ 13796s config.add_extension('test_array_from_pyobj_ext', 13796s sources=['wrapmodule.c', 'fortranobject.c'], 13796s define_macros=[]) 13796s """ 13796s d = os.path.dirname(__file__) 13796s src = [ 13796s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13796s util.getpath("src", "fortranobject.c"), 13796s util.getpath("src", "fortranobject.h"), 13796s ] 13796s > wrap = util.build_module_distutils(src, config_code, 13796s "test_array_from_pyobj_ext") 13796s 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13796s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13796s memo[key] = func(*a, **kw) 13796s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13796s func = 13796s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13796s kw = {} 13796s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s 13796s @_memoize 13796s def build_module_distutils(source_files, config_code, module_name, **kw): 13796s """ 13796s Build a module via distutils and import it. 13796s 13796s """ 13796s d = get_module_dir() 13796s 13796s # Copy files 13796s dst_sources = [] 13796s for fn in source_files: 13796s if not os.path.isfile(fn): 13796s raise RuntimeError("%s is not a file" % fn) 13796s dst = os.path.join(d, os.path.basename(fn)) 13796s shutil.copyfile(fn, dst) 13796s dst_sources.append(dst) 13796s 13796s # Build script 13796s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13796s 13796s code = fr""" 13796s import os 13796s import sys 13796s sys.path = {repr(sys.path)} 13796s 13796s def configuration(parent_name='',top_path=None): 13796s from numpy.distutils.misc_util import Configuration 13796s config = Configuration('', parent_name, top_path) 13796s {config_code} 13796s return config 13796s 13796s if __name__ == "__main__": 13796s from numpy.distutils.core import setup 13796s setup(configuration=configuration) 13796s """ 13796s script = os.path.join(d, get_temp_module_name() + ".py") 13796s dst_sources.append(script) 13796s with open(script, "wb") as f: 13796s f.write(asbytes(code)) 13796s 13796s # Build 13796s cwd = os.getcwd() 13796s try: 13796s os.chdir(d) 13796s cmd = [sys.executable, script, "build_ext", "-i"] 13796s p = subprocess.Popen(cmd, 13796s stdout=subprocess.PIPE, 13796s stderr=subprocess.STDOUT) 13796s out, err = p.communicate() 13796s if p.returncode != 0: 13796s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13796s (cmd[4:], asstr(out))) 13796s E RuntimeError: Running distutils build failed: [] 13796s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13796s E 13796s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13796s E of the deprecation of `distutils` itself. It will be removed for 13796s E Python >= 3.12. For older Python versions it will remain present. 13796s E It is recommended to use `setuptools < 60.0` for those Python versions. 13796s E For more details, see: 13796s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13796s E 13796s E 13796s E from numpy.distutils.core import setup 13796s E running build_ext 13796s E running build_src 13796s E INFO: build_src 13796s E INFO: building extension "test_array_from_pyobj_ext" sources 13796s E INFO: build_src: building npy-pkg config files 13796s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13796s E !! 13796s E 13796s E ******************************************************************************** 13796s E Please avoid running ``setup.py`` directly. 13796s E Instead, use pypa/build, pypa/installer or other 13796s E standards-based tools. 13796s E 13796s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13796s E ******************************************************************************** 13796s E 13796s E !! 13796s E self.initialize_options() 13796s E INFO: customize UnixCCompiler 13796s E INFO: customize UnixCCompiler using build_ext 13796s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/tmp 13796s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/usr 13796s E creating /tmp/tmppq19o2st/usr/lib 13796s E creating /tmp/tmppq19o2st/usr/lib/python3 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=native' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-O3' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-Werror' 13796s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13796s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-vfpv4' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=armv8.2-a+fp16' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13796s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13796s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13796s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13796s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13796s E INFO: building 'test_array_from_pyobj_ext' extension 13796s E INFO: compiling C sources 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13796s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13796s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13796s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13796s E 14 | #include 13796s E | ^~~~~~~~~~ 13796s E In file included from fortranobject.c:2: 13796s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13796s E 7 | #include 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E compilation terminated. 13796s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13796s E INFO: 13796s E ########### EXT COMPILER OPTIMIZATION ########### 13796s E INFO: Platform : 13796s E Architecture: armhf 13796s E Compiler : gcc 13796s E 13796s E CPU baseline : 13796s E Requested : 'min' 13796s E Enabled : none 13796s E Flags : none 13796s E Extra checks: none 13796s E 13796s E CPU dispatch : 13796s E Requested : 'max -xop -fma4' 13796s E Enabled : none 13796s E Generated : none 13796s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13796s 13796s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13796s d = '/tmp/tmpjj8q074z' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s err = None 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s kw = {} 13796s module_name = 'test_array_from_pyobj_ext' 13796s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13796s p = 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13796s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[INT] ________ 13796s 13796s def setup_module(): 13796s """ 13796s Build the required testing extension module 13796s 13796s """ 13796s global wrap 13796s 13796s # Check compiler availability first 13796s if not util.has_c_compiler(): 13796s pytest.skip("No C compiler available") 13796s 13796s if wrap is None: 13796s config_code = """ 13796s config.add_extension('test_array_from_pyobj_ext', 13796s sources=['wrapmodule.c', 'fortranobject.c'], 13796s define_macros=[]) 13796s """ 13796s d = os.path.dirname(__file__) 13796s src = [ 13796s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13796s util.getpath("src", "fortranobject.c"), 13796s util.getpath("src", "fortranobject.h"), 13796s ] 13796s > wrap = util.build_module_distutils(src, config_code, 13796s "test_array_from_pyobj_ext") 13796s 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13796s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13796s memo[key] = func(*a, **kw) 13796s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13796s func = 13796s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13796s kw = {} 13796s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s 13796s @_memoize 13796s def build_module_distutils(source_files, config_code, module_name, **kw): 13796s """ 13796s Build a module via distutils and import it. 13796s 13796s """ 13796s d = get_module_dir() 13796s 13796s # Copy files 13796s dst_sources = [] 13796s for fn in source_files: 13796s if not os.path.isfile(fn): 13796s raise RuntimeError("%s is not a file" % fn) 13796s dst = os.path.join(d, os.path.basename(fn)) 13796s shutil.copyfile(fn, dst) 13796s dst_sources.append(dst) 13796s 13796s # Build script 13796s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13796s 13796s code = fr""" 13796s import os 13796s import sys 13796s sys.path = {repr(sys.path)} 13796s 13796s def configuration(parent_name='',top_path=None): 13796s from numpy.distutils.misc_util import Configuration 13796s config = Configuration('', parent_name, top_path) 13796s {config_code} 13796s return config 13796s 13796s if __name__ == "__main__": 13796s from numpy.distutils.core import setup 13796s setup(configuration=configuration) 13796s """ 13796s script = os.path.join(d, get_temp_module_name() + ".py") 13796s dst_sources.append(script) 13796s with open(script, "wb") as f: 13796s f.write(asbytes(code)) 13796s 13796s # Build 13796s cwd = os.getcwd() 13796s try: 13796s os.chdir(d) 13796s cmd = [sys.executable, script, "build_ext", "-i"] 13796s p = subprocess.Popen(cmd, 13796s stdout=subprocess.PIPE, 13796s stderr=subprocess.STDOUT) 13796s out, err = p.communicate() 13796s if p.returncode != 0: 13796s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13796s (cmd[4:], asstr(out))) 13796s E RuntimeError: Running distutils build failed: [] 13796s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13796s E 13796s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13796s E of the deprecation of `distutils` itself. It will be removed for 13796s E Python >= 3.12. For older Python versions it will remain present. 13796s E It is recommended to use `setuptools < 60.0` for those Python versions. 13796s E For more details, see: 13796s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13796s E 13796s E 13796s E from numpy.distutils.core import setup 13796s E running build_ext 13796s E running build_src 13796s E INFO: build_src 13796s E INFO: building extension "test_array_from_pyobj_ext" sources 13796s E INFO: build_src: building npy-pkg config files 13796s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13796s E !! 13796s E 13796s E ******************************************************************************** 13796s E Please avoid running ``setup.py`` directly. 13796s E Instead, use pypa/build, pypa/installer or other 13796s E standards-based tools. 13796s E 13796s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13796s E ******************************************************************************** 13796s E 13796s E !! 13796s E self.initialize_options() 13796s E INFO: customize UnixCCompiler 13796s E INFO: customize UnixCCompiler using build_ext 13796s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/tmp 13796s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/usr 13796s E creating /tmp/tmppq19o2st/usr/lib 13796s E creating /tmp/tmppq19o2st/usr/lib/python3 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=native' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-O3' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-Werror' 13796s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13796s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-vfpv4' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=armv8.2-a+fp16' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13796s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13796s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13796s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13796s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13796s E INFO: building 'test_array_from_pyobj_ext' extension 13796s E INFO: compiling C sources 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13796s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13796s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13796s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13796s E 14 | #include 13796s E | ^~~~~~~~~~ 13796s E In file included from fortranobject.c:2: 13796s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13796s E 7 | #include 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E compilation terminated. 13796s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13796s E INFO: 13796s E ########### EXT COMPILER OPTIMIZATION ########### 13796s E INFO: Platform : 13796s E Architecture: armhf 13796s E Compiler : gcc 13796s E 13796s E CPU baseline : 13796s E Requested : 'min' 13796s E Enabled : none 13796s E Flags : none 13796s E Extra checks: none 13796s E 13796s E CPU dispatch : 13796s E Requested : 'max -xop -fma4' 13796s E Enabled : none 13796s E Generated : none 13796s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13796s 13796s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13796s d = '/tmp/tmpjj8q074z' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s err = None 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s kw = {} 13796s module_name = 'test_array_from_pyobj_ext' 13796s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13796s p = 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13796s _______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[INT] _______ 13796s 13796s def setup_module(): 13796s """ 13796s Build the required testing extension module 13796s 13796s """ 13796s global wrap 13796s 13796s # Check compiler availability first 13796s if not util.has_c_compiler(): 13796s pytest.skip("No C compiler available") 13796s 13796s if wrap is None: 13796s config_code = """ 13796s config.add_extension('test_array_from_pyobj_ext', 13796s sources=['wrapmodule.c', 'fortranobject.c'], 13796s define_macros=[]) 13796s """ 13796s d = os.path.dirname(__file__) 13796s src = [ 13796s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13796s util.getpath("src", "fortranobject.c"), 13796s util.getpath("src", "fortranobject.h"), 13796s ] 13796s > wrap = util.build_module_distutils(src, config_code, 13796s "test_array_from_pyobj_ext") 13796s 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13796s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13796s memo[key] = func(*a, **kw) 13796s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13796s func = 13796s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13796s kw = {} 13796s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s 13796s @_memoize 13796s def build_module_distutils(source_files, config_code, module_name, **kw): 13796s """ 13796s Build a module via distutils and import it. 13796s 13796s """ 13796s d = get_module_dir() 13796s 13796s # Copy files 13796s dst_sources = [] 13796s for fn in source_files: 13796s if not os.path.isfile(fn): 13796s raise RuntimeError("%s is not a file" % fn) 13796s dst = os.path.join(d, os.path.basename(fn)) 13796s shutil.copyfile(fn, dst) 13796s dst_sources.append(dst) 13796s 13796s # Build script 13796s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13796s 13796s code = fr""" 13796s import os 13796s import sys 13796s sys.path = {repr(sys.path)} 13796s 13796s def configuration(parent_name='',top_path=None): 13796s from numpy.distutils.misc_util import Configuration 13796s config = Configuration('', parent_name, top_path) 13796s {config_code} 13796s return config 13796s 13796s if __name__ == "__main__": 13796s from numpy.distutils.core import setup 13796s setup(configuration=configuration) 13796s """ 13796s script = os.path.join(d, get_temp_module_name() + ".py") 13796s dst_sources.append(script) 13796s with open(script, "wb") as f: 13796s f.write(asbytes(code)) 13796s 13796s # Build 13796s cwd = os.getcwd() 13796s try: 13796s os.chdir(d) 13796s cmd = [sys.executable, script, "build_ext", "-i"] 13796s p = subprocess.Popen(cmd, 13796s stdout=subprocess.PIPE, 13796s stderr=subprocess.STDOUT) 13796s out, err = p.communicate() 13796s if p.returncode != 0: 13796s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13796s (cmd[4:], asstr(out))) 13796s E RuntimeError: Running distutils build failed: [] 13796s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13796s E 13796s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13796s E of the deprecation of `distutils` itself. It will be removed for 13796s E Python >= 3.12. For older Python versions it will remain present. 13796s E It is recommended to use `setuptools < 60.0` for those Python versions. 13796s E For more details, see: 13796s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13796s E 13796s E 13796s E from numpy.distutils.core import setup 13796s E running build_ext 13796s E running build_src 13796s E INFO: build_src 13796s E INFO: building extension "test_array_from_pyobj_ext" sources 13796s E INFO: build_src: building npy-pkg config files 13796s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13796s E !! 13796s E 13796s E ******************************************************************************** 13796s E Please avoid running ``setup.py`` directly. 13796s E Instead, use pypa/build, pypa/installer or other 13796s E standards-based tools. 13796s E 13796s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13796s E ******************************************************************************** 13796s E 13796s E !! 13796s E self.initialize_options() 13796s E INFO: customize UnixCCompiler 13796s E INFO: customize UnixCCompiler using build_ext 13796s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/tmp 13796s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/usr 13796s E creating /tmp/tmppq19o2st/usr/lib 13796s E creating /tmp/tmppq19o2st/usr/lib/python3 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=native' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-O3' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-Werror' 13796s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13796s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-vfpv4' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=armv8.2-a+fp16' 13796s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13796s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13796s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13796s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13796s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13796s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13796s E 9 | # include_next 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E 13796s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13796s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13796s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13796s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13796s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13796s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13796s E INFO: building 'test_array_from_pyobj_ext' extension 13796s E INFO: compiling C sources 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13796s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13796s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13796s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13796s E 14 | #include 13796s E | ^~~~~~~~~~ 13796s E In file included from fortranobject.c:2: 13796s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13796s E 7 | #include 13796s E | ^~~~~~~~~~ 13796s E compilation terminated. 13796s E compilation terminated. 13796s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13796s E INFO: 13796s E ########### EXT COMPILER OPTIMIZATION ########### 13796s E INFO: Platform : 13796s E Architecture: armhf 13796s E Compiler : gcc 13796s E 13796s E CPU baseline : 13796s E Requested : 'min' 13796s E Enabled : none 13796s E Flags : none 13796s E Extra checks: none 13796s E 13796s E CPU dispatch : 13796s E Requested : 'max -xop -fma4' 13796s E Enabled : none 13796s E Generated : none 13796s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13796s 13796s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13796s d = '/tmp/tmpjj8q074z' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s err = None 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s kw = {} 13796s module_name = 'test_array_from_pyobj_ext' 13796s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13796s p = 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13796s _____________ ERROR at setup of TestSharedMemory.test_inplace[INT] _____________ 13796s 13796s def setup_module(): 13796s """ 13796s Build the required testing extension module 13796s 13796s """ 13796s global wrap 13796s 13796s # Check compiler availability first 13796s if not util.has_c_compiler(): 13796s pytest.skip("No C compiler available") 13796s 13796s if wrap is None: 13796s config_code = """ 13796s config.add_extension('test_array_from_pyobj_ext', 13796s sources=['wrapmodule.c', 'fortranobject.c'], 13796s define_macros=[]) 13796s """ 13796s d = os.path.dirname(__file__) 13796s src = [ 13796s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13796s util.getpath("src", "fortranobject.c"), 13796s util.getpath("src", "fortranobject.h"), 13796s ] 13796s > wrap = util.build_module_distutils(src, config_code, 13796s "test_array_from_pyobj_ext") 13796s 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13796s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13796s memo[key] = func(*a, **kw) 13796s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13796s func = 13796s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13796s kw = {} 13796s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13796s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13796s 13796s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13796s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13796s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13796s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13796s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13796s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13796s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13796s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13796s 13796s @_memoize 13796s def build_module_distutils(source_files, config_code, module_name, **kw): 13796s """ 13796s Build a module via distutils and import it. 13796s 13796s """ 13796s d = get_module_dir() 13796s 13796s # Copy files 13796s dst_sources = [] 13796s for fn in source_files: 13796s if not os.path.isfile(fn): 13796s raise RuntimeError("%s is not a file" % fn) 13796s dst = os.path.join(d, os.path.basename(fn)) 13796s shutil.copyfile(fn, dst) 13796s dst_sources.append(dst) 13796s 13796s # Build script 13796s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13796s 13796s code = fr""" 13796s import os 13796s import sys 13796s sys.path = {repr(sys.path)} 13796s 13796s def configuration(parent_name='',top_path=None): 13796s from numpy.distutils.misc_util import Configuration 13796s config = Configuration('', parent_name, top_path) 13796s {config_code} 13796s return config 13796s 13796s if __name__ == "__main__": 13796s from numpy.distutils.core import setup 13796s setup(configuration=configuration) 13796s """ 13796s script = os.path.join(d, get_temp_module_name() + ".py") 13796s dst_sources.append(script) 13796s with open(script, "wb") as f: 13796s f.write(asbytes(code)) 13796s 13796s # Build 13796s cwd = os.getcwd() 13796s try: 13796s os.chdir(d) 13796s cmd = [sys.executable, script, "build_ext", "-i"] 13796s p = subprocess.Popen(cmd, 13796s stdout=subprocess.PIPE, 13796s stderr=subprocess.STDOUT) 13796s out, err = p.communicate() 13796s if p.returncode != 0: 13796s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13796s (cmd[4:], asstr(out))) 13796s E RuntimeError: Running distutils build failed: [] 13796s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13796s E 13796s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13796s E of the deprecation of `distutils` itself. It will be removed for 13796s E Python >= 3.12. For older Python versions it will remain present. 13796s E It is recommended to use `setuptools < 60.0` for those Python versions. 13796s E For more details, see: 13796s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13796s E 13796s E 13796s E from numpy.distutils.core import setup 13796s E running build_ext 13796s E running build_src 13796s E INFO: build_src 13796s E INFO: building extension "test_array_from_pyobj_ext" sources 13796s E INFO: build_src: building npy-pkg config files 13796s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13796s E !! 13796s E 13796s E ******************************************************************************** 13796s E Please avoid running ``setup.py`` directly. 13796s E Instead, use pypa/build, pypa/installer or other 13796s E standards-based tools. 13796s E 13796s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13796s E ******************************************************************************** 13796s E 13796s E !! 13796s E self.initialize_options() 13796s E INFO: customize UnixCCompiler 13796s E INFO: customize UnixCCompiler using build_ext 13796s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/tmp 13796s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E creating /tmp/tmppq19o2st/usr 13796s E creating /tmp/tmppq19o2st/usr/lib 13796s E creating /tmp/tmppq19o2st/usr/lib/python3 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13796s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-march=native' 13796s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13796s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13796s E 13796s E INFO: compile options: '-I/usr/include/python3.12 -c' 13796s E extra options: '-O3' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-Werror' 13797s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13797s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-vfpv4' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=armv8.2-a+fp16' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13797s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13797s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13797s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13797s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13797s E INFO: building 'test_array_from_pyobj_ext' extension 13797s E INFO: compiling C sources 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13797s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13797s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13797s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13797s E 14 | #include 13797s E | ^~~~~~~~~~ 13797s E In file included from fortranobject.c:2: 13797s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13797s E 7 | #include 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E compilation terminated. 13797s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13797s E INFO: 13797s E ########### EXT COMPILER OPTIMIZATION ########### 13797s E INFO: Platform : 13797s E Architecture: armhf 13797s E Compiler : gcc 13797s E 13797s E CPU baseline : 13797s E Requested : 'min' 13797s E Enabled : none 13797s E Flags : none 13797s E Extra checks: none 13797s E 13797s E CPU dispatch : 13797s E Requested : 'max -xop -fma4' 13797s E Enabled : none 13797s E Generated : none 13797s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13797s 13797s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13797s d = '/tmp/tmpjj8q074z' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s err = None 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s kw = {} 13797s module_name = 'test_array_from_pyobj_ext' 13797s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13797s p = 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13797s ______ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[INT] ______ 13797s 13797s def setup_module(): 13797s """ 13797s Build the required testing extension module 13797s 13797s """ 13797s global wrap 13797s 13797s # Check compiler availability first 13797s if not util.has_c_compiler(): 13797s pytest.skip("No C compiler available") 13797s 13797s if wrap is None: 13797s config_code = """ 13797s config.add_extension('test_array_from_pyobj_ext', 13797s sources=['wrapmodule.c', 'fortranobject.c'], 13797s define_macros=[]) 13797s """ 13797s d = os.path.dirname(__file__) 13797s src = [ 13797s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13797s util.getpath("src", "fortranobject.c"), 13797s util.getpath("src", "fortranobject.h"), 13797s ] 13797s > wrap = util.build_module_distutils(src, config_code, 13797s "test_array_from_pyobj_ext") 13797s 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13797s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13797s memo[key] = func(*a, **kw) 13797s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13797s func = 13797s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13797s kw = {} 13797s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s 13797s @_memoize 13797s def build_module_distutils(source_files, config_code, module_name, **kw): 13797s """ 13797s Build a module via distutils and import it. 13797s 13797s """ 13797s d = get_module_dir() 13797s 13797s # Copy files 13797s dst_sources = [] 13797s for fn in source_files: 13797s if not os.path.isfile(fn): 13797s raise RuntimeError("%s is not a file" % fn) 13797s dst = os.path.join(d, os.path.basename(fn)) 13797s shutil.copyfile(fn, dst) 13797s dst_sources.append(dst) 13797s 13797s # Build script 13797s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13797s 13797s code = fr""" 13797s import os 13797s import sys 13797s sys.path = {repr(sys.path)} 13797s 13797s def configuration(parent_name='',top_path=None): 13797s from numpy.distutils.misc_util import Configuration 13797s config = Configuration('', parent_name, top_path) 13797s {config_code} 13797s return config 13797s 13797s if __name__ == "__main__": 13797s from numpy.distutils.core import setup 13797s setup(configuration=configuration) 13797s """ 13797s script = os.path.join(d, get_temp_module_name() + ".py") 13797s dst_sources.append(script) 13797s with open(script, "wb") as f: 13797s f.write(asbytes(code)) 13797s 13797s # Build 13797s cwd = os.getcwd() 13797s try: 13797s os.chdir(d) 13797s cmd = [sys.executable, script, "build_ext", "-i"] 13797s p = subprocess.Popen(cmd, 13797s stdout=subprocess.PIPE, 13797s stderr=subprocess.STDOUT) 13797s out, err = p.communicate() 13797s if p.returncode != 0: 13797s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13797s (cmd[4:], asstr(out))) 13797s E RuntimeError: Running distutils build failed: [] 13797s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13797s E 13797s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13797s E of the deprecation of `distutils` itself. It will be removed for 13797s E Python >= 3.12. For older Python versions it will remain present. 13797s E It is recommended to use `setuptools < 60.0` for those Python versions. 13797s E For more details, see: 13797s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13797s E 13797s E 13797s E from numpy.distutils.core import setup 13797s E running build_ext 13797s E running build_src 13797s E INFO: build_src 13797s E INFO: building extension "test_array_from_pyobj_ext" sources 13797s E INFO: build_src: building npy-pkg config files 13797s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13797s E !! 13797s E 13797s E ******************************************************************************** 13797s E Please avoid running ``setup.py`` directly. 13797s E Instead, use pypa/build, pypa/installer or other 13797s E standards-based tools. 13797s E 13797s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13797s E ******************************************************************************** 13797s E 13797s E !! 13797s E self.initialize_options() 13797s E INFO: customize UnixCCompiler 13797s E INFO: customize UnixCCompiler using build_ext 13797s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/tmp 13797s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/usr 13797s E creating /tmp/tmppq19o2st/usr/lib 13797s E creating /tmp/tmppq19o2st/usr/lib/python3 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=native' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-O3' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-Werror' 13797s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13797s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-vfpv4' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=armv8.2-a+fp16' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13797s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13797s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13797s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13797s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13797s E INFO: building 'test_array_from_pyobj_ext' extension 13797s E INFO: compiling C sources 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13797s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13797s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13797s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13797s E 14 | #include 13797s E | ^~~~~~~~~~ 13797s E In file included from fortranobject.c:2: 13797s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13797s E 7 | #include 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E compilation terminated. 13797s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13797s E INFO: 13797s E ########### EXT COMPILER OPTIMIZATION ########### 13797s E INFO: Platform : 13797s E Architecture: armhf 13797s E Compiler : gcc 13797s E 13797s E CPU baseline : 13797s E Requested : 'min' 13797s E Enabled : none 13797s E Flags : none 13797s E Extra checks: none 13797s E 13797s E CPU dispatch : 13797s E Requested : 'max -xop -fma4' 13797s E Enabled : none 13797s E Generated : none 13797s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13797s 13797s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13797s d = '/tmp/tmpjj8q074z' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s err = None 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s kw = {} 13797s module_name = 'test_array_from_pyobj_ext' 13797s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13797s p = 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13797s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[UINT] __________ 13797s 13797s def setup_module(): 13797s """ 13797s Build the required testing extension module 13797s 13797s """ 13797s global wrap 13797s 13797s # Check compiler availability first 13797s if not util.has_c_compiler(): 13797s pytest.skip("No C compiler available") 13797s 13797s if wrap is None: 13797s config_code = """ 13797s config.add_extension('test_array_from_pyobj_ext', 13797s sources=['wrapmodule.c', 'fortranobject.c'], 13797s define_macros=[]) 13797s """ 13797s d = os.path.dirname(__file__) 13797s src = [ 13797s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13797s util.getpath("src", "fortranobject.c"), 13797s util.getpath("src", "fortranobject.h"), 13797s ] 13797s > wrap = util.build_module_distutils(src, config_code, 13797s "test_array_from_pyobj_ext") 13797s 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13797s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13797s memo[key] = func(*a, **kw) 13797s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13797s func = 13797s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13797s kw = {} 13797s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s 13797s @_memoize 13797s def build_module_distutils(source_files, config_code, module_name, **kw): 13797s """ 13797s Build a module via distutils and import it. 13797s 13797s """ 13797s d = get_module_dir() 13797s 13797s # Copy files 13797s dst_sources = [] 13797s for fn in source_files: 13797s if not os.path.isfile(fn): 13797s raise RuntimeError("%s is not a file" % fn) 13797s dst = os.path.join(d, os.path.basename(fn)) 13797s shutil.copyfile(fn, dst) 13797s dst_sources.append(dst) 13797s 13797s # Build script 13797s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13797s 13797s code = fr""" 13797s import os 13797s import sys 13797s sys.path = {repr(sys.path)} 13797s 13797s def configuration(parent_name='',top_path=None): 13797s from numpy.distutils.misc_util import Configuration 13797s config = Configuration('', parent_name, top_path) 13797s {config_code} 13797s return config 13797s 13797s if __name__ == "__main__": 13797s from numpy.distutils.core import setup 13797s setup(configuration=configuration) 13797s """ 13797s script = os.path.join(d, get_temp_module_name() + ".py") 13797s dst_sources.append(script) 13797s with open(script, "wb") as f: 13797s f.write(asbytes(code)) 13797s 13797s # Build 13797s cwd = os.getcwd() 13797s try: 13797s os.chdir(d) 13797s cmd = [sys.executable, script, "build_ext", "-i"] 13797s p = subprocess.Popen(cmd, 13797s stdout=subprocess.PIPE, 13797s stderr=subprocess.STDOUT) 13797s out, err = p.communicate() 13797s if p.returncode != 0: 13797s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13797s (cmd[4:], asstr(out))) 13797s E RuntimeError: Running distutils build failed: [] 13797s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13797s E 13797s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13797s E of the deprecation of `distutils` itself. It will be removed for 13797s E Python >= 3.12. For older Python versions it will remain present. 13797s E It is recommended to use `setuptools < 60.0` for those Python versions. 13797s E For more details, see: 13797s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13797s E 13797s E 13797s E from numpy.distutils.core import setup 13797s E running build_ext 13797s E running build_src 13797s E INFO: build_src 13797s E INFO: building extension "test_array_from_pyobj_ext" sources 13797s E INFO: build_src: building npy-pkg config files 13797s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13797s E !! 13797s E 13797s E ******************************************************************************** 13797s E Please avoid running ``setup.py`` directly. 13797s E Instead, use pypa/build, pypa/installer or other 13797s E standards-based tools. 13797s E 13797s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13797s E ******************************************************************************** 13797s E 13797s E !! 13797s E self.initialize_options() 13797s E INFO: customize UnixCCompiler 13797s E INFO: customize UnixCCompiler using build_ext 13797s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/tmp 13797s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/usr 13797s E creating /tmp/tmppq19o2st/usr/lib 13797s E creating /tmp/tmppq19o2st/usr/lib/python3 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=native' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-O3' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-Werror' 13797s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13797s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-vfpv4' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=armv8.2-a+fp16' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13797s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13797s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13797s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13797s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13797s E INFO: building 'test_array_from_pyobj_ext' extension 13797s E INFO: compiling C sources 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13797s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13797s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13797s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13797s E 14 | #include 13797s E | ^~~~~~~~~~ 13797s E In file included from fortranobject.c:2: 13797s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13797s E 7 | #include 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E compilation terminated. 13797s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13797s E INFO: 13797s E ########### EXT COMPILER OPTIMIZATION ########### 13797s E INFO: Platform : 13797s E Architecture: armhf 13797s E Compiler : gcc 13797s E 13797s E CPU baseline : 13797s E Requested : 'min' 13797s E Enabled : none 13797s E Flags : none 13797s E Extra checks: none 13797s E 13797s E CPU dispatch : 13797s E Requested : 'max -xop -fma4' 13797s E Enabled : none 13797s E Generated : none 13797s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13797s 13797s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13797s d = '/tmp/tmpjj8q074z' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s err = None 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s kw = {} 13797s module_name = 'test_array_from_pyobj_ext' 13797s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13797s p = 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13797s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[UINT] ________ 13797s 13797s def setup_module(): 13797s """ 13797s Build the required testing extension module 13797s 13797s """ 13797s global wrap 13797s 13797s # Check compiler availability first 13797s if not util.has_c_compiler(): 13797s pytest.skip("No C compiler available") 13797s 13797s if wrap is None: 13797s config_code = """ 13797s config.add_extension('test_array_from_pyobj_ext', 13797s sources=['wrapmodule.c', 'fortranobject.c'], 13797s define_macros=[]) 13797s """ 13797s d = os.path.dirname(__file__) 13797s src = [ 13797s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13797s util.getpath("src", "fortranobject.c"), 13797s util.getpath("src", "fortranobject.h"), 13797s ] 13797s > wrap = util.build_module_distutils(src, config_code, 13797s "test_array_from_pyobj_ext") 13797s 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13797s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13797s memo[key] = func(*a, **kw) 13797s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13797s func = 13797s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13797s kw = {} 13797s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s 13797s @_memoize 13797s def build_module_distutils(source_files, config_code, module_name, **kw): 13797s """ 13797s Build a module via distutils and import it. 13797s 13797s """ 13797s d = get_module_dir() 13797s 13797s # Copy files 13797s dst_sources = [] 13797s for fn in source_files: 13797s if not os.path.isfile(fn): 13797s raise RuntimeError("%s is not a file" % fn) 13797s dst = os.path.join(d, os.path.basename(fn)) 13797s shutil.copyfile(fn, dst) 13797s dst_sources.append(dst) 13797s 13797s # Build script 13797s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13797s 13797s code = fr""" 13797s import os 13797s import sys 13797s sys.path = {repr(sys.path)} 13797s 13797s def configuration(parent_name='',top_path=None): 13797s from numpy.distutils.misc_util import Configuration 13797s config = Configuration('', parent_name, top_path) 13797s {config_code} 13797s return config 13797s 13797s if __name__ == "__main__": 13797s from numpy.distutils.core import setup 13797s setup(configuration=configuration) 13797s """ 13797s script = os.path.join(d, get_temp_module_name() + ".py") 13797s dst_sources.append(script) 13797s with open(script, "wb") as f: 13797s f.write(asbytes(code)) 13797s 13797s # Build 13797s cwd = os.getcwd() 13797s try: 13797s os.chdir(d) 13797s cmd = [sys.executable, script, "build_ext", "-i"] 13797s p = subprocess.Popen(cmd, 13797s stdout=subprocess.PIPE, 13797s stderr=subprocess.STDOUT) 13797s out, err = p.communicate() 13797s if p.returncode != 0: 13797s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13797s (cmd[4:], asstr(out))) 13797s E RuntimeError: Running distutils build failed: [] 13797s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13797s E 13797s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13797s E of the deprecation of `distutils` itself. It will be removed for 13797s E Python >= 3.12. For older Python versions it will remain present. 13797s E It is recommended to use `setuptools < 60.0` for those Python versions. 13797s E For more details, see: 13797s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13797s E 13797s E 13797s E from numpy.distutils.core import setup 13797s E running build_ext 13797s E running build_src 13797s E INFO: build_src 13797s E INFO: building extension "test_array_from_pyobj_ext" sources 13797s E INFO: build_src: building npy-pkg config files 13797s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13797s E !! 13797s E 13797s E ******************************************************************************** 13797s E Please avoid running ``setup.py`` directly. 13797s E Instead, use pypa/build, pypa/installer or other 13797s E standards-based tools. 13797s E 13797s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13797s E ******************************************************************************** 13797s E 13797s E !! 13797s E self.initialize_options() 13797s E INFO: customize UnixCCompiler 13797s E INFO: customize UnixCCompiler using build_ext 13797s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/tmp 13797s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/usr 13797s E creating /tmp/tmppq19o2st/usr/lib 13797s E creating /tmp/tmppq19o2st/usr/lib/python3 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=native' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-O3' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-Werror' 13797s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13797s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-vfpv4' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=armv8.2-a+fp16' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13797s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13797s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13797s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13797s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13797s E INFO: building 'test_array_from_pyobj_ext' extension 13797s E INFO: compiling C sources 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13797s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13797s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13797s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13797s E 14 | #include 13797s E | ^~~~~~~~~~ 13797s E In file included from fortranobject.c:2: 13797s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13797s E 7 | #include 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E compilation terminated. 13797s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13797s E INFO: 13797s E ########### EXT COMPILER OPTIMIZATION ########### 13797s E INFO: Platform : 13797s E Architecture: armhf 13797s E Compiler : gcc 13797s E 13797s E CPU baseline : 13797s E Requested : 'min' 13797s E Enabled : none 13797s E Flags : none 13797s E Extra checks: none 13797s E 13797s E CPU dispatch : 13797s E Requested : 'max -xop -fma4' 13797s E Enabled : none 13797s E Generated : none 13797s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13797s 13797s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13797s d = '/tmp/tmpjj8q074z' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s err = None 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s kw = {} 13797s module_name = 'test_array_from_pyobj_ext' 13797s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13797s p = 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13797s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-2seq-C-w] _______ 13797s 13797s def setup_module(): 13797s """ 13797s Build the required testing extension module 13797s 13797s """ 13797s global wrap 13797s 13797s # Check compiler availability first 13797s if not util.has_c_compiler(): 13797s pytest.skip("No C compiler available") 13797s 13797s if wrap is None: 13797s config_code = """ 13797s config.add_extension('test_array_from_pyobj_ext', 13797s sources=['wrapmodule.c', 'fortranobject.c'], 13797s define_macros=[]) 13797s """ 13797s d = os.path.dirname(__file__) 13797s src = [ 13797s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13797s util.getpath("src", "fortranobject.c"), 13797s util.getpath("src", "fortranobject.h"), 13797s ] 13797s > wrap = util.build_module_distutils(src, config_code, 13797s "test_array_from_pyobj_ext") 13797s 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13797s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13797s memo[key] = func(*a, **kw) 13797s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13797s func = 13797s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13797s kw = {} 13797s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s 13797s @_memoize 13797s def build_module_distutils(source_files, config_code, module_name, **kw): 13797s """ 13797s Build a module via distutils and import it. 13797s 13797s """ 13797s d = get_module_dir() 13797s 13797s # Copy files 13797s dst_sources = [] 13797s for fn in source_files: 13797s if not os.path.isfile(fn): 13797s raise RuntimeError("%s is not a file" % fn) 13797s dst = os.path.join(d, os.path.basename(fn)) 13797s shutil.copyfile(fn, dst) 13797s dst_sources.append(dst) 13797s 13797s # Build script 13797s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13797s 13797s code = fr""" 13797s import os 13797s import sys 13797s sys.path = {repr(sys.path)} 13797s 13797s def configuration(parent_name='',top_path=None): 13797s from numpy.distutils.misc_util import Configuration 13797s config = Configuration('', parent_name, top_path) 13797s {config_code} 13797s return config 13797s 13797s if __name__ == "__main__": 13797s from numpy.distutils.core import setup 13797s setup(configuration=configuration) 13797s """ 13797s script = os.path.join(d, get_temp_module_name() + ".py") 13797s dst_sources.append(script) 13797s with open(script, "wb") as f: 13797s f.write(asbytes(code)) 13797s 13797s # Build 13797s cwd = os.getcwd() 13797s try: 13797s os.chdir(d) 13797s cmd = [sys.executable, script, "build_ext", "-i"] 13797s p = subprocess.Popen(cmd, 13797s stdout=subprocess.PIPE, 13797s stderr=subprocess.STDOUT) 13797s out, err = p.communicate() 13797s if p.returncode != 0: 13797s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13797s (cmd[4:], asstr(out))) 13797s E RuntimeError: Running distutils build failed: [] 13797s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13797s E 13797s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13797s E of the deprecation of `distutils` itself. It will be removed for 13797s E Python >= 3.12. For older Python versions it will remain present. 13797s E It is recommended to use `setuptools < 60.0` for those Python versions. 13797s E For more details, see: 13797s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13797s E 13797s E 13797s E from numpy.distutils.core import setup 13797s E running build_ext 13797s E running build_src 13797s E INFO: build_src 13797s E INFO: building extension "test_array_from_pyobj_ext" sources 13797s E INFO: build_src: building npy-pkg config files 13797s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13797s E !! 13797s E 13797s E ******************************************************************************** 13797s E Please avoid running ``setup.py`` directly. 13797s E Instead, use pypa/build, pypa/installer or other 13797s E standards-based tools. 13797s E 13797s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13797s E ******************************************************************************** 13797s E 13797s E !! 13797s E self.initialize_options() 13797s E INFO: customize UnixCCompiler 13797s E INFO: customize UnixCCompiler using build_ext 13797s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/tmp 13797s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/usr 13797s E creating /tmp/tmppq19o2st/usr/lib 13797s E creating /tmp/tmppq19o2st/usr/lib/python3 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13797s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=native' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-O3' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-Werror' 13797s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13797s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-vfpv4' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13797s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-march=armv8.2-a+fp16' 13797s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/include/python3.12 -c' 13797s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13797s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13797s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13797s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13797s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13797s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13797s E 9 | # include_next 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E 13797s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13797s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13797s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13797s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13797s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13797s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13797s E INFO: building 'test_array_from_pyobj_ext' extension 13797s E INFO: compiling C sources 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13797s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13797s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13797s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13797s E 14 | #include 13797s E | ^~~~~~~~~~ 13797s E In file included from fortranobject.c:2: 13797s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13797s E 7 | #include 13797s E | ^~~~~~~~~~ 13797s E compilation terminated. 13797s E compilation terminated. 13797s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13797s E INFO: 13797s E ########### EXT COMPILER OPTIMIZATION ########### 13797s E INFO: Platform : 13797s E Architecture: armhf 13797s E Compiler : gcc 13797s E 13797s E CPU baseline : 13797s E Requested : 'min' 13797s E Enabled : none 13797s E Flags : none 13797s E Extra checks: none 13797s E 13797s E CPU dispatch : 13797s E Requested : 'max -xop -fma4' 13797s E Enabled : none 13797s E Generated : none 13797s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13797s 13797s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13797s d = '/tmp/tmpjj8q074z' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s err = None 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s kw = {} 13797s module_name = 'test_array_from_pyobj_ext' 13797s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13797s p = 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13797s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-2seq-C-ro] _______ 13797s 13797s def setup_module(): 13797s """ 13797s Build the required testing extension module 13797s 13797s """ 13797s global wrap 13797s 13797s # Check compiler availability first 13797s if not util.has_c_compiler(): 13797s pytest.skip("No C compiler available") 13797s 13797s if wrap is None: 13797s config_code = """ 13797s config.add_extension('test_array_from_pyobj_ext', 13797s sources=['wrapmodule.c', 'fortranobject.c'], 13797s define_macros=[]) 13797s """ 13797s d = os.path.dirname(__file__) 13797s src = [ 13797s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13797s util.getpath("src", "fortranobject.c"), 13797s util.getpath("src", "fortranobject.h"), 13797s ] 13797s > wrap = util.build_module_distutils(src, config_code, 13797s "test_array_from_pyobj_ext") 13797s 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13797s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13797s memo[key] = func(*a, **kw) 13797s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13797s func = 13797s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13797s kw = {} 13797s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13797s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13797s 13797s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13797s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13797s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13797s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13797s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13797s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13797s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13797s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13797s 13797s @_memoize 13797s def build_module_distutils(source_files, config_code, module_name, **kw): 13797s """ 13797s Build a module via distutils and import it. 13797s 13797s """ 13797s d = get_module_dir() 13797s 13797s # Copy files 13797s dst_sources = [] 13797s for fn in source_files: 13797s if not os.path.isfile(fn): 13797s raise RuntimeError("%s is not a file" % fn) 13797s dst = os.path.join(d, os.path.basename(fn)) 13797s shutil.copyfile(fn, dst) 13797s dst_sources.append(dst) 13797s 13797s # Build script 13797s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13797s 13797s code = fr""" 13797s import os 13797s import sys 13797s sys.path = {repr(sys.path)} 13797s 13797s def configuration(parent_name='',top_path=None): 13797s from numpy.distutils.misc_util import Configuration 13797s config = Configuration('', parent_name, top_path) 13797s {config_code} 13797s return config 13797s 13797s if __name__ == "__main__": 13797s from numpy.distutils.core import setup 13797s setup(configuration=configuration) 13797s """ 13797s script = os.path.join(d, get_temp_module_name() + ".py") 13797s dst_sources.append(script) 13797s with open(script, "wb") as f: 13797s f.write(asbytes(code)) 13797s 13797s # Build 13797s cwd = os.getcwd() 13797s try: 13797s os.chdir(d) 13797s cmd = [sys.executable, script, "build_ext", "-i"] 13797s p = subprocess.Popen(cmd, 13797s stdout=subprocess.PIPE, 13797s stderr=subprocess.STDOUT) 13797s out, err = p.communicate() 13797s if p.returncode != 0: 13797s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13797s (cmd[4:], asstr(out))) 13797s E RuntimeError: Running distutils build failed: [] 13797s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13797s E 13797s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13797s E of the deprecation of `distutils` itself. It will be removed for 13797s E Python >= 3.12. For older Python versions it will remain present. 13797s E It is recommended to use `setuptools < 60.0` for those Python versions. 13797s E For more details, see: 13797s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13797s E 13797s E 13797s E from numpy.distutils.core import setup 13797s E running build_ext 13797s E running build_src 13797s E INFO: build_src 13797s E INFO: building extension "test_array_from_pyobj_ext" sources 13797s E INFO: build_src: building npy-pkg config files 13797s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13797s E !! 13797s E 13797s E ******************************************************************************** 13797s E Please avoid running ``setup.py`` directly. 13797s E Instead, use pypa/build, pypa/installer or other 13797s E standards-based tools. 13797s E 13797s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13797s E ******************************************************************************** 13797s E 13797s E !! 13797s E self.initialize_options() 13797s E INFO: customize UnixCCompiler 13797s E INFO: customize UnixCCompiler using build_ext 13797s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13797s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13797s E 13797s E creating /tmp/tmppq19o2st/tmp 13798s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E creating /tmp/tmppq19o2st/usr 13798s E creating /tmp/tmppq19o2st/usr/lib 13798s E creating /tmp/tmppq19o2st/usr/lib/python3 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-march=native' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-O3' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-Werror' 13798s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13798s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-vfpv4' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-march=armv8.2-a+fp16' 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13798s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13798s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13798s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13798s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13798s E INFO: building 'test_array_from_pyobj_ext' extension 13798s E INFO: compiling C sources 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13798s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13798s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13798s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13798s E 14 | #include 13798s E | ^~~~~~~~~~ 13798s E In file included from fortranobject.c:2: 13798s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13798s E 7 | #include 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E compilation terminated. 13798s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13798s E INFO: 13798s E ########### EXT COMPILER OPTIMIZATION ########### 13798s E INFO: Platform : 13798s E Architecture: armhf 13798s E Compiler : gcc 13798s E 13798s E CPU baseline : 13798s E Requested : 'min' 13798s E Enabled : none 13798s E Flags : none 13798s E Extra checks: none 13798s E 13798s E CPU dispatch : 13798s E Requested : 'max -xop -fma4' 13798s E Enabled : none 13798s E Generated : none 13798s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13798s 13798s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13798s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13798s d = '/tmp/tmpjj8q074z' 13798s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13798s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13798s err = None 13798s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13798s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s kw = {} 13798s module_name = 'test_array_from_pyobj_ext' 13798s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13798s p = 13798s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13798s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-2seq-F-w] _______ 13798s 13798s def setup_module(): 13798s """ 13798s Build the required testing extension module 13798s 13798s """ 13798s global wrap 13798s 13798s # Check compiler availability first 13798s if not util.has_c_compiler(): 13798s pytest.skip("No C compiler available") 13798s 13798s if wrap is None: 13798s config_code = """ 13798s config.add_extension('test_array_from_pyobj_ext', 13798s sources=['wrapmodule.c', 'fortranobject.c'], 13798s define_macros=[]) 13798s """ 13798s d = os.path.dirname(__file__) 13798s src = [ 13798s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13798s util.getpath("src", "fortranobject.c"), 13798s util.getpath("src", "fortranobject.h"), 13798s ] 13798s > wrap = util.build_module_distutils(src, config_code, 13798s "test_array_from_pyobj_ext") 13798s 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13798s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13798s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13798s memo[key] = func(*a, **kw) 13798s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13798s func = 13798s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13798s kw = {} 13798s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13798s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13798s 13798s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13798s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13798s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13798s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13798s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13798s 13798s @_memoize 13798s def build_module_distutils(source_files, config_code, module_name, **kw): 13798s """ 13798s Build a module via distutils and import it. 13798s 13798s """ 13798s d = get_module_dir() 13798s 13798s # Copy files 13798s dst_sources = [] 13798s for fn in source_files: 13798s if not os.path.isfile(fn): 13798s raise RuntimeError("%s is not a file" % fn) 13798s dst = os.path.join(d, os.path.basename(fn)) 13798s shutil.copyfile(fn, dst) 13798s dst_sources.append(dst) 13798s 13798s # Build script 13798s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13798s 13798s code = fr""" 13798s import os 13798s import sys 13798s sys.path = {repr(sys.path)} 13798s 13798s def configuration(parent_name='',top_path=None): 13798s from numpy.distutils.misc_util import Configuration 13798s config = Configuration('', parent_name, top_path) 13798s {config_code} 13798s return config 13798s 13798s if __name__ == "__main__": 13798s from numpy.distutils.core import setup 13798s setup(configuration=configuration) 13798s """ 13798s script = os.path.join(d, get_temp_module_name() + ".py") 13798s dst_sources.append(script) 13798s with open(script, "wb") as f: 13798s f.write(asbytes(code)) 13798s 13798s # Build 13798s cwd = os.getcwd() 13798s try: 13798s os.chdir(d) 13798s cmd = [sys.executable, script, "build_ext", "-i"] 13798s p = subprocess.Popen(cmd, 13798s stdout=subprocess.PIPE, 13798s stderr=subprocess.STDOUT) 13798s out, err = p.communicate() 13798s if p.returncode != 0: 13798s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13798s (cmd[4:], asstr(out))) 13798s E RuntimeError: Running distutils build failed: [] 13798s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13798s E 13798s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13798s E of the deprecation of `distutils` itself. It will be removed for 13798s E Python >= 3.12. For older Python versions it will remain present. 13798s E It is recommended to use `setuptools < 60.0` for those Python versions. 13798s E For more details, see: 13798s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13798s E 13798s E 13798s E from numpy.distutils.core import setup 13798s E running build_ext 13798s E running build_src 13798s E INFO: build_src 13798s E INFO: building extension "test_array_from_pyobj_ext" sources 13798s E INFO: build_src: building npy-pkg config files 13798s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13798s E !! 13798s E 13798s E ******************************************************************************** 13798s E Please avoid running ``setup.py`` directly. 13798s E Instead, use pypa/build, pypa/installer or other 13798s E standards-based tools. 13798s E 13798s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13798s E ******************************************************************************** 13798s E 13798s E !! 13798s E self.initialize_options() 13798s E INFO: customize UnixCCompiler 13798s E INFO: customize UnixCCompiler using build_ext 13798s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E creating /tmp/tmppq19o2st/tmp 13798s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E creating /tmp/tmppq19o2st/usr 13798s E creating /tmp/tmppq19o2st/usr/lib 13798s E creating /tmp/tmppq19o2st/usr/lib/python3 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-march=native' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-O3' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-Werror' 13798s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13798s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-vfpv4' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-march=armv8.2-a+fp16' 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13798s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13798s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13798s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13798s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13798s E INFO: building 'test_array_from_pyobj_ext' extension 13798s E INFO: compiling C sources 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13798s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13798s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13798s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13798s E 14 | #include 13798s E | ^~~~~~~~~~ 13798s E In file included from fortranobject.c:2: 13798s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13798s E 7 | #include 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E compilation terminated. 13798s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13798s E INFO: 13798s E ########### EXT COMPILER OPTIMIZATION ########### 13798s E INFO: Platform : 13798s E Architecture: armhf 13798s E Compiler : gcc 13798s E 13798s E CPU baseline : 13798s E Requested : 'min' 13798s E Enabled : none 13798s E Flags : none 13798s E Extra checks: none 13798s E 13798s E CPU dispatch : 13798s E Requested : 'max -xop -fma4' 13798s E Enabled : none 13798s E Generated : none 13798s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13798s 13798s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13798s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13798s d = '/tmp/tmpjj8q074z' 13798s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13798s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13798s err = None 13798s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13798s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s kw = {} 13798s module_name = 'test_array_from_pyobj_ext' 13798s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13798s p = 13798s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13798s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-2seq-F-ro] _______ 13798s 13798s def setup_module(): 13798s """ 13798s Build the required testing extension module 13798s 13798s """ 13798s global wrap 13798s 13798s # Check compiler availability first 13798s if not util.has_c_compiler(): 13798s pytest.skip("No C compiler available") 13798s 13798s if wrap is None: 13798s config_code = """ 13798s config.add_extension('test_array_from_pyobj_ext', 13798s sources=['wrapmodule.c', 'fortranobject.c'], 13798s define_macros=[]) 13798s """ 13798s d = os.path.dirname(__file__) 13798s src = [ 13798s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13798s util.getpath("src", "fortranobject.c"), 13798s util.getpath("src", "fortranobject.h"), 13798s ] 13798s > wrap = util.build_module_distutils(src, config_code, 13798s "test_array_from_pyobj_ext") 13798s 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13798s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13798s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13798s memo[key] = func(*a, **kw) 13798s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13798s func = 13798s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13798s kw = {} 13798s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13798s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13798s 13798s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13798s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13798s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13798s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13798s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13798s 13798s @_memoize 13798s def build_module_distutils(source_files, config_code, module_name, **kw): 13798s """ 13798s Build a module via distutils and import it. 13798s 13798s """ 13798s d = get_module_dir() 13798s 13798s # Copy files 13798s dst_sources = [] 13798s for fn in source_files: 13798s if not os.path.isfile(fn): 13798s raise RuntimeError("%s is not a file" % fn) 13798s dst = os.path.join(d, os.path.basename(fn)) 13798s shutil.copyfile(fn, dst) 13798s dst_sources.append(dst) 13798s 13798s # Build script 13798s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13798s 13798s code = fr""" 13798s import os 13798s import sys 13798s sys.path = {repr(sys.path)} 13798s 13798s def configuration(parent_name='',top_path=None): 13798s from numpy.distutils.misc_util import Configuration 13798s config = Configuration('', parent_name, top_path) 13798s {config_code} 13798s return config 13798s 13798s if __name__ == "__main__": 13798s from numpy.distutils.core import setup 13798s setup(configuration=configuration) 13798s """ 13798s script = os.path.join(d, get_temp_module_name() + ".py") 13798s dst_sources.append(script) 13798s with open(script, "wb") as f: 13798s f.write(asbytes(code)) 13798s 13798s # Build 13798s cwd = os.getcwd() 13798s try: 13798s os.chdir(d) 13798s cmd = [sys.executable, script, "build_ext", "-i"] 13798s p = subprocess.Popen(cmd, 13798s stdout=subprocess.PIPE, 13798s stderr=subprocess.STDOUT) 13798s out, err = p.communicate() 13798s if p.returncode != 0: 13798s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13798s (cmd[4:], asstr(out))) 13798s E RuntimeError: Running distutils build failed: [] 13798s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13798s E 13798s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13798s E of the deprecation of `distutils` itself. It will be removed for 13798s E Python >= 3.12. For older Python versions it will remain present. 13798s E It is recommended to use `setuptools < 60.0` for those Python versions. 13798s E For more details, see: 13798s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13798s E 13798s E 13798s E from numpy.distutils.core import setup 13798s E running build_ext 13798s E running build_src 13798s E INFO: build_src 13798s E INFO: building extension "test_array_from_pyobj_ext" sources 13798s E INFO: build_src: building npy-pkg config files 13798s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13798s E !! 13798s E 13798s E ******************************************************************************** 13798s E Please avoid running ``setup.py`` directly. 13798s E Instead, use pypa/build, pypa/installer or other 13798s E standards-based tools. 13798s E 13798s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13798s E ******************************************************************************** 13798s E 13798s E !! 13798s E self.initialize_options() 13798s E INFO: customize UnixCCompiler 13798s E INFO: customize UnixCCompiler using build_ext 13798s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E creating /tmp/tmppq19o2st/tmp 13798s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E creating /tmp/tmppq19o2st/usr 13798s E creating /tmp/tmppq19o2st/usr/lib 13798s E creating /tmp/tmppq19o2st/usr/lib/python3 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-march=native' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-O3' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-Werror' 13798s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13798s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-vfpv4' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-march=armv8.2-a+fp16' 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13798s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13798s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13798s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13798s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13798s E INFO: building 'test_array_from_pyobj_ext' extension 13798s E INFO: compiling C sources 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13798s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13798s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13798s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13798s E 14 | #include 13798s E | ^~~~~~~~~~ 13798s E In file included from fortranobject.c:2: 13798s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13798s E 7 | #include 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E compilation terminated. 13798s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13798s E INFO: 13798s E ########### EXT COMPILER OPTIMIZATION ########### 13798s E INFO: Platform : 13798s E Architecture: armhf 13798s E Compiler : gcc 13798s E 13798s E CPU baseline : 13798s E Requested : 'min' 13798s E Enabled : none 13798s E Flags : none 13798s E Extra checks: none 13798s E 13798s E CPU dispatch : 13798s E Requested : 'max -xop -fma4' 13798s E Enabled : none 13798s E Generated : none 13798s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13798s 13798s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13798s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13798s d = '/tmp/tmpjj8q074z' 13798s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13798s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13798s err = None 13798s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13798s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s kw = {} 13798s module_name = 'test_array_from_pyobj_ext' 13798s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13798s p = 13798s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13798s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-23seq-C-w] _______ 13798s 13798s def setup_module(): 13798s """ 13798s Build the required testing extension module 13798s 13798s """ 13798s global wrap 13798s 13798s # Check compiler availability first 13798s if not util.has_c_compiler(): 13798s pytest.skip("No C compiler available") 13798s 13798s if wrap is None: 13798s config_code = """ 13798s config.add_extension('test_array_from_pyobj_ext', 13798s sources=['wrapmodule.c', 'fortranobject.c'], 13798s define_macros=[]) 13798s """ 13798s d = os.path.dirname(__file__) 13798s src = [ 13798s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13798s util.getpath("src", "fortranobject.c"), 13798s util.getpath("src", "fortranobject.h"), 13798s ] 13798s > wrap = util.build_module_distutils(src, config_code, 13798s "test_array_from_pyobj_ext") 13798s 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13798s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13798s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13798s memo[key] = func(*a, **kw) 13798s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13798s func = 13798s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13798s kw = {} 13798s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13798s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13798s 13798s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13798s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13798s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13798s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13798s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13798s 13798s @_memoize 13798s def build_module_distutils(source_files, config_code, module_name, **kw): 13798s """ 13798s Build a module via distutils and import it. 13798s 13798s """ 13798s d = get_module_dir() 13798s 13798s # Copy files 13798s dst_sources = [] 13798s for fn in source_files: 13798s if not os.path.isfile(fn): 13798s raise RuntimeError("%s is not a file" % fn) 13798s dst = os.path.join(d, os.path.basename(fn)) 13798s shutil.copyfile(fn, dst) 13798s dst_sources.append(dst) 13798s 13798s # Build script 13798s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13798s 13798s code = fr""" 13798s import os 13798s import sys 13798s sys.path = {repr(sys.path)} 13798s 13798s def configuration(parent_name='',top_path=None): 13798s from numpy.distutils.misc_util import Configuration 13798s config = Configuration('', parent_name, top_path) 13798s {config_code} 13798s return config 13798s 13798s if __name__ == "__main__": 13798s from numpy.distutils.core import setup 13798s setup(configuration=configuration) 13798s """ 13798s script = os.path.join(d, get_temp_module_name() + ".py") 13798s dst_sources.append(script) 13798s with open(script, "wb") as f: 13798s f.write(asbytes(code)) 13798s 13798s # Build 13798s cwd = os.getcwd() 13798s try: 13798s os.chdir(d) 13798s cmd = [sys.executable, script, "build_ext", "-i"] 13798s p = subprocess.Popen(cmd, 13798s stdout=subprocess.PIPE, 13798s stderr=subprocess.STDOUT) 13798s out, err = p.communicate() 13798s if p.returncode != 0: 13798s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13798s (cmd[4:], asstr(out))) 13798s E RuntimeError: Running distutils build failed: [] 13798s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13798s E 13798s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13798s E of the deprecation of `distutils` itself. It will be removed for 13798s E Python >= 3.12. For older Python versions it will remain present. 13798s E It is recommended to use `setuptools < 60.0` for those Python versions. 13798s E For more details, see: 13798s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13798s E 13798s E 13798s E from numpy.distutils.core import setup 13798s E running build_ext 13798s E running build_src 13798s E INFO: build_src 13798s E INFO: building extension "test_array_from_pyobj_ext" sources 13798s E INFO: build_src: building npy-pkg config files 13798s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13798s E !! 13798s E 13798s E ******************************************************************************** 13798s E Please avoid running ``setup.py`` directly. 13798s E Instead, use pypa/build, pypa/installer or other 13798s E standards-based tools. 13798s E 13798s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13798s E ******************************************************************************** 13798s E 13798s E !! 13798s E self.initialize_options() 13798s E INFO: customize UnixCCompiler 13798s E INFO: customize UnixCCompiler using build_ext 13798s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E creating /tmp/tmppq19o2st/tmp 13798s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E creating /tmp/tmppq19o2st/usr 13798s E creating /tmp/tmppq19o2st/usr/lib 13798s E creating /tmp/tmppq19o2st/usr/lib/python3 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13798s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-march=native' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-O3' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-Werror' 13798s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13798s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-vfpv4' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13798s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-march=armv8.2-a+fp16' 13798s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/include/python3.12 -c' 13798s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13798s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13798s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13798s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13798s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13798s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13798s E 9 | # include_next 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E 13798s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13798s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13798s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13798s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13798s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13798s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13798s E INFO: building 'test_array_from_pyobj_ext' extension 13798s E INFO: compiling C sources 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13798s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13798s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13798s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13798s E 14 | #include 13798s E | ^~~~~~~~~~ 13798s E In file included from fortranobject.c:2: 13798s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13798s E 7 | #include 13798s E | ^~~~~~~~~~ 13798s E compilation terminated. 13798s E compilation terminated. 13798s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13798s E INFO: 13798s E ########### EXT COMPILER OPTIMIZATION ########### 13798s E INFO: Platform : 13798s E Architecture: armhf 13798s E Compiler : gcc 13798s E 13798s E CPU baseline : 13798s E Requested : 'min' 13798s E Enabled : none 13798s E Flags : none 13798s E Extra checks: none 13798s E 13798s E CPU dispatch : 13798s E Requested : 'max -xop -fma4' 13798s E Enabled : none 13798s E Generated : none 13798s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13798s 13798s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13798s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13798s d = '/tmp/tmpjj8q074z' 13798s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13798s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13798s err = None 13798s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13798s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s kw = {} 13798s module_name = 'test_array_from_pyobj_ext' 13798s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13798s p = 13798s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13798s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-23seq-C-ro] ______ 13798s 13798s def setup_module(): 13798s """ 13798s Build the required testing extension module 13798s 13798s """ 13798s global wrap 13798s 13798s # Check compiler availability first 13798s if not util.has_c_compiler(): 13798s pytest.skip("No C compiler available") 13798s 13798s if wrap is None: 13798s config_code = """ 13798s config.add_extension('test_array_from_pyobj_ext', 13798s sources=['wrapmodule.c', 'fortranobject.c'], 13798s define_macros=[]) 13798s """ 13798s d = os.path.dirname(__file__) 13798s src = [ 13798s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13798s util.getpath("src", "fortranobject.c"), 13798s util.getpath("src", "fortranobject.h"), 13798s ] 13798s > wrap = util.build_module_distutils(src, config_code, 13798s "test_array_from_pyobj_ext") 13798s 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13798s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13798s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13798s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13798s memo[key] = func(*a, **kw) 13798s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13798s func = 13798s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13798s kw = {} 13798s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13798s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13798s 13798s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13798s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13798s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13798s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13798s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13798s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13798s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13798s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13798s 13798s @_memoize 13798s def build_module_distutils(source_files, config_code, module_name, **kw): 13798s """ 13798s Build a module via distutils and import it. 13798s 13798s """ 13798s d = get_module_dir() 13798s 13798s # Copy files 13798s dst_sources = [] 13798s for fn in source_files: 13798s if not os.path.isfile(fn): 13798s raise RuntimeError("%s is not a file" % fn) 13798s dst = os.path.join(d, os.path.basename(fn)) 13798s shutil.copyfile(fn, dst) 13798s dst_sources.append(dst) 13798s 13798s # Build script 13798s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13798s 13798s code = fr""" 13798s import os 13798s import sys 13798s sys.path = {repr(sys.path)} 13798s 13798s def configuration(parent_name='',top_path=None): 13798s from numpy.distutils.misc_util import Configuration 13798s config = Configuration('', parent_name, top_path) 13798s {config_code} 13798s return config 13798s 13798s if __name__ == "__main__": 13798s from numpy.distutils.core import setup 13798s setup(configuration=configuration) 13798s """ 13798s script = os.path.join(d, get_temp_module_name() + ".py") 13798s dst_sources.append(script) 13798s with open(script, "wb") as f: 13798s f.write(asbytes(code)) 13798s 13798s # Build 13798s cwd = os.getcwd() 13798s try: 13798s os.chdir(d) 13798s cmd = [sys.executable, script, "build_ext", "-i"] 13798s p = subprocess.Popen(cmd, 13798s stdout=subprocess.PIPE, 13798s stderr=subprocess.STDOUT) 13798s out, err = p.communicate() 13798s if p.returncode != 0: 13798s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13798s (cmd[4:], asstr(out))) 13798s E RuntimeError: Running distutils build failed: [] 13798s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13798s E 13798s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13798s E of the deprecation of `distutils` itself. It will be removed for 13798s E Python >= 3.12. For older Python versions it will remain present. 13798s E It is recommended to use `setuptools < 60.0` for those Python versions. 13798s E For more details, see: 13798s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13798s E 13798s E 13798s E from numpy.distutils.core import setup 13798s E running build_ext 13798s E running build_src 13798s E INFO: build_src 13798s E INFO: building extension "test_array_from_pyobj_ext" sources 13798s E INFO: build_src: building npy-pkg config files 13798s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13798s E !! 13798s E 13798s E ******************************************************************************** 13798s E Please avoid running ``setup.py`` directly. 13798s E Instead, use pypa/build, pypa/installer or other 13798s E standards-based tools. 13798s E 13798s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13798s E ******************************************************************************** 13798s E 13798s E !! 13798s E self.initialize_options() 13798s E INFO: customize UnixCCompiler 13798s E INFO: customize UnixCCompiler using build_ext 13798s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13798s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13798s E 13798s E creating /tmp/tmppq19o2st/tmp 13799s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/usr 13799s E creating /tmp/tmppq19o2st/usr/lib 13799s E creating /tmp/tmppq19o2st/usr/lib/python3 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=native' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-O3' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-Werror' 13799s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13799s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-vfpv4' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=armv8.2-a+fp16' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13799s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13799s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13799s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13799s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13799s E INFO: building 'test_array_from_pyobj_ext' extension 13799s E INFO: compiling C sources 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13799s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13799s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13799s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13799s E 14 | #include 13799s E | ^~~~~~~~~~ 13799s E In file included from fortranobject.c:2: 13799s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13799s E 7 | #include 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E compilation terminated. 13799s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13799s E INFO: 13799s E ########### EXT COMPILER OPTIMIZATION ########### 13799s E INFO: Platform : 13799s E Architecture: armhf 13799s E Compiler : gcc 13799s E 13799s E CPU baseline : 13799s E Requested : 'min' 13799s E Enabled : none 13799s E Flags : none 13799s E Extra checks: none 13799s E 13799s E CPU dispatch : 13799s E Requested : 'max -xop -fma4' 13799s E Enabled : none 13799s E Generated : none 13799s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13799s 13799s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13799s d = '/tmp/tmpjj8q074z' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s err = None 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s kw = {} 13799s module_name = 'test_array_from_pyobj_ext' 13799s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13799s p = 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13799s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-23seq-F-w] _______ 13799s 13799s def setup_module(): 13799s """ 13799s Build the required testing extension module 13799s 13799s """ 13799s global wrap 13799s 13799s # Check compiler availability first 13799s if not util.has_c_compiler(): 13799s pytest.skip("No C compiler available") 13799s 13799s if wrap is None: 13799s config_code = """ 13799s config.add_extension('test_array_from_pyobj_ext', 13799s sources=['wrapmodule.c', 'fortranobject.c'], 13799s define_macros=[]) 13799s """ 13799s d = os.path.dirname(__file__) 13799s src = [ 13799s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13799s util.getpath("src", "fortranobject.c"), 13799s util.getpath("src", "fortranobject.h"), 13799s ] 13799s > wrap = util.build_module_distutils(src, config_code, 13799s "test_array_from_pyobj_ext") 13799s 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13799s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13799s memo[key] = func(*a, **kw) 13799s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13799s func = 13799s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13799s kw = {} 13799s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s 13799s @_memoize 13799s def build_module_distutils(source_files, config_code, module_name, **kw): 13799s """ 13799s Build a module via distutils and import it. 13799s 13799s """ 13799s d = get_module_dir() 13799s 13799s # Copy files 13799s dst_sources = [] 13799s for fn in source_files: 13799s if not os.path.isfile(fn): 13799s raise RuntimeError("%s is not a file" % fn) 13799s dst = os.path.join(d, os.path.basename(fn)) 13799s shutil.copyfile(fn, dst) 13799s dst_sources.append(dst) 13799s 13799s # Build script 13799s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13799s 13799s code = fr""" 13799s import os 13799s import sys 13799s sys.path = {repr(sys.path)} 13799s 13799s def configuration(parent_name='',top_path=None): 13799s from numpy.distutils.misc_util import Configuration 13799s config = Configuration('', parent_name, top_path) 13799s {config_code} 13799s return config 13799s 13799s if __name__ == "__main__": 13799s from numpy.distutils.core import setup 13799s setup(configuration=configuration) 13799s """ 13799s script = os.path.join(d, get_temp_module_name() + ".py") 13799s dst_sources.append(script) 13799s with open(script, "wb") as f: 13799s f.write(asbytes(code)) 13799s 13799s # Build 13799s cwd = os.getcwd() 13799s try: 13799s os.chdir(d) 13799s cmd = [sys.executable, script, "build_ext", "-i"] 13799s p = subprocess.Popen(cmd, 13799s stdout=subprocess.PIPE, 13799s stderr=subprocess.STDOUT) 13799s out, err = p.communicate() 13799s if p.returncode != 0: 13799s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13799s (cmd[4:], asstr(out))) 13799s E RuntimeError: Running distutils build failed: [] 13799s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13799s E 13799s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13799s E of the deprecation of `distutils` itself. It will be removed for 13799s E Python >= 3.12. For older Python versions it will remain present. 13799s E It is recommended to use `setuptools < 60.0` for those Python versions. 13799s E For more details, see: 13799s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13799s E 13799s E 13799s E from numpy.distutils.core import setup 13799s E running build_ext 13799s E running build_src 13799s E INFO: build_src 13799s E INFO: building extension "test_array_from_pyobj_ext" sources 13799s E INFO: build_src: building npy-pkg config files 13799s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13799s E !! 13799s E 13799s E ******************************************************************************** 13799s E Please avoid running ``setup.py`` directly. 13799s E Instead, use pypa/build, pypa/installer or other 13799s E standards-based tools. 13799s E 13799s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13799s E ******************************************************************************** 13799s E 13799s E !! 13799s E self.initialize_options() 13799s E INFO: customize UnixCCompiler 13799s E INFO: customize UnixCCompiler using build_ext 13799s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/tmp 13799s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/usr 13799s E creating /tmp/tmppq19o2st/usr/lib 13799s E creating /tmp/tmppq19o2st/usr/lib/python3 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=native' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-O3' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-Werror' 13799s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13799s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-vfpv4' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=armv8.2-a+fp16' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13799s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13799s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13799s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13799s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13799s E INFO: building 'test_array_from_pyobj_ext' extension 13799s E INFO: compiling C sources 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13799s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13799s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13799s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13799s E 14 | #include 13799s E | ^~~~~~~~~~ 13799s E In file included from fortranobject.c:2: 13799s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13799s E 7 | #include 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E compilation terminated. 13799s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13799s E INFO: 13799s E ########### EXT COMPILER OPTIMIZATION ########### 13799s E INFO: Platform : 13799s E Architecture: armhf 13799s E Compiler : gcc 13799s E 13799s E CPU baseline : 13799s E Requested : 'min' 13799s E Enabled : none 13799s E Flags : none 13799s E Extra checks: none 13799s E 13799s E CPU dispatch : 13799s E Requested : 'max -xop -fma4' 13799s E Enabled : none 13799s E Generated : none 13799s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13799s 13799s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13799s d = '/tmp/tmpjj8q074z' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s err = None 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s kw = {} 13799s module_name = 'test_array_from_pyobj_ext' 13799s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13799s p = 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13799s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[UINT-23seq-F-ro] ______ 13799s 13799s def setup_module(): 13799s """ 13799s Build the required testing extension module 13799s 13799s """ 13799s global wrap 13799s 13799s # Check compiler availability first 13799s if not util.has_c_compiler(): 13799s pytest.skip("No C compiler available") 13799s 13799s if wrap is None: 13799s config_code = """ 13799s config.add_extension('test_array_from_pyobj_ext', 13799s sources=['wrapmodule.c', 'fortranobject.c'], 13799s define_macros=[]) 13799s """ 13799s d = os.path.dirname(__file__) 13799s src = [ 13799s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13799s util.getpath("src", "fortranobject.c"), 13799s util.getpath("src", "fortranobject.h"), 13799s ] 13799s > wrap = util.build_module_distutils(src, config_code, 13799s "test_array_from_pyobj_ext") 13799s 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13799s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13799s memo[key] = func(*a, **kw) 13799s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13799s func = 13799s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13799s kw = {} 13799s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s 13799s @_memoize 13799s def build_module_distutils(source_files, config_code, module_name, **kw): 13799s """ 13799s Build a module via distutils and import it. 13799s 13799s """ 13799s d = get_module_dir() 13799s 13799s # Copy files 13799s dst_sources = [] 13799s for fn in source_files: 13799s if not os.path.isfile(fn): 13799s raise RuntimeError("%s is not a file" % fn) 13799s dst = os.path.join(d, os.path.basename(fn)) 13799s shutil.copyfile(fn, dst) 13799s dst_sources.append(dst) 13799s 13799s # Build script 13799s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13799s 13799s code = fr""" 13799s import os 13799s import sys 13799s sys.path = {repr(sys.path)} 13799s 13799s def configuration(parent_name='',top_path=None): 13799s from numpy.distutils.misc_util import Configuration 13799s config = Configuration('', parent_name, top_path) 13799s {config_code} 13799s return config 13799s 13799s if __name__ == "__main__": 13799s from numpy.distutils.core import setup 13799s setup(configuration=configuration) 13799s """ 13799s script = os.path.join(d, get_temp_module_name() + ".py") 13799s dst_sources.append(script) 13799s with open(script, "wb") as f: 13799s f.write(asbytes(code)) 13799s 13799s # Build 13799s cwd = os.getcwd() 13799s try: 13799s os.chdir(d) 13799s cmd = [sys.executable, script, "build_ext", "-i"] 13799s p = subprocess.Popen(cmd, 13799s stdout=subprocess.PIPE, 13799s stderr=subprocess.STDOUT) 13799s out, err = p.communicate() 13799s if p.returncode != 0: 13799s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13799s (cmd[4:], asstr(out))) 13799s E RuntimeError: Running distutils build failed: [] 13799s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13799s E 13799s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13799s E of the deprecation of `distutils` itself. It will be removed for 13799s E Python >= 3.12. For older Python versions it will remain present. 13799s E It is recommended to use `setuptools < 60.0` for those Python versions. 13799s E For more details, see: 13799s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13799s E 13799s E 13799s E from numpy.distutils.core import setup 13799s E running build_ext 13799s E running build_src 13799s E INFO: build_src 13799s E INFO: building extension "test_array_from_pyobj_ext" sources 13799s E INFO: build_src: building npy-pkg config files 13799s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13799s E !! 13799s E 13799s E ******************************************************************************** 13799s E Please avoid running ``setup.py`` directly. 13799s E Instead, use pypa/build, pypa/installer or other 13799s E standards-based tools. 13799s E 13799s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13799s E ******************************************************************************** 13799s E 13799s E !! 13799s E self.initialize_options() 13799s E INFO: customize UnixCCompiler 13799s E INFO: customize UnixCCompiler using build_ext 13799s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/tmp 13799s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/usr 13799s E creating /tmp/tmppq19o2st/usr/lib 13799s E creating /tmp/tmppq19o2st/usr/lib/python3 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=native' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-O3' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-Werror' 13799s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13799s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-vfpv4' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=armv8.2-a+fp16' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13799s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13799s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13799s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13799s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13799s E INFO: building 'test_array_from_pyobj_ext' extension 13799s E INFO: compiling C sources 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13799s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13799s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13799s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13799s E 14 | #include 13799s E | ^~~~~~~~~~ 13799s E In file included from fortranobject.c:2: 13799s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13799s E 7 | #include 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E compilation terminated. 13799s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13799s E INFO: 13799s E ########### EXT COMPILER OPTIMIZATION ########### 13799s E INFO: Platform : 13799s E Architecture: armhf 13799s E Compiler : gcc 13799s E 13799s E CPU baseline : 13799s E Requested : 'min' 13799s E Enabled : none 13799s E Flags : none 13799s E Extra checks: none 13799s E 13799s E CPU dispatch : 13799s E Requested : 'max -xop -fma4' 13799s E Enabled : none 13799s E Generated : none 13799s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13799s 13799s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13799s d = '/tmp/tmpjj8q074z' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s err = None 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s kw = {} 13799s module_name = 'test_array_from_pyobj_ext' 13799s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13799s p = 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13799s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[UINT] ___________ 13799s 13799s def setup_module(): 13799s """ 13799s Build the required testing extension module 13799s 13799s """ 13799s global wrap 13799s 13799s # Check compiler availability first 13799s if not util.has_c_compiler(): 13799s pytest.skip("No C compiler available") 13799s 13799s if wrap is None: 13799s config_code = """ 13799s config.add_extension('test_array_from_pyobj_ext', 13799s sources=['wrapmodule.c', 'fortranobject.c'], 13799s define_macros=[]) 13799s """ 13799s d = os.path.dirname(__file__) 13799s src = [ 13799s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13799s util.getpath("src", "fortranobject.c"), 13799s util.getpath("src", "fortranobject.h"), 13799s ] 13799s > wrap = util.build_module_distutils(src, config_code, 13799s "test_array_from_pyobj_ext") 13799s 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13799s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13799s memo[key] = func(*a, **kw) 13799s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13799s func = 13799s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13799s kw = {} 13799s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s 13799s @_memoize 13799s def build_module_distutils(source_files, config_code, module_name, **kw): 13799s """ 13799s Build a module via distutils and import it. 13799s 13799s """ 13799s d = get_module_dir() 13799s 13799s # Copy files 13799s dst_sources = [] 13799s for fn in source_files: 13799s if not os.path.isfile(fn): 13799s raise RuntimeError("%s is not a file" % fn) 13799s dst = os.path.join(d, os.path.basename(fn)) 13799s shutil.copyfile(fn, dst) 13799s dst_sources.append(dst) 13799s 13799s # Build script 13799s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13799s 13799s code = fr""" 13799s import os 13799s import sys 13799s sys.path = {repr(sys.path)} 13799s 13799s def configuration(parent_name='',top_path=None): 13799s from numpy.distutils.misc_util import Configuration 13799s config = Configuration('', parent_name, top_path) 13799s {config_code} 13799s return config 13799s 13799s if __name__ == "__main__": 13799s from numpy.distutils.core import setup 13799s setup(configuration=configuration) 13799s """ 13799s script = os.path.join(d, get_temp_module_name() + ".py") 13799s dst_sources.append(script) 13799s with open(script, "wb") as f: 13799s f.write(asbytes(code)) 13799s 13799s # Build 13799s cwd = os.getcwd() 13799s try: 13799s os.chdir(d) 13799s cmd = [sys.executable, script, "build_ext", "-i"] 13799s p = subprocess.Popen(cmd, 13799s stdout=subprocess.PIPE, 13799s stderr=subprocess.STDOUT) 13799s out, err = p.communicate() 13799s if p.returncode != 0: 13799s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13799s (cmd[4:], asstr(out))) 13799s E RuntimeError: Running distutils build failed: [] 13799s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13799s E 13799s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13799s E of the deprecation of `distutils` itself. It will be removed for 13799s E Python >= 3.12. For older Python versions it will remain present. 13799s E It is recommended to use `setuptools < 60.0` for those Python versions. 13799s E For more details, see: 13799s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13799s E 13799s E 13799s E from numpy.distutils.core import setup 13799s E running build_ext 13799s E running build_src 13799s E INFO: build_src 13799s E INFO: building extension "test_array_from_pyobj_ext" sources 13799s E INFO: build_src: building npy-pkg config files 13799s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13799s E !! 13799s E 13799s E ******************************************************************************** 13799s E Please avoid running ``setup.py`` directly. 13799s E Instead, use pypa/build, pypa/installer or other 13799s E standards-based tools. 13799s E 13799s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13799s E ******************************************************************************** 13799s E 13799s E !! 13799s E self.initialize_options() 13799s E INFO: customize UnixCCompiler 13799s E INFO: customize UnixCCompiler using build_ext 13799s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/tmp 13799s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/usr 13799s E creating /tmp/tmppq19o2st/usr/lib 13799s E creating /tmp/tmppq19o2st/usr/lib/python3 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=native' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-O3' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-Werror' 13799s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13799s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-vfpv4' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=armv8.2-a+fp16' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13799s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13799s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13799s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13799s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13799s E INFO: building 'test_array_from_pyobj_ext' extension 13799s E INFO: compiling C sources 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13799s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13799s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13799s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13799s E 14 | #include 13799s E | ^~~~~~~~~~ 13799s E In file included from fortranobject.c:2: 13799s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13799s E 7 | #include 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E compilation terminated. 13799s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13799s E INFO: 13799s E ########### EXT COMPILER OPTIMIZATION ########### 13799s E INFO: Platform : 13799s E Architecture: armhf 13799s E Compiler : gcc 13799s E 13799s E CPU baseline : 13799s E Requested : 'min' 13799s E Enabled : none 13799s E Flags : none 13799s E Extra checks: none 13799s E 13799s E CPU dispatch : 13799s E Requested : 'max -xop -fma4' 13799s E Enabled : none 13799s E Generated : none 13799s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13799s 13799s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13799s d = '/tmp/tmpjj8q074z' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s err = None 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s kw = {} 13799s module_name = 'test_array_from_pyobj_ext' 13799s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13799s p = 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13799s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[UINT] __________ 13799s 13799s def setup_module(): 13799s """ 13799s Build the required testing extension module 13799s 13799s """ 13799s global wrap 13799s 13799s # Check compiler availability first 13799s if not util.has_c_compiler(): 13799s pytest.skip("No C compiler available") 13799s 13799s if wrap is None: 13799s config_code = """ 13799s config.add_extension('test_array_from_pyobj_ext', 13799s sources=['wrapmodule.c', 'fortranobject.c'], 13799s define_macros=[]) 13799s """ 13799s d = os.path.dirname(__file__) 13799s src = [ 13799s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13799s util.getpath("src", "fortranobject.c"), 13799s util.getpath("src", "fortranobject.h"), 13799s ] 13799s > wrap = util.build_module_distutils(src, config_code, 13799s "test_array_from_pyobj_ext") 13799s 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13799s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13799s memo[key] = func(*a, **kw) 13799s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13799s func = 13799s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13799s kw = {} 13799s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s 13799s @_memoize 13799s def build_module_distutils(source_files, config_code, module_name, **kw): 13799s """ 13799s Build a module via distutils and import it. 13799s 13799s """ 13799s d = get_module_dir() 13799s 13799s # Copy files 13799s dst_sources = [] 13799s for fn in source_files: 13799s if not os.path.isfile(fn): 13799s raise RuntimeError("%s is not a file" % fn) 13799s dst = os.path.join(d, os.path.basename(fn)) 13799s shutil.copyfile(fn, dst) 13799s dst_sources.append(dst) 13799s 13799s # Build script 13799s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13799s 13799s code = fr""" 13799s import os 13799s import sys 13799s sys.path = {repr(sys.path)} 13799s 13799s def configuration(parent_name='',top_path=None): 13799s from numpy.distutils.misc_util import Configuration 13799s config = Configuration('', parent_name, top_path) 13799s {config_code} 13799s return config 13799s 13799s if __name__ == "__main__": 13799s from numpy.distutils.core import setup 13799s setup(configuration=configuration) 13799s """ 13799s script = os.path.join(d, get_temp_module_name() + ".py") 13799s dst_sources.append(script) 13799s with open(script, "wb") as f: 13799s f.write(asbytes(code)) 13799s 13799s # Build 13799s cwd = os.getcwd() 13799s try: 13799s os.chdir(d) 13799s cmd = [sys.executable, script, "build_ext", "-i"] 13799s p = subprocess.Popen(cmd, 13799s stdout=subprocess.PIPE, 13799s stderr=subprocess.STDOUT) 13799s out, err = p.communicate() 13799s if p.returncode != 0: 13799s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13799s (cmd[4:], asstr(out))) 13799s E RuntimeError: Running distutils build failed: [] 13799s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13799s E 13799s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13799s E of the deprecation of `distutils` itself. It will be removed for 13799s E Python >= 3.12. For older Python versions it will remain present. 13799s E It is recommended to use `setuptools < 60.0` for those Python versions. 13799s E For more details, see: 13799s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13799s E 13799s E 13799s E from numpy.distutils.core import setup 13799s E running build_ext 13799s E running build_src 13799s E INFO: build_src 13799s E INFO: building extension "test_array_from_pyobj_ext" sources 13799s E INFO: build_src: building npy-pkg config files 13799s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13799s E !! 13799s E 13799s E ******************************************************************************** 13799s E Please avoid running ``setup.py`` directly. 13799s E Instead, use pypa/build, pypa/installer or other 13799s E standards-based tools. 13799s E 13799s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13799s E ******************************************************************************** 13799s E 13799s E !! 13799s E self.initialize_options() 13799s E INFO: customize UnixCCompiler 13799s E INFO: customize UnixCCompiler using build_ext 13799s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/tmp 13799s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E creating /tmp/tmppq19o2st/usr 13799s E creating /tmp/tmppq19o2st/usr/lib 13799s E creating /tmp/tmppq19o2st/usr/lib/python3 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13799s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=native' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-O3' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-Werror' 13799s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13799s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-vfpv4' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13799s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-march=armv8.2-a+fp16' 13799s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/include/python3.12 -c' 13799s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13799s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13799s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13799s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13799s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13799s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13799s E 9 | # include_next 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E 13799s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13799s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13799s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13799s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13799s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13799s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13799s E INFO: building 'test_array_from_pyobj_ext' extension 13799s E INFO: compiling C sources 13799s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13799s E 13799s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13799s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13799s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13799s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13799s E 14 | #include 13799s E | ^~~~~~~~~~ 13799s E In file included from fortranobject.c:2: 13799s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13799s E 7 | #include 13799s E | ^~~~~~~~~~ 13799s E compilation terminated. 13799s E compilation terminated. 13799s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13799s E INFO: 13799s E ########### EXT COMPILER OPTIMIZATION ########### 13799s E INFO: Platform : 13799s E Architecture: armhf 13799s E Compiler : gcc 13799s E 13799s E CPU baseline : 13799s E Requested : 'min' 13799s E Enabled : none 13799s E Flags : none 13799s E Extra checks: none 13799s E 13799s E CPU dispatch : 13799s E Requested : 'max -xop -fma4' 13799s E Enabled : none 13799s E Generated : none 13799s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13799s 13799s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13799s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13799s d = '/tmp/tmpjj8q074z' 13799s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13799s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13799s err = None 13799s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13799s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s kw = {} 13799s module_name = 'test_array_from_pyobj_ext' 13799s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13799s p = 13799s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13799s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13799s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[UINT] __________ 13799s 13799s def setup_module(): 13799s """ 13799s Build the required testing extension module 13799s 13799s """ 13799s global wrap 13799s 13799s # Check compiler availability first 13799s if not util.has_c_compiler(): 13799s pytest.skip("No C compiler available") 13799s 13799s if wrap is None: 13799s config_code = """ 13799s config.add_extension('test_array_from_pyobj_ext', 13799s sources=['wrapmodule.c', 'fortranobject.c'], 13799s define_macros=[]) 13799s """ 13799s d = os.path.dirname(__file__) 13799s src = [ 13799s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13799s util.getpath("src", "fortranobject.c"), 13799s util.getpath("src", "fortranobject.h"), 13799s ] 13799s > wrap = util.build_module_distutils(src, config_code, 13799s "test_array_from_pyobj_ext") 13799s 13799s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13799s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13799s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13799s 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13799s memo[key] = func(*a, **kw) 13799s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13799s func = 13799s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13799s kw = {} 13799s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13799s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13799s 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s 13800s @_memoize 13800s def build_module_distutils(source_files, config_code, module_name, **kw): 13800s """ 13800s Build a module via distutils and import it. 13800s 13800s """ 13800s d = get_module_dir() 13800s 13800s # Copy files 13800s dst_sources = [] 13800s for fn in source_files: 13800s if not os.path.isfile(fn): 13800s raise RuntimeError("%s is not a file" % fn) 13800s dst = os.path.join(d, os.path.basename(fn)) 13800s shutil.copyfile(fn, dst) 13800s dst_sources.append(dst) 13800s 13800s # Build script 13800s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13800s 13800s code = fr""" 13800s import os 13800s import sys 13800s sys.path = {repr(sys.path)} 13800s 13800s def configuration(parent_name='',top_path=None): 13800s from numpy.distutils.misc_util import Configuration 13800s config = Configuration('', parent_name, top_path) 13800s {config_code} 13800s return config 13800s 13800s if __name__ == "__main__": 13800s from numpy.distutils.core import setup 13800s setup(configuration=configuration) 13800s """ 13800s script = os.path.join(d, get_temp_module_name() + ".py") 13800s dst_sources.append(script) 13800s with open(script, "wb") as f: 13800s f.write(asbytes(code)) 13800s 13800s # Build 13800s cwd = os.getcwd() 13800s try: 13800s os.chdir(d) 13800s cmd = [sys.executable, script, "build_ext", "-i"] 13800s p = subprocess.Popen(cmd, 13800s stdout=subprocess.PIPE, 13800s stderr=subprocess.STDOUT) 13800s out, err = p.communicate() 13800s if p.returncode != 0: 13800s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13800s (cmd[4:], asstr(out))) 13800s E RuntimeError: Running distutils build failed: [] 13800s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13800s E 13800s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13800s E of the deprecation of `distutils` itself. It will be removed for 13800s E Python >= 3.12. For older Python versions it will remain present. 13800s E It is recommended to use `setuptools < 60.0` for those Python versions. 13800s E For more details, see: 13800s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13800s E 13800s E 13800s E from numpy.distutils.core import setup 13800s E running build_ext 13800s E running build_src 13800s E INFO: build_src 13800s E INFO: building extension "test_array_from_pyobj_ext" sources 13800s E INFO: build_src: building npy-pkg config files 13800s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13800s E !! 13800s E 13800s E ******************************************************************************** 13800s E Please avoid running ``setup.py`` directly. 13800s E Instead, use pypa/build, pypa/installer or other 13800s E standards-based tools. 13800s E 13800s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13800s E ******************************************************************************** 13800s E 13800s E !! 13800s E self.initialize_options() 13800s E INFO: customize UnixCCompiler 13800s E INFO: customize UnixCCompiler using build_ext 13800s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/tmp 13800s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/usr 13800s E creating /tmp/tmppq19o2st/usr/lib 13800s E creating /tmp/tmppq19o2st/usr/lib/python3 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=native' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-O3' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-Werror' 13800s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13800s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-vfpv4' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=armv8.2-a+fp16' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13800s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13800s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13800s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13800s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13800s E INFO: building 'test_array_from_pyobj_ext' extension 13800s E INFO: compiling C sources 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13800s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13800s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13800s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13800s E 14 | #include 13800s E | ^~~~~~~~~~ 13800s E In file included from fortranobject.c:2: 13800s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13800s E 7 | #include 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E compilation terminated. 13800s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13800s E INFO: 13800s E ########### EXT COMPILER OPTIMIZATION ########### 13800s E INFO: Platform : 13800s E Architecture: armhf 13800s E Compiler : gcc 13800s E 13800s E CPU baseline : 13800s E Requested : 'min' 13800s E Enabled : none 13800s E Flags : none 13800s E Extra checks: none 13800s E 13800s E CPU dispatch : 13800s E Requested : 'max -xop -fma4' 13800s E Enabled : none 13800s E Generated : none 13800s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13800s 13800s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13800s d = '/tmp/tmpjj8q074z' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s err = None 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s kw = {} 13800s module_name = 'test_array_from_pyobj_ext' 13800s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13800s p = 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13800s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[UINT] _____ 13800s 13800s def setup_module(): 13800s """ 13800s Build the required testing extension module 13800s 13800s """ 13800s global wrap 13800s 13800s # Check compiler availability first 13800s if not util.has_c_compiler(): 13800s pytest.skip("No C compiler available") 13800s 13800s if wrap is None: 13800s config_code = """ 13800s config.add_extension('test_array_from_pyobj_ext', 13800s sources=['wrapmodule.c', 'fortranobject.c'], 13800s define_macros=[]) 13800s """ 13800s d = os.path.dirname(__file__) 13800s src = [ 13800s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13800s util.getpath("src", "fortranobject.c"), 13800s util.getpath("src", "fortranobject.h"), 13800s ] 13800s > wrap = util.build_module_distutils(src, config_code, 13800s "test_array_from_pyobj_ext") 13800s 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13800s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13800s memo[key] = func(*a, **kw) 13800s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13800s func = 13800s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13800s kw = {} 13800s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s 13800s @_memoize 13800s def build_module_distutils(source_files, config_code, module_name, **kw): 13800s """ 13800s Build a module via distutils and import it. 13800s 13800s """ 13800s d = get_module_dir() 13800s 13800s # Copy files 13800s dst_sources = [] 13800s for fn in source_files: 13800s if not os.path.isfile(fn): 13800s raise RuntimeError("%s is not a file" % fn) 13800s dst = os.path.join(d, os.path.basename(fn)) 13800s shutil.copyfile(fn, dst) 13800s dst_sources.append(dst) 13800s 13800s # Build script 13800s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13800s 13800s code = fr""" 13800s import os 13800s import sys 13800s sys.path = {repr(sys.path)} 13800s 13800s def configuration(parent_name='',top_path=None): 13800s from numpy.distutils.misc_util import Configuration 13800s config = Configuration('', parent_name, top_path) 13800s {config_code} 13800s return config 13800s 13800s if __name__ == "__main__": 13800s from numpy.distutils.core import setup 13800s setup(configuration=configuration) 13800s """ 13800s script = os.path.join(d, get_temp_module_name() + ".py") 13800s dst_sources.append(script) 13800s with open(script, "wb") as f: 13800s f.write(asbytes(code)) 13800s 13800s # Build 13800s cwd = os.getcwd() 13800s try: 13800s os.chdir(d) 13800s cmd = [sys.executable, script, "build_ext", "-i"] 13800s p = subprocess.Popen(cmd, 13800s stdout=subprocess.PIPE, 13800s stderr=subprocess.STDOUT) 13800s out, err = p.communicate() 13800s if p.returncode != 0: 13800s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13800s (cmd[4:], asstr(out))) 13800s E RuntimeError: Running distutils build failed: [] 13800s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13800s E 13800s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13800s E of the deprecation of `distutils` itself. It will be removed for 13800s E Python >= 3.12. For older Python versions it will remain present. 13800s E It is recommended to use `setuptools < 60.0` for those Python versions. 13800s E For more details, see: 13800s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13800s E 13800s E 13800s E from numpy.distutils.core import setup 13800s E running build_ext 13800s E running build_src 13800s E INFO: build_src 13800s E INFO: building extension "test_array_from_pyobj_ext" sources 13800s E INFO: build_src: building npy-pkg config files 13800s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13800s E !! 13800s E 13800s E ******************************************************************************** 13800s E Please avoid running ``setup.py`` directly. 13800s E Instead, use pypa/build, pypa/installer or other 13800s E standards-based tools. 13800s E 13800s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13800s E ******************************************************************************** 13800s E 13800s E !! 13800s E self.initialize_options() 13800s E INFO: customize UnixCCompiler 13800s E INFO: customize UnixCCompiler using build_ext 13800s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/tmp 13800s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/usr 13800s E creating /tmp/tmppq19o2st/usr/lib 13800s E creating /tmp/tmppq19o2st/usr/lib/python3 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=native' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-O3' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-Werror' 13800s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13800s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-vfpv4' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=armv8.2-a+fp16' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13800s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13800s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13800s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13800s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13800s E INFO: building 'test_array_from_pyobj_ext' extension 13800s E INFO: compiling C sources 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13800s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13800s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13800s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13800s E 14 | #include 13800s E | ^~~~~~~~~~ 13800s E In file included from fortranobject.c:2: 13800s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13800s E 7 | #include 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E compilation terminated. 13800s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13800s E INFO: 13800s E ########### EXT COMPILER OPTIMIZATION ########### 13800s E INFO: Platform : 13800s E Architecture: armhf 13800s E Compiler : gcc 13800s E 13800s E CPU baseline : 13800s E Requested : 'min' 13800s E Enabled : none 13800s E Flags : none 13800s E Extra checks: none 13800s E 13800s E CPU dispatch : 13800s E Requested : 'max -xop -fma4' 13800s E Enabled : none 13800s E Generated : none 13800s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13800s 13800s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13800s d = '/tmp/tmpjj8q074z' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s err = None 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s kw = {} 13800s module_name = 'test_array_from_pyobj_ext' 13800s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13800s p = 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13800s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[UINT] _________ 13800s 13800s def setup_module(): 13800s """ 13800s Build the required testing extension module 13800s 13800s """ 13800s global wrap 13800s 13800s # Check compiler availability first 13800s if not util.has_c_compiler(): 13800s pytest.skip("No C compiler available") 13800s 13800s if wrap is None: 13800s config_code = """ 13800s config.add_extension('test_array_from_pyobj_ext', 13800s sources=['wrapmodule.c', 'fortranobject.c'], 13800s define_macros=[]) 13800s """ 13800s d = os.path.dirname(__file__) 13800s src = [ 13800s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13800s util.getpath("src", "fortranobject.c"), 13800s util.getpath("src", "fortranobject.h"), 13800s ] 13800s > wrap = util.build_module_distutils(src, config_code, 13800s "test_array_from_pyobj_ext") 13800s 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13800s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13800s memo[key] = func(*a, **kw) 13800s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13800s func = 13800s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13800s kw = {} 13800s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s 13800s @_memoize 13800s def build_module_distutils(source_files, config_code, module_name, **kw): 13800s """ 13800s Build a module via distutils and import it. 13800s 13800s """ 13800s d = get_module_dir() 13800s 13800s # Copy files 13800s dst_sources = [] 13800s for fn in source_files: 13800s if not os.path.isfile(fn): 13800s raise RuntimeError("%s is not a file" % fn) 13800s dst = os.path.join(d, os.path.basename(fn)) 13800s shutil.copyfile(fn, dst) 13800s dst_sources.append(dst) 13800s 13800s # Build script 13800s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13800s 13800s code = fr""" 13800s import os 13800s import sys 13800s sys.path = {repr(sys.path)} 13800s 13800s def configuration(parent_name='',top_path=None): 13800s from numpy.distutils.misc_util import Configuration 13800s config = Configuration('', parent_name, top_path) 13800s {config_code} 13800s return config 13800s 13800s if __name__ == "__main__": 13800s from numpy.distutils.core import setup 13800s setup(configuration=configuration) 13800s """ 13800s script = os.path.join(d, get_temp_module_name() + ".py") 13800s dst_sources.append(script) 13800s with open(script, "wb") as f: 13800s f.write(asbytes(code)) 13800s 13800s # Build 13800s cwd = os.getcwd() 13800s try: 13800s os.chdir(d) 13800s cmd = [sys.executable, script, "build_ext", "-i"] 13800s p = subprocess.Popen(cmd, 13800s stdout=subprocess.PIPE, 13800s stderr=subprocess.STDOUT) 13800s out, err = p.communicate() 13800s if p.returncode != 0: 13800s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13800s (cmd[4:], asstr(out))) 13800s E RuntimeError: Running distutils build failed: [] 13800s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13800s E 13800s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13800s E of the deprecation of `distutils` itself. It will be removed for 13800s E Python >= 3.12. For older Python versions it will remain present. 13800s E It is recommended to use `setuptools < 60.0` for those Python versions. 13800s E For more details, see: 13800s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13800s E 13800s E 13800s E from numpy.distutils.core import setup 13800s E running build_ext 13800s E running build_src 13800s E INFO: build_src 13800s E INFO: building extension "test_array_from_pyobj_ext" sources 13800s E INFO: build_src: building npy-pkg config files 13800s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13800s E !! 13800s E 13800s E ******************************************************************************** 13800s E Please avoid running ``setup.py`` directly. 13800s E Instead, use pypa/build, pypa/installer or other 13800s E standards-based tools. 13800s E 13800s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13800s E ******************************************************************************** 13800s E 13800s E !! 13800s E self.initialize_options() 13800s E INFO: customize UnixCCompiler 13800s E INFO: customize UnixCCompiler using build_ext 13800s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/tmp 13800s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/usr 13800s E creating /tmp/tmppq19o2st/usr/lib 13800s E creating /tmp/tmppq19o2st/usr/lib/python3 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=native' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-O3' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-Werror' 13800s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13800s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-vfpv4' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=armv8.2-a+fp16' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13800s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13800s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13800s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13800s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13800s E INFO: building 'test_array_from_pyobj_ext' extension 13800s E INFO: compiling C sources 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13800s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13800s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13800s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13800s E 14 | #include 13800s E | ^~~~~~~~~~ 13800s E In file included from fortranobject.c:2: 13800s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13800s E 7 | #include 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E compilation terminated. 13800s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13800s E INFO: 13800s E ########### EXT COMPILER OPTIMIZATION ########### 13800s E INFO: Platform : 13800s E Architecture: armhf 13800s E Compiler : gcc 13800s E 13800s E CPU baseline : 13800s E Requested : 'min' 13800s E Enabled : none 13800s E Flags : none 13800s E Extra checks: none 13800s E 13800s E CPU dispatch : 13800s E Requested : 'max -xop -fma4' 13800s E Enabled : none 13800s E Generated : none 13800s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13800s 13800s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13800s d = '/tmp/tmpjj8q074z' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s err = None 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s kw = {} 13800s module_name = 'test_array_from_pyobj_ext' 13800s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13800s p = 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13800s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[UINT] _______ 13800s 13800s def setup_module(): 13800s """ 13800s Build the required testing extension module 13800s 13800s """ 13800s global wrap 13800s 13800s # Check compiler availability first 13800s if not util.has_c_compiler(): 13800s pytest.skip("No C compiler available") 13800s 13800s if wrap is None: 13800s config_code = """ 13800s config.add_extension('test_array_from_pyobj_ext', 13800s sources=['wrapmodule.c', 'fortranobject.c'], 13800s define_macros=[]) 13800s """ 13800s d = os.path.dirname(__file__) 13800s src = [ 13800s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13800s util.getpath("src", "fortranobject.c"), 13800s util.getpath("src", "fortranobject.h"), 13800s ] 13800s > wrap = util.build_module_distutils(src, config_code, 13800s "test_array_from_pyobj_ext") 13800s 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13800s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13800s memo[key] = func(*a, **kw) 13800s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13800s func = 13800s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13800s kw = {} 13800s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s 13800s @_memoize 13800s def build_module_distutils(source_files, config_code, module_name, **kw): 13800s """ 13800s Build a module via distutils and import it. 13800s 13800s """ 13800s d = get_module_dir() 13800s 13800s # Copy files 13800s dst_sources = [] 13800s for fn in source_files: 13800s if not os.path.isfile(fn): 13800s raise RuntimeError("%s is not a file" % fn) 13800s dst = os.path.join(d, os.path.basename(fn)) 13800s shutil.copyfile(fn, dst) 13800s dst_sources.append(dst) 13800s 13800s # Build script 13800s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13800s 13800s code = fr""" 13800s import os 13800s import sys 13800s sys.path = {repr(sys.path)} 13800s 13800s def configuration(parent_name='',top_path=None): 13800s from numpy.distutils.misc_util import Configuration 13800s config = Configuration('', parent_name, top_path) 13800s {config_code} 13800s return config 13800s 13800s if __name__ == "__main__": 13800s from numpy.distutils.core import setup 13800s setup(configuration=configuration) 13800s """ 13800s script = os.path.join(d, get_temp_module_name() + ".py") 13800s dst_sources.append(script) 13800s with open(script, "wb") as f: 13800s f.write(asbytes(code)) 13800s 13800s # Build 13800s cwd = os.getcwd() 13800s try: 13800s os.chdir(d) 13800s cmd = [sys.executable, script, "build_ext", "-i"] 13800s p = subprocess.Popen(cmd, 13800s stdout=subprocess.PIPE, 13800s stderr=subprocess.STDOUT) 13800s out, err = p.communicate() 13800s if p.returncode != 0: 13800s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13800s (cmd[4:], asstr(out))) 13800s E RuntimeError: Running distutils build failed: [] 13800s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13800s E 13800s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13800s E of the deprecation of `distutils` itself. It will be removed for 13800s E Python >= 3.12. For older Python versions it will remain present. 13800s E It is recommended to use `setuptools < 60.0` for those Python versions. 13800s E For more details, see: 13800s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13800s E 13800s E 13800s E from numpy.distutils.core import setup 13800s E running build_ext 13800s E running build_src 13800s E INFO: build_src 13800s E INFO: building extension "test_array_from_pyobj_ext" sources 13800s E INFO: build_src: building npy-pkg config files 13800s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13800s E !! 13800s E 13800s E ******************************************************************************** 13800s E Please avoid running ``setup.py`` directly. 13800s E Instead, use pypa/build, pypa/installer or other 13800s E standards-based tools. 13800s E 13800s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13800s E ******************************************************************************** 13800s E 13800s E !! 13800s E self.initialize_options() 13800s E INFO: customize UnixCCompiler 13800s E INFO: customize UnixCCompiler using build_ext 13800s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/tmp 13800s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/usr 13800s E creating /tmp/tmppq19o2st/usr/lib 13800s E creating /tmp/tmppq19o2st/usr/lib/python3 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=native' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-O3' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-Werror' 13800s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13800s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-vfpv4' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=armv8.2-a+fp16' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13800s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13800s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13800s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13800s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13800s E INFO: building 'test_array_from_pyobj_ext' extension 13800s E INFO: compiling C sources 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13800s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13800s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13800s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13800s E 14 | #include 13800s E | ^~~~~~~~~~ 13800s E In file included from fortranobject.c:2: 13800s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13800s E 7 | #include 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E compilation terminated. 13800s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13800s E INFO: 13800s E ########### EXT COMPILER OPTIMIZATION ########### 13800s E INFO: Platform : 13800s E Architecture: armhf 13800s E Compiler : gcc 13800s E 13800s E CPU baseline : 13800s E Requested : 'min' 13800s E Enabled : none 13800s E Flags : none 13800s E Extra checks: none 13800s E 13800s E CPU dispatch : 13800s E Requested : 'max -xop -fma4' 13800s E Enabled : none 13800s E Generated : none 13800s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13800s 13800s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13800s d = '/tmp/tmpjj8q074z' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s err = None 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s kw = {} 13800s module_name = 'test_array_from_pyobj_ext' 13800s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13800s p = 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13800s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[UINT] ______ 13800s 13800s def setup_module(): 13800s """ 13800s Build the required testing extension module 13800s 13800s """ 13800s global wrap 13800s 13800s # Check compiler availability first 13800s if not util.has_c_compiler(): 13800s pytest.skip("No C compiler available") 13800s 13800s if wrap is None: 13800s config_code = """ 13800s config.add_extension('test_array_from_pyobj_ext', 13800s sources=['wrapmodule.c', 'fortranobject.c'], 13800s define_macros=[]) 13800s """ 13800s d = os.path.dirname(__file__) 13800s src = [ 13800s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13800s util.getpath("src", "fortranobject.c"), 13800s util.getpath("src", "fortranobject.h"), 13800s ] 13800s > wrap = util.build_module_distutils(src, config_code, 13800s "test_array_from_pyobj_ext") 13800s 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13800s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13800s memo[key] = func(*a, **kw) 13800s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13800s func = 13800s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13800s kw = {} 13800s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s 13800s @_memoize 13800s def build_module_distutils(source_files, config_code, module_name, **kw): 13800s """ 13800s Build a module via distutils and import it. 13800s 13800s """ 13800s d = get_module_dir() 13800s 13800s # Copy files 13800s dst_sources = [] 13800s for fn in source_files: 13800s if not os.path.isfile(fn): 13800s raise RuntimeError("%s is not a file" % fn) 13800s dst = os.path.join(d, os.path.basename(fn)) 13800s shutil.copyfile(fn, dst) 13800s dst_sources.append(dst) 13800s 13800s # Build script 13800s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13800s 13800s code = fr""" 13800s import os 13800s import sys 13800s sys.path = {repr(sys.path)} 13800s 13800s def configuration(parent_name='',top_path=None): 13800s from numpy.distutils.misc_util import Configuration 13800s config = Configuration('', parent_name, top_path) 13800s {config_code} 13800s return config 13800s 13800s if __name__ == "__main__": 13800s from numpy.distutils.core import setup 13800s setup(configuration=configuration) 13800s """ 13800s script = os.path.join(d, get_temp_module_name() + ".py") 13800s dst_sources.append(script) 13800s with open(script, "wb") as f: 13800s f.write(asbytes(code)) 13800s 13800s # Build 13800s cwd = os.getcwd() 13800s try: 13800s os.chdir(d) 13800s cmd = [sys.executable, script, "build_ext", "-i"] 13800s p = subprocess.Popen(cmd, 13800s stdout=subprocess.PIPE, 13800s stderr=subprocess.STDOUT) 13800s out, err = p.communicate() 13800s if p.returncode != 0: 13800s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13800s (cmd[4:], asstr(out))) 13800s E RuntimeError: Running distutils build failed: [] 13800s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13800s E 13800s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13800s E of the deprecation of `distutils` itself. It will be removed for 13800s E Python >= 3.12. For older Python versions it will remain present. 13800s E It is recommended to use `setuptools < 60.0` for those Python versions. 13800s E For more details, see: 13800s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13800s E 13800s E 13800s E from numpy.distutils.core import setup 13800s E running build_ext 13800s E running build_src 13800s E INFO: build_src 13800s E INFO: building extension "test_array_from_pyobj_ext" sources 13800s E INFO: build_src: building npy-pkg config files 13800s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13800s E !! 13800s E 13800s E ******************************************************************************** 13800s E Please avoid running ``setup.py`` directly. 13800s E Instead, use pypa/build, pypa/installer or other 13800s E standards-based tools. 13800s E 13800s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13800s E ******************************************************************************** 13800s E 13800s E !! 13800s E self.initialize_options() 13800s E INFO: customize UnixCCompiler 13800s E INFO: customize UnixCCompiler using build_ext 13800s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/tmp 13800s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E creating /tmp/tmppq19o2st/usr 13800s E creating /tmp/tmppq19o2st/usr/lib 13800s E creating /tmp/tmppq19o2st/usr/lib/python3 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13800s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=native' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-O3' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-Werror' 13800s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13800s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-vfpv4' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13800s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-march=armv8.2-a+fp16' 13800s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/include/python3.12 -c' 13800s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13800s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13800s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13800s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13800s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13800s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13800s E 9 | # include_next 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E 13800s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13800s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13800s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13800s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13800s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13800s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13800s E INFO: building 'test_array_from_pyobj_ext' extension 13800s E INFO: compiling C sources 13800s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13800s E 13800s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13800s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13800s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13800s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13800s E 14 | #include 13800s E | ^~~~~~~~~~ 13800s E In file included from fortranobject.c:2: 13800s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13800s E 7 | #include 13800s E | ^~~~~~~~~~ 13800s E compilation terminated. 13800s E compilation terminated. 13800s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13800s E INFO: 13800s E ########### EXT COMPILER OPTIMIZATION ########### 13800s E INFO: Platform : 13800s E Architecture: armhf 13800s E Compiler : gcc 13800s E 13800s E CPU baseline : 13800s E Requested : 'min' 13800s E Enabled : none 13800s E Flags : none 13800s E Extra checks: none 13800s E 13800s E CPU dispatch : 13800s E Requested : 'max -xop -fma4' 13800s E Enabled : none 13800s E Generated : none 13800s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13800s 13800s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13800s d = '/tmp/tmpjj8q074z' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s err = None 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s kw = {} 13800s module_name = 'test_array_from_pyobj_ext' 13800s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13800s p = 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13800s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[UINT] ______ 13800s 13800s def setup_module(): 13800s """ 13800s Build the required testing extension module 13800s 13800s """ 13800s global wrap 13800s 13800s # Check compiler availability first 13800s if not util.has_c_compiler(): 13800s pytest.skip("No C compiler available") 13800s 13800s if wrap is None: 13800s config_code = """ 13800s config.add_extension('test_array_from_pyobj_ext', 13800s sources=['wrapmodule.c', 'fortranobject.c'], 13800s define_macros=[]) 13800s """ 13800s d = os.path.dirname(__file__) 13800s src = [ 13800s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13800s util.getpath("src", "fortranobject.c"), 13800s util.getpath("src", "fortranobject.h"), 13800s ] 13800s > wrap = util.build_module_distutils(src, config_code, 13800s "test_array_from_pyobj_ext") 13800s 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13800s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13800s memo[key] = func(*a, **kw) 13800s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13800s func = 13800s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13800s kw = {} 13800s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13800s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13800s 13800s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13800s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13800s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13800s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13800s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13800s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13800s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13800s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13800s 13800s @_memoize 13800s def build_module_distutils(source_files, config_code, module_name, **kw): 13800s """ 13800s Build a module via distutils and import it. 13800s 13800s """ 13800s d = get_module_dir() 13800s 13800s # Copy files 13800s dst_sources = [] 13800s for fn in source_files: 13800s if not os.path.isfile(fn): 13800s raise RuntimeError("%s is not a file" % fn) 13800s dst = os.path.join(d, os.path.basename(fn)) 13800s shutil.copyfile(fn, dst) 13800s dst_sources.append(dst) 13800s 13800s # Build script 13801s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13801s 13801s code = fr""" 13801s import os 13801s import sys 13801s sys.path = {repr(sys.path)} 13801s 13801s def configuration(parent_name='',top_path=None): 13801s from numpy.distutils.misc_util import Configuration 13801s config = Configuration('', parent_name, top_path) 13801s {config_code} 13801s return config 13801s 13801s if __name__ == "__main__": 13801s from numpy.distutils.core import setup 13801s setup(configuration=configuration) 13801s """ 13801s script = os.path.join(d, get_temp_module_name() + ".py") 13801s dst_sources.append(script) 13801s with open(script, "wb") as f: 13801s f.write(asbytes(code)) 13801s 13801s # Build 13801s cwd = os.getcwd() 13801s try: 13801s os.chdir(d) 13801s cmd = [sys.executable, script, "build_ext", "-i"] 13801s p = subprocess.Popen(cmd, 13801s stdout=subprocess.PIPE, 13801s stderr=subprocess.STDOUT) 13801s out, err = p.communicate() 13801s if p.returncode != 0: 13801s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13801s (cmd[4:], asstr(out))) 13801s E RuntimeError: Running distutils build failed: [] 13801s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13801s E 13801s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13801s E of the deprecation of `distutils` itself. It will be removed for 13801s E Python >= 3.12. For older Python versions it will remain present. 13801s E It is recommended to use `setuptools < 60.0` for those Python versions. 13801s E For more details, see: 13801s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13801s E 13801s E 13801s E from numpy.distutils.core import setup 13801s E running build_ext 13801s E running build_src 13801s E INFO: build_src 13801s E INFO: building extension "test_array_from_pyobj_ext" sources 13801s E INFO: build_src: building npy-pkg config files 13801s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13801s E !! 13801s E 13801s E ******************************************************************************** 13801s E Please avoid running ``setup.py`` directly. 13801s E Instead, use pypa/build, pypa/installer or other 13801s E standards-based tools. 13801s E 13801s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13801s E ******************************************************************************** 13801s E 13801s E !! 13801s E self.initialize_options() 13801s E INFO: customize UnixCCompiler 13801s E INFO: customize UnixCCompiler using build_ext 13801s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E creating /tmp/tmppq19o2st/tmp 13801s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E creating /tmp/tmppq19o2st/usr 13801s E creating /tmp/tmppq19o2st/usr/lib 13801s E creating /tmp/tmppq19o2st/usr/lib/python3 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-march=native' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-O3' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-Werror' 13801s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13801s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-vfpv4' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-march=armv8.2-a+fp16' 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13801s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13801s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13801s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13801s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13801s E INFO: building 'test_array_from_pyobj_ext' extension 13801s E INFO: compiling C sources 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13801s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13801s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13801s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13801s E 14 | #include 13801s E | ^~~~~~~~~~ 13801s E In file included from fortranobject.c:2: 13801s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13801s E 7 | #include 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E compilation terminated. 13801s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13801s E INFO: 13801s E ########### EXT COMPILER OPTIMIZATION ########### 13801s E INFO: Platform : 13801s E Architecture: armhf 13801s E Compiler : gcc 13801s E 13801s E CPU baseline : 13801s E Requested : 'min' 13801s E Enabled : none 13801s E Flags : none 13801s E Extra checks: none 13801s E 13801s E CPU dispatch : 13801s E Requested : 'max -xop -fma4' 13801s E Enabled : none 13801s E Generated : none 13801s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13801s 13801s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13801s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13801s d = '/tmp/tmpjj8q074z' 13801s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13801s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13801s err = None 13801s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13801s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s kw = {} 13801s module_name = 'test_array_from_pyobj_ext' 13801s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13801s p = 13801s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13801s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[UINT] ____ 13801s 13801s def setup_module(): 13801s """ 13801s Build the required testing extension module 13801s 13801s """ 13801s global wrap 13801s 13801s # Check compiler availability first 13801s if not util.has_c_compiler(): 13801s pytest.skip("No C compiler available") 13801s 13801s if wrap is None: 13801s config_code = """ 13801s config.add_extension('test_array_from_pyobj_ext', 13801s sources=['wrapmodule.c', 'fortranobject.c'], 13801s define_macros=[]) 13801s """ 13801s d = os.path.dirname(__file__) 13801s src = [ 13801s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13801s util.getpath("src", "fortranobject.c"), 13801s util.getpath("src", "fortranobject.h"), 13801s ] 13801s > wrap = util.build_module_distutils(src, config_code, 13801s "test_array_from_pyobj_ext") 13801s 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13801s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13801s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13801s memo[key] = func(*a, **kw) 13801s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13801s func = 13801s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13801s kw = {} 13801s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13801s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13801s 13801s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13801s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13801s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13801s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13801s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13801s 13801s @_memoize 13801s def build_module_distutils(source_files, config_code, module_name, **kw): 13801s """ 13801s Build a module via distutils and import it. 13801s 13801s """ 13801s d = get_module_dir() 13801s 13801s # Copy files 13801s dst_sources = [] 13801s for fn in source_files: 13801s if not os.path.isfile(fn): 13801s raise RuntimeError("%s is not a file" % fn) 13801s dst = os.path.join(d, os.path.basename(fn)) 13801s shutil.copyfile(fn, dst) 13801s dst_sources.append(dst) 13801s 13801s # Build script 13801s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13801s 13801s code = fr""" 13801s import os 13801s import sys 13801s sys.path = {repr(sys.path)} 13801s 13801s def configuration(parent_name='',top_path=None): 13801s from numpy.distutils.misc_util import Configuration 13801s config = Configuration('', parent_name, top_path) 13801s {config_code} 13801s return config 13801s 13801s if __name__ == "__main__": 13801s from numpy.distutils.core import setup 13801s setup(configuration=configuration) 13801s """ 13801s script = os.path.join(d, get_temp_module_name() + ".py") 13801s dst_sources.append(script) 13801s with open(script, "wb") as f: 13801s f.write(asbytes(code)) 13801s 13801s # Build 13801s cwd = os.getcwd() 13801s try: 13801s os.chdir(d) 13801s cmd = [sys.executable, script, "build_ext", "-i"] 13801s p = subprocess.Popen(cmd, 13801s stdout=subprocess.PIPE, 13801s stderr=subprocess.STDOUT) 13801s out, err = p.communicate() 13801s if p.returncode != 0: 13801s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13801s (cmd[4:], asstr(out))) 13801s E RuntimeError: Running distutils build failed: [] 13801s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13801s E 13801s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13801s E of the deprecation of `distutils` itself. It will be removed for 13801s E Python >= 3.12. For older Python versions it will remain present. 13801s E It is recommended to use `setuptools < 60.0` for those Python versions. 13801s E For more details, see: 13801s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13801s E 13801s E 13801s E from numpy.distutils.core import setup 13801s E running build_ext 13801s E running build_src 13801s E INFO: build_src 13801s E INFO: building extension "test_array_from_pyobj_ext" sources 13801s E INFO: build_src: building npy-pkg config files 13801s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13801s E !! 13801s E 13801s E ******************************************************************************** 13801s E Please avoid running ``setup.py`` directly. 13801s E Instead, use pypa/build, pypa/installer or other 13801s E standards-based tools. 13801s E 13801s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13801s E ******************************************************************************** 13801s E 13801s E !! 13801s E self.initialize_options() 13801s E INFO: customize UnixCCompiler 13801s E INFO: customize UnixCCompiler using build_ext 13801s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E creating /tmp/tmppq19o2st/tmp 13801s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E creating /tmp/tmppq19o2st/usr 13801s E creating /tmp/tmppq19o2st/usr/lib 13801s E creating /tmp/tmppq19o2st/usr/lib/python3 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-march=native' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-O3' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-Werror' 13801s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13801s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-vfpv4' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-march=armv8.2-a+fp16' 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13801s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13801s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13801s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13801s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13801s E INFO: building 'test_array_from_pyobj_ext' extension 13801s E INFO: compiling C sources 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13801s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13801s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13801s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13801s E 14 | #include 13801s E | ^~~~~~~~~~ 13801s E In file included from fortranobject.c:2: 13801s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13801s E 7 | #include 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E compilation terminated. 13801s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13801s E INFO: 13801s E ########### EXT COMPILER OPTIMIZATION ########### 13801s E INFO: Platform : 13801s E Architecture: armhf 13801s E Compiler : gcc 13801s E 13801s E CPU baseline : 13801s E Requested : 'min' 13801s E Enabled : none 13801s E Flags : none 13801s E Extra checks: none 13801s E 13801s E CPU dispatch : 13801s E Requested : 'max -xop -fma4' 13801s E Enabled : none 13801s E Generated : none 13801s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13801s 13801s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13801s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13801s d = '/tmp/tmpjj8q074z' 13801s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13801s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13801s err = None 13801s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13801s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s kw = {} 13801s module_name = 'test_array_from_pyobj_ext' 13801s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13801s p = 13801s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13801s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[UINT] ____ 13801s 13801s def setup_module(): 13801s """ 13801s Build the required testing extension module 13801s 13801s """ 13801s global wrap 13801s 13801s # Check compiler availability first 13801s if not util.has_c_compiler(): 13801s pytest.skip("No C compiler available") 13801s 13801s if wrap is None: 13801s config_code = """ 13801s config.add_extension('test_array_from_pyobj_ext', 13801s sources=['wrapmodule.c', 'fortranobject.c'], 13801s define_macros=[]) 13801s """ 13801s d = os.path.dirname(__file__) 13801s src = [ 13801s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13801s util.getpath("src", "fortranobject.c"), 13801s util.getpath("src", "fortranobject.h"), 13801s ] 13801s > wrap = util.build_module_distutils(src, config_code, 13801s "test_array_from_pyobj_ext") 13801s 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13801s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13801s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13801s memo[key] = func(*a, **kw) 13801s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13801s func = 13801s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13801s kw = {} 13801s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13801s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13801s 13801s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13801s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13801s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13801s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13801s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13801s 13801s @_memoize 13801s def build_module_distutils(source_files, config_code, module_name, **kw): 13801s """ 13801s Build a module via distutils and import it. 13801s 13801s """ 13801s d = get_module_dir() 13801s 13801s # Copy files 13801s dst_sources = [] 13801s for fn in source_files: 13801s if not os.path.isfile(fn): 13801s raise RuntimeError("%s is not a file" % fn) 13801s dst = os.path.join(d, os.path.basename(fn)) 13801s shutil.copyfile(fn, dst) 13801s dst_sources.append(dst) 13801s 13801s # Build script 13801s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13801s 13801s code = fr""" 13801s import os 13801s import sys 13801s sys.path = {repr(sys.path)} 13801s 13801s def configuration(parent_name='',top_path=None): 13801s from numpy.distutils.misc_util import Configuration 13801s config = Configuration('', parent_name, top_path) 13801s {config_code} 13801s return config 13801s 13801s if __name__ == "__main__": 13801s from numpy.distutils.core import setup 13801s setup(configuration=configuration) 13801s """ 13801s script = os.path.join(d, get_temp_module_name() + ".py") 13801s dst_sources.append(script) 13801s with open(script, "wb") as f: 13801s f.write(asbytes(code)) 13801s 13801s # Build 13801s cwd = os.getcwd() 13801s try: 13801s os.chdir(d) 13801s cmd = [sys.executable, script, "build_ext", "-i"] 13801s p = subprocess.Popen(cmd, 13801s stdout=subprocess.PIPE, 13801s stderr=subprocess.STDOUT) 13801s out, err = p.communicate() 13801s if p.returncode != 0: 13801s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13801s (cmd[4:], asstr(out))) 13801s E RuntimeError: Running distutils build failed: [] 13801s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13801s E 13801s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13801s E of the deprecation of `distutils` itself. It will be removed for 13801s E Python >= 3.12. For older Python versions it will remain present. 13801s E It is recommended to use `setuptools < 60.0` for those Python versions. 13801s E For more details, see: 13801s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13801s E 13801s E 13801s E from numpy.distutils.core import setup 13801s E running build_ext 13801s E running build_src 13801s E INFO: build_src 13801s E INFO: building extension "test_array_from_pyobj_ext" sources 13801s E INFO: build_src: building npy-pkg config files 13801s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13801s E !! 13801s E 13801s E ******************************************************************************** 13801s E Please avoid running ``setup.py`` directly. 13801s E Instead, use pypa/build, pypa/installer or other 13801s E standards-based tools. 13801s E 13801s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13801s E ******************************************************************************** 13801s E 13801s E !! 13801s E self.initialize_options() 13801s E INFO: customize UnixCCompiler 13801s E INFO: customize UnixCCompiler using build_ext 13801s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E creating /tmp/tmppq19o2st/tmp 13801s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E creating /tmp/tmppq19o2st/usr 13801s E creating /tmp/tmppq19o2st/usr/lib 13801s E creating /tmp/tmppq19o2st/usr/lib/python3 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-march=native' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-O3' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-Werror' 13801s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13801s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-vfpv4' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-march=armv8.2-a+fp16' 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13801s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13801s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13801s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13801s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13801s E INFO: building 'test_array_from_pyobj_ext' extension 13801s E INFO: compiling C sources 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13801s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13801s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13801s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13801s E 14 | #include 13801s E | ^~~~~~~~~~ 13801s E In file included from fortranobject.c:2: 13801s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13801s E 7 | #include 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E compilation terminated. 13801s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13801s E INFO: 13801s E ########### EXT COMPILER OPTIMIZATION ########### 13801s E INFO: Platform : 13801s E Architecture: armhf 13801s E Compiler : gcc 13801s E 13801s E CPU baseline : 13801s E Requested : 'min' 13801s E Enabled : none 13801s E Flags : none 13801s E Extra checks: none 13801s E 13801s E CPU dispatch : 13801s E Requested : 'max -xop -fma4' 13801s E Enabled : none 13801s E Generated : none 13801s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13801s 13801s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13801s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13801s d = '/tmp/tmpjj8q074z' 13801s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13801s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13801s err = None 13801s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13801s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s kw = {} 13801s module_name = 'test_array_from_pyobj_ext' 13801s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13801s p = 13801s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13801s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[UINT] _____ 13801s 13801s def setup_module(): 13801s """ 13801s Build the required testing extension module 13801s 13801s """ 13801s global wrap 13801s 13801s # Check compiler availability first 13801s if not util.has_c_compiler(): 13801s pytest.skip("No C compiler available") 13801s 13801s if wrap is None: 13801s config_code = """ 13801s config.add_extension('test_array_from_pyobj_ext', 13801s sources=['wrapmodule.c', 'fortranobject.c'], 13801s define_macros=[]) 13801s """ 13801s d = os.path.dirname(__file__) 13801s src = [ 13801s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13801s util.getpath("src", "fortranobject.c"), 13801s util.getpath("src", "fortranobject.h"), 13801s ] 13801s > wrap = util.build_module_distutils(src, config_code, 13801s "test_array_from_pyobj_ext") 13801s 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13801s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13801s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13801s memo[key] = func(*a, **kw) 13801s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13801s func = 13801s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13801s kw = {} 13801s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13801s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13801s 13801s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13801s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13801s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13801s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13801s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13801s 13801s @_memoize 13801s def build_module_distutils(source_files, config_code, module_name, **kw): 13801s """ 13801s Build a module via distutils and import it. 13801s 13801s """ 13801s d = get_module_dir() 13801s 13801s # Copy files 13801s dst_sources = [] 13801s for fn in source_files: 13801s if not os.path.isfile(fn): 13801s raise RuntimeError("%s is not a file" % fn) 13801s dst = os.path.join(d, os.path.basename(fn)) 13801s shutil.copyfile(fn, dst) 13801s dst_sources.append(dst) 13801s 13801s # Build script 13801s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13801s 13801s code = fr""" 13801s import os 13801s import sys 13801s sys.path = {repr(sys.path)} 13801s 13801s def configuration(parent_name='',top_path=None): 13801s from numpy.distutils.misc_util import Configuration 13801s config = Configuration('', parent_name, top_path) 13801s {config_code} 13801s return config 13801s 13801s if __name__ == "__main__": 13801s from numpy.distutils.core import setup 13801s setup(configuration=configuration) 13801s """ 13801s script = os.path.join(d, get_temp_module_name() + ".py") 13801s dst_sources.append(script) 13801s with open(script, "wb") as f: 13801s f.write(asbytes(code)) 13801s 13801s # Build 13801s cwd = os.getcwd() 13801s try: 13801s os.chdir(d) 13801s cmd = [sys.executable, script, "build_ext", "-i"] 13801s p = subprocess.Popen(cmd, 13801s stdout=subprocess.PIPE, 13801s stderr=subprocess.STDOUT) 13801s out, err = p.communicate() 13801s if p.returncode != 0: 13801s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13801s (cmd[4:], asstr(out))) 13801s E RuntimeError: Running distutils build failed: [] 13801s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13801s E 13801s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13801s E of the deprecation of `distutils` itself. It will be removed for 13801s E Python >= 3.12. For older Python versions it will remain present. 13801s E It is recommended to use `setuptools < 60.0` for those Python versions. 13801s E For more details, see: 13801s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13801s E 13801s E 13801s E from numpy.distutils.core import setup 13801s E running build_ext 13801s E running build_src 13801s E INFO: build_src 13801s E INFO: building extension "test_array_from_pyobj_ext" sources 13801s E INFO: build_src: building npy-pkg config files 13801s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13801s E !! 13801s E 13801s E ******************************************************************************** 13801s E Please avoid running ``setup.py`` directly. 13801s E Instead, use pypa/build, pypa/installer or other 13801s E standards-based tools. 13801s E 13801s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13801s E ******************************************************************************** 13801s E 13801s E !! 13801s E self.initialize_options() 13801s E INFO: customize UnixCCompiler 13801s E INFO: customize UnixCCompiler using build_ext 13801s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E creating /tmp/tmppq19o2st/tmp 13801s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E creating /tmp/tmppq19o2st/usr 13801s E creating /tmp/tmppq19o2st/usr/lib 13801s E creating /tmp/tmppq19o2st/usr/lib/python3 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13801s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-march=native' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-O3' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-Werror' 13801s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13801s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-vfpv4' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13801s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-march=armv8.2-a+fp16' 13801s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/include/python3.12 -c' 13801s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13801s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13801s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13801s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13801s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13801s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13801s E 9 | # include_next 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E 13801s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13801s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13801s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13801s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13801s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13801s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13801s E INFO: building 'test_array_from_pyobj_ext' extension 13801s E INFO: compiling C sources 13801s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13801s E 13801s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13801s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13801s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13801s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13801s E 14 | #include 13801s E | ^~~~~~~~~~ 13801s E In file included from fortranobject.c:2: 13801s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13801s E 7 | #include 13801s E | ^~~~~~~~~~ 13801s E compilation terminated. 13801s E compilation terminated. 13801s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13801s E INFO: 13801s E ########### EXT COMPILER OPTIMIZATION ########### 13801s E INFO: Platform : 13801s E Architecture: armhf 13801s E Compiler : gcc 13801s E 13801s E CPU baseline : 13801s E Requested : 'min' 13801s E Enabled : none 13801s E Flags : none 13801s E Extra checks: none 13801s E 13801s E CPU dispatch : 13801s E Requested : 'max -xop -fma4' 13801s E Enabled : none 13801s E Generated : none 13801s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13801s 13801s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13801s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13801s d = '/tmp/tmpjj8q074z' 13801s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13801s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13801s err = None 13801s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13801s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s kw = {} 13801s module_name = 'test_array_from_pyobj_ext' 13801s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13801s p = 13801s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13801s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[UINT] _ 13801s 13801s def setup_module(): 13801s """ 13801s Build the required testing extension module 13801s 13801s """ 13801s global wrap 13801s 13801s # Check compiler availability first 13801s if not util.has_c_compiler(): 13801s pytest.skip("No C compiler available") 13801s 13801s if wrap is None: 13801s config_code = """ 13801s config.add_extension('test_array_from_pyobj_ext', 13801s sources=['wrapmodule.c', 'fortranobject.c'], 13801s define_macros=[]) 13801s """ 13801s d = os.path.dirname(__file__) 13801s src = [ 13801s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13801s util.getpath("src", "fortranobject.c"), 13801s util.getpath("src", "fortranobject.h"), 13801s ] 13801s > wrap = util.build_module_distutils(src, config_code, 13801s "test_array_from_pyobj_ext") 13801s 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13801s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13801s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13801s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13801s memo[key] = func(*a, **kw) 13801s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13801s func = 13801s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13801s kw = {} 13801s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13801s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13801s 13801s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13801s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13801s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13801s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13801s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13801s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13801s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13801s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13801s 13801s @_memoize 13801s def build_module_distutils(source_files, config_code, module_name, **kw): 13801s """ 13801s Build a module via distutils and import it. 13801s 13801s """ 13801s d = get_module_dir() 13801s 13801s # Copy files 13801s dst_sources = [] 13801s for fn in source_files: 13801s if not os.path.isfile(fn): 13801s raise RuntimeError("%s is not a file" % fn) 13801s dst = os.path.join(d, os.path.basename(fn)) 13801s shutil.copyfile(fn, dst) 13801s dst_sources.append(dst) 13801s 13801s # Build script 13802s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13802s 13802s code = fr""" 13802s import os 13802s import sys 13802s sys.path = {repr(sys.path)} 13802s 13802s def configuration(parent_name='',top_path=None): 13802s from numpy.distutils.misc_util import Configuration 13802s config = Configuration('', parent_name, top_path) 13802s {config_code} 13802s return config 13802s 13802s if __name__ == "__main__": 13802s from numpy.distutils.core import setup 13802s setup(configuration=configuration) 13802s """ 13802s script = os.path.join(d, get_temp_module_name() + ".py") 13802s dst_sources.append(script) 13802s with open(script, "wb") as f: 13802s f.write(asbytes(code)) 13802s 13802s # Build 13802s cwd = os.getcwd() 13802s try: 13802s os.chdir(d) 13802s cmd = [sys.executable, script, "build_ext", "-i"] 13802s p = subprocess.Popen(cmd, 13802s stdout=subprocess.PIPE, 13802s stderr=subprocess.STDOUT) 13802s out, err = p.communicate() 13802s if p.returncode != 0: 13802s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13802s (cmd[4:], asstr(out))) 13802s E RuntimeError: Running distutils build failed: [] 13802s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13802s E 13802s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13802s E of the deprecation of `distutils` itself. It will be removed for 13802s E Python >= 3.12. For older Python versions it will remain present. 13802s E It is recommended to use `setuptools < 60.0` for those Python versions. 13802s E For more details, see: 13802s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13802s E 13802s E 13802s E from numpy.distutils.core import setup 13802s E running build_ext 13802s E running build_src 13802s E INFO: build_src 13802s E INFO: building extension "test_array_from_pyobj_ext" sources 13802s E INFO: build_src: building npy-pkg config files 13802s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13802s E !! 13802s E 13802s E ******************************************************************************** 13802s E Please avoid running ``setup.py`` directly. 13802s E Instead, use pypa/build, pypa/installer or other 13802s E standards-based tools. 13802s E 13802s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13802s E ******************************************************************************** 13802s E 13802s E !! 13802s E self.initialize_options() 13802s E INFO: customize UnixCCompiler 13802s E INFO: customize UnixCCompiler using build_ext 13802s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/tmp 13802s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/usr 13802s E creating /tmp/tmppq19o2st/usr/lib 13802s E creating /tmp/tmppq19o2st/usr/lib/python3 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=native' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-O3' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-Werror' 13802s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13802s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-vfpv4' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=armv8.2-a+fp16' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13802s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13802s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13802s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13802s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13802s E INFO: building 'test_array_from_pyobj_ext' extension 13802s E INFO: compiling C sources 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13802s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13802s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13802s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13802s E 14 | #include 13802s E | ^~~~~~~~~~ 13802s E In file included from fortranobject.c:2: 13802s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13802s E 7 | #include 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E compilation terminated. 13802s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13802s E INFO: 13802s E ########### EXT COMPILER OPTIMIZATION ########### 13802s E INFO: Platform : 13802s E Architecture: armhf 13802s E Compiler : gcc 13802s E 13802s E CPU baseline : 13802s E Requested : 'min' 13802s E Enabled : none 13802s E Flags : none 13802s E Extra checks: none 13802s E 13802s E CPU dispatch : 13802s E Requested : 'max -xop -fma4' 13802s E Enabled : none 13802s E Generated : none 13802s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13802s 13802s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13802s d = '/tmp/tmpjj8q074z' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s err = None 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s kw = {} 13802s module_name = 'test_array_from_pyobj_ext' 13802s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13802s p = 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13802s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[UINT] __________ 13802s 13802s def setup_module(): 13802s """ 13802s Build the required testing extension module 13802s 13802s """ 13802s global wrap 13802s 13802s # Check compiler availability first 13802s if not util.has_c_compiler(): 13802s pytest.skip("No C compiler available") 13802s 13802s if wrap is None: 13802s config_code = """ 13802s config.add_extension('test_array_from_pyobj_ext', 13802s sources=['wrapmodule.c', 'fortranobject.c'], 13802s define_macros=[]) 13802s """ 13802s d = os.path.dirname(__file__) 13802s src = [ 13802s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13802s util.getpath("src", "fortranobject.c"), 13802s util.getpath("src", "fortranobject.h"), 13802s ] 13802s > wrap = util.build_module_distutils(src, config_code, 13802s "test_array_from_pyobj_ext") 13802s 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13802s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13802s memo[key] = func(*a, **kw) 13802s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13802s func = 13802s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13802s kw = {} 13802s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s 13802s @_memoize 13802s def build_module_distutils(source_files, config_code, module_name, **kw): 13802s """ 13802s Build a module via distutils and import it. 13802s 13802s """ 13802s d = get_module_dir() 13802s 13802s # Copy files 13802s dst_sources = [] 13802s for fn in source_files: 13802s if not os.path.isfile(fn): 13802s raise RuntimeError("%s is not a file" % fn) 13802s dst = os.path.join(d, os.path.basename(fn)) 13802s shutil.copyfile(fn, dst) 13802s dst_sources.append(dst) 13802s 13802s # Build script 13802s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13802s 13802s code = fr""" 13802s import os 13802s import sys 13802s sys.path = {repr(sys.path)} 13802s 13802s def configuration(parent_name='',top_path=None): 13802s from numpy.distutils.misc_util import Configuration 13802s config = Configuration('', parent_name, top_path) 13802s {config_code} 13802s return config 13802s 13802s if __name__ == "__main__": 13802s from numpy.distutils.core import setup 13802s setup(configuration=configuration) 13802s """ 13802s script = os.path.join(d, get_temp_module_name() + ".py") 13802s dst_sources.append(script) 13802s with open(script, "wb") as f: 13802s f.write(asbytes(code)) 13802s 13802s # Build 13802s cwd = os.getcwd() 13802s try: 13802s os.chdir(d) 13802s cmd = [sys.executable, script, "build_ext", "-i"] 13802s p = subprocess.Popen(cmd, 13802s stdout=subprocess.PIPE, 13802s stderr=subprocess.STDOUT) 13802s out, err = p.communicate() 13802s if p.returncode != 0: 13802s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13802s (cmd[4:], asstr(out))) 13802s E RuntimeError: Running distutils build failed: [] 13802s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13802s E 13802s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13802s E of the deprecation of `distutils` itself. It will be removed for 13802s E Python >= 3.12. For older Python versions it will remain present. 13802s E It is recommended to use `setuptools < 60.0` for those Python versions. 13802s E For more details, see: 13802s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13802s E 13802s E 13802s E from numpy.distutils.core import setup 13802s E running build_ext 13802s E running build_src 13802s E INFO: build_src 13802s E INFO: building extension "test_array_from_pyobj_ext" sources 13802s E INFO: build_src: building npy-pkg config files 13802s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13802s E !! 13802s E 13802s E ******************************************************************************** 13802s E Please avoid running ``setup.py`` directly. 13802s E Instead, use pypa/build, pypa/installer or other 13802s E standards-based tools. 13802s E 13802s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13802s E ******************************************************************************** 13802s E 13802s E !! 13802s E self.initialize_options() 13802s E INFO: customize UnixCCompiler 13802s E INFO: customize UnixCCompiler using build_ext 13802s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/tmp 13802s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/usr 13802s E creating /tmp/tmppq19o2st/usr/lib 13802s E creating /tmp/tmppq19o2st/usr/lib/python3 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=native' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-O3' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-Werror' 13802s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13802s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-vfpv4' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=armv8.2-a+fp16' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13802s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13802s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13802s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13802s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13802s E INFO: building 'test_array_from_pyobj_ext' extension 13802s E INFO: compiling C sources 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13802s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13802s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13802s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13802s E 14 | #include 13802s E | ^~~~~~~~~~ 13802s E In file included from fortranobject.c:2: 13802s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13802s E 7 | #include 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E compilation terminated. 13802s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13802s E INFO: 13802s E ########### EXT COMPILER OPTIMIZATION ########### 13802s E INFO: Platform : 13802s E Architecture: armhf 13802s E Compiler : gcc 13802s E 13802s E CPU baseline : 13802s E Requested : 'min' 13802s E Enabled : none 13802s E Flags : none 13802s E Extra checks: none 13802s E 13802s E CPU dispatch : 13802s E Requested : 'max -xop -fma4' 13802s E Enabled : none 13802s E Generated : none 13802s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13802s 13802s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13802s d = '/tmp/tmpjj8q074z' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s err = None 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s kw = {} 13802s module_name = 'test_array_from_pyobj_ext' 13802s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13802s p = 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13802s _____________ ERROR at setup of TestSharedMemory.test_hidden[UINT] _____________ 13802s 13802s def setup_module(): 13802s """ 13802s Build the required testing extension module 13802s 13802s """ 13802s global wrap 13802s 13802s # Check compiler availability first 13802s if not util.has_c_compiler(): 13802s pytest.skip("No C compiler available") 13802s 13802s if wrap is None: 13802s config_code = """ 13802s config.add_extension('test_array_from_pyobj_ext', 13802s sources=['wrapmodule.c', 'fortranobject.c'], 13802s define_macros=[]) 13802s """ 13802s d = os.path.dirname(__file__) 13802s src = [ 13802s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13802s util.getpath("src", "fortranobject.c"), 13802s util.getpath("src", "fortranobject.h"), 13802s ] 13802s > wrap = util.build_module_distutils(src, config_code, 13802s "test_array_from_pyobj_ext") 13802s 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13802s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13802s memo[key] = func(*a, **kw) 13802s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13802s func = 13802s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13802s kw = {} 13802s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s 13802s @_memoize 13802s def build_module_distutils(source_files, config_code, module_name, **kw): 13802s """ 13802s Build a module via distutils and import it. 13802s 13802s """ 13802s d = get_module_dir() 13802s 13802s # Copy files 13802s dst_sources = [] 13802s for fn in source_files: 13802s if not os.path.isfile(fn): 13802s raise RuntimeError("%s is not a file" % fn) 13802s dst = os.path.join(d, os.path.basename(fn)) 13802s shutil.copyfile(fn, dst) 13802s dst_sources.append(dst) 13802s 13802s # Build script 13802s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13802s 13802s code = fr""" 13802s import os 13802s import sys 13802s sys.path = {repr(sys.path)} 13802s 13802s def configuration(parent_name='',top_path=None): 13802s from numpy.distutils.misc_util import Configuration 13802s config = Configuration('', parent_name, top_path) 13802s {config_code} 13802s return config 13802s 13802s if __name__ == "__main__": 13802s from numpy.distutils.core import setup 13802s setup(configuration=configuration) 13802s """ 13802s script = os.path.join(d, get_temp_module_name() + ".py") 13802s dst_sources.append(script) 13802s with open(script, "wb") as f: 13802s f.write(asbytes(code)) 13802s 13802s # Build 13802s cwd = os.getcwd() 13802s try: 13802s os.chdir(d) 13802s cmd = [sys.executable, script, "build_ext", "-i"] 13802s p = subprocess.Popen(cmd, 13802s stdout=subprocess.PIPE, 13802s stderr=subprocess.STDOUT) 13802s out, err = p.communicate() 13802s if p.returncode != 0: 13802s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13802s (cmd[4:], asstr(out))) 13802s E RuntimeError: Running distutils build failed: [] 13802s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13802s E 13802s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13802s E of the deprecation of `distutils` itself. It will be removed for 13802s E Python >= 3.12. For older Python versions it will remain present. 13802s E It is recommended to use `setuptools < 60.0` for those Python versions. 13802s E For more details, see: 13802s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13802s E 13802s E 13802s E from numpy.distutils.core import setup 13802s E running build_ext 13802s E running build_src 13802s E INFO: build_src 13802s E INFO: building extension "test_array_from_pyobj_ext" sources 13802s E INFO: build_src: building npy-pkg config files 13802s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13802s E !! 13802s E 13802s E ******************************************************************************** 13802s E Please avoid running ``setup.py`` directly. 13802s E Instead, use pypa/build, pypa/installer or other 13802s E standards-based tools. 13802s E 13802s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13802s E ******************************************************************************** 13802s E 13802s E !! 13802s E self.initialize_options() 13802s E INFO: customize UnixCCompiler 13802s E INFO: customize UnixCCompiler using build_ext 13802s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/tmp 13802s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/usr 13802s E creating /tmp/tmppq19o2st/usr/lib 13802s E creating /tmp/tmppq19o2st/usr/lib/python3 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=native' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-O3' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-Werror' 13802s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13802s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-vfpv4' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=armv8.2-a+fp16' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13802s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13802s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13802s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13802s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13802s E INFO: building 'test_array_from_pyobj_ext' extension 13802s E INFO: compiling C sources 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13802s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13802s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13802s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13802s E 14 | #include 13802s E | ^~~~~~~~~~ 13802s E In file included from fortranobject.c:2: 13802s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13802s E 7 | #include 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E compilation terminated. 13802s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13802s E INFO: 13802s E ########### EXT COMPILER OPTIMIZATION ########### 13802s E INFO: Platform : 13802s E Architecture: armhf 13802s E Compiler : gcc 13802s E 13802s E CPU baseline : 13802s E Requested : 'min' 13802s E Enabled : none 13802s E Flags : none 13802s E Extra checks: none 13802s E 13802s E CPU dispatch : 13802s E Requested : 'max -xop -fma4' 13802s E Enabled : none 13802s E Generated : none 13802s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13802s 13802s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13802s d = '/tmp/tmpjj8q074z' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s err = None 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s kw = {} 13802s module_name = 'test_array_from_pyobj_ext' 13802s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13802s p = 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13802s _________ ERROR at setup of TestSharedMemory.test_optional_none[UINT] __________ 13802s 13802s def setup_module(): 13802s """ 13802s Build the required testing extension module 13802s 13802s """ 13802s global wrap 13802s 13802s # Check compiler availability first 13802s if not util.has_c_compiler(): 13802s pytest.skip("No C compiler available") 13802s 13802s if wrap is None: 13802s config_code = """ 13802s config.add_extension('test_array_from_pyobj_ext', 13802s sources=['wrapmodule.c', 'fortranobject.c'], 13802s define_macros=[]) 13802s """ 13802s d = os.path.dirname(__file__) 13802s src = [ 13802s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13802s util.getpath("src", "fortranobject.c"), 13802s util.getpath("src", "fortranobject.h"), 13802s ] 13802s > wrap = util.build_module_distutils(src, config_code, 13802s "test_array_from_pyobj_ext") 13802s 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13802s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13802s memo[key] = func(*a, **kw) 13802s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13802s func = 13802s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13802s kw = {} 13802s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s 13802s @_memoize 13802s def build_module_distutils(source_files, config_code, module_name, **kw): 13802s """ 13802s Build a module via distutils and import it. 13802s 13802s """ 13802s d = get_module_dir() 13802s 13802s # Copy files 13802s dst_sources = [] 13802s for fn in source_files: 13802s if not os.path.isfile(fn): 13802s raise RuntimeError("%s is not a file" % fn) 13802s dst = os.path.join(d, os.path.basename(fn)) 13802s shutil.copyfile(fn, dst) 13802s dst_sources.append(dst) 13802s 13802s # Build script 13802s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13802s 13802s code = fr""" 13802s import os 13802s import sys 13802s sys.path = {repr(sys.path)} 13802s 13802s def configuration(parent_name='',top_path=None): 13802s from numpy.distutils.misc_util import Configuration 13802s config = Configuration('', parent_name, top_path) 13802s {config_code} 13802s return config 13802s 13802s if __name__ == "__main__": 13802s from numpy.distutils.core import setup 13802s setup(configuration=configuration) 13802s """ 13802s script = os.path.join(d, get_temp_module_name() + ".py") 13802s dst_sources.append(script) 13802s with open(script, "wb") as f: 13802s f.write(asbytes(code)) 13802s 13802s # Build 13802s cwd = os.getcwd() 13802s try: 13802s os.chdir(d) 13802s cmd = [sys.executable, script, "build_ext", "-i"] 13802s p = subprocess.Popen(cmd, 13802s stdout=subprocess.PIPE, 13802s stderr=subprocess.STDOUT) 13802s out, err = p.communicate() 13802s if p.returncode != 0: 13802s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13802s (cmd[4:], asstr(out))) 13802s E RuntimeError: Running distutils build failed: [] 13802s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13802s E 13802s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13802s E of the deprecation of `distutils` itself. It will be removed for 13802s E Python >= 3.12. For older Python versions it will remain present. 13802s E It is recommended to use `setuptools < 60.0` for those Python versions. 13802s E For more details, see: 13802s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13802s E 13802s E 13802s E from numpy.distutils.core import setup 13802s E running build_ext 13802s E running build_src 13802s E INFO: build_src 13802s E INFO: building extension "test_array_from_pyobj_ext" sources 13802s E INFO: build_src: building npy-pkg config files 13802s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13802s E !! 13802s E 13802s E ******************************************************************************** 13802s E Please avoid running ``setup.py`` directly. 13802s E Instead, use pypa/build, pypa/installer or other 13802s E standards-based tools. 13802s E 13802s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13802s E ******************************************************************************** 13802s E 13802s E !! 13802s E self.initialize_options() 13802s E INFO: customize UnixCCompiler 13802s E INFO: customize UnixCCompiler using build_ext 13802s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/tmp 13802s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/usr 13802s E creating /tmp/tmppq19o2st/usr/lib 13802s E creating /tmp/tmppq19o2st/usr/lib/python3 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=native' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-O3' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-Werror' 13802s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13802s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-vfpv4' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=armv8.2-a+fp16' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13802s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13802s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13802s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13802s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13802s E INFO: building 'test_array_from_pyobj_ext' extension 13802s E INFO: compiling C sources 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13802s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13802s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13802s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13802s E 14 | #include 13802s E | ^~~~~~~~~~ 13802s E In file included from fortranobject.c:2: 13802s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13802s E 7 | #include 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E compilation terminated. 13802s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13802s E INFO: 13802s E ########### EXT COMPILER OPTIMIZATION ########### 13802s E INFO: Platform : 13802s E Architecture: armhf 13802s E Compiler : gcc 13802s E 13802s E CPU baseline : 13802s E Requested : 'min' 13802s E Enabled : none 13802s E Flags : none 13802s E Extra checks: none 13802s E 13802s E CPU dispatch : 13802s E Requested : 'max -xop -fma4' 13802s E Enabled : none 13802s E Generated : none 13802s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13802s 13802s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13802s d = '/tmp/tmpjj8q074z' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s err = None 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s kw = {} 13802s module_name = 'test_array_from_pyobj_ext' 13802s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13802s p = 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13802s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[UINT] _______ 13802s 13802s def setup_module(): 13802s """ 13802s Build the required testing extension module 13802s 13802s """ 13802s global wrap 13802s 13802s # Check compiler availability first 13802s if not util.has_c_compiler(): 13802s pytest.skip("No C compiler available") 13802s 13802s if wrap is None: 13802s config_code = """ 13802s config.add_extension('test_array_from_pyobj_ext', 13802s sources=['wrapmodule.c', 'fortranobject.c'], 13802s define_macros=[]) 13802s """ 13802s d = os.path.dirname(__file__) 13802s src = [ 13802s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13802s util.getpath("src", "fortranobject.c"), 13802s util.getpath("src", "fortranobject.h"), 13802s ] 13802s > wrap = util.build_module_distutils(src, config_code, 13802s "test_array_from_pyobj_ext") 13802s 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13802s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13802s memo[key] = func(*a, **kw) 13802s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13802s func = 13802s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13802s kw = {} 13802s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s 13802s @_memoize 13802s def build_module_distutils(source_files, config_code, module_name, **kw): 13802s """ 13802s Build a module via distutils and import it. 13802s 13802s """ 13802s d = get_module_dir() 13802s 13802s # Copy files 13802s dst_sources = [] 13802s for fn in source_files: 13802s if not os.path.isfile(fn): 13802s raise RuntimeError("%s is not a file" % fn) 13802s dst = os.path.join(d, os.path.basename(fn)) 13802s shutil.copyfile(fn, dst) 13802s dst_sources.append(dst) 13802s 13802s # Build script 13802s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13802s 13802s code = fr""" 13802s import os 13802s import sys 13802s sys.path = {repr(sys.path)} 13802s 13802s def configuration(parent_name='',top_path=None): 13802s from numpy.distutils.misc_util import Configuration 13802s config = Configuration('', parent_name, top_path) 13802s {config_code} 13802s return config 13802s 13802s if __name__ == "__main__": 13802s from numpy.distutils.core import setup 13802s setup(configuration=configuration) 13802s """ 13802s script = os.path.join(d, get_temp_module_name() + ".py") 13802s dst_sources.append(script) 13802s with open(script, "wb") as f: 13802s f.write(asbytes(code)) 13802s 13802s # Build 13802s cwd = os.getcwd() 13802s try: 13802s os.chdir(d) 13802s cmd = [sys.executable, script, "build_ext", "-i"] 13802s p = subprocess.Popen(cmd, 13802s stdout=subprocess.PIPE, 13802s stderr=subprocess.STDOUT) 13802s out, err = p.communicate() 13802s if p.returncode != 0: 13802s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13802s (cmd[4:], asstr(out))) 13802s E RuntimeError: Running distutils build failed: [] 13802s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13802s E 13802s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13802s E of the deprecation of `distutils` itself. It will be removed for 13802s E Python >= 3.12. For older Python versions it will remain present. 13802s E It is recommended to use `setuptools < 60.0` for those Python versions. 13802s E For more details, see: 13802s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13802s E 13802s E 13802s E from numpy.distutils.core import setup 13802s E running build_ext 13802s E running build_src 13802s E INFO: build_src 13802s E INFO: building extension "test_array_from_pyobj_ext" sources 13802s E INFO: build_src: building npy-pkg config files 13802s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13802s E !! 13802s E 13802s E ******************************************************************************** 13802s E Please avoid running ``setup.py`` directly. 13802s E Instead, use pypa/build, pypa/installer or other 13802s E standards-based tools. 13802s E 13802s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13802s E ******************************************************************************** 13802s E 13802s E !! 13802s E self.initialize_options() 13802s E INFO: customize UnixCCompiler 13802s E INFO: customize UnixCCompiler using build_ext 13802s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/tmp 13802s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E creating /tmp/tmppq19o2st/usr 13802s E creating /tmp/tmppq19o2st/usr/lib 13802s E creating /tmp/tmppq19o2st/usr/lib/python3 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13802s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=native' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-O3' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-Werror' 13802s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13802s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-vfpv4' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13802s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-march=armv8.2-a+fp16' 13802s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/include/python3.12 -c' 13802s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13802s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13802s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13802s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13802s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13802s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13802s E 9 | # include_next 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E 13802s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13802s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13802s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13802s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13802s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13802s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13802s E INFO: building 'test_array_from_pyobj_ext' extension 13802s E INFO: compiling C sources 13802s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13802s E 13802s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13802s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13802s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13802s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13802s E 14 | #include 13802s E | ^~~~~~~~~~ 13802s E In file included from fortranobject.c:2: 13802s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13802s E 7 | #include 13802s E | ^~~~~~~~~~ 13802s E compilation terminated. 13802s E compilation terminated. 13802s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13802s E INFO: 13802s E ########### EXT COMPILER OPTIMIZATION ########### 13802s E INFO: Platform : 13802s E Architecture: armhf 13802s E Compiler : gcc 13802s E 13802s E CPU baseline : 13802s E Requested : 'min' 13802s E Enabled : none 13802s E Flags : none 13802s E Extra checks: none 13802s E 13802s E CPU dispatch : 13802s E Requested : 'max -xop -fma4' 13802s E Enabled : none 13802s E Generated : none 13802s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13802s 13802s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13802s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13802s d = '/tmp/tmpjj8q074z' 13802s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13802s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13802s err = None 13802s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13802s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s kw = {} 13802s module_name = 'test_array_from_pyobj_ext' 13802s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13802s p = 13802s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13802s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13802s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[UINT] _______ 13802s 13802s def setup_module(): 13802s """ 13802s Build the required testing extension module 13802s 13802s """ 13802s global wrap 13802s 13802s # Check compiler availability first 13802s if not util.has_c_compiler(): 13802s pytest.skip("No C compiler available") 13802s 13802s if wrap is None: 13802s config_code = """ 13802s config.add_extension('test_array_from_pyobj_ext', 13802s sources=['wrapmodule.c', 'fortranobject.c'], 13802s define_macros=[]) 13802s """ 13802s d = os.path.dirname(__file__) 13802s src = [ 13802s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13802s util.getpath("src", "fortranobject.c"), 13802s util.getpath("src", "fortranobject.h"), 13802s ] 13802s > wrap = util.build_module_distutils(src, config_code, 13802s "test_array_from_pyobj_ext") 13802s 13802s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13802s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13802s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13802s 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13802s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13802s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13802s memo[key] = func(*a, **kw) 13802s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13802s func = 13802s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13802s kw = {} 13803s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s 13803s @_memoize 13803s def build_module_distutils(source_files, config_code, module_name, **kw): 13803s """ 13803s Build a module via distutils and import it. 13803s 13803s """ 13803s d = get_module_dir() 13803s 13803s # Copy files 13803s dst_sources = [] 13803s for fn in source_files: 13803s if not os.path.isfile(fn): 13803s raise RuntimeError("%s is not a file" % fn) 13803s dst = os.path.join(d, os.path.basename(fn)) 13803s shutil.copyfile(fn, dst) 13803s dst_sources.append(dst) 13803s 13803s # Build script 13803s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13803s 13803s code = fr""" 13803s import os 13803s import sys 13803s sys.path = {repr(sys.path)} 13803s 13803s def configuration(parent_name='',top_path=None): 13803s from numpy.distutils.misc_util import Configuration 13803s config = Configuration('', parent_name, top_path) 13803s {config_code} 13803s return config 13803s 13803s if __name__ == "__main__": 13803s from numpy.distutils.core import setup 13803s setup(configuration=configuration) 13803s """ 13803s script = os.path.join(d, get_temp_module_name() + ".py") 13803s dst_sources.append(script) 13803s with open(script, "wb") as f: 13803s f.write(asbytes(code)) 13803s 13803s # Build 13803s cwd = os.getcwd() 13803s try: 13803s os.chdir(d) 13803s cmd = [sys.executable, script, "build_ext", "-i"] 13803s p = subprocess.Popen(cmd, 13803s stdout=subprocess.PIPE, 13803s stderr=subprocess.STDOUT) 13803s out, err = p.communicate() 13803s if p.returncode != 0: 13803s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13803s (cmd[4:], asstr(out))) 13803s E RuntimeError: Running distutils build failed: [] 13803s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13803s E 13803s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13803s E of the deprecation of `distutils` itself. It will be removed for 13803s E Python >= 3.12. For older Python versions it will remain present. 13803s E It is recommended to use `setuptools < 60.0` for those Python versions. 13803s E For more details, see: 13803s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13803s E 13803s E 13803s E from numpy.distutils.core import setup 13803s E running build_ext 13803s E running build_src 13803s E INFO: build_src 13803s E INFO: building extension "test_array_from_pyobj_ext" sources 13803s E INFO: build_src: building npy-pkg config files 13803s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13803s E !! 13803s E 13803s E ******************************************************************************** 13803s E Please avoid running ``setup.py`` directly. 13803s E Instead, use pypa/build, pypa/installer or other 13803s E standards-based tools. 13803s E 13803s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13803s E ******************************************************************************** 13803s E 13803s E !! 13803s E self.initialize_options() 13803s E INFO: customize UnixCCompiler 13803s E INFO: customize UnixCCompiler using build_ext 13803s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/tmp 13803s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/usr 13803s E creating /tmp/tmppq19o2st/usr/lib 13803s E creating /tmp/tmppq19o2st/usr/lib/python3 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=native' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-O3' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-Werror' 13803s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13803s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-vfpv4' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=armv8.2-a+fp16' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13803s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13803s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13803s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13803s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13803s E INFO: building 'test_array_from_pyobj_ext' extension 13803s E INFO: compiling C sources 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13803s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13803s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13803s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13803s E 14 | #include 13803s E | ^~~~~~~~~~ 13803s E In file included from fortranobject.c:2: 13803s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13803s E 7 | #include 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E compilation terminated. 13803s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13803s E INFO: 13803s E ########### EXT COMPILER OPTIMIZATION ########### 13803s E INFO: Platform : 13803s E Architecture: armhf 13803s E Compiler : gcc 13803s E 13803s E CPU baseline : 13803s E Requested : 'min' 13803s E Enabled : none 13803s E Flags : none 13803s E Extra checks: none 13803s E 13803s E CPU dispatch : 13803s E Requested : 'max -xop -fma4' 13803s E Enabled : none 13803s E Generated : none 13803s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13803s 13803s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13803s d = '/tmp/tmpjj8q074z' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s err = None 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s kw = {} 13803s module_name = 'test_array_from_pyobj_ext' 13803s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13803s p = 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13803s ____________ ERROR at setup of TestSharedMemory.test_inplace[UINT] _____________ 13803s 13803s def setup_module(): 13803s """ 13803s Build the required testing extension module 13803s 13803s """ 13803s global wrap 13803s 13803s # Check compiler availability first 13803s if not util.has_c_compiler(): 13803s pytest.skip("No C compiler available") 13803s 13803s if wrap is None: 13803s config_code = """ 13803s config.add_extension('test_array_from_pyobj_ext', 13803s sources=['wrapmodule.c', 'fortranobject.c'], 13803s define_macros=[]) 13803s """ 13803s d = os.path.dirname(__file__) 13803s src = [ 13803s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13803s util.getpath("src", "fortranobject.c"), 13803s util.getpath("src", "fortranobject.h"), 13803s ] 13803s > wrap = util.build_module_distutils(src, config_code, 13803s "test_array_from_pyobj_ext") 13803s 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13803s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13803s memo[key] = func(*a, **kw) 13803s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13803s func = 13803s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13803s kw = {} 13803s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s 13803s @_memoize 13803s def build_module_distutils(source_files, config_code, module_name, **kw): 13803s """ 13803s Build a module via distutils and import it. 13803s 13803s """ 13803s d = get_module_dir() 13803s 13803s # Copy files 13803s dst_sources = [] 13803s for fn in source_files: 13803s if not os.path.isfile(fn): 13803s raise RuntimeError("%s is not a file" % fn) 13803s dst = os.path.join(d, os.path.basename(fn)) 13803s shutil.copyfile(fn, dst) 13803s dst_sources.append(dst) 13803s 13803s # Build script 13803s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13803s 13803s code = fr""" 13803s import os 13803s import sys 13803s sys.path = {repr(sys.path)} 13803s 13803s def configuration(parent_name='',top_path=None): 13803s from numpy.distutils.misc_util import Configuration 13803s config = Configuration('', parent_name, top_path) 13803s {config_code} 13803s return config 13803s 13803s if __name__ == "__main__": 13803s from numpy.distutils.core import setup 13803s setup(configuration=configuration) 13803s """ 13803s script = os.path.join(d, get_temp_module_name() + ".py") 13803s dst_sources.append(script) 13803s with open(script, "wb") as f: 13803s f.write(asbytes(code)) 13803s 13803s # Build 13803s cwd = os.getcwd() 13803s try: 13803s os.chdir(d) 13803s cmd = [sys.executable, script, "build_ext", "-i"] 13803s p = subprocess.Popen(cmd, 13803s stdout=subprocess.PIPE, 13803s stderr=subprocess.STDOUT) 13803s out, err = p.communicate() 13803s if p.returncode != 0: 13803s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13803s (cmd[4:], asstr(out))) 13803s E RuntimeError: Running distutils build failed: [] 13803s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13803s E 13803s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13803s E of the deprecation of `distutils` itself. It will be removed for 13803s E Python >= 3.12. For older Python versions it will remain present. 13803s E It is recommended to use `setuptools < 60.0` for those Python versions. 13803s E For more details, see: 13803s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13803s E 13803s E 13803s E from numpy.distutils.core import setup 13803s E running build_ext 13803s E running build_src 13803s E INFO: build_src 13803s E INFO: building extension "test_array_from_pyobj_ext" sources 13803s E INFO: build_src: building npy-pkg config files 13803s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13803s E !! 13803s E 13803s E ******************************************************************************** 13803s E Please avoid running ``setup.py`` directly. 13803s E Instead, use pypa/build, pypa/installer or other 13803s E standards-based tools. 13803s E 13803s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13803s E ******************************************************************************** 13803s E 13803s E !! 13803s E self.initialize_options() 13803s E INFO: customize UnixCCompiler 13803s E INFO: customize UnixCCompiler using build_ext 13803s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/tmp 13803s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/usr 13803s E creating /tmp/tmppq19o2st/usr/lib 13803s E creating /tmp/tmppq19o2st/usr/lib/python3 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=native' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-O3' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-Werror' 13803s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13803s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-vfpv4' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=armv8.2-a+fp16' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13803s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13803s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13803s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13803s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13803s E INFO: building 'test_array_from_pyobj_ext' extension 13803s E INFO: compiling C sources 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13803s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13803s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13803s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13803s E 14 | #include 13803s E | ^~~~~~~~~~ 13803s E In file included from fortranobject.c:2: 13803s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13803s E 7 | #include 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E compilation terminated. 13803s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13803s E INFO: 13803s E ########### EXT COMPILER OPTIMIZATION ########### 13803s E INFO: Platform : 13803s E Architecture: armhf 13803s E Compiler : gcc 13803s E 13803s E CPU baseline : 13803s E Requested : 'min' 13803s E Enabled : none 13803s E Flags : none 13803s E Extra checks: none 13803s E 13803s E CPU dispatch : 13803s E Requested : 'max -xop -fma4' 13803s E Enabled : none 13803s E Generated : none 13803s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13803s 13803s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13803s d = '/tmp/tmpjj8q074z' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s err = None 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s kw = {} 13803s module_name = 'test_array_from_pyobj_ext' 13803s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13803s p = 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13803s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[UINT] ______ 13803s 13803s def setup_module(): 13803s """ 13803s Build the required testing extension module 13803s 13803s """ 13803s global wrap 13803s 13803s # Check compiler availability first 13803s if not util.has_c_compiler(): 13803s pytest.skip("No C compiler available") 13803s 13803s if wrap is None: 13803s config_code = """ 13803s config.add_extension('test_array_from_pyobj_ext', 13803s sources=['wrapmodule.c', 'fortranobject.c'], 13803s define_macros=[]) 13803s """ 13803s d = os.path.dirname(__file__) 13803s src = [ 13803s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13803s util.getpath("src", "fortranobject.c"), 13803s util.getpath("src", "fortranobject.h"), 13803s ] 13803s > wrap = util.build_module_distutils(src, config_code, 13803s "test_array_from_pyobj_ext") 13803s 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13803s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13803s memo[key] = func(*a, **kw) 13803s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13803s func = 13803s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13803s kw = {} 13803s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s 13803s @_memoize 13803s def build_module_distutils(source_files, config_code, module_name, **kw): 13803s """ 13803s Build a module via distutils and import it. 13803s 13803s """ 13803s d = get_module_dir() 13803s 13803s # Copy files 13803s dst_sources = [] 13803s for fn in source_files: 13803s if not os.path.isfile(fn): 13803s raise RuntimeError("%s is not a file" % fn) 13803s dst = os.path.join(d, os.path.basename(fn)) 13803s shutil.copyfile(fn, dst) 13803s dst_sources.append(dst) 13803s 13803s # Build script 13803s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13803s 13803s code = fr""" 13803s import os 13803s import sys 13803s sys.path = {repr(sys.path)} 13803s 13803s def configuration(parent_name='',top_path=None): 13803s from numpy.distutils.misc_util import Configuration 13803s config = Configuration('', parent_name, top_path) 13803s {config_code} 13803s return config 13803s 13803s if __name__ == "__main__": 13803s from numpy.distutils.core import setup 13803s setup(configuration=configuration) 13803s """ 13803s script = os.path.join(d, get_temp_module_name() + ".py") 13803s dst_sources.append(script) 13803s with open(script, "wb") as f: 13803s f.write(asbytes(code)) 13803s 13803s # Build 13803s cwd = os.getcwd() 13803s try: 13803s os.chdir(d) 13803s cmd = [sys.executable, script, "build_ext", "-i"] 13803s p = subprocess.Popen(cmd, 13803s stdout=subprocess.PIPE, 13803s stderr=subprocess.STDOUT) 13803s out, err = p.communicate() 13803s if p.returncode != 0: 13803s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13803s (cmd[4:], asstr(out))) 13803s E RuntimeError: Running distutils build failed: [] 13803s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13803s E 13803s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13803s E of the deprecation of `distutils` itself. It will be removed for 13803s E Python >= 3.12. For older Python versions it will remain present. 13803s E It is recommended to use `setuptools < 60.0` for those Python versions. 13803s E For more details, see: 13803s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13803s E 13803s E 13803s E from numpy.distutils.core import setup 13803s E running build_ext 13803s E running build_src 13803s E INFO: build_src 13803s E INFO: building extension "test_array_from_pyobj_ext" sources 13803s E INFO: build_src: building npy-pkg config files 13803s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13803s E !! 13803s E 13803s E ******************************************************************************** 13803s E Please avoid running ``setup.py`` directly. 13803s E Instead, use pypa/build, pypa/installer or other 13803s E standards-based tools. 13803s E 13803s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13803s E ******************************************************************************** 13803s E 13803s E !! 13803s E self.initialize_options() 13803s E INFO: customize UnixCCompiler 13803s E INFO: customize UnixCCompiler using build_ext 13803s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/tmp 13803s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/usr 13803s E creating /tmp/tmppq19o2st/usr/lib 13803s E creating /tmp/tmppq19o2st/usr/lib/python3 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=native' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-O3' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-Werror' 13803s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13803s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-vfpv4' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=armv8.2-a+fp16' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13803s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13803s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13803s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13803s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13803s E INFO: building 'test_array_from_pyobj_ext' extension 13803s E INFO: compiling C sources 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13803s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13803s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13803s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13803s E 14 | #include 13803s E | ^~~~~~~~~~ 13803s E In file included from fortranobject.c:2: 13803s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13803s E 7 | #include 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E compilation terminated. 13803s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13803s E INFO: 13803s E ########### EXT COMPILER OPTIMIZATION ########### 13803s E INFO: Platform : 13803s E Architecture: armhf 13803s E Compiler : gcc 13803s E 13803s E CPU baseline : 13803s E Requested : 'min' 13803s E Enabled : none 13803s E Flags : none 13803s E Extra checks: none 13803s E 13803s E CPU dispatch : 13803s E Requested : 'max -xop -fma4' 13803s E Enabled : none 13803s E Generated : none 13803s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13803s 13803s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13803s d = '/tmp/tmpjj8q074z' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s err = None 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s kw = {} 13803s module_name = 'test_array_from_pyobj_ext' 13803s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13803s p = 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13803s __________ ERROR at setup of TestSharedMemory.test_in_from_2seq[LONG] __________ 13803s 13803s def setup_module(): 13803s """ 13803s Build the required testing extension module 13803s 13803s """ 13803s global wrap 13803s 13803s # Check compiler availability first 13803s if not util.has_c_compiler(): 13803s pytest.skip("No C compiler available") 13803s 13803s if wrap is None: 13803s config_code = """ 13803s config.add_extension('test_array_from_pyobj_ext', 13803s sources=['wrapmodule.c', 'fortranobject.c'], 13803s define_macros=[]) 13803s """ 13803s d = os.path.dirname(__file__) 13803s src = [ 13803s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13803s util.getpath("src", "fortranobject.c"), 13803s util.getpath("src", "fortranobject.h"), 13803s ] 13803s > wrap = util.build_module_distutils(src, config_code, 13803s "test_array_from_pyobj_ext") 13803s 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13803s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13803s memo[key] = func(*a, **kw) 13803s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13803s func = 13803s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13803s kw = {} 13803s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s 13803s @_memoize 13803s def build_module_distutils(source_files, config_code, module_name, **kw): 13803s """ 13803s Build a module via distutils and import it. 13803s 13803s """ 13803s d = get_module_dir() 13803s 13803s # Copy files 13803s dst_sources = [] 13803s for fn in source_files: 13803s if not os.path.isfile(fn): 13803s raise RuntimeError("%s is not a file" % fn) 13803s dst = os.path.join(d, os.path.basename(fn)) 13803s shutil.copyfile(fn, dst) 13803s dst_sources.append(dst) 13803s 13803s # Build script 13803s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13803s 13803s code = fr""" 13803s import os 13803s import sys 13803s sys.path = {repr(sys.path)} 13803s 13803s def configuration(parent_name='',top_path=None): 13803s from numpy.distutils.misc_util import Configuration 13803s config = Configuration('', parent_name, top_path) 13803s {config_code} 13803s return config 13803s 13803s if __name__ == "__main__": 13803s from numpy.distutils.core import setup 13803s setup(configuration=configuration) 13803s """ 13803s script = os.path.join(d, get_temp_module_name() + ".py") 13803s dst_sources.append(script) 13803s with open(script, "wb") as f: 13803s f.write(asbytes(code)) 13803s 13803s # Build 13803s cwd = os.getcwd() 13803s try: 13803s os.chdir(d) 13803s cmd = [sys.executable, script, "build_ext", "-i"] 13803s p = subprocess.Popen(cmd, 13803s stdout=subprocess.PIPE, 13803s stderr=subprocess.STDOUT) 13803s out, err = p.communicate() 13803s if p.returncode != 0: 13803s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13803s (cmd[4:], asstr(out))) 13803s E RuntimeError: Running distutils build failed: [] 13803s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13803s E 13803s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13803s E of the deprecation of `distutils` itself. It will be removed for 13803s E Python >= 3.12. For older Python versions it will remain present. 13803s E It is recommended to use `setuptools < 60.0` for those Python versions. 13803s E For more details, see: 13803s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13803s E 13803s E 13803s E from numpy.distutils.core import setup 13803s E running build_ext 13803s E running build_src 13803s E INFO: build_src 13803s E INFO: building extension "test_array_from_pyobj_ext" sources 13803s E INFO: build_src: building npy-pkg config files 13803s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13803s E !! 13803s E 13803s E ******************************************************************************** 13803s E Please avoid running ``setup.py`` directly. 13803s E Instead, use pypa/build, pypa/installer or other 13803s E standards-based tools. 13803s E 13803s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13803s E ******************************************************************************** 13803s E 13803s E !! 13803s E self.initialize_options() 13803s E INFO: customize UnixCCompiler 13803s E INFO: customize UnixCCompiler using build_ext 13803s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/tmp 13803s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/usr 13803s E creating /tmp/tmppq19o2st/usr/lib 13803s E creating /tmp/tmppq19o2st/usr/lib/python3 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=native' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-O3' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-Werror' 13803s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13803s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-vfpv4' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=armv8.2-a+fp16' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13803s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13803s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13803s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13803s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13803s E INFO: building 'test_array_from_pyobj_ext' extension 13803s E INFO: compiling C sources 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13803s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13803s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13803s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13803s E 14 | #include 13803s E | ^~~~~~~~~~ 13803s E In file included from fortranobject.c:2: 13803s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13803s E 7 | #include 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E compilation terminated. 13803s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13803s E INFO: 13803s E ########### EXT COMPILER OPTIMIZATION ########### 13803s E INFO: Platform : 13803s E Architecture: armhf 13803s E Compiler : gcc 13803s E 13803s E CPU baseline : 13803s E Requested : 'min' 13803s E Enabled : none 13803s E Flags : none 13803s E Extra checks: none 13803s E 13803s E CPU dispatch : 13803s E Requested : 'max -xop -fma4' 13803s E Enabled : none 13803s E Generated : none 13803s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13803s 13803s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13803s d = '/tmp/tmpjj8q074z' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s err = None 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s kw = {} 13803s module_name = 'test_array_from_pyobj_ext' 13803s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13803s p = 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13803s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[LONG] ________ 13803s 13803s def setup_module(): 13803s """ 13803s Build the required testing extension module 13803s 13803s """ 13803s global wrap 13803s 13803s # Check compiler availability first 13803s if not util.has_c_compiler(): 13803s pytest.skip("No C compiler available") 13803s 13803s if wrap is None: 13803s config_code = """ 13803s config.add_extension('test_array_from_pyobj_ext', 13803s sources=['wrapmodule.c', 'fortranobject.c'], 13803s define_macros=[]) 13803s """ 13803s d = os.path.dirname(__file__) 13803s src = [ 13803s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13803s util.getpath("src", "fortranobject.c"), 13803s util.getpath("src", "fortranobject.h"), 13803s ] 13803s > wrap = util.build_module_distutils(src, config_code, 13803s "test_array_from_pyobj_ext") 13803s 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13803s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13803s memo[key] = func(*a, **kw) 13803s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13803s func = 13803s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13803s kw = {} 13803s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s 13803s @_memoize 13803s def build_module_distutils(source_files, config_code, module_name, **kw): 13803s """ 13803s Build a module via distutils and import it. 13803s 13803s """ 13803s d = get_module_dir() 13803s 13803s # Copy files 13803s dst_sources = [] 13803s for fn in source_files: 13803s if not os.path.isfile(fn): 13803s raise RuntimeError("%s is not a file" % fn) 13803s dst = os.path.join(d, os.path.basename(fn)) 13803s shutil.copyfile(fn, dst) 13803s dst_sources.append(dst) 13803s 13803s # Build script 13803s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13803s 13803s code = fr""" 13803s import os 13803s import sys 13803s sys.path = {repr(sys.path)} 13803s 13803s def configuration(parent_name='',top_path=None): 13803s from numpy.distutils.misc_util import Configuration 13803s config = Configuration('', parent_name, top_path) 13803s {config_code} 13803s return config 13803s 13803s if __name__ == "__main__": 13803s from numpy.distutils.core import setup 13803s setup(configuration=configuration) 13803s """ 13803s script = os.path.join(d, get_temp_module_name() + ".py") 13803s dst_sources.append(script) 13803s with open(script, "wb") as f: 13803s f.write(asbytes(code)) 13803s 13803s # Build 13803s cwd = os.getcwd() 13803s try: 13803s os.chdir(d) 13803s cmd = [sys.executable, script, "build_ext", "-i"] 13803s p = subprocess.Popen(cmd, 13803s stdout=subprocess.PIPE, 13803s stderr=subprocess.STDOUT) 13803s out, err = p.communicate() 13803s if p.returncode != 0: 13803s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13803s (cmd[4:], asstr(out))) 13803s E RuntimeError: Running distutils build failed: [] 13803s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13803s E 13803s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13803s E of the deprecation of `distutils` itself. It will be removed for 13803s E Python >= 3.12. For older Python versions it will remain present. 13803s E It is recommended to use `setuptools < 60.0` for those Python versions. 13803s E For more details, see: 13803s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13803s E 13803s E 13803s E from numpy.distutils.core import setup 13803s E running build_ext 13803s E running build_src 13803s E INFO: build_src 13803s E INFO: building extension "test_array_from_pyobj_ext" sources 13803s E INFO: build_src: building npy-pkg config files 13803s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13803s E !! 13803s E 13803s E ******************************************************************************** 13803s E Please avoid running ``setup.py`` directly. 13803s E Instead, use pypa/build, pypa/installer or other 13803s E standards-based tools. 13803s E 13803s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13803s E ******************************************************************************** 13803s E 13803s E !! 13803s E self.initialize_options() 13803s E INFO: customize UnixCCompiler 13803s E INFO: customize UnixCCompiler using build_ext 13803s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/tmp 13803s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/usr 13803s E creating /tmp/tmppq19o2st/usr/lib 13803s E creating /tmp/tmppq19o2st/usr/lib/python3 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=native' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-O3' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-Werror' 13803s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13803s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-vfpv4' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=armv8.2-a+fp16' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13803s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13803s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13803s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13803s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13803s E INFO: building 'test_array_from_pyobj_ext' extension 13803s E INFO: compiling C sources 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13803s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13803s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13803s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13803s E 14 | #include 13803s E | ^~~~~~~~~~ 13803s E In file included from fortranobject.c:2: 13803s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13803s E 7 | #include 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E compilation terminated. 13803s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13803s E INFO: 13803s E ########### EXT COMPILER OPTIMIZATION ########### 13803s E INFO: Platform : 13803s E Architecture: armhf 13803s E Compiler : gcc 13803s E 13803s E CPU baseline : 13803s E Requested : 'min' 13803s E Enabled : none 13803s E Flags : none 13803s E Extra checks: none 13803s E 13803s E CPU dispatch : 13803s E Requested : 'max -xop -fma4' 13803s E Enabled : none 13803s E Generated : none 13803s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13803s 13803s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13803s d = '/tmp/tmpjj8q074z' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s err = None 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s kw = {} 13803s module_name = 'test_array_from_pyobj_ext' 13803s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13803s p = 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13803s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-2seq-C-w] _______ 13803s 13803s def setup_module(): 13803s """ 13803s Build the required testing extension module 13803s 13803s """ 13803s global wrap 13803s 13803s # Check compiler availability first 13803s if not util.has_c_compiler(): 13803s pytest.skip("No C compiler available") 13803s 13803s if wrap is None: 13803s config_code = """ 13803s config.add_extension('test_array_from_pyobj_ext', 13803s sources=['wrapmodule.c', 'fortranobject.c'], 13803s define_macros=[]) 13803s """ 13803s d = os.path.dirname(__file__) 13803s src = [ 13803s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13803s util.getpath("src", "fortranobject.c"), 13803s util.getpath("src", "fortranobject.h"), 13803s ] 13803s > wrap = util.build_module_distutils(src, config_code, 13803s "test_array_from_pyobj_ext") 13803s 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13803s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13803s memo[key] = func(*a, **kw) 13803s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13803s func = 13803s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13803s kw = {} 13803s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s 13803s @_memoize 13803s def build_module_distutils(source_files, config_code, module_name, **kw): 13803s """ 13803s Build a module via distutils and import it. 13803s 13803s """ 13803s d = get_module_dir() 13803s 13803s # Copy files 13803s dst_sources = [] 13803s for fn in source_files: 13803s if not os.path.isfile(fn): 13803s raise RuntimeError("%s is not a file" % fn) 13803s dst = os.path.join(d, os.path.basename(fn)) 13803s shutil.copyfile(fn, dst) 13803s dst_sources.append(dst) 13803s 13803s # Build script 13803s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13803s 13803s code = fr""" 13803s import os 13803s import sys 13803s sys.path = {repr(sys.path)} 13803s 13803s def configuration(parent_name='',top_path=None): 13803s from numpy.distutils.misc_util import Configuration 13803s config = Configuration('', parent_name, top_path) 13803s {config_code} 13803s return config 13803s 13803s if __name__ == "__main__": 13803s from numpy.distutils.core import setup 13803s setup(configuration=configuration) 13803s """ 13803s script = os.path.join(d, get_temp_module_name() + ".py") 13803s dst_sources.append(script) 13803s with open(script, "wb") as f: 13803s f.write(asbytes(code)) 13803s 13803s # Build 13803s cwd = os.getcwd() 13803s try: 13803s os.chdir(d) 13803s cmd = [sys.executable, script, "build_ext", "-i"] 13803s p = subprocess.Popen(cmd, 13803s stdout=subprocess.PIPE, 13803s stderr=subprocess.STDOUT) 13803s out, err = p.communicate() 13803s if p.returncode != 0: 13803s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13803s (cmd[4:], asstr(out))) 13803s E RuntimeError: Running distutils build failed: [] 13803s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13803s E 13803s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13803s E of the deprecation of `distutils` itself. It will be removed for 13803s E Python >= 3.12. For older Python versions it will remain present. 13803s E It is recommended to use `setuptools < 60.0` for those Python versions. 13803s E For more details, see: 13803s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13803s E 13803s E 13803s E from numpy.distutils.core import setup 13803s E running build_ext 13803s E running build_src 13803s E INFO: build_src 13803s E INFO: building extension "test_array_from_pyobj_ext" sources 13803s E INFO: build_src: building npy-pkg config files 13803s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13803s E !! 13803s E 13803s E ******************************************************************************** 13803s E Please avoid running ``setup.py`` directly. 13803s E Instead, use pypa/build, pypa/installer or other 13803s E standards-based tools. 13803s E 13803s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13803s E ******************************************************************************** 13803s E 13803s E !! 13803s E self.initialize_options() 13803s E INFO: customize UnixCCompiler 13803s E INFO: customize UnixCCompiler using build_ext 13803s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/tmp 13803s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/usr 13803s E creating /tmp/tmppq19o2st/usr/lib 13803s E creating /tmp/tmppq19o2st/usr/lib/python3 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=native' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-O3' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-Werror' 13803s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13803s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-vfpv4' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=armv8.2-a+fp16' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13803s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13803s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13803s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13803s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13803s E INFO: building 'test_array_from_pyobj_ext' extension 13803s E INFO: compiling C sources 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13803s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13803s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13803s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13803s E 14 | #include 13803s E | ^~~~~~~~~~ 13803s E In file included from fortranobject.c:2: 13803s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13803s E 7 | #include 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E compilation terminated. 13803s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13803s E INFO: 13803s E ########### EXT COMPILER OPTIMIZATION ########### 13803s E INFO: Platform : 13803s E Architecture: armhf 13803s E Compiler : gcc 13803s E 13803s E CPU baseline : 13803s E Requested : 'min' 13803s E Enabled : none 13803s E Flags : none 13803s E Extra checks: none 13803s E 13803s E CPU dispatch : 13803s E Requested : 'max -xop -fma4' 13803s E Enabled : none 13803s E Generated : none 13803s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13803s 13803s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13803s d = '/tmp/tmpjj8q074z' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s err = None 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s kw = {} 13803s module_name = 'test_array_from_pyobj_ext' 13803s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13803s p = 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13803s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-2seq-C-ro] _______ 13803s 13803s def setup_module(): 13803s """ 13803s Build the required testing extension module 13803s 13803s """ 13803s global wrap 13803s 13803s # Check compiler availability first 13803s if not util.has_c_compiler(): 13803s pytest.skip("No C compiler available") 13803s 13803s if wrap is None: 13803s config_code = """ 13803s config.add_extension('test_array_from_pyobj_ext', 13803s sources=['wrapmodule.c', 'fortranobject.c'], 13803s define_macros=[]) 13803s """ 13803s d = os.path.dirname(__file__) 13803s src = [ 13803s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13803s util.getpath("src", "fortranobject.c"), 13803s util.getpath("src", "fortranobject.h"), 13803s ] 13803s > wrap = util.build_module_distutils(src, config_code, 13803s "test_array_from_pyobj_ext") 13803s 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13803s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13803s memo[key] = func(*a, **kw) 13803s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13803s func = 13803s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13803s kw = {} 13803s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s 13803s @_memoize 13803s def build_module_distutils(source_files, config_code, module_name, **kw): 13803s """ 13803s Build a module via distutils and import it. 13803s 13803s """ 13803s d = get_module_dir() 13803s 13803s # Copy files 13803s dst_sources = [] 13803s for fn in source_files: 13803s if not os.path.isfile(fn): 13803s raise RuntimeError("%s is not a file" % fn) 13803s dst = os.path.join(d, os.path.basename(fn)) 13803s shutil.copyfile(fn, dst) 13803s dst_sources.append(dst) 13803s 13803s # Build script 13803s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13803s 13803s code = fr""" 13803s import os 13803s import sys 13803s sys.path = {repr(sys.path)} 13803s 13803s def configuration(parent_name='',top_path=None): 13803s from numpy.distutils.misc_util import Configuration 13803s config = Configuration('', parent_name, top_path) 13803s {config_code} 13803s return config 13803s 13803s if __name__ == "__main__": 13803s from numpy.distutils.core import setup 13803s setup(configuration=configuration) 13803s """ 13803s script = os.path.join(d, get_temp_module_name() + ".py") 13803s dst_sources.append(script) 13803s with open(script, "wb") as f: 13803s f.write(asbytes(code)) 13803s 13803s # Build 13803s cwd = os.getcwd() 13803s try: 13803s os.chdir(d) 13803s cmd = [sys.executable, script, "build_ext", "-i"] 13803s p = subprocess.Popen(cmd, 13803s stdout=subprocess.PIPE, 13803s stderr=subprocess.STDOUT) 13803s out, err = p.communicate() 13803s if p.returncode != 0: 13803s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13803s (cmd[4:], asstr(out))) 13803s E RuntimeError: Running distutils build failed: [] 13803s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13803s E 13803s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13803s E of the deprecation of `distutils` itself. It will be removed for 13803s E Python >= 3.12. For older Python versions it will remain present. 13803s E It is recommended to use `setuptools < 60.0` for those Python versions. 13803s E For more details, see: 13803s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13803s E 13803s E 13803s E from numpy.distutils.core import setup 13803s E running build_ext 13803s E running build_src 13803s E INFO: build_src 13803s E INFO: building extension "test_array_from_pyobj_ext" sources 13803s E INFO: build_src: building npy-pkg config files 13803s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13803s E !! 13803s E 13803s E ******************************************************************************** 13803s E Please avoid running ``setup.py`` directly. 13803s E Instead, use pypa/build, pypa/installer or other 13803s E standards-based tools. 13803s E 13803s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13803s E ******************************************************************************** 13803s E 13803s E !! 13803s E self.initialize_options() 13803s E INFO: customize UnixCCompiler 13803s E INFO: customize UnixCCompiler using build_ext 13803s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/tmp 13803s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/usr 13803s E creating /tmp/tmppq19o2st/usr/lib 13803s E creating /tmp/tmppq19o2st/usr/lib/python3 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=native' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-O3' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-Werror' 13803s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13803s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-vfpv4' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=armv8.2-a+fp16' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13803s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13803s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13803s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13803s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13803s E INFO: building 'test_array_from_pyobj_ext' extension 13803s E INFO: compiling C sources 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13803s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13803s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13803s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13803s E 14 | #include 13803s E | ^~~~~~~~~~ 13803s E In file included from fortranobject.c:2: 13803s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13803s E 7 | #include 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E compilation terminated. 13803s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13803s E INFO: 13803s E ########### EXT COMPILER OPTIMIZATION ########### 13803s E INFO: Platform : 13803s E Architecture: armhf 13803s E Compiler : gcc 13803s E 13803s E CPU baseline : 13803s E Requested : 'min' 13803s E Enabled : none 13803s E Flags : none 13803s E Extra checks: none 13803s E 13803s E CPU dispatch : 13803s E Requested : 'max -xop -fma4' 13803s E Enabled : none 13803s E Generated : none 13803s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13803s 13803s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13803s d = '/tmp/tmpjj8q074z' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s err = None 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s kw = {} 13803s module_name = 'test_array_from_pyobj_ext' 13803s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13803s p = 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13803s _______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-2seq-F-w] _______ 13803s 13803s def setup_module(): 13803s """ 13803s Build the required testing extension module 13803s 13803s """ 13803s global wrap 13803s 13803s # Check compiler availability first 13803s if not util.has_c_compiler(): 13803s pytest.skip("No C compiler available") 13803s 13803s if wrap is None: 13803s config_code = """ 13803s config.add_extension('test_array_from_pyobj_ext', 13803s sources=['wrapmodule.c', 'fortranobject.c'], 13803s define_macros=[]) 13803s """ 13803s d = os.path.dirname(__file__) 13803s src = [ 13803s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13803s util.getpath("src", "fortranobject.c"), 13803s util.getpath("src", "fortranobject.h"), 13803s ] 13803s > wrap = util.build_module_distutils(src, config_code, 13803s "test_array_from_pyobj_ext") 13803s 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13803s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13803s memo[key] = func(*a, **kw) 13803s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13803s func = 13803s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13803s kw = {} 13803s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13803s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13803s 13803s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13803s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13803s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13803s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13803s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13803s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13803s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13803s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13803s 13803s @_memoize 13803s def build_module_distutils(source_files, config_code, module_name, **kw): 13803s """ 13803s Build a module via distutils and import it. 13803s 13803s """ 13803s d = get_module_dir() 13803s 13803s # Copy files 13803s dst_sources = [] 13803s for fn in source_files: 13803s if not os.path.isfile(fn): 13803s raise RuntimeError("%s is not a file" % fn) 13803s dst = os.path.join(d, os.path.basename(fn)) 13803s shutil.copyfile(fn, dst) 13803s dst_sources.append(dst) 13803s 13803s # Build script 13803s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13803s 13803s code = fr""" 13803s import os 13803s import sys 13803s sys.path = {repr(sys.path)} 13803s 13803s def configuration(parent_name='',top_path=None): 13803s from numpy.distutils.misc_util import Configuration 13803s config = Configuration('', parent_name, top_path) 13803s {config_code} 13803s return config 13803s 13803s if __name__ == "__main__": 13803s from numpy.distutils.core import setup 13803s setup(configuration=configuration) 13803s """ 13803s script = os.path.join(d, get_temp_module_name() + ".py") 13803s dst_sources.append(script) 13803s with open(script, "wb") as f: 13803s f.write(asbytes(code)) 13803s 13803s # Build 13803s cwd = os.getcwd() 13803s try: 13803s os.chdir(d) 13803s cmd = [sys.executable, script, "build_ext", "-i"] 13803s p = subprocess.Popen(cmd, 13803s stdout=subprocess.PIPE, 13803s stderr=subprocess.STDOUT) 13803s out, err = p.communicate() 13803s if p.returncode != 0: 13803s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13803s (cmd[4:], asstr(out))) 13803s E RuntimeError: Running distutils build failed: [] 13803s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13803s E 13803s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13803s E of the deprecation of `distutils` itself. It will be removed for 13803s E Python >= 3.12. For older Python versions it will remain present. 13803s E It is recommended to use `setuptools < 60.0` for those Python versions. 13803s E For more details, see: 13803s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13803s E 13803s E 13803s E from numpy.distutils.core import setup 13803s E running build_ext 13803s E running build_src 13803s E INFO: build_src 13803s E INFO: building extension "test_array_from_pyobj_ext" sources 13803s E INFO: build_src: building npy-pkg config files 13803s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13803s E !! 13803s E 13803s E ******************************************************************************** 13803s E Please avoid running ``setup.py`` directly. 13803s E Instead, use pypa/build, pypa/installer or other 13803s E standards-based tools. 13803s E 13803s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13803s E ******************************************************************************** 13803s E 13803s E !! 13803s E self.initialize_options() 13803s E INFO: customize UnixCCompiler 13803s E INFO: customize UnixCCompiler using build_ext 13803s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/tmp 13803s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E creating /tmp/tmppq19o2st/usr 13803s E creating /tmp/tmppq19o2st/usr/lib 13803s E creating /tmp/tmppq19o2st/usr/lib/python3 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13803s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=native' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-O3' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-Werror' 13803s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13803s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-vfpv4' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13803s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-march=armv8.2-a+fp16' 13803s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/include/python3.12 -c' 13803s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13803s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13803s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13803s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13803s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13803s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13803s E 9 | # include_next 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E 13803s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13803s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13803s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13803s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13803s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13803s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13803s E INFO: building 'test_array_from_pyobj_ext' extension 13803s E INFO: compiling C sources 13803s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13803s E 13803s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13803s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13803s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13803s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13803s E 14 | #include 13803s E | ^~~~~~~~~~ 13803s E In file included from fortranobject.c:2: 13803s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13803s E 7 | #include 13803s E | ^~~~~~~~~~ 13803s E compilation terminated. 13803s E compilation terminated. 13803s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13803s E INFO: 13803s E ########### EXT COMPILER OPTIMIZATION ########### 13803s E INFO: Platform : 13803s E Architecture: armhf 13803s E Compiler : gcc 13803s E 13803s E CPU baseline : 13803s E Requested : 'min' 13803s E Enabled : none 13803s E Flags : none 13803s E Extra checks: none 13803s E 13803s E CPU dispatch : 13803s E Requested : 'max -xop -fma4' 13803s E Enabled : none 13803s E Generated : none 13803s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13803s 13803s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13804s d = '/tmp/tmpjj8q074z' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s err = None 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s kw = {} 13804s module_name = 'test_array_from_pyobj_ext' 13804s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13804s p = 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13804s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-2seq-F-ro] _______ 13804s 13804s def setup_module(): 13804s """ 13804s Build the required testing extension module 13804s 13804s """ 13804s global wrap 13804s 13804s # Check compiler availability first 13804s if not util.has_c_compiler(): 13804s pytest.skip("No C compiler available") 13804s 13804s if wrap is None: 13804s config_code = """ 13804s config.add_extension('test_array_from_pyobj_ext', 13804s sources=['wrapmodule.c', 'fortranobject.c'], 13804s define_macros=[]) 13804s """ 13804s d = os.path.dirname(__file__) 13804s src = [ 13804s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13804s util.getpath("src", "fortranobject.c"), 13804s util.getpath("src", "fortranobject.h"), 13804s ] 13804s > wrap = util.build_module_distutils(src, config_code, 13804s "test_array_from_pyobj_ext") 13804s 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13804s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13804s memo[key] = func(*a, **kw) 13804s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13804s func = 13804s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13804s kw = {} 13804s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s 13804s @_memoize 13804s def build_module_distutils(source_files, config_code, module_name, **kw): 13804s """ 13804s Build a module via distutils and import it. 13804s 13804s """ 13804s d = get_module_dir() 13804s 13804s # Copy files 13804s dst_sources = [] 13804s for fn in source_files: 13804s if not os.path.isfile(fn): 13804s raise RuntimeError("%s is not a file" % fn) 13804s dst = os.path.join(d, os.path.basename(fn)) 13804s shutil.copyfile(fn, dst) 13804s dst_sources.append(dst) 13804s 13804s # Build script 13804s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13804s 13804s code = fr""" 13804s import os 13804s import sys 13804s sys.path = {repr(sys.path)} 13804s 13804s def configuration(parent_name='',top_path=None): 13804s from numpy.distutils.misc_util import Configuration 13804s config = Configuration('', parent_name, top_path) 13804s {config_code} 13804s return config 13804s 13804s if __name__ == "__main__": 13804s from numpy.distutils.core import setup 13804s setup(configuration=configuration) 13804s """ 13804s script = os.path.join(d, get_temp_module_name() + ".py") 13804s dst_sources.append(script) 13804s with open(script, "wb") as f: 13804s f.write(asbytes(code)) 13804s 13804s # Build 13804s cwd = os.getcwd() 13804s try: 13804s os.chdir(d) 13804s cmd = [sys.executable, script, "build_ext", "-i"] 13804s p = subprocess.Popen(cmd, 13804s stdout=subprocess.PIPE, 13804s stderr=subprocess.STDOUT) 13804s out, err = p.communicate() 13804s if p.returncode != 0: 13804s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13804s (cmd[4:], asstr(out))) 13804s E RuntimeError: Running distutils build failed: [] 13804s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13804s E 13804s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13804s E of the deprecation of `distutils` itself. It will be removed for 13804s E Python >= 3.12. For older Python versions it will remain present. 13804s E It is recommended to use `setuptools < 60.0` for those Python versions. 13804s E For more details, see: 13804s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13804s E 13804s E 13804s E from numpy.distutils.core import setup 13804s E running build_ext 13804s E running build_src 13804s E INFO: build_src 13804s E INFO: building extension "test_array_from_pyobj_ext" sources 13804s E INFO: build_src: building npy-pkg config files 13804s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13804s E !! 13804s E 13804s E ******************************************************************************** 13804s E Please avoid running ``setup.py`` directly. 13804s E Instead, use pypa/build, pypa/installer or other 13804s E standards-based tools. 13804s E 13804s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13804s E ******************************************************************************** 13804s E 13804s E !! 13804s E self.initialize_options() 13804s E INFO: customize UnixCCompiler 13804s E INFO: customize UnixCCompiler using build_ext 13804s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/tmp 13804s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/usr 13804s E creating /tmp/tmppq19o2st/usr/lib 13804s E creating /tmp/tmppq19o2st/usr/lib/python3 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=native' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-O3' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-Werror' 13804s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13804s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-vfpv4' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=armv8.2-a+fp16' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13804s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13804s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13804s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13804s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13804s E INFO: building 'test_array_from_pyobj_ext' extension 13804s E INFO: compiling C sources 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13804s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13804s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13804s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13804s E 14 | #include 13804s E | ^~~~~~~~~~ 13804s E In file included from fortranobject.c:2: 13804s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13804s E 7 | #include 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E compilation terminated. 13804s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13804s E INFO: 13804s E ########### EXT COMPILER OPTIMIZATION ########### 13804s E INFO: Platform : 13804s E Architecture: armhf 13804s E Compiler : gcc 13804s E 13804s E CPU baseline : 13804s E Requested : 'min' 13804s E Enabled : none 13804s E Flags : none 13804s E Extra checks: none 13804s E 13804s E CPU dispatch : 13804s E Requested : 'max -xop -fma4' 13804s E Enabled : none 13804s E Generated : none 13804s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13804s 13804s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13804s d = '/tmp/tmpjj8q074z' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s err = None 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s kw = {} 13804s module_name = 'test_array_from_pyobj_ext' 13804s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13804s p = 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13804s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-23seq-C-w] _______ 13804s 13804s def setup_module(): 13804s """ 13804s Build the required testing extension module 13804s 13804s """ 13804s global wrap 13804s 13804s # Check compiler availability first 13804s if not util.has_c_compiler(): 13804s pytest.skip("No C compiler available") 13804s 13804s if wrap is None: 13804s config_code = """ 13804s config.add_extension('test_array_from_pyobj_ext', 13804s sources=['wrapmodule.c', 'fortranobject.c'], 13804s define_macros=[]) 13804s """ 13804s d = os.path.dirname(__file__) 13804s src = [ 13804s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13804s util.getpath("src", "fortranobject.c"), 13804s util.getpath("src", "fortranobject.h"), 13804s ] 13804s > wrap = util.build_module_distutils(src, config_code, 13804s "test_array_from_pyobj_ext") 13804s 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13804s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13804s memo[key] = func(*a, **kw) 13804s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13804s func = 13804s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13804s kw = {} 13804s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s 13804s @_memoize 13804s def build_module_distutils(source_files, config_code, module_name, **kw): 13804s """ 13804s Build a module via distutils and import it. 13804s 13804s """ 13804s d = get_module_dir() 13804s 13804s # Copy files 13804s dst_sources = [] 13804s for fn in source_files: 13804s if not os.path.isfile(fn): 13804s raise RuntimeError("%s is not a file" % fn) 13804s dst = os.path.join(d, os.path.basename(fn)) 13804s shutil.copyfile(fn, dst) 13804s dst_sources.append(dst) 13804s 13804s # Build script 13804s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13804s 13804s code = fr""" 13804s import os 13804s import sys 13804s sys.path = {repr(sys.path)} 13804s 13804s def configuration(parent_name='',top_path=None): 13804s from numpy.distutils.misc_util import Configuration 13804s config = Configuration('', parent_name, top_path) 13804s {config_code} 13804s return config 13804s 13804s if __name__ == "__main__": 13804s from numpy.distutils.core import setup 13804s setup(configuration=configuration) 13804s """ 13804s script = os.path.join(d, get_temp_module_name() + ".py") 13804s dst_sources.append(script) 13804s with open(script, "wb") as f: 13804s f.write(asbytes(code)) 13804s 13804s # Build 13804s cwd = os.getcwd() 13804s try: 13804s os.chdir(d) 13804s cmd = [sys.executable, script, "build_ext", "-i"] 13804s p = subprocess.Popen(cmd, 13804s stdout=subprocess.PIPE, 13804s stderr=subprocess.STDOUT) 13804s out, err = p.communicate() 13804s if p.returncode != 0: 13804s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13804s (cmd[4:], asstr(out))) 13804s E RuntimeError: Running distutils build failed: [] 13804s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13804s E 13804s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13804s E of the deprecation of `distutils` itself. It will be removed for 13804s E Python >= 3.12. For older Python versions it will remain present. 13804s E It is recommended to use `setuptools < 60.0` for those Python versions. 13804s E For more details, see: 13804s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13804s E 13804s E 13804s E from numpy.distutils.core import setup 13804s E running build_ext 13804s E running build_src 13804s E INFO: build_src 13804s E INFO: building extension "test_array_from_pyobj_ext" sources 13804s E INFO: build_src: building npy-pkg config files 13804s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13804s E !! 13804s E 13804s E ******************************************************************************** 13804s E Please avoid running ``setup.py`` directly. 13804s E Instead, use pypa/build, pypa/installer or other 13804s E standards-based tools. 13804s E 13804s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13804s E ******************************************************************************** 13804s E 13804s E !! 13804s E self.initialize_options() 13804s E INFO: customize UnixCCompiler 13804s E INFO: customize UnixCCompiler using build_ext 13804s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/tmp 13804s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/usr 13804s E creating /tmp/tmppq19o2st/usr/lib 13804s E creating /tmp/tmppq19o2st/usr/lib/python3 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=native' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-O3' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-Werror' 13804s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13804s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-vfpv4' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=armv8.2-a+fp16' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13804s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13804s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13804s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13804s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13804s E INFO: building 'test_array_from_pyobj_ext' extension 13804s E INFO: compiling C sources 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13804s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13804s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13804s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13804s E 14 | #include 13804s E | ^~~~~~~~~~ 13804s E In file included from fortranobject.c:2: 13804s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13804s E 7 | #include 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E compilation terminated. 13804s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13804s E INFO: 13804s E ########### EXT COMPILER OPTIMIZATION ########### 13804s E INFO: Platform : 13804s E Architecture: armhf 13804s E Compiler : gcc 13804s E 13804s E CPU baseline : 13804s E Requested : 'min' 13804s E Enabled : none 13804s E Flags : none 13804s E Extra checks: none 13804s E 13804s E CPU dispatch : 13804s E Requested : 'max -xop -fma4' 13804s E Enabled : none 13804s E Generated : none 13804s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13804s 13804s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13804s d = '/tmp/tmpjj8q074z' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s err = None 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s kw = {} 13804s module_name = 'test_array_from_pyobj_ext' 13804s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13804s p = 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13804s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-23seq-C-ro] ______ 13804s 13804s def setup_module(): 13804s """ 13804s Build the required testing extension module 13804s 13804s """ 13804s global wrap 13804s 13804s # Check compiler availability first 13804s if not util.has_c_compiler(): 13804s pytest.skip("No C compiler available") 13804s 13804s if wrap is None: 13804s config_code = """ 13804s config.add_extension('test_array_from_pyobj_ext', 13804s sources=['wrapmodule.c', 'fortranobject.c'], 13804s define_macros=[]) 13804s """ 13804s d = os.path.dirname(__file__) 13804s src = [ 13804s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13804s util.getpath("src", "fortranobject.c"), 13804s util.getpath("src", "fortranobject.h"), 13804s ] 13804s > wrap = util.build_module_distutils(src, config_code, 13804s "test_array_from_pyobj_ext") 13804s 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13804s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13804s memo[key] = func(*a, **kw) 13804s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13804s func = 13804s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13804s kw = {} 13804s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s 13804s @_memoize 13804s def build_module_distutils(source_files, config_code, module_name, **kw): 13804s """ 13804s Build a module via distutils and import it. 13804s 13804s """ 13804s d = get_module_dir() 13804s 13804s # Copy files 13804s dst_sources = [] 13804s for fn in source_files: 13804s if not os.path.isfile(fn): 13804s raise RuntimeError("%s is not a file" % fn) 13804s dst = os.path.join(d, os.path.basename(fn)) 13804s shutil.copyfile(fn, dst) 13804s dst_sources.append(dst) 13804s 13804s # Build script 13804s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13804s 13804s code = fr""" 13804s import os 13804s import sys 13804s sys.path = {repr(sys.path)} 13804s 13804s def configuration(parent_name='',top_path=None): 13804s from numpy.distutils.misc_util import Configuration 13804s config = Configuration('', parent_name, top_path) 13804s {config_code} 13804s return config 13804s 13804s if __name__ == "__main__": 13804s from numpy.distutils.core import setup 13804s setup(configuration=configuration) 13804s """ 13804s script = os.path.join(d, get_temp_module_name() + ".py") 13804s dst_sources.append(script) 13804s with open(script, "wb") as f: 13804s f.write(asbytes(code)) 13804s 13804s # Build 13804s cwd = os.getcwd() 13804s try: 13804s os.chdir(d) 13804s cmd = [sys.executable, script, "build_ext", "-i"] 13804s p = subprocess.Popen(cmd, 13804s stdout=subprocess.PIPE, 13804s stderr=subprocess.STDOUT) 13804s out, err = p.communicate() 13804s if p.returncode != 0: 13804s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13804s (cmd[4:], asstr(out))) 13804s E RuntimeError: Running distutils build failed: [] 13804s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13804s E 13804s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13804s E of the deprecation of `distutils` itself. It will be removed for 13804s E Python >= 3.12. For older Python versions it will remain present. 13804s E It is recommended to use `setuptools < 60.0` for those Python versions. 13804s E For more details, see: 13804s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13804s E 13804s E 13804s E from numpy.distutils.core import setup 13804s E running build_ext 13804s E running build_src 13804s E INFO: build_src 13804s E INFO: building extension "test_array_from_pyobj_ext" sources 13804s E INFO: build_src: building npy-pkg config files 13804s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13804s E !! 13804s E 13804s E ******************************************************************************** 13804s E Please avoid running ``setup.py`` directly. 13804s E Instead, use pypa/build, pypa/installer or other 13804s E standards-based tools. 13804s E 13804s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13804s E ******************************************************************************** 13804s E 13804s E !! 13804s E self.initialize_options() 13804s E INFO: customize UnixCCompiler 13804s E INFO: customize UnixCCompiler using build_ext 13804s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/tmp 13804s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/usr 13804s E creating /tmp/tmppq19o2st/usr/lib 13804s E creating /tmp/tmppq19o2st/usr/lib/python3 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=native' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-O3' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-Werror' 13804s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13804s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-vfpv4' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=armv8.2-a+fp16' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13804s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13804s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13804s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13804s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13804s E INFO: building 'test_array_from_pyobj_ext' extension 13804s E INFO: compiling C sources 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13804s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13804s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13804s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13804s E 14 | #include 13804s E | ^~~~~~~~~~ 13804s E In file included from fortranobject.c:2: 13804s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13804s E 7 | #include 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E compilation terminated. 13804s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13804s E INFO: 13804s E ########### EXT COMPILER OPTIMIZATION ########### 13804s E INFO: Platform : 13804s E Architecture: armhf 13804s E Compiler : gcc 13804s E 13804s E CPU baseline : 13804s E Requested : 'min' 13804s E Enabled : none 13804s E Flags : none 13804s E Extra checks: none 13804s E 13804s E CPU dispatch : 13804s E Requested : 'max -xop -fma4' 13804s E Enabled : none 13804s E Generated : none 13804s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13804s 13804s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13804s d = '/tmp/tmpjj8q074z' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s err = None 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s kw = {} 13804s module_name = 'test_array_from_pyobj_ext' 13804s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13804s p = 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13804s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-23seq-F-w] _______ 13804s 13804s def setup_module(): 13804s """ 13804s Build the required testing extension module 13804s 13804s """ 13804s global wrap 13804s 13804s # Check compiler availability first 13804s if not util.has_c_compiler(): 13804s pytest.skip("No C compiler available") 13804s 13804s if wrap is None: 13804s config_code = """ 13804s config.add_extension('test_array_from_pyobj_ext', 13804s sources=['wrapmodule.c', 'fortranobject.c'], 13804s define_macros=[]) 13804s """ 13804s d = os.path.dirname(__file__) 13804s src = [ 13804s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13804s util.getpath("src", "fortranobject.c"), 13804s util.getpath("src", "fortranobject.h"), 13804s ] 13804s > wrap = util.build_module_distutils(src, config_code, 13804s "test_array_from_pyobj_ext") 13804s 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13804s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13804s memo[key] = func(*a, **kw) 13804s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13804s func = 13804s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13804s kw = {} 13804s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s 13804s @_memoize 13804s def build_module_distutils(source_files, config_code, module_name, **kw): 13804s """ 13804s Build a module via distutils and import it. 13804s 13804s """ 13804s d = get_module_dir() 13804s 13804s # Copy files 13804s dst_sources = [] 13804s for fn in source_files: 13804s if not os.path.isfile(fn): 13804s raise RuntimeError("%s is not a file" % fn) 13804s dst = os.path.join(d, os.path.basename(fn)) 13804s shutil.copyfile(fn, dst) 13804s dst_sources.append(dst) 13804s 13804s # Build script 13804s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13804s 13804s code = fr""" 13804s import os 13804s import sys 13804s sys.path = {repr(sys.path)} 13804s 13804s def configuration(parent_name='',top_path=None): 13804s from numpy.distutils.misc_util import Configuration 13804s config = Configuration('', parent_name, top_path) 13804s {config_code} 13804s return config 13804s 13804s if __name__ == "__main__": 13804s from numpy.distutils.core import setup 13804s setup(configuration=configuration) 13804s """ 13804s script = os.path.join(d, get_temp_module_name() + ".py") 13804s dst_sources.append(script) 13804s with open(script, "wb") as f: 13804s f.write(asbytes(code)) 13804s 13804s # Build 13804s cwd = os.getcwd() 13804s try: 13804s os.chdir(d) 13804s cmd = [sys.executable, script, "build_ext", "-i"] 13804s p = subprocess.Popen(cmd, 13804s stdout=subprocess.PIPE, 13804s stderr=subprocess.STDOUT) 13804s out, err = p.communicate() 13804s if p.returncode != 0: 13804s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13804s (cmd[4:], asstr(out))) 13804s E RuntimeError: Running distutils build failed: [] 13804s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13804s E 13804s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13804s E of the deprecation of `distutils` itself. It will be removed for 13804s E Python >= 3.12. For older Python versions it will remain present. 13804s E It is recommended to use `setuptools < 60.0` for those Python versions. 13804s E For more details, see: 13804s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13804s E 13804s E 13804s E from numpy.distutils.core import setup 13804s E running build_ext 13804s E running build_src 13804s E INFO: build_src 13804s E INFO: building extension "test_array_from_pyobj_ext" sources 13804s E INFO: build_src: building npy-pkg config files 13804s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13804s E !! 13804s E 13804s E ******************************************************************************** 13804s E Please avoid running ``setup.py`` directly. 13804s E Instead, use pypa/build, pypa/installer or other 13804s E standards-based tools. 13804s E 13804s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13804s E ******************************************************************************** 13804s E 13804s E !! 13804s E self.initialize_options() 13804s E INFO: customize UnixCCompiler 13804s E INFO: customize UnixCCompiler using build_ext 13804s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/tmp 13804s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/usr 13804s E creating /tmp/tmppq19o2st/usr/lib 13804s E creating /tmp/tmppq19o2st/usr/lib/python3 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=native' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-O3' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-Werror' 13804s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13804s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-vfpv4' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=armv8.2-a+fp16' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13804s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13804s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13804s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13804s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13804s E INFO: building 'test_array_from_pyobj_ext' extension 13804s E INFO: compiling C sources 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13804s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13804s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13804s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13804s E 14 | #include 13804s E | ^~~~~~~~~~ 13804s E In file included from fortranobject.c:2: 13804s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13804s E 7 | #include 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E compilation terminated. 13804s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13804s E INFO: 13804s E ########### EXT COMPILER OPTIMIZATION ########### 13804s E INFO: Platform : 13804s E Architecture: armhf 13804s E Compiler : gcc 13804s E 13804s E CPU baseline : 13804s E Requested : 'min' 13804s E Enabled : none 13804s E Flags : none 13804s E Extra checks: none 13804s E 13804s E CPU dispatch : 13804s E Requested : 'max -xop -fma4' 13804s E Enabled : none 13804s E Generated : none 13804s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13804s 13804s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13804s d = '/tmp/tmpjj8q074z' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s err = None 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s kw = {} 13804s module_name = 'test_array_from_pyobj_ext' 13804s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13804s p = 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13804s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[LONG-23seq-F-ro] ______ 13804s 13804s def setup_module(): 13804s """ 13804s Build the required testing extension module 13804s 13804s """ 13804s global wrap 13804s 13804s # Check compiler availability first 13804s if not util.has_c_compiler(): 13804s pytest.skip("No C compiler available") 13804s 13804s if wrap is None: 13804s config_code = """ 13804s config.add_extension('test_array_from_pyobj_ext', 13804s sources=['wrapmodule.c', 'fortranobject.c'], 13804s define_macros=[]) 13804s """ 13804s d = os.path.dirname(__file__) 13804s src = [ 13804s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13804s util.getpath("src", "fortranobject.c"), 13804s util.getpath("src", "fortranobject.h"), 13804s ] 13804s > wrap = util.build_module_distutils(src, config_code, 13804s "test_array_from_pyobj_ext") 13804s 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13804s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13804s memo[key] = func(*a, **kw) 13804s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13804s func = 13804s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13804s kw = {} 13804s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s 13804s @_memoize 13804s def build_module_distutils(source_files, config_code, module_name, **kw): 13804s """ 13804s Build a module via distutils and import it. 13804s 13804s """ 13804s d = get_module_dir() 13804s 13804s # Copy files 13804s dst_sources = [] 13804s for fn in source_files: 13804s if not os.path.isfile(fn): 13804s raise RuntimeError("%s is not a file" % fn) 13804s dst = os.path.join(d, os.path.basename(fn)) 13804s shutil.copyfile(fn, dst) 13804s dst_sources.append(dst) 13804s 13804s # Build script 13804s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13804s 13804s code = fr""" 13804s import os 13804s import sys 13804s sys.path = {repr(sys.path)} 13804s 13804s def configuration(parent_name='',top_path=None): 13804s from numpy.distutils.misc_util import Configuration 13804s config = Configuration('', parent_name, top_path) 13804s {config_code} 13804s return config 13804s 13804s if __name__ == "__main__": 13804s from numpy.distutils.core import setup 13804s setup(configuration=configuration) 13804s """ 13804s script = os.path.join(d, get_temp_module_name() + ".py") 13804s dst_sources.append(script) 13804s with open(script, "wb") as f: 13804s f.write(asbytes(code)) 13804s 13804s # Build 13804s cwd = os.getcwd() 13804s try: 13804s os.chdir(d) 13804s cmd = [sys.executable, script, "build_ext", "-i"] 13804s p = subprocess.Popen(cmd, 13804s stdout=subprocess.PIPE, 13804s stderr=subprocess.STDOUT) 13804s out, err = p.communicate() 13804s if p.returncode != 0: 13804s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13804s (cmd[4:], asstr(out))) 13804s E RuntimeError: Running distutils build failed: [] 13804s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13804s E 13804s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13804s E of the deprecation of `distutils` itself. It will be removed for 13804s E Python >= 3.12. For older Python versions it will remain present. 13804s E It is recommended to use `setuptools < 60.0` for those Python versions. 13804s E For more details, see: 13804s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13804s E 13804s E 13804s E from numpy.distutils.core import setup 13804s E running build_ext 13804s E running build_src 13804s E INFO: build_src 13804s E INFO: building extension "test_array_from_pyobj_ext" sources 13804s E INFO: build_src: building npy-pkg config files 13804s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13804s E !! 13804s E 13804s E ******************************************************************************** 13804s E Please avoid running ``setup.py`` directly. 13804s E Instead, use pypa/build, pypa/installer or other 13804s E standards-based tools. 13804s E 13804s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13804s E ******************************************************************************** 13804s E 13804s E !! 13804s E self.initialize_options() 13804s E INFO: customize UnixCCompiler 13804s E INFO: customize UnixCCompiler using build_ext 13804s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/tmp 13804s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/usr 13804s E creating /tmp/tmppq19o2st/usr/lib 13804s E creating /tmp/tmppq19o2st/usr/lib/python3 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=native' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-O3' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-Werror' 13804s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13804s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-vfpv4' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=armv8.2-a+fp16' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13804s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13804s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13804s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13804s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13804s E INFO: building 'test_array_from_pyobj_ext' extension 13804s E INFO: compiling C sources 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13804s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13804s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13804s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13804s E 14 | #include 13804s E | ^~~~~~~~~~ 13804s E In file included from fortranobject.c:2: 13804s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13804s E 7 | #include 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E compilation terminated. 13804s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13804s E INFO: 13804s E ########### EXT COMPILER OPTIMIZATION ########### 13804s E INFO: Platform : 13804s E Architecture: armhf 13804s E Compiler : gcc 13804s E 13804s E CPU baseline : 13804s E Requested : 'min' 13804s E Enabled : none 13804s E Flags : none 13804s E Extra checks: none 13804s E 13804s E CPU dispatch : 13804s E Requested : 'max -xop -fma4' 13804s E Enabled : none 13804s E Generated : none 13804s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13804s 13804s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13804s d = '/tmp/tmpjj8q074z' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s err = None 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s kw = {} 13804s module_name = 'test_array_from_pyobj_ext' 13804s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13804s p = 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13804s ___________ ERROR at setup of TestSharedMemory.test_inout_2seq[LONG] ___________ 13804s 13804s def setup_module(): 13804s """ 13804s Build the required testing extension module 13804s 13804s """ 13804s global wrap 13804s 13804s # Check compiler availability first 13804s if not util.has_c_compiler(): 13804s pytest.skip("No C compiler available") 13804s 13804s if wrap is None: 13804s config_code = """ 13804s config.add_extension('test_array_from_pyobj_ext', 13804s sources=['wrapmodule.c', 'fortranobject.c'], 13804s define_macros=[]) 13804s """ 13804s d = os.path.dirname(__file__) 13804s src = [ 13804s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13804s util.getpath("src", "fortranobject.c"), 13804s util.getpath("src", "fortranobject.h"), 13804s ] 13804s > wrap = util.build_module_distutils(src, config_code, 13804s "test_array_from_pyobj_ext") 13804s 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13804s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13804s memo[key] = func(*a, **kw) 13804s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13804s func = 13804s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13804s kw = {} 13804s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s 13804s @_memoize 13804s def build_module_distutils(source_files, config_code, module_name, **kw): 13804s """ 13804s Build a module via distutils and import it. 13804s 13804s """ 13804s d = get_module_dir() 13804s 13804s # Copy files 13804s dst_sources = [] 13804s for fn in source_files: 13804s if not os.path.isfile(fn): 13804s raise RuntimeError("%s is not a file" % fn) 13804s dst = os.path.join(d, os.path.basename(fn)) 13804s shutil.copyfile(fn, dst) 13804s dst_sources.append(dst) 13804s 13804s # Build script 13804s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13804s 13804s code = fr""" 13804s import os 13804s import sys 13804s sys.path = {repr(sys.path)} 13804s 13804s def configuration(parent_name='',top_path=None): 13804s from numpy.distutils.misc_util import Configuration 13804s config = Configuration('', parent_name, top_path) 13804s {config_code} 13804s return config 13804s 13804s if __name__ == "__main__": 13804s from numpy.distutils.core import setup 13804s setup(configuration=configuration) 13804s """ 13804s script = os.path.join(d, get_temp_module_name() + ".py") 13804s dst_sources.append(script) 13804s with open(script, "wb") as f: 13804s f.write(asbytes(code)) 13804s 13804s # Build 13804s cwd = os.getcwd() 13804s try: 13804s os.chdir(d) 13804s cmd = [sys.executable, script, "build_ext", "-i"] 13804s p = subprocess.Popen(cmd, 13804s stdout=subprocess.PIPE, 13804s stderr=subprocess.STDOUT) 13804s out, err = p.communicate() 13804s if p.returncode != 0: 13804s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13804s (cmd[4:], asstr(out))) 13804s E RuntimeError: Running distutils build failed: [] 13804s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13804s E 13804s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13804s E of the deprecation of `distutils` itself. It will be removed for 13804s E Python >= 3.12. For older Python versions it will remain present. 13804s E It is recommended to use `setuptools < 60.0` for those Python versions. 13804s E For more details, see: 13804s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13804s E 13804s E 13804s E from numpy.distutils.core import setup 13804s E running build_ext 13804s E running build_src 13804s E INFO: build_src 13804s E INFO: building extension "test_array_from_pyobj_ext" sources 13804s E INFO: build_src: building npy-pkg config files 13804s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13804s E !! 13804s E 13804s E ******************************************************************************** 13804s E Please avoid running ``setup.py`` directly. 13804s E Instead, use pypa/build, pypa/installer or other 13804s E standards-based tools. 13804s E 13804s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13804s E ******************************************************************************** 13804s E 13804s E !! 13804s E self.initialize_options() 13804s E INFO: customize UnixCCompiler 13804s E INFO: customize UnixCCompiler using build_ext 13804s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/tmp 13804s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E creating /tmp/tmppq19o2st/usr 13804s E creating /tmp/tmppq19o2st/usr/lib 13804s E creating /tmp/tmppq19o2st/usr/lib/python3 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13804s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=native' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-O3' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-Werror' 13804s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13804s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-vfpv4' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13804s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-march=armv8.2-a+fp16' 13804s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/include/python3.12 -c' 13804s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13804s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13804s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13804s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13804s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13804s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13804s E 9 | # include_next 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E 13804s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13804s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13804s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13804s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13804s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13804s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13804s E INFO: building 'test_array_from_pyobj_ext' extension 13804s E INFO: compiling C sources 13804s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13804s E 13804s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13804s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13804s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13804s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13804s E 14 | #include 13804s E | ^~~~~~~~~~ 13804s E In file included from fortranobject.c:2: 13804s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13804s E 7 | #include 13804s E | ^~~~~~~~~~ 13804s E compilation terminated. 13804s E compilation terminated. 13804s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13804s E INFO: 13804s E ########### EXT COMPILER OPTIMIZATION ########### 13804s E INFO: Platform : 13804s E Architecture: armhf 13804s E Compiler : gcc 13804s E 13804s E CPU baseline : 13804s E Requested : 'min' 13804s E Enabled : none 13804s E Flags : none 13804s E Extra checks: none 13804s E 13804s E CPU dispatch : 13804s E Requested : 'max -xop -fma4' 13804s E Enabled : none 13804s E Generated : none 13804s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13804s 13804s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13804s d = '/tmp/tmpjj8q074z' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s err = None 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s kw = {} 13804s module_name = 'test_array_from_pyobj_ext' 13804s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13804s p = 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13804s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[LONG] __________ 13804s 13804s def setup_module(): 13804s """ 13804s Build the required testing extension module 13804s 13804s """ 13804s global wrap 13804s 13804s # Check compiler availability first 13804s if not util.has_c_compiler(): 13804s pytest.skip("No C compiler available") 13804s 13804s if wrap is None: 13804s config_code = """ 13804s config.add_extension('test_array_from_pyobj_ext', 13804s sources=['wrapmodule.c', 'fortranobject.c'], 13804s define_macros=[]) 13804s """ 13804s d = os.path.dirname(__file__) 13804s src = [ 13804s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13804s util.getpath("src", "fortranobject.c"), 13804s util.getpath("src", "fortranobject.h"), 13804s ] 13804s > wrap = util.build_module_distutils(src, config_code, 13804s "test_array_from_pyobj_ext") 13804s 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13804s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13804s memo[key] = func(*a, **kw) 13804s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13804s func = 13804s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13804s kw = {} 13804s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13804s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13804s 13804s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13804s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13804s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13804s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13804s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13804s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13804s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13804s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13804s 13804s @_memoize 13804s def build_module_distutils(source_files, config_code, module_name, **kw): 13804s """ 13804s Build a module via distutils and import it. 13804s 13804s """ 13804s d = get_module_dir() 13804s 13804s # Copy files 13804s dst_sources = [] 13804s for fn in source_files: 13804s if not os.path.isfile(fn): 13804s raise RuntimeError("%s is not a file" % fn) 13804s dst = os.path.join(d, os.path.basename(fn)) 13804s shutil.copyfile(fn, dst) 13804s dst_sources.append(dst) 13804s 13804s # Build script 13804s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13804s 13804s code = fr""" 13804s import os 13804s import sys 13804s sys.path = {repr(sys.path)} 13804s 13804s def configuration(parent_name='',top_path=None): 13804s from numpy.distutils.misc_util import Configuration 13804s config = Configuration('', parent_name, top_path) 13804s {config_code} 13804s return config 13804s 13804s if __name__ == "__main__": 13804s from numpy.distutils.core import setup 13804s setup(configuration=configuration) 13804s """ 13804s script = os.path.join(d, get_temp_module_name() + ".py") 13804s dst_sources.append(script) 13804s with open(script, "wb") as f: 13804s f.write(asbytes(code)) 13804s 13804s # Build 13804s cwd = os.getcwd() 13804s try: 13804s os.chdir(d) 13804s cmd = [sys.executable, script, "build_ext", "-i"] 13804s p = subprocess.Popen(cmd, 13804s stdout=subprocess.PIPE, 13804s stderr=subprocess.STDOUT) 13804s out, err = p.communicate() 13804s if p.returncode != 0: 13804s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13804s (cmd[4:], asstr(out))) 13804s E RuntimeError: Running distutils build failed: [] 13804s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13804s E 13804s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13804s E of the deprecation of `distutils` itself. It will be removed for 13804s E Python >= 3.12. For older Python versions it will remain present. 13804s E It is recommended to use `setuptools < 60.0` for those Python versions. 13804s E For more details, see: 13804s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13804s E 13804s E 13804s E from numpy.distutils.core import setup 13804s E running build_ext 13804s E running build_src 13804s E INFO: build_src 13804s E INFO: building extension "test_array_from_pyobj_ext" sources 13804s E INFO: build_src: building npy-pkg config files 13804s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13804s E !! 13804s E 13804s E ******************************************************************************** 13804s E Please avoid running ``setup.py`` directly. 13804s E Instead, use pypa/build, pypa/installer or other 13804s E standards-based tools. 13804s E 13804s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13805s E ******************************************************************************** 13805s E 13805s E !! 13805s E self.initialize_options() 13805s E INFO: customize UnixCCompiler 13805s E INFO: customize UnixCCompiler using build_ext 13805s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/tmp 13805s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/usr 13805s E creating /tmp/tmppq19o2st/usr/lib 13805s E creating /tmp/tmppq19o2st/usr/lib/python3 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=native' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-O3' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-Werror' 13805s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13805s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-vfpv4' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=armv8.2-a+fp16' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13805s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13805s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13805s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13805s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13805s E INFO: building 'test_array_from_pyobj_ext' extension 13805s E INFO: compiling C sources 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13805s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13805s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13805s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13805s E 14 | #include 13805s E | ^~~~~~~~~~ 13805s E In file included from fortranobject.c:2: 13805s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13805s E 7 | #include 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E compilation terminated. 13805s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13805s E INFO: 13805s E ########### EXT COMPILER OPTIMIZATION ########### 13805s E INFO: Platform : 13805s E Architecture: armhf 13805s E Compiler : gcc 13805s E 13805s E CPU baseline : 13805s E Requested : 'min' 13805s E Enabled : none 13805s E Flags : none 13805s E Extra checks: none 13805s E 13805s E CPU dispatch : 13805s E Requested : 'max -xop -fma4' 13805s E Enabled : none 13805s E Generated : none 13805s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13805s 13805s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13805s d = '/tmp/tmpjj8q074z' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s err = None 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s kw = {} 13805s module_name = 'test_array_from_pyobj_ext' 13805s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13805s p = 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13805s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[LONG] __________ 13805s 13805s def setup_module(): 13805s """ 13805s Build the required testing extension module 13805s 13805s """ 13805s global wrap 13805s 13805s # Check compiler availability first 13805s if not util.has_c_compiler(): 13805s pytest.skip("No C compiler available") 13805s 13805s if wrap is None: 13805s config_code = """ 13805s config.add_extension('test_array_from_pyobj_ext', 13805s sources=['wrapmodule.c', 'fortranobject.c'], 13805s define_macros=[]) 13805s """ 13805s d = os.path.dirname(__file__) 13805s src = [ 13805s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13805s util.getpath("src", "fortranobject.c"), 13805s util.getpath("src", "fortranobject.h"), 13805s ] 13805s > wrap = util.build_module_distutils(src, config_code, 13805s "test_array_from_pyobj_ext") 13805s 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13805s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13805s memo[key] = func(*a, **kw) 13805s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13805s func = 13805s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13805s kw = {} 13805s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s 13805s @_memoize 13805s def build_module_distutils(source_files, config_code, module_name, **kw): 13805s """ 13805s Build a module via distutils and import it. 13805s 13805s """ 13805s d = get_module_dir() 13805s 13805s # Copy files 13805s dst_sources = [] 13805s for fn in source_files: 13805s if not os.path.isfile(fn): 13805s raise RuntimeError("%s is not a file" % fn) 13805s dst = os.path.join(d, os.path.basename(fn)) 13805s shutil.copyfile(fn, dst) 13805s dst_sources.append(dst) 13805s 13805s # Build script 13805s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13805s 13805s code = fr""" 13805s import os 13805s import sys 13805s sys.path = {repr(sys.path)} 13805s 13805s def configuration(parent_name='',top_path=None): 13805s from numpy.distutils.misc_util import Configuration 13805s config = Configuration('', parent_name, top_path) 13805s {config_code} 13805s return config 13805s 13805s if __name__ == "__main__": 13805s from numpy.distutils.core import setup 13805s setup(configuration=configuration) 13805s """ 13805s script = os.path.join(d, get_temp_module_name() + ".py") 13805s dst_sources.append(script) 13805s with open(script, "wb") as f: 13805s f.write(asbytes(code)) 13805s 13805s # Build 13805s cwd = os.getcwd() 13805s try: 13805s os.chdir(d) 13805s cmd = [sys.executable, script, "build_ext", "-i"] 13805s p = subprocess.Popen(cmd, 13805s stdout=subprocess.PIPE, 13805s stderr=subprocess.STDOUT) 13805s out, err = p.communicate() 13805s if p.returncode != 0: 13805s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13805s (cmd[4:], asstr(out))) 13805s E RuntimeError: Running distutils build failed: [] 13805s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13805s E 13805s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13805s E of the deprecation of `distutils` itself. It will be removed for 13805s E Python >= 3.12. For older Python versions it will remain present. 13805s E It is recommended to use `setuptools < 60.0` for those Python versions. 13805s E For more details, see: 13805s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13805s E 13805s E 13805s E from numpy.distutils.core import setup 13805s E running build_ext 13805s E running build_src 13805s E INFO: build_src 13805s E INFO: building extension "test_array_from_pyobj_ext" sources 13805s E INFO: build_src: building npy-pkg config files 13805s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13805s E !! 13805s E 13805s E ******************************************************************************** 13805s E Please avoid running ``setup.py`` directly. 13805s E Instead, use pypa/build, pypa/installer or other 13805s E standards-based tools. 13805s E 13805s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13805s E ******************************************************************************** 13805s E 13805s E !! 13805s E self.initialize_options() 13805s E INFO: customize UnixCCompiler 13805s E INFO: customize UnixCCompiler using build_ext 13805s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/tmp 13805s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/usr 13805s E creating /tmp/tmppq19o2st/usr/lib 13805s E creating /tmp/tmppq19o2st/usr/lib/python3 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=native' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-O3' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-Werror' 13805s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13805s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-vfpv4' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=armv8.2-a+fp16' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13805s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13805s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13805s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13805s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13805s E INFO: building 'test_array_from_pyobj_ext' extension 13805s E INFO: compiling C sources 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13805s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13805s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13805s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13805s E 14 | #include 13805s E | ^~~~~~~~~~ 13805s E In file included from fortranobject.c:2: 13805s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13805s E 7 | #include 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E compilation terminated. 13805s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13805s E INFO: 13805s E ########### EXT COMPILER OPTIMIZATION ########### 13805s E INFO: Platform : 13805s E Architecture: armhf 13805s E Compiler : gcc 13805s E 13805s E CPU baseline : 13805s E Requested : 'min' 13805s E Enabled : none 13805s E Flags : none 13805s E Extra checks: none 13805s E 13805s E CPU dispatch : 13805s E Requested : 'max -xop -fma4' 13805s E Enabled : none 13805s E Generated : none 13805s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13805s 13805s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13805s d = '/tmp/tmpjj8q074z' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s err = None 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s kw = {} 13805s module_name = 'test_array_from_pyobj_ext' 13805s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13805s p = 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13805s _____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[LONG] _____ 13805s 13805s def setup_module(): 13805s """ 13805s Build the required testing extension module 13805s 13805s """ 13805s global wrap 13805s 13805s # Check compiler availability first 13805s if not util.has_c_compiler(): 13805s pytest.skip("No C compiler available") 13805s 13805s if wrap is None: 13805s config_code = """ 13805s config.add_extension('test_array_from_pyobj_ext', 13805s sources=['wrapmodule.c', 'fortranobject.c'], 13805s define_macros=[]) 13805s """ 13805s d = os.path.dirname(__file__) 13805s src = [ 13805s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13805s util.getpath("src", "fortranobject.c"), 13805s util.getpath("src", "fortranobject.h"), 13805s ] 13805s > wrap = util.build_module_distutils(src, config_code, 13805s "test_array_from_pyobj_ext") 13805s 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13805s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13805s memo[key] = func(*a, **kw) 13805s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13805s func = 13805s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13805s kw = {} 13805s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s 13805s @_memoize 13805s def build_module_distutils(source_files, config_code, module_name, **kw): 13805s """ 13805s Build a module via distutils and import it. 13805s 13805s """ 13805s d = get_module_dir() 13805s 13805s # Copy files 13805s dst_sources = [] 13805s for fn in source_files: 13805s if not os.path.isfile(fn): 13805s raise RuntimeError("%s is not a file" % fn) 13805s dst = os.path.join(d, os.path.basename(fn)) 13805s shutil.copyfile(fn, dst) 13805s dst_sources.append(dst) 13805s 13805s # Build script 13805s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13805s 13805s code = fr""" 13805s import os 13805s import sys 13805s sys.path = {repr(sys.path)} 13805s 13805s def configuration(parent_name='',top_path=None): 13805s from numpy.distutils.misc_util import Configuration 13805s config = Configuration('', parent_name, top_path) 13805s {config_code} 13805s return config 13805s 13805s if __name__ == "__main__": 13805s from numpy.distutils.core import setup 13805s setup(configuration=configuration) 13805s """ 13805s script = os.path.join(d, get_temp_module_name() + ".py") 13805s dst_sources.append(script) 13805s with open(script, "wb") as f: 13805s f.write(asbytes(code)) 13805s 13805s # Build 13805s cwd = os.getcwd() 13805s try: 13805s os.chdir(d) 13805s cmd = [sys.executable, script, "build_ext", "-i"] 13805s p = subprocess.Popen(cmd, 13805s stdout=subprocess.PIPE, 13805s stderr=subprocess.STDOUT) 13805s out, err = p.communicate() 13805s if p.returncode != 0: 13805s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13805s (cmd[4:], asstr(out))) 13805s E RuntimeError: Running distutils build failed: [] 13805s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13805s E 13805s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13805s E of the deprecation of `distutils` itself. It will be removed for 13805s E Python >= 3.12. For older Python versions it will remain present. 13805s E It is recommended to use `setuptools < 60.0` for those Python versions. 13805s E For more details, see: 13805s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13805s E 13805s E 13805s E from numpy.distutils.core import setup 13805s E running build_ext 13805s E running build_src 13805s E INFO: build_src 13805s E INFO: building extension "test_array_from_pyobj_ext" sources 13805s E INFO: build_src: building npy-pkg config files 13805s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13805s E !! 13805s E 13805s E ******************************************************************************** 13805s E Please avoid running ``setup.py`` directly. 13805s E Instead, use pypa/build, pypa/installer or other 13805s E standards-based tools. 13805s E 13805s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13805s E ******************************************************************************** 13805s E 13805s E !! 13805s E self.initialize_options() 13805s E INFO: customize UnixCCompiler 13805s E INFO: customize UnixCCompiler using build_ext 13805s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/tmp 13805s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/usr 13805s E creating /tmp/tmppq19o2st/usr/lib 13805s E creating /tmp/tmppq19o2st/usr/lib/python3 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=native' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-O3' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-Werror' 13805s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13805s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-vfpv4' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=armv8.2-a+fp16' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13805s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13805s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13805s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13805s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13805s E INFO: building 'test_array_from_pyobj_ext' extension 13805s E INFO: compiling C sources 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13805s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13805s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13805s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13805s E 14 | #include 13805s E | ^~~~~~~~~~ 13805s E In file included from fortranobject.c:2: 13805s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13805s E 7 | #include 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E compilation terminated. 13805s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13805s E INFO: 13805s E ########### EXT COMPILER OPTIMIZATION ########### 13805s E INFO: Platform : 13805s E Architecture: armhf 13805s E Compiler : gcc 13805s E 13805s E CPU baseline : 13805s E Requested : 'min' 13805s E Enabled : none 13805s E Flags : none 13805s E Extra checks: none 13805s E 13805s E CPU dispatch : 13805s E Requested : 'max -xop -fma4' 13805s E Enabled : none 13805s E Generated : none 13805s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13805s 13805s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13805s d = '/tmp/tmpjj8q074z' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s err = None 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s kw = {} 13805s module_name = 'test_array_from_pyobj_ext' 13805s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13805s p = 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13805s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[LONG] _________ 13805s 13805s def setup_module(): 13805s """ 13805s Build the required testing extension module 13805s 13805s """ 13805s global wrap 13805s 13805s # Check compiler availability first 13805s if not util.has_c_compiler(): 13805s pytest.skip("No C compiler available") 13805s 13805s if wrap is None: 13805s config_code = """ 13805s config.add_extension('test_array_from_pyobj_ext', 13805s sources=['wrapmodule.c', 'fortranobject.c'], 13805s define_macros=[]) 13805s """ 13805s d = os.path.dirname(__file__) 13805s src = [ 13805s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13805s util.getpath("src", "fortranobject.c"), 13805s util.getpath("src", "fortranobject.h"), 13805s ] 13805s > wrap = util.build_module_distutils(src, config_code, 13805s "test_array_from_pyobj_ext") 13805s 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13805s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13805s memo[key] = func(*a, **kw) 13805s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13805s func = 13805s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13805s kw = {} 13805s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s 13805s @_memoize 13805s def build_module_distutils(source_files, config_code, module_name, **kw): 13805s """ 13805s Build a module via distutils and import it. 13805s 13805s """ 13805s d = get_module_dir() 13805s 13805s # Copy files 13805s dst_sources = [] 13805s for fn in source_files: 13805s if not os.path.isfile(fn): 13805s raise RuntimeError("%s is not a file" % fn) 13805s dst = os.path.join(d, os.path.basename(fn)) 13805s shutil.copyfile(fn, dst) 13805s dst_sources.append(dst) 13805s 13805s # Build script 13805s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13805s 13805s code = fr""" 13805s import os 13805s import sys 13805s sys.path = {repr(sys.path)} 13805s 13805s def configuration(parent_name='',top_path=None): 13805s from numpy.distutils.misc_util import Configuration 13805s config = Configuration('', parent_name, top_path) 13805s {config_code} 13805s return config 13805s 13805s if __name__ == "__main__": 13805s from numpy.distutils.core import setup 13805s setup(configuration=configuration) 13805s """ 13805s script = os.path.join(d, get_temp_module_name() + ".py") 13805s dst_sources.append(script) 13805s with open(script, "wb") as f: 13805s f.write(asbytes(code)) 13805s 13805s # Build 13805s cwd = os.getcwd() 13805s try: 13805s os.chdir(d) 13805s cmd = [sys.executable, script, "build_ext", "-i"] 13805s p = subprocess.Popen(cmd, 13805s stdout=subprocess.PIPE, 13805s stderr=subprocess.STDOUT) 13805s out, err = p.communicate() 13805s if p.returncode != 0: 13805s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13805s (cmd[4:], asstr(out))) 13805s E RuntimeError: Running distutils build failed: [] 13805s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13805s E 13805s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13805s E of the deprecation of `distutils` itself. It will be removed for 13805s E Python >= 3.12. For older Python versions it will remain present. 13805s E It is recommended to use `setuptools < 60.0` for those Python versions. 13805s E For more details, see: 13805s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13805s E 13805s E 13805s E from numpy.distutils.core import setup 13805s E running build_ext 13805s E running build_src 13805s E INFO: build_src 13805s E INFO: building extension "test_array_from_pyobj_ext" sources 13805s E INFO: build_src: building npy-pkg config files 13805s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13805s E !! 13805s E 13805s E ******************************************************************************** 13805s E Please avoid running ``setup.py`` directly. 13805s E Instead, use pypa/build, pypa/installer or other 13805s E standards-based tools. 13805s E 13805s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13805s E ******************************************************************************** 13805s E 13805s E !! 13805s E self.initialize_options() 13805s E INFO: customize UnixCCompiler 13805s E INFO: customize UnixCCompiler using build_ext 13805s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/tmp 13805s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/usr 13805s E creating /tmp/tmppq19o2st/usr/lib 13805s E creating /tmp/tmppq19o2st/usr/lib/python3 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=native' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-O3' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-Werror' 13805s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13805s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-vfpv4' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=armv8.2-a+fp16' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13805s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13805s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13805s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13805s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13805s E INFO: building 'test_array_from_pyobj_ext' extension 13805s E INFO: compiling C sources 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13805s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13805s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13805s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13805s E 14 | #include 13805s E | ^~~~~~~~~~ 13805s E In file included from fortranobject.c:2: 13805s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13805s E 7 | #include 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E compilation terminated. 13805s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13805s E INFO: 13805s E ########### EXT COMPILER OPTIMIZATION ########### 13805s E INFO: Platform : 13805s E Architecture: armhf 13805s E Compiler : gcc 13805s E 13805s E CPU baseline : 13805s E Requested : 'min' 13805s E Enabled : none 13805s E Flags : none 13805s E Extra checks: none 13805s E 13805s E CPU dispatch : 13805s E Requested : 'max -xop -fma4' 13805s E Enabled : none 13805s E Generated : none 13805s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13805s 13805s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13805s d = '/tmp/tmpjj8q074z' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s err = None 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s kw = {} 13805s module_name = 'test_array_from_pyobj_ext' 13805s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13805s p = 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13805s _______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[LONG] _______ 13805s 13805s def setup_module(): 13805s """ 13805s Build the required testing extension module 13805s 13805s """ 13805s global wrap 13805s 13805s # Check compiler availability first 13805s if not util.has_c_compiler(): 13805s pytest.skip("No C compiler available") 13805s 13805s if wrap is None: 13805s config_code = """ 13805s config.add_extension('test_array_from_pyobj_ext', 13805s sources=['wrapmodule.c', 'fortranobject.c'], 13805s define_macros=[]) 13805s """ 13805s d = os.path.dirname(__file__) 13805s src = [ 13805s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13805s util.getpath("src", "fortranobject.c"), 13805s util.getpath("src", "fortranobject.h"), 13805s ] 13805s > wrap = util.build_module_distutils(src, config_code, 13805s "test_array_from_pyobj_ext") 13805s 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13805s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13805s memo[key] = func(*a, **kw) 13805s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13805s func = 13805s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13805s kw = {} 13805s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s 13805s @_memoize 13805s def build_module_distutils(source_files, config_code, module_name, **kw): 13805s """ 13805s Build a module via distutils and import it. 13805s 13805s """ 13805s d = get_module_dir() 13805s 13805s # Copy files 13805s dst_sources = [] 13805s for fn in source_files: 13805s if not os.path.isfile(fn): 13805s raise RuntimeError("%s is not a file" % fn) 13805s dst = os.path.join(d, os.path.basename(fn)) 13805s shutil.copyfile(fn, dst) 13805s dst_sources.append(dst) 13805s 13805s # Build script 13805s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13805s 13805s code = fr""" 13805s import os 13805s import sys 13805s sys.path = {repr(sys.path)} 13805s 13805s def configuration(parent_name='',top_path=None): 13805s from numpy.distutils.misc_util import Configuration 13805s config = Configuration('', parent_name, top_path) 13805s {config_code} 13805s return config 13805s 13805s if __name__ == "__main__": 13805s from numpy.distutils.core import setup 13805s setup(configuration=configuration) 13805s """ 13805s script = os.path.join(d, get_temp_module_name() + ".py") 13805s dst_sources.append(script) 13805s with open(script, "wb") as f: 13805s f.write(asbytes(code)) 13805s 13805s # Build 13805s cwd = os.getcwd() 13805s try: 13805s os.chdir(d) 13805s cmd = [sys.executable, script, "build_ext", "-i"] 13805s p = subprocess.Popen(cmd, 13805s stdout=subprocess.PIPE, 13805s stderr=subprocess.STDOUT) 13805s out, err = p.communicate() 13805s if p.returncode != 0: 13805s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13805s (cmd[4:], asstr(out))) 13805s E RuntimeError: Running distutils build failed: [] 13805s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13805s E 13805s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13805s E of the deprecation of `distutils` itself. It will be removed for 13805s E Python >= 3.12. For older Python versions it will remain present. 13805s E It is recommended to use `setuptools < 60.0` for those Python versions. 13805s E For more details, see: 13805s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13805s E 13805s E 13805s E from numpy.distutils.core import setup 13805s E running build_ext 13805s E running build_src 13805s E INFO: build_src 13805s E INFO: building extension "test_array_from_pyobj_ext" sources 13805s E INFO: build_src: building npy-pkg config files 13805s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13805s E !! 13805s E 13805s E ******************************************************************************** 13805s E Please avoid running ``setup.py`` directly. 13805s E Instead, use pypa/build, pypa/installer or other 13805s E standards-based tools. 13805s E 13805s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13805s E ******************************************************************************** 13805s E 13805s E !! 13805s E self.initialize_options() 13805s E INFO: customize UnixCCompiler 13805s E INFO: customize UnixCCompiler using build_ext 13805s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/tmp 13805s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/usr 13805s E creating /tmp/tmppq19o2st/usr/lib 13805s E creating /tmp/tmppq19o2st/usr/lib/python3 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=native' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-O3' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-Werror' 13805s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13805s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-vfpv4' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=armv8.2-a+fp16' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13805s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13805s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13805s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13805s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13805s E INFO: building 'test_array_from_pyobj_ext' extension 13805s E INFO: compiling C sources 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13805s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13805s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13805s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13805s E 14 | #include 13805s E | ^~~~~~~~~~ 13805s E In file included from fortranobject.c:2: 13805s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13805s E 7 | #include 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E compilation terminated. 13805s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13805s E INFO: 13805s E ########### EXT COMPILER OPTIMIZATION ########### 13805s E INFO: Platform : 13805s E Architecture: armhf 13805s E Compiler : gcc 13805s E 13805s E CPU baseline : 13805s E Requested : 'min' 13805s E Enabled : none 13805s E Flags : none 13805s E Extra checks: none 13805s E 13805s E CPU dispatch : 13805s E Requested : 'max -xop -fma4' 13805s E Enabled : none 13805s E Generated : none 13805s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13805s 13805s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13805s d = '/tmp/tmpjj8q074z' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s err = None 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s kw = {} 13805s module_name = 'test_array_from_pyobj_ext' 13805s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13805s p = 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13805s ______ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[LONG] ______ 13805s 13805s def setup_module(): 13805s """ 13805s Build the required testing extension module 13805s 13805s """ 13805s global wrap 13805s 13805s # Check compiler availability first 13805s if not util.has_c_compiler(): 13805s pytest.skip("No C compiler available") 13805s 13805s if wrap is None: 13805s config_code = """ 13805s config.add_extension('test_array_from_pyobj_ext', 13805s sources=['wrapmodule.c', 'fortranobject.c'], 13805s define_macros=[]) 13805s """ 13805s d = os.path.dirname(__file__) 13805s src = [ 13805s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13805s util.getpath("src", "fortranobject.c"), 13805s util.getpath("src", "fortranobject.h"), 13805s ] 13805s > wrap = util.build_module_distutils(src, config_code, 13805s "test_array_from_pyobj_ext") 13805s 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13805s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13805s memo[key] = func(*a, **kw) 13805s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13805s func = 13805s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13805s kw = {} 13805s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s 13805s @_memoize 13805s def build_module_distutils(source_files, config_code, module_name, **kw): 13805s """ 13805s Build a module via distutils and import it. 13805s 13805s """ 13805s d = get_module_dir() 13805s 13805s # Copy files 13805s dst_sources = [] 13805s for fn in source_files: 13805s if not os.path.isfile(fn): 13805s raise RuntimeError("%s is not a file" % fn) 13805s dst = os.path.join(d, os.path.basename(fn)) 13805s shutil.copyfile(fn, dst) 13805s dst_sources.append(dst) 13805s 13805s # Build script 13805s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13805s 13805s code = fr""" 13805s import os 13805s import sys 13805s sys.path = {repr(sys.path)} 13805s 13805s def configuration(parent_name='',top_path=None): 13805s from numpy.distutils.misc_util import Configuration 13805s config = Configuration('', parent_name, top_path) 13805s {config_code} 13805s return config 13805s 13805s if __name__ == "__main__": 13805s from numpy.distutils.core import setup 13805s setup(configuration=configuration) 13805s """ 13805s script = os.path.join(d, get_temp_module_name() + ".py") 13805s dst_sources.append(script) 13805s with open(script, "wb") as f: 13805s f.write(asbytes(code)) 13805s 13805s # Build 13805s cwd = os.getcwd() 13805s try: 13805s os.chdir(d) 13805s cmd = [sys.executable, script, "build_ext", "-i"] 13805s p = subprocess.Popen(cmd, 13805s stdout=subprocess.PIPE, 13805s stderr=subprocess.STDOUT) 13805s out, err = p.communicate() 13805s if p.returncode != 0: 13805s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13805s (cmd[4:], asstr(out))) 13805s E RuntimeError: Running distutils build failed: [] 13805s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13805s E 13805s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13805s E of the deprecation of `distutils` itself. It will be removed for 13805s E Python >= 3.12. For older Python versions it will remain present. 13805s E It is recommended to use `setuptools < 60.0` for those Python versions. 13805s E For more details, see: 13805s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13805s E 13805s E 13805s E from numpy.distutils.core import setup 13805s E running build_ext 13805s E running build_src 13805s E INFO: build_src 13805s E INFO: building extension "test_array_from_pyobj_ext" sources 13805s E INFO: build_src: building npy-pkg config files 13805s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13805s E !! 13805s E 13805s E ******************************************************************************** 13805s E Please avoid running ``setup.py`` directly. 13805s E Instead, use pypa/build, pypa/installer or other 13805s E standards-based tools. 13805s E 13805s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13805s E ******************************************************************************** 13805s E 13805s E !! 13805s E self.initialize_options() 13805s E INFO: customize UnixCCompiler 13805s E INFO: customize UnixCCompiler using build_ext 13805s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/tmp 13805s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/usr 13805s E creating /tmp/tmppq19o2st/usr/lib 13805s E creating /tmp/tmppq19o2st/usr/lib/python3 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=native' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-O3' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-Werror' 13805s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13805s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-vfpv4' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=armv8.2-a+fp16' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13805s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13805s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13805s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13805s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13805s E INFO: building 'test_array_from_pyobj_ext' extension 13805s E INFO: compiling C sources 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13805s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13805s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13805s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13805s E 14 | #include 13805s E | ^~~~~~~~~~ 13805s E In file included from fortranobject.c:2: 13805s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13805s E 7 | #include 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E compilation terminated. 13805s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13805s E INFO: 13805s E ########### EXT COMPILER OPTIMIZATION ########### 13805s E INFO: Platform : 13805s E Architecture: armhf 13805s E Compiler : gcc 13805s E 13805s E CPU baseline : 13805s E Requested : 'min' 13805s E Enabled : none 13805s E Flags : none 13805s E Extra checks: none 13805s E 13805s E CPU dispatch : 13805s E Requested : 'max -xop -fma4' 13805s E Enabled : none 13805s E Generated : none 13805s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13805s 13805s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13805s d = '/tmp/tmpjj8q074z' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s err = None 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s kw = {} 13805s module_name = 'test_array_from_pyobj_ext' 13805s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13805s p = 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13805s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[LONG] ______ 13805s 13805s def setup_module(): 13805s """ 13805s Build the required testing extension module 13805s 13805s """ 13805s global wrap 13805s 13805s # Check compiler availability first 13805s if not util.has_c_compiler(): 13805s pytest.skip("No C compiler available") 13805s 13805s if wrap is None: 13805s config_code = """ 13805s config.add_extension('test_array_from_pyobj_ext', 13805s sources=['wrapmodule.c', 'fortranobject.c'], 13805s define_macros=[]) 13805s """ 13805s d = os.path.dirname(__file__) 13805s src = [ 13805s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13805s util.getpath("src", "fortranobject.c"), 13805s util.getpath("src", "fortranobject.h"), 13805s ] 13805s > wrap = util.build_module_distutils(src, config_code, 13805s "test_array_from_pyobj_ext") 13805s 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13805s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13805s memo[key] = func(*a, **kw) 13805s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13805s func = 13805s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13805s kw = {} 13805s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s 13805s @_memoize 13805s def build_module_distutils(source_files, config_code, module_name, **kw): 13805s """ 13805s Build a module via distutils and import it. 13805s 13805s """ 13805s d = get_module_dir() 13805s 13805s # Copy files 13805s dst_sources = [] 13805s for fn in source_files: 13805s if not os.path.isfile(fn): 13805s raise RuntimeError("%s is not a file" % fn) 13805s dst = os.path.join(d, os.path.basename(fn)) 13805s shutil.copyfile(fn, dst) 13805s dst_sources.append(dst) 13805s 13805s # Build script 13805s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13805s 13805s code = fr""" 13805s import os 13805s import sys 13805s sys.path = {repr(sys.path)} 13805s 13805s def configuration(parent_name='',top_path=None): 13805s from numpy.distutils.misc_util import Configuration 13805s config = Configuration('', parent_name, top_path) 13805s {config_code} 13805s return config 13805s 13805s if __name__ == "__main__": 13805s from numpy.distutils.core import setup 13805s setup(configuration=configuration) 13805s """ 13805s script = os.path.join(d, get_temp_module_name() + ".py") 13805s dst_sources.append(script) 13805s with open(script, "wb") as f: 13805s f.write(asbytes(code)) 13805s 13805s # Build 13805s cwd = os.getcwd() 13805s try: 13805s os.chdir(d) 13805s cmd = [sys.executable, script, "build_ext", "-i"] 13805s p = subprocess.Popen(cmd, 13805s stdout=subprocess.PIPE, 13805s stderr=subprocess.STDOUT) 13805s out, err = p.communicate() 13805s if p.returncode != 0: 13805s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13805s (cmd[4:], asstr(out))) 13805s E RuntimeError: Running distutils build failed: [] 13805s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13805s E 13805s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13805s E of the deprecation of `distutils` itself. It will be removed for 13805s E Python >= 3.12. For older Python versions it will remain present. 13805s E It is recommended to use `setuptools < 60.0` for those Python versions. 13805s E For more details, see: 13805s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13805s E 13805s E 13805s E from numpy.distutils.core import setup 13805s E running build_ext 13805s E running build_src 13805s E INFO: build_src 13805s E INFO: building extension "test_array_from_pyobj_ext" sources 13805s E INFO: build_src: building npy-pkg config files 13805s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13805s E !! 13805s E 13805s E ******************************************************************************** 13805s E Please avoid running ``setup.py`` directly. 13805s E Instead, use pypa/build, pypa/installer or other 13805s E standards-based tools. 13805s E 13805s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13805s E ******************************************************************************** 13805s E 13805s E !! 13805s E self.initialize_options() 13805s E INFO: customize UnixCCompiler 13805s E INFO: customize UnixCCompiler using build_ext 13805s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/tmp 13805s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/usr 13805s E creating /tmp/tmppq19o2st/usr/lib 13805s E creating /tmp/tmppq19o2st/usr/lib/python3 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=native' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-O3' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-Werror' 13805s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13805s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-vfpv4' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=armv8.2-a+fp16' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13805s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13805s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13805s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13805s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13805s E INFO: building 'test_array_from_pyobj_ext' extension 13805s E INFO: compiling C sources 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13805s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13805s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13805s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13805s E 14 | #include 13805s E | ^~~~~~~~~~ 13805s E In file included from fortranobject.c:2: 13805s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13805s E 7 | #include 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E compilation terminated. 13805s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13805s E INFO: 13805s E ########### EXT COMPILER OPTIMIZATION ########### 13805s E INFO: Platform : 13805s E Architecture: armhf 13805s E Compiler : gcc 13805s E 13805s E CPU baseline : 13805s E Requested : 'min' 13805s E Enabled : none 13805s E Flags : none 13805s E Extra checks: none 13805s E 13805s E CPU dispatch : 13805s E Requested : 'max -xop -fma4' 13805s E Enabled : none 13805s E Generated : none 13805s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13805s 13805s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13805s d = '/tmp/tmpjj8q074z' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s err = None 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s kw = {} 13805s module_name = 'test_array_from_pyobj_ext' 13805s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13805s p = 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13805s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[LONG] ____ 13805s 13805s def setup_module(): 13805s """ 13805s Build the required testing extension module 13805s 13805s """ 13805s global wrap 13805s 13805s # Check compiler availability first 13805s if not util.has_c_compiler(): 13805s pytest.skip("No C compiler available") 13805s 13805s if wrap is None: 13805s config_code = """ 13805s config.add_extension('test_array_from_pyobj_ext', 13805s sources=['wrapmodule.c', 'fortranobject.c'], 13805s define_macros=[]) 13805s """ 13805s d = os.path.dirname(__file__) 13805s src = [ 13805s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13805s util.getpath("src", "fortranobject.c"), 13805s util.getpath("src", "fortranobject.h"), 13805s ] 13805s > wrap = util.build_module_distutils(src, config_code, 13805s "test_array_from_pyobj_ext") 13805s 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13805s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13805s memo[key] = func(*a, **kw) 13805s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13805s func = 13805s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13805s kw = {} 13805s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s 13805s @_memoize 13805s def build_module_distutils(source_files, config_code, module_name, **kw): 13805s """ 13805s Build a module via distutils and import it. 13805s 13805s """ 13805s d = get_module_dir() 13805s 13805s # Copy files 13805s dst_sources = [] 13805s for fn in source_files: 13805s if not os.path.isfile(fn): 13805s raise RuntimeError("%s is not a file" % fn) 13805s dst = os.path.join(d, os.path.basename(fn)) 13805s shutil.copyfile(fn, dst) 13805s dst_sources.append(dst) 13805s 13805s # Build script 13805s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13805s 13805s code = fr""" 13805s import os 13805s import sys 13805s sys.path = {repr(sys.path)} 13805s 13805s def configuration(parent_name='',top_path=None): 13805s from numpy.distutils.misc_util import Configuration 13805s config = Configuration('', parent_name, top_path) 13805s {config_code} 13805s return config 13805s 13805s if __name__ == "__main__": 13805s from numpy.distutils.core import setup 13805s setup(configuration=configuration) 13805s """ 13805s script = os.path.join(d, get_temp_module_name() + ".py") 13805s dst_sources.append(script) 13805s with open(script, "wb") as f: 13805s f.write(asbytes(code)) 13805s 13805s # Build 13805s cwd = os.getcwd() 13805s try: 13805s os.chdir(d) 13805s cmd = [sys.executable, script, "build_ext", "-i"] 13805s p = subprocess.Popen(cmd, 13805s stdout=subprocess.PIPE, 13805s stderr=subprocess.STDOUT) 13805s out, err = p.communicate() 13805s if p.returncode != 0: 13805s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13805s (cmd[4:], asstr(out))) 13805s E RuntimeError: Running distutils build failed: [] 13805s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13805s E 13805s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13805s E of the deprecation of `distutils` itself. It will be removed for 13805s E Python >= 3.12. For older Python versions it will remain present. 13805s E It is recommended to use `setuptools < 60.0` for those Python versions. 13805s E For more details, see: 13805s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13805s E 13805s E 13805s E from numpy.distutils.core import setup 13805s E running build_ext 13805s E running build_src 13805s E INFO: build_src 13805s E INFO: building extension "test_array_from_pyobj_ext" sources 13805s E INFO: build_src: building npy-pkg config files 13805s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13805s E !! 13805s E 13805s E ******************************************************************************** 13805s E Please avoid running ``setup.py`` directly. 13805s E Instead, use pypa/build, pypa/installer or other 13805s E standards-based tools. 13805s E 13805s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13805s E ******************************************************************************** 13805s E 13805s E !! 13805s E self.initialize_options() 13805s E INFO: customize UnixCCompiler 13805s E INFO: customize UnixCCompiler using build_ext 13805s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/tmp 13805s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E creating /tmp/tmppq19o2st/usr 13805s E creating /tmp/tmppq19o2st/usr/lib 13805s E creating /tmp/tmppq19o2st/usr/lib/python3 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13805s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=native' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-O3' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-Werror' 13805s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13805s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-vfpv4' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13805s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-march=armv8.2-a+fp16' 13805s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/include/python3.12 -c' 13805s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13805s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13805s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13805s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13805s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13805s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13805s E 9 | # include_next 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E 13805s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13805s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13805s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13805s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13805s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13805s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13805s E INFO: building 'test_array_from_pyobj_ext' extension 13805s E INFO: compiling C sources 13805s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13805s E 13805s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13805s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13805s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13805s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13805s E 14 | #include 13805s E | ^~~~~~~~~~ 13805s E In file included from fortranobject.c:2: 13805s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13805s E 7 | #include 13805s E | ^~~~~~~~~~ 13805s E compilation terminated. 13805s E compilation terminated. 13805s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13805s E INFO: 13805s E ########### EXT COMPILER OPTIMIZATION ########### 13805s E INFO: Platform : 13805s E Architecture: armhf 13805s E Compiler : gcc 13805s E 13805s E CPU baseline : 13805s E Requested : 'min' 13805s E Enabled : none 13805s E Flags : none 13805s E Extra checks: none 13805s E 13805s E CPU dispatch : 13805s E Requested : 'max -xop -fma4' 13805s E Enabled : none 13805s E Generated : none 13805s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13805s 13805s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13805s d = '/tmp/tmpjj8q074z' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s err = None 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s kw = {} 13805s module_name = 'test_array_from_pyobj_ext' 13805s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13805s p = 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13805s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[LONG] ____ 13805s 13805s def setup_module(): 13805s """ 13805s Build the required testing extension module 13805s 13805s """ 13805s global wrap 13805s 13805s # Check compiler availability first 13805s if not util.has_c_compiler(): 13805s pytest.skip("No C compiler available") 13805s 13805s if wrap is None: 13805s config_code = """ 13805s config.add_extension('test_array_from_pyobj_ext', 13805s sources=['wrapmodule.c', 'fortranobject.c'], 13805s define_macros=[]) 13805s """ 13805s d = os.path.dirname(__file__) 13805s src = [ 13805s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13805s util.getpath("src", "fortranobject.c"), 13805s util.getpath("src", "fortranobject.h"), 13805s ] 13805s > wrap = util.build_module_distutils(src, config_code, 13805s "test_array_from_pyobj_ext") 13805s 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13805s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13805s memo[key] = func(*a, **kw) 13805s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13805s func = 13805s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13805s kw = {} 13805s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13805s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13805s 13805s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13805s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13805s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13805s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13805s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13805s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13805s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13805s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13805s 13805s @_memoize 13805s def build_module_distutils(source_files, config_code, module_name, **kw): 13805s """ 13805s Build a module via distutils and import it. 13805s 13805s """ 13805s d = get_module_dir() 13805s 13805s # Copy files 13805s dst_sources = [] 13805s for fn in source_files: 13805s if not os.path.isfile(fn): 13805s raise RuntimeError("%s is not a file" % fn) 13805s dst = os.path.join(d, os.path.basename(fn)) 13805s shutil.copyfile(fn, dst) 13805s dst_sources.append(dst) 13805s 13805s # Build script 13805s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13805s 13805s code = fr""" 13805s import os 13805s import sys 13805s sys.path = {repr(sys.path)} 13805s 13805s def configuration(parent_name='',top_path=None): 13805s from numpy.distutils.misc_util import Configuration 13805s config = Configuration('', parent_name, top_path) 13805s {config_code} 13805s return config 13805s 13805s if __name__ == "__main__": 13805s from numpy.distutils.core import setup 13805s setup(configuration=configuration) 13805s """ 13805s script = os.path.join(d, get_temp_module_name() + ".py") 13805s dst_sources.append(script) 13805s with open(script, "wb") as f: 13805s f.write(asbytes(code)) 13805s 13805s # Build 13805s cwd = os.getcwd() 13805s try: 13805s os.chdir(d) 13805s cmd = [sys.executable, script, "build_ext", "-i"] 13805s p = subprocess.Popen(cmd, 13805s stdout=subprocess.PIPE, 13805s stderr=subprocess.STDOUT) 13805s out, err = p.communicate() 13805s if p.returncode != 0: 13805s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13805s (cmd[4:], asstr(out))) 13805s E RuntimeError: Running distutils build failed: [] 13805s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13805s E 13805s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13805s E of the deprecation of `distutils` itself. It will be removed for 13805s E Python >= 3.12. For older Python versions it will remain present. 13805s E It is recommended to use `setuptools < 60.0` for those Python versions. 13805s E For more details, see: 13805s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13806s E 13806s E 13806s E from numpy.distutils.core import setup 13806s E running build_ext 13806s E running build_src 13806s E INFO: build_src 13806s E INFO: building extension "test_array_from_pyobj_ext" sources 13806s E INFO: build_src: building npy-pkg config files 13806s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13806s E !! 13806s E 13806s E ******************************************************************************** 13806s E Please avoid running ``setup.py`` directly. 13806s E Instead, use pypa/build, pypa/installer or other 13806s E standards-based tools. 13806s E 13806s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13806s E ******************************************************************************** 13806s E 13806s E !! 13806s E self.initialize_options() 13806s E INFO: customize UnixCCompiler 13806s E INFO: customize UnixCCompiler using build_ext 13806s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/tmp 13806s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/usr 13806s E creating /tmp/tmppq19o2st/usr/lib 13806s E creating /tmp/tmppq19o2st/usr/lib/python3 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=native' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-O3' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-Werror' 13806s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13806s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-vfpv4' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=armv8.2-a+fp16' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13806s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13806s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13806s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13806s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13806s E INFO: building 'test_array_from_pyobj_ext' extension 13806s E INFO: compiling C sources 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13806s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13806s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13806s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13806s E 14 | #include 13806s E | ^~~~~~~~~~ 13806s E In file included from fortranobject.c:2: 13806s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13806s E 7 | #include 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E compilation terminated. 13806s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13806s E INFO: 13806s E ########### EXT COMPILER OPTIMIZATION ########### 13806s E INFO: Platform : 13806s E Architecture: armhf 13806s E Compiler : gcc 13806s E 13806s E CPU baseline : 13806s E Requested : 'min' 13806s E Enabled : none 13806s E Flags : none 13806s E Extra checks: none 13806s E 13806s E CPU dispatch : 13806s E Requested : 'max -xop -fma4' 13806s E Enabled : none 13806s E Generated : none 13806s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13806s 13806s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13806s d = '/tmp/tmpjj8q074z' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s err = None 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s kw = {} 13806s module_name = 'test_array_from_pyobj_ext' 13806s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13806s p = 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13806s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[LONG] _____ 13806s 13806s def setup_module(): 13806s """ 13806s Build the required testing extension module 13806s 13806s """ 13806s global wrap 13806s 13806s # Check compiler availability first 13806s if not util.has_c_compiler(): 13806s pytest.skip("No C compiler available") 13806s 13806s if wrap is None: 13806s config_code = """ 13806s config.add_extension('test_array_from_pyobj_ext', 13806s sources=['wrapmodule.c', 'fortranobject.c'], 13806s define_macros=[]) 13806s """ 13806s d = os.path.dirname(__file__) 13806s src = [ 13806s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13806s util.getpath("src", "fortranobject.c"), 13806s util.getpath("src", "fortranobject.h"), 13806s ] 13806s > wrap = util.build_module_distutils(src, config_code, 13806s "test_array_from_pyobj_ext") 13806s 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13806s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13806s memo[key] = func(*a, **kw) 13806s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13806s func = 13806s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13806s kw = {} 13806s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s 13806s @_memoize 13806s def build_module_distutils(source_files, config_code, module_name, **kw): 13806s """ 13806s Build a module via distutils and import it. 13806s 13806s """ 13806s d = get_module_dir() 13806s 13806s # Copy files 13806s dst_sources = [] 13806s for fn in source_files: 13806s if not os.path.isfile(fn): 13806s raise RuntimeError("%s is not a file" % fn) 13806s dst = os.path.join(d, os.path.basename(fn)) 13806s shutil.copyfile(fn, dst) 13806s dst_sources.append(dst) 13806s 13806s # Build script 13806s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13806s 13806s code = fr""" 13806s import os 13806s import sys 13806s sys.path = {repr(sys.path)} 13806s 13806s def configuration(parent_name='',top_path=None): 13806s from numpy.distutils.misc_util import Configuration 13806s config = Configuration('', parent_name, top_path) 13806s {config_code} 13806s return config 13806s 13806s if __name__ == "__main__": 13806s from numpy.distutils.core import setup 13806s setup(configuration=configuration) 13806s """ 13806s script = os.path.join(d, get_temp_module_name() + ".py") 13806s dst_sources.append(script) 13806s with open(script, "wb") as f: 13806s f.write(asbytes(code)) 13806s 13806s # Build 13806s cwd = os.getcwd() 13806s try: 13806s os.chdir(d) 13806s cmd = [sys.executable, script, "build_ext", "-i"] 13806s p = subprocess.Popen(cmd, 13806s stdout=subprocess.PIPE, 13806s stderr=subprocess.STDOUT) 13806s out, err = p.communicate() 13806s if p.returncode != 0: 13806s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13806s (cmd[4:], asstr(out))) 13806s E RuntimeError: Running distutils build failed: [] 13806s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13806s E 13806s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13806s E of the deprecation of `distutils` itself. It will be removed for 13806s E Python >= 3.12. For older Python versions it will remain present. 13806s E It is recommended to use `setuptools < 60.0` for those Python versions. 13806s E For more details, see: 13806s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13806s E 13806s E 13806s E from numpy.distutils.core import setup 13806s E running build_ext 13806s E running build_src 13806s E INFO: build_src 13806s E INFO: building extension "test_array_from_pyobj_ext" sources 13806s E INFO: build_src: building npy-pkg config files 13806s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13806s E !! 13806s E 13806s E ******************************************************************************** 13806s E Please avoid running ``setup.py`` directly. 13806s E Instead, use pypa/build, pypa/installer or other 13806s E standards-based tools. 13806s E 13806s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13806s E ******************************************************************************** 13806s E 13806s E !! 13806s E self.initialize_options() 13806s E INFO: customize UnixCCompiler 13806s E INFO: customize UnixCCompiler using build_ext 13806s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/tmp 13806s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/usr 13806s E creating /tmp/tmppq19o2st/usr/lib 13806s E creating /tmp/tmppq19o2st/usr/lib/python3 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=native' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-O3' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-Werror' 13806s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13806s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-vfpv4' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=armv8.2-a+fp16' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13806s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13806s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13806s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13806s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13806s E INFO: building 'test_array_from_pyobj_ext' extension 13806s E INFO: compiling C sources 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13806s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13806s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13806s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13806s E 14 | #include 13806s E | ^~~~~~~~~~ 13806s E In file included from fortranobject.c:2: 13806s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13806s E 7 | #include 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E compilation terminated. 13806s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13806s E INFO: 13806s E ########### EXT COMPILER OPTIMIZATION ########### 13806s E INFO: Platform : 13806s E Architecture: armhf 13806s E Compiler : gcc 13806s E 13806s E CPU baseline : 13806s E Requested : 'min' 13806s E Enabled : none 13806s E Flags : none 13806s E Extra checks: none 13806s E 13806s E CPU dispatch : 13806s E Requested : 'max -xop -fma4' 13806s E Enabled : none 13806s E Generated : none 13806s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13806s 13806s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13806s d = '/tmp/tmpjj8q074z' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s err = None 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s kw = {} 13806s module_name = 'test_array_from_pyobj_ext' 13806s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13806s p = 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13806s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[LONG] _ 13806s 13806s def setup_module(): 13806s """ 13806s Build the required testing extension module 13806s 13806s """ 13806s global wrap 13806s 13806s # Check compiler availability first 13806s if not util.has_c_compiler(): 13806s pytest.skip("No C compiler available") 13806s 13806s if wrap is None: 13806s config_code = """ 13806s config.add_extension('test_array_from_pyobj_ext', 13806s sources=['wrapmodule.c', 'fortranobject.c'], 13806s define_macros=[]) 13806s """ 13806s d = os.path.dirname(__file__) 13806s src = [ 13806s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13806s util.getpath("src", "fortranobject.c"), 13806s util.getpath("src", "fortranobject.h"), 13806s ] 13806s > wrap = util.build_module_distutils(src, config_code, 13806s "test_array_from_pyobj_ext") 13806s 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13806s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13806s memo[key] = func(*a, **kw) 13806s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13806s func = 13806s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13806s kw = {} 13806s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s 13806s @_memoize 13806s def build_module_distutils(source_files, config_code, module_name, **kw): 13806s """ 13806s Build a module via distutils and import it. 13806s 13806s """ 13806s d = get_module_dir() 13806s 13806s # Copy files 13806s dst_sources = [] 13806s for fn in source_files: 13806s if not os.path.isfile(fn): 13806s raise RuntimeError("%s is not a file" % fn) 13806s dst = os.path.join(d, os.path.basename(fn)) 13806s shutil.copyfile(fn, dst) 13806s dst_sources.append(dst) 13806s 13806s # Build script 13806s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13806s 13806s code = fr""" 13806s import os 13806s import sys 13806s sys.path = {repr(sys.path)} 13806s 13806s def configuration(parent_name='',top_path=None): 13806s from numpy.distutils.misc_util import Configuration 13806s config = Configuration('', parent_name, top_path) 13806s {config_code} 13806s return config 13806s 13806s if __name__ == "__main__": 13806s from numpy.distutils.core import setup 13806s setup(configuration=configuration) 13806s """ 13806s script = os.path.join(d, get_temp_module_name() + ".py") 13806s dst_sources.append(script) 13806s with open(script, "wb") as f: 13806s f.write(asbytes(code)) 13806s 13806s # Build 13806s cwd = os.getcwd() 13806s try: 13806s os.chdir(d) 13806s cmd = [sys.executable, script, "build_ext", "-i"] 13806s p = subprocess.Popen(cmd, 13806s stdout=subprocess.PIPE, 13806s stderr=subprocess.STDOUT) 13806s out, err = p.communicate() 13806s if p.returncode != 0: 13806s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13806s (cmd[4:], asstr(out))) 13806s E RuntimeError: Running distutils build failed: [] 13806s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13806s E 13806s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13806s E of the deprecation of `distutils` itself. It will be removed for 13806s E Python >= 3.12. For older Python versions it will remain present. 13806s E It is recommended to use `setuptools < 60.0` for those Python versions. 13806s E For more details, see: 13806s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13806s E 13806s E 13806s E from numpy.distutils.core import setup 13806s E running build_ext 13806s E running build_src 13806s E INFO: build_src 13806s E INFO: building extension "test_array_from_pyobj_ext" sources 13806s E INFO: build_src: building npy-pkg config files 13806s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13806s E !! 13806s E 13806s E ******************************************************************************** 13806s E Please avoid running ``setup.py`` directly. 13806s E Instead, use pypa/build, pypa/installer or other 13806s E standards-based tools. 13806s E 13806s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13806s E ******************************************************************************** 13806s E 13806s E !! 13806s E self.initialize_options() 13806s E INFO: customize UnixCCompiler 13806s E INFO: customize UnixCCompiler using build_ext 13806s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/tmp 13806s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/usr 13806s E creating /tmp/tmppq19o2st/usr/lib 13806s E creating /tmp/tmppq19o2st/usr/lib/python3 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=native' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-O3' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-Werror' 13806s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13806s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-vfpv4' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=armv8.2-a+fp16' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13806s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13806s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13806s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13806s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13806s E INFO: building 'test_array_from_pyobj_ext' extension 13806s E INFO: compiling C sources 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13806s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13806s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13806s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13806s E 14 | #include 13806s E | ^~~~~~~~~~ 13806s E In file included from fortranobject.c:2: 13806s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13806s E 7 | #include 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E compilation terminated. 13806s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13806s E INFO: 13806s E ########### EXT COMPILER OPTIMIZATION ########### 13806s E INFO: Platform : 13806s E Architecture: armhf 13806s E Compiler : gcc 13806s E 13806s E CPU baseline : 13806s E Requested : 'min' 13806s E Enabled : none 13806s E Flags : none 13806s E Extra checks: none 13806s E 13806s E CPU dispatch : 13806s E Requested : 'max -xop -fma4' 13806s E Enabled : none 13806s E Generated : none 13806s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13806s 13806s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13806s d = '/tmp/tmpjj8q074z' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s err = None 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s kw = {} 13806s module_name = 'test_array_from_pyobj_ext' 13806s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13806s p = 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13806s __________ ERROR at setup of TestSharedMemory.test_cache_hidden[LONG] __________ 13806s 13806s def setup_module(): 13806s """ 13806s Build the required testing extension module 13806s 13806s """ 13806s global wrap 13806s 13806s # Check compiler availability first 13806s if not util.has_c_compiler(): 13806s pytest.skip("No C compiler available") 13806s 13806s if wrap is None: 13806s config_code = """ 13806s config.add_extension('test_array_from_pyobj_ext', 13806s sources=['wrapmodule.c', 'fortranobject.c'], 13806s define_macros=[]) 13806s """ 13806s d = os.path.dirname(__file__) 13806s src = [ 13806s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13806s util.getpath("src", "fortranobject.c"), 13806s util.getpath("src", "fortranobject.h"), 13806s ] 13806s > wrap = util.build_module_distutils(src, config_code, 13806s "test_array_from_pyobj_ext") 13806s 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13806s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13806s memo[key] = func(*a, **kw) 13806s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13806s func = 13806s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13806s kw = {} 13806s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s 13806s @_memoize 13806s def build_module_distutils(source_files, config_code, module_name, **kw): 13806s """ 13806s Build a module via distutils and import it. 13806s 13806s """ 13806s d = get_module_dir() 13806s 13806s # Copy files 13806s dst_sources = [] 13806s for fn in source_files: 13806s if not os.path.isfile(fn): 13806s raise RuntimeError("%s is not a file" % fn) 13806s dst = os.path.join(d, os.path.basename(fn)) 13806s shutil.copyfile(fn, dst) 13806s dst_sources.append(dst) 13806s 13806s # Build script 13806s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13806s 13806s code = fr""" 13806s import os 13806s import sys 13806s sys.path = {repr(sys.path)} 13806s 13806s def configuration(parent_name='',top_path=None): 13806s from numpy.distutils.misc_util import Configuration 13806s config = Configuration('', parent_name, top_path) 13806s {config_code} 13806s return config 13806s 13806s if __name__ == "__main__": 13806s from numpy.distutils.core import setup 13806s setup(configuration=configuration) 13806s """ 13806s script = os.path.join(d, get_temp_module_name() + ".py") 13806s dst_sources.append(script) 13806s with open(script, "wb") as f: 13806s f.write(asbytes(code)) 13806s 13806s # Build 13806s cwd = os.getcwd() 13806s try: 13806s os.chdir(d) 13806s cmd = [sys.executable, script, "build_ext", "-i"] 13806s p = subprocess.Popen(cmd, 13806s stdout=subprocess.PIPE, 13806s stderr=subprocess.STDOUT) 13806s out, err = p.communicate() 13806s if p.returncode != 0: 13806s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13806s (cmd[4:], asstr(out))) 13806s E RuntimeError: Running distutils build failed: [] 13806s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13806s E 13806s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13806s E of the deprecation of `distutils` itself. It will be removed for 13806s E Python >= 3.12. For older Python versions it will remain present. 13806s E It is recommended to use `setuptools < 60.0` for those Python versions. 13806s E For more details, see: 13806s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13806s E 13806s E 13806s E from numpy.distutils.core import setup 13806s E running build_ext 13806s E running build_src 13806s E INFO: build_src 13806s E INFO: building extension "test_array_from_pyobj_ext" sources 13806s E INFO: build_src: building npy-pkg config files 13806s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13806s E !! 13806s E 13806s E ******************************************************************************** 13806s E Please avoid running ``setup.py`` directly. 13806s E Instead, use pypa/build, pypa/installer or other 13806s E standards-based tools. 13806s E 13806s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13806s E ******************************************************************************** 13806s E 13806s E !! 13806s E self.initialize_options() 13806s E INFO: customize UnixCCompiler 13806s E INFO: customize UnixCCompiler using build_ext 13806s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/tmp 13806s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/usr 13806s E creating /tmp/tmppq19o2st/usr/lib 13806s E creating /tmp/tmppq19o2st/usr/lib/python3 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=native' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-O3' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-Werror' 13806s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13806s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-vfpv4' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=armv8.2-a+fp16' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13806s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13806s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13806s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13806s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13806s E INFO: building 'test_array_from_pyobj_ext' extension 13806s E INFO: compiling C sources 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13806s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13806s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13806s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13806s E 14 | #include 13806s E | ^~~~~~~~~~ 13806s E In file included from fortranobject.c:2: 13806s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13806s E 7 | #include 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E compilation terminated. 13806s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13806s E INFO: 13806s E ########### EXT COMPILER OPTIMIZATION ########### 13806s E INFO: Platform : 13806s E Architecture: armhf 13806s E Compiler : gcc 13806s E 13806s E CPU baseline : 13806s E Requested : 'min' 13806s E Enabled : none 13806s E Flags : none 13806s E Extra checks: none 13806s E 13806s E CPU dispatch : 13806s E Requested : 'max -xop -fma4' 13806s E Enabled : none 13806s E Generated : none 13806s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13806s 13806s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13806s d = '/tmp/tmpjj8q074z' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s err = None 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s kw = {} 13806s module_name = 'test_array_from_pyobj_ext' 13806s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13806s p = 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13806s _____________ ERROR at setup of TestSharedMemory.test_hidden[LONG] _____________ 13806s 13806s def setup_module(): 13806s """ 13806s Build the required testing extension module 13806s 13806s """ 13806s global wrap 13806s 13806s # Check compiler availability first 13806s if not util.has_c_compiler(): 13806s pytest.skip("No C compiler available") 13806s 13806s if wrap is None: 13806s config_code = """ 13806s config.add_extension('test_array_from_pyobj_ext', 13806s sources=['wrapmodule.c', 'fortranobject.c'], 13806s define_macros=[]) 13806s """ 13806s d = os.path.dirname(__file__) 13806s src = [ 13806s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13806s util.getpath("src", "fortranobject.c"), 13806s util.getpath("src", "fortranobject.h"), 13806s ] 13806s > wrap = util.build_module_distutils(src, config_code, 13806s "test_array_from_pyobj_ext") 13806s 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13806s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13806s memo[key] = func(*a, **kw) 13806s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13806s func = 13806s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13806s kw = {} 13806s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s 13806s @_memoize 13806s def build_module_distutils(source_files, config_code, module_name, **kw): 13806s """ 13806s Build a module via distutils and import it. 13806s 13806s """ 13806s d = get_module_dir() 13806s 13806s # Copy files 13806s dst_sources = [] 13806s for fn in source_files: 13806s if not os.path.isfile(fn): 13806s raise RuntimeError("%s is not a file" % fn) 13806s dst = os.path.join(d, os.path.basename(fn)) 13806s shutil.copyfile(fn, dst) 13806s dst_sources.append(dst) 13806s 13806s # Build script 13806s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13806s 13806s code = fr""" 13806s import os 13806s import sys 13806s sys.path = {repr(sys.path)} 13806s 13806s def configuration(parent_name='',top_path=None): 13806s from numpy.distutils.misc_util import Configuration 13806s config = Configuration('', parent_name, top_path) 13806s {config_code} 13806s return config 13806s 13806s if __name__ == "__main__": 13806s from numpy.distutils.core import setup 13806s setup(configuration=configuration) 13806s """ 13806s script = os.path.join(d, get_temp_module_name() + ".py") 13806s dst_sources.append(script) 13806s with open(script, "wb") as f: 13806s f.write(asbytes(code)) 13806s 13806s # Build 13806s cwd = os.getcwd() 13806s try: 13806s os.chdir(d) 13806s cmd = [sys.executable, script, "build_ext", "-i"] 13806s p = subprocess.Popen(cmd, 13806s stdout=subprocess.PIPE, 13806s stderr=subprocess.STDOUT) 13806s out, err = p.communicate() 13806s if p.returncode != 0: 13806s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13806s (cmd[4:], asstr(out))) 13806s E RuntimeError: Running distutils build failed: [] 13806s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13806s E 13806s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13806s E of the deprecation of `distutils` itself. It will be removed for 13806s E Python >= 3.12. For older Python versions it will remain present. 13806s E It is recommended to use `setuptools < 60.0` for those Python versions. 13806s E For more details, see: 13806s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13806s E 13806s E 13806s E from numpy.distutils.core import setup 13806s E running build_ext 13806s E running build_src 13806s E INFO: build_src 13806s E INFO: building extension "test_array_from_pyobj_ext" sources 13806s E INFO: build_src: building npy-pkg config files 13806s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13806s E !! 13806s E 13806s E ******************************************************************************** 13806s E Please avoid running ``setup.py`` directly. 13806s E Instead, use pypa/build, pypa/installer or other 13806s E standards-based tools. 13806s E 13806s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13806s E ******************************************************************************** 13806s E 13806s E !! 13806s E self.initialize_options() 13806s E INFO: customize UnixCCompiler 13806s E INFO: customize UnixCCompiler using build_ext 13806s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/tmp 13806s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/usr 13806s E creating /tmp/tmppq19o2st/usr/lib 13806s E creating /tmp/tmppq19o2st/usr/lib/python3 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=native' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-O3' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-Werror' 13806s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13806s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-vfpv4' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=armv8.2-a+fp16' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13806s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13806s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13806s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13806s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13806s E INFO: building 'test_array_from_pyobj_ext' extension 13806s E INFO: compiling C sources 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13806s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13806s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13806s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13806s E 14 | #include 13806s E | ^~~~~~~~~~ 13806s E In file included from fortranobject.c:2: 13806s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13806s E 7 | #include 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E compilation terminated. 13806s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13806s E INFO: 13806s E ########### EXT COMPILER OPTIMIZATION ########### 13806s E INFO: Platform : 13806s E Architecture: armhf 13806s E Compiler : gcc 13806s E 13806s E CPU baseline : 13806s E Requested : 'min' 13806s E Enabled : none 13806s E Flags : none 13806s E Extra checks: none 13806s E 13806s E CPU dispatch : 13806s E Requested : 'max -xop -fma4' 13806s E Enabled : none 13806s E Generated : none 13806s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13806s 13806s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13806s d = '/tmp/tmpjj8q074z' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s err = None 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s kw = {} 13806s module_name = 'test_array_from_pyobj_ext' 13806s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13806s p = 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13806s _________ ERROR at setup of TestSharedMemory.test_optional_none[LONG] __________ 13806s 13806s def setup_module(): 13806s """ 13806s Build the required testing extension module 13806s 13806s """ 13806s global wrap 13806s 13806s # Check compiler availability first 13806s if not util.has_c_compiler(): 13806s pytest.skip("No C compiler available") 13806s 13806s if wrap is None: 13806s config_code = """ 13806s config.add_extension('test_array_from_pyobj_ext', 13806s sources=['wrapmodule.c', 'fortranobject.c'], 13806s define_macros=[]) 13806s """ 13806s d = os.path.dirname(__file__) 13806s src = [ 13806s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13806s util.getpath("src", "fortranobject.c"), 13806s util.getpath("src", "fortranobject.h"), 13806s ] 13806s > wrap = util.build_module_distutils(src, config_code, 13806s "test_array_from_pyobj_ext") 13806s 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13806s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13806s memo[key] = func(*a, **kw) 13806s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13806s func = 13806s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13806s kw = {} 13806s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s 13806s @_memoize 13806s def build_module_distutils(source_files, config_code, module_name, **kw): 13806s """ 13806s Build a module via distutils and import it. 13806s 13806s """ 13806s d = get_module_dir() 13806s 13806s # Copy files 13806s dst_sources = [] 13806s for fn in source_files: 13806s if not os.path.isfile(fn): 13806s raise RuntimeError("%s is not a file" % fn) 13806s dst = os.path.join(d, os.path.basename(fn)) 13806s shutil.copyfile(fn, dst) 13806s dst_sources.append(dst) 13806s 13806s # Build script 13806s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13806s 13806s code = fr""" 13806s import os 13806s import sys 13806s sys.path = {repr(sys.path)} 13806s 13806s def configuration(parent_name='',top_path=None): 13806s from numpy.distutils.misc_util import Configuration 13806s config = Configuration('', parent_name, top_path) 13806s {config_code} 13806s return config 13806s 13806s if __name__ == "__main__": 13806s from numpy.distutils.core import setup 13806s setup(configuration=configuration) 13806s """ 13806s script = os.path.join(d, get_temp_module_name() + ".py") 13806s dst_sources.append(script) 13806s with open(script, "wb") as f: 13806s f.write(asbytes(code)) 13806s 13806s # Build 13806s cwd = os.getcwd() 13806s try: 13806s os.chdir(d) 13806s cmd = [sys.executable, script, "build_ext", "-i"] 13806s p = subprocess.Popen(cmd, 13806s stdout=subprocess.PIPE, 13806s stderr=subprocess.STDOUT) 13806s out, err = p.communicate() 13806s if p.returncode != 0: 13806s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13806s (cmd[4:], asstr(out))) 13806s E RuntimeError: Running distutils build failed: [] 13806s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13806s E 13806s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13806s E of the deprecation of `distutils` itself. It will be removed for 13806s E Python >= 3.12. For older Python versions it will remain present. 13806s E It is recommended to use `setuptools < 60.0` for those Python versions. 13806s E For more details, see: 13806s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13806s E 13806s E 13806s E from numpy.distutils.core import setup 13806s E running build_ext 13806s E running build_src 13806s E INFO: build_src 13806s E INFO: building extension "test_array_from_pyobj_ext" sources 13806s E INFO: build_src: building npy-pkg config files 13806s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13806s E !! 13806s E 13806s E ******************************************************************************** 13806s E Please avoid running ``setup.py`` directly. 13806s E Instead, use pypa/build, pypa/installer or other 13806s E standards-based tools. 13806s E 13806s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13806s E ******************************************************************************** 13806s E 13806s E !! 13806s E self.initialize_options() 13806s E INFO: customize UnixCCompiler 13806s E INFO: customize UnixCCompiler using build_ext 13806s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/tmp 13806s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E creating /tmp/tmppq19o2st/usr 13806s E creating /tmp/tmppq19o2st/usr/lib 13806s E creating /tmp/tmppq19o2st/usr/lib/python3 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13806s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=native' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-O3' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-Werror' 13806s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13806s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-vfpv4' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13806s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-march=armv8.2-a+fp16' 13806s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/include/python3.12 -c' 13806s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13806s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13806s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13806s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13806s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13806s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13806s E 9 | # include_next 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E 13806s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13806s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13806s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13806s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13806s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13806s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13806s E INFO: building 'test_array_from_pyobj_ext' extension 13806s E INFO: compiling C sources 13806s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13806s E 13806s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13806s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13806s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13806s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13806s E 14 | #include 13806s E | ^~~~~~~~~~ 13806s E In file included from fortranobject.c:2: 13806s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13806s E 7 | #include 13806s E | ^~~~~~~~~~ 13806s E compilation terminated. 13806s E compilation terminated. 13806s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13806s E INFO: 13806s E ########### EXT COMPILER OPTIMIZATION ########### 13806s E INFO: Platform : 13806s E Architecture: armhf 13806s E Compiler : gcc 13806s E 13806s E CPU baseline : 13806s E Requested : 'min' 13806s E Enabled : none 13806s E Flags : none 13806s E Extra checks: none 13806s E 13806s E CPU dispatch : 13806s E Requested : 'max -xop -fma4' 13806s E Enabled : none 13806s E Generated : none 13806s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13806s 13806s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13806s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13806s d = '/tmp/tmpjj8q074z' 13806s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13806s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13806s err = None 13806s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13806s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s kw = {} 13806s module_name = 'test_array_from_pyobj_ext' 13806s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13806s p = 13806s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13806s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13806s _______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[LONG] _______ 13806s 13806s def setup_module(): 13806s """ 13806s Build the required testing extension module 13806s 13806s """ 13806s global wrap 13806s 13806s # Check compiler availability first 13806s if not util.has_c_compiler(): 13806s pytest.skip("No C compiler available") 13806s 13806s if wrap is None: 13806s config_code = """ 13806s config.add_extension('test_array_from_pyobj_ext', 13806s sources=['wrapmodule.c', 'fortranobject.c'], 13806s define_macros=[]) 13806s """ 13806s d = os.path.dirname(__file__) 13806s src = [ 13806s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13806s util.getpath("src", "fortranobject.c"), 13806s util.getpath("src", "fortranobject.h"), 13806s ] 13806s > wrap = util.build_module_distutils(src, config_code, 13806s "test_array_from_pyobj_ext") 13806s 13806s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13806s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13806s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13806s 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13806s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13806s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13806s memo[key] = func(*a, **kw) 13806s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13806s func = 13807s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13807s kw = {} 13807s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s 13807s @_memoize 13807s def build_module_distutils(source_files, config_code, module_name, **kw): 13807s """ 13807s Build a module via distutils and import it. 13807s 13807s """ 13807s d = get_module_dir() 13807s 13807s # Copy files 13807s dst_sources = [] 13807s for fn in source_files: 13807s if not os.path.isfile(fn): 13807s raise RuntimeError("%s is not a file" % fn) 13807s dst = os.path.join(d, os.path.basename(fn)) 13807s shutil.copyfile(fn, dst) 13807s dst_sources.append(dst) 13807s 13807s # Build script 13807s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13807s 13807s code = fr""" 13807s import os 13807s import sys 13807s sys.path = {repr(sys.path)} 13807s 13807s def configuration(parent_name='',top_path=None): 13807s from numpy.distutils.misc_util import Configuration 13807s config = Configuration('', parent_name, top_path) 13807s {config_code} 13807s return config 13807s 13807s if __name__ == "__main__": 13807s from numpy.distutils.core import setup 13807s setup(configuration=configuration) 13807s """ 13807s script = os.path.join(d, get_temp_module_name() + ".py") 13807s dst_sources.append(script) 13807s with open(script, "wb") as f: 13807s f.write(asbytes(code)) 13807s 13807s # Build 13807s cwd = os.getcwd() 13807s try: 13807s os.chdir(d) 13807s cmd = [sys.executable, script, "build_ext", "-i"] 13807s p = subprocess.Popen(cmd, 13807s stdout=subprocess.PIPE, 13807s stderr=subprocess.STDOUT) 13807s out, err = p.communicate() 13807s if p.returncode != 0: 13807s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13807s (cmd[4:], asstr(out))) 13807s E RuntimeError: Running distutils build failed: [] 13807s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13807s E 13807s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13807s E of the deprecation of `distutils` itself. It will be removed for 13807s E Python >= 3.12. For older Python versions it will remain present. 13807s E It is recommended to use `setuptools < 60.0` for those Python versions. 13807s E For more details, see: 13807s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13807s E 13807s E 13807s E from numpy.distutils.core import setup 13807s E running build_ext 13807s E running build_src 13807s E INFO: build_src 13807s E INFO: building extension "test_array_from_pyobj_ext" sources 13807s E INFO: build_src: building npy-pkg config files 13807s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13807s E !! 13807s E 13807s E ******************************************************************************** 13807s E Please avoid running ``setup.py`` directly. 13807s E Instead, use pypa/build, pypa/installer or other 13807s E standards-based tools. 13807s E 13807s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13807s E ******************************************************************************** 13807s E 13807s E !! 13807s E self.initialize_options() 13807s E INFO: customize UnixCCompiler 13807s E INFO: customize UnixCCompiler using build_ext 13807s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/tmp 13807s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/usr 13807s E creating /tmp/tmppq19o2st/usr/lib 13807s E creating /tmp/tmppq19o2st/usr/lib/python3 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=native' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-O3' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-Werror' 13807s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13807s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-vfpv4' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=armv8.2-a+fp16' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13807s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13807s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13807s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13807s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13807s E INFO: building 'test_array_from_pyobj_ext' extension 13807s E INFO: compiling C sources 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13807s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13807s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13807s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13807s E 14 | #include 13807s E | ^~~~~~~~~~ 13807s E In file included from fortranobject.c:2: 13807s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13807s E 7 | #include 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E compilation terminated. 13807s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13807s E INFO: 13807s E ########### EXT COMPILER OPTIMIZATION ########### 13807s E INFO: Platform : 13807s E Architecture: armhf 13807s E Compiler : gcc 13807s E 13807s E CPU baseline : 13807s E Requested : 'min' 13807s E Enabled : none 13807s E Flags : none 13807s E Extra checks: none 13807s E 13807s E CPU dispatch : 13807s E Requested : 'max -xop -fma4' 13807s E Enabled : none 13807s E Generated : none 13807s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13807s 13807s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13807s d = '/tmp/tmpjj8q074z' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s err = None 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s kw = {} 13807s module_name = 'test_array_from_pyobj_ext' 13807s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13807s p = 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13807s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[LONG] _______ 13807s 13807s def setup_module(): 13807s """ 13807s Build the required testing extension module 13807s 13807s """ 13807s global wrap 13807s 13807s # Check compiler availability first 13807s if not util.has_c_compiler(): 13807s pytest.skip("No C compiler available") 13807s 13807s if wrap is None: 13807s config_code = """ 13807s config.add_extension('test_array_from_pyobj_ext', 13807s sources=['wrapmodule.c', 'fortranobject.c'], 13807s define_macros=[]) 13807s """ 13807s d = os.path.dirname(__file__) 13807s src = [ 13807s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13807s util.getpath("src", "fortranobject.c"), 13807s util.getpath("src", "fortranobject.h"), 13807s ] 13807s > wrap = util.build_module_distutils(src, config_code, 13807s "test_array_from_pyobj_ext") 13807s 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13807s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13807s memo[key] = func(*a, **kw) 13807s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13807s func = 13807s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13807s kw = {} 13807s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s 13807s @_memoize 13807s def build_module_distutils(source_files, config_code, module_name, **kw): 13807s """ 13807s Build a module via distutils and import it. 13807s 13807s """ 13807s d = get_module_dir() 13807s 13807s # Copy files 13807s dst_sources = [] 13807s for fn in source_files: 13807s if not os.path.isfile(fn): 13807s raise RuntimeError("%s is not a file" % fn) 13807s dst = os.path.join(d, os.path.basename(fn)) 13807s shutil.copyfile(fn, dst) 13807s dst_sources.append(dst) 13807s 13807s # Build script 13807s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13807s 13807s code = fr""" 13807s import os 13807s import sys 13807s sys.path = {repr(sys.path)} 13807s 13807s def configuration(parent_name='',top_path=None): 13807s from numpy.distutils.misc_util import Configuration 13807s config = Configuration('', parent_name, top_path) 13807s {config_code} 13807s return config 13807s 13807s if __name__ == "__main__": 13807s from numpy.distutils.core import setup 13807s setup(configuration=configuration) 13807s """ 13807s script = os.path.join(d, get_temp_module_name() + ".py") 13807s dst_sources.append(script) 13807s with open(script, "wb") as f: 13807s f.write(asbytes(code)) 13807s 13807s # Build 13807s cwd = os.getcwd() 13807s try: 13807s os.chdir(d) 13807s cmd = [sys.executable, script, "build_ext", "-i"] 13807s p = subprocess.Popen(cmd, 13807s stdout=subprocess.PIPE, 13807s stderr=subprocess.STDOUT) 13807s out, err = p.communicate() 13807s if p.returncode != 0: 13807s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13807s (cmd[4:], asstr(out))) 13807s E RuntimeError: Running distutils build failed: [] 13807s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13807s E 13807s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13807s E of the deprecation of `distutils` itself. It will be removed for 13807s E Python >= 3.12. For older Python versions it will remain present. 13807s E It is recommended to use `setuptools < 60.0` for those Python versions. 13807s E For more details, see: 13807s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13807s E 13807s E 13807s E from numpy.distutils.core import setup 13807s E running build_ext 13807s E running build_src 13807s E INFO: build_src 13807s E INFO: building extension "test_array_from_pyobj_ext" sources 13807s E INFO: build_src: building npy-pkg config files 13807s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13807s E !! 13807s E 13807s E ******************************************************************************** 13807s E Please avoid running ``setup.py`` directly. 13807s E Instead, use pypa/build, pypa/installer or other 13807s E standards-based tools. 13807s E 13807s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13807s E ******************************************************************************** 13807s E 13807s E !! 13807s E self.initialize_options() 13807s E INFO: customize UnixCCompiler 13807s E INFO: customize UnixCCompiler using build_ext 13807s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/tmp 13807s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/usr 13807s E creating /tmp/tmppq19o2st/usr/lib 13807s E creating /tmp/tmppq19o2st/usr/lib/python3 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=native' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-O3' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-Werror' 13807s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13807s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-vfpv4' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=armv8.2-a+fp16' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13807s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13807s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13807s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13807s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13807s E INFO: building 'test_array_from_pyobj_ext' extension 13807s E INFO: compiling C sources 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13807s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13807s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13807s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13807s E 14 | #include 13807s E | ^~~~~~~~~~ 13807s E In file included from fortranobject.c:2: 13807s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13807s E 7 | #include 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E compilation terminated. 13807s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13807s E INFO: 13807s E ########### EXT COMPILER OPTIMIZATION ########### 13807s E INFO: Platform : 13807s E Architecture: armhf 13807s E Compiler : gcc 13807s E 13807s E CPU baseline : 13807s E Requested : 'min' 13807s E Enabled : none 13807s E Flags : none 13807s E Extra checks: none 13807s E 13807s E CPU dispatch : 13807s E Requested : 'max -xop -fma4' 13807s E Enabled : none 13807s E Generated : none 13807s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13807s 13807s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13807s d = '/tmp/tmpjj8q074z' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s err = None 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s kw = {} 13807s module_name = 'test_array_from_pyobj_ext' 13807s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13807s p = 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13807s ____________ ERROR at setup of TestSharedMemory.test_inplace[LONG] _____________ 13807s 13807s def setup_module(): 13807s """ 13807s Build the required testing extension module 13807s 13807s """ 13807s global wrap 13807s 13807s # Check compiler availability first 13807s if not util.has_c_compiler(): 13807s pytest.skip("No C compiler available") 13807s 13807s if wrap is None: 13807s config_code = """ 13807s config.add_extension('test_array_from_pyobj_ext', 13807s sources=['wrapmodule.c', 'fortranobject.c'], 13807s define_macros=[]) 13807s """ 13807s d = os.path.dirname(__file__) 13807s src = [ 13807s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13807s util.getpath("src", "fortranobject.c"), 13807s util.getpath("src", "fortranobject.h"), 13807s ] 13807s > wrap = util.build_module_distutils(src, config_code, 13807s "test_array_from_pyobj_ext") 13807s 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13807s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13807s memo[key] = func(*a, **kw) 13807s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13807s func = 13807s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13807s kw = {} 13807s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s 13807s @_memoize 13807s def build_module_distutils(source_files, config_code, module_name, **kw): 13807s """ 13807s Build a module via distutils and import it. 13807s 13807s """ 13807s d = get_module_dir() 13807s 13807s # Copy files 13807s dst_sources = [] 13807s for fn in source_files: 13807s if not os.path.isfile(fn): 13807s raise RuntimeError("%s is not a file" % fn) 13807s dst = os.path.join(d, os.path.basename(fn)) 13807s shutil.copyfile(fn, dst) 13807s dst_sources.append(dst) 13807s 13807s # Build script 13807s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13807s 13807s code = fr""" 13807s import os 13807s import sys 13807s sys.path = {repr(sys.path)} 13807s 13807s def configuration(parent_name='',top_path=None): 13807s from numpy.distutils.misc_util import Configuration 13807s config = Configuration('', parent_name, top_path) 13807s {config_code} 13807s return config 13807s 13807s if __name__ == "__main__": 13807s from numpy.distutils.core import setup 13807s setup(configuration=configuration) 13807s """ 13807s script = os.path.join(d, get_temp_module_name() + ".py") 13807s dst_sources.append(script) 13807s with open(script, "wb") as f: 13807s f.write(asbytes(code)) 13807s 13807s # Build 13807s cwd = os.getcwd() 13807s try: 13807s os.chdir(d) 13807s cmd = [sys.executable, script, "build_ext", "-i"] 13807s p = subprocess.Popen(cmd, 13807s stdout=subprocess.PIPE, 13807s stderr=subprocess.STDOUT) 13807s out, err = p.communicate() 13807s if p.returncode != 0: 13807s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13807s (cmd[4:], asstr(out))) 13807s E RuntimeError: Running distutils build failed: [] 13807s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13807s E 13807s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13807s E of the deprecation of `distutils` itself. It will be removed for 13807s E Python >= 3.12. For older Python versions it will remain present. 13807s E It is recommended to use `setuptools < 60.0` for those Python versions. 13807s E For more details, see: 13807s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13807s E 13807s E 13807s E from numpy.distutils.core import setup 13807s E running build_ext 13807s E running build_src 13807s E INFO: build_src 13807s E INFO: building extension "test_array_from_pyobj_ext" sources 13807s E INFO: build_src: building npy-pkg config files 13807s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13807s E !! 13807s E 13807s E ******************************************************************************** 13807s E Please avoid running ``setup.py`` directly. 13807s E Instead, use pypa/build, pypa/installer or other 13807s E standards-based tools. 13807s E 13807s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13807s E ******************************************************************************** 13807s E 13807s E !! 13807s E self.initialize_options() 13807s E INFO: customize UnixCCompiler 13807s E INFO: customize UnixCCompiler using build_ext 13807s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/tmp 13807s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/usr 13807s E creating /tmp/tmppq19o2st/usr/lib 13807s E creating /tmp/tmppq19o2st/usr/lib/python3 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=native' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-O3' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-Werror' 13807s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13807s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-vfpv4' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=armv8.2-a+fp16' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13807s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13807s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13807s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13807s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13807s E INFO: building 'test_array_from_pyobj_ext' extension 13807s E INFO: compiling C sources 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13807s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13807s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13807s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13807s E 14 | #include 13807s E | ^~~~~~~~~~ 13807s E In file included from fortranobject.c:2: 13807s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13807s E 7 | #include 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E compilation terminated. 13807s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13807s E INFO: 13807s E ########### EXT COMPILER OPTIMIZATION ########### 13807s E INFO: Platform : 13807s E Architecture: armhf 13807s E Compiler : gcc 13807s E 13807s E CPU baseline : 13807s E Requested : 'min' 13807s E Enabled : none 13807s E Flags : none 13807s E Extra checks: none 13807s E 13807s E CPU dispatch : 13807s E Requested : 'max -xop -fma4' 13807s E Enabled : none 13807s E Generated : none 13807s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13807s 13807s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13807s d = '/tmp/tmpjj8q074z' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s err = None 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s kw = {} 13807s module_name = 'test_array_from_pyobj_ext' 13807s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13807s p = 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13807s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[LONG] ______ 13807s 13807s def setup_module(): 13807s """ 13807s Build the required testing extension module 13807s 13807s """ 13807s global wrap 13807s 13807s # Check compiler availability first 13807s if not util.has_c_compiler(): 13807s pytest.skip("No C compiler available") 13807s 13807s if wrap is None: 13807s config_code = """ 13807s config.add_extension('test_array_from_pyobj_ext', 13807s sources=['wrapmodule.c', 'fortranobject.c'], 13807s define_macros=[]) 13807s """ 13807s d = os.path.dirname(__file__) 13807s src = [ 13807s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13807s util.getpath("src", "fortranobject.c"), 13807s util.getpath("src", "fortranobject.h"), 13807s ] 13807s > wrap = util.build_module_distutils(src, config_code, 13807s "test_array_from_pyobj_ext") 13807s 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13807s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13807s memo[key] = func(*a, **kw) 13807s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13807s func = 13807s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13807s kw = {} 13807s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s 13807s @_memoize 13807s def build_module_distutils(source_files, config_code, module_name, **kw): 13807s """ 13807s Build a module via distutils and import it. 13807s 13807s """ 13807s d = get_module_dir() 13807s 13807s # Copy files 13807s dst_sources = [] 13807s for fn in source_files: 13807s if not os.path.isfile(fn): 13807s raise RuntimeError("%s is not a file" % fn) 13807s dst = os.path.join(d, os.path.basename(fn)) 13807s shutil.copyfile(fn, dst) 13807s dst_sources.append(dst) 13807s 13807s # Build script 13807s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13807s 13807s code = fr""" 13807s import os 13807s import sys 13807s sys.path = {repr(sys.path)} 13807s 13807s def configuration(parent_name='',top_path=None): 13807s from numpy.distutils.misc_util import Configuration 13807s config = Configuration('', parent_name, top_path) 13807s {config_code} 13807s return config 13807s 13807s if __name__ == "__main__": 13807s from numpy.distutils.core import setup 13807s setup(configuration=configuration) 13807s """ 13807s script = os.path.join(d, get_temp_module_name() + ".py") 13807s dst_sources.append(script) 13807s with open(script, "wb") as f: 13807s f.write(asbytes(code)) 13807s 13807s # Build 13807s cwd = os.getcwd() 13807s try: 13807s os.chdir(d) 13807s cmd = [sys.executable, script, "build_ext", "-i"] 13807s p = subprocess.Popen(cmd, 13807s stdout=subprocess.PIPE, 13807s stderr=subprocess.STDOUT) 13807s out, err = p.communicate() 13807s if p.returncode != 0: 13807s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13807s (cmd[4:], asstr(out))) 13807s E RuntimeError: Running distutils build failed: [] 13807s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13807s E 13807s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13807s E of the deprecation of `distutils` itself. It will be removed for 13807s E Python >= 3.12. For older Python versions it will remain present. 13807s E It is recommended to use `setuptools < 60.0` for those Python versions. 13807s E For more details, see: 13807s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13807s E 13807s E 13807s E from numpy.distutils.core import setup 13807s E running build_ext 13807s E running build_src 13807s E INFO: build_src 13807s E INFO: building extension "test_array_from_pyobj_ext" sources 13807s E INFO: build_src: building npy-pkg config files 13807s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13807s E !! 13807s E 13807s E ******************************************************************************** 13807s E Please avoid running ``setup.py`` directly. 13807s E Instead, use pypa/build, pypa/installer or other 13807s E standards-based tools. 13807s E 13807s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13807s E ******************************************************************************** 13807s E 13807s E !! 13807s E self.initialize_options() 13807s E INFO: customize UnixCCompiler 13807s E INFO: customize UnixCCompiler using build_ext 13807s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/tmp 13807s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/usr 13807s E creating /tmp/tmppq19o2st/usr/lib 13807s E creating /tmp/tmppq19o2st/usr/lib/python3 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=native' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-O3' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-Werror' 13807s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13807s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-vfpv4' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=armv8.2-a+fp16' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13807s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13807s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13807s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13807s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13807s E INFO: building 'test_array_from_pyobj_ext' extension 13807s E INFO: compiling C sources 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13807s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13807s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13807s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13807s E 14 | #include 13807s E | ^~~~~~~~~~ 13807s E In file included from fortranobject.c:2: 13807s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13807s E 7 | #include 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E compilation terminated. 13807s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13807s E INFO: 13807s E ########### EXT COMPILER OPTIMIZATION ########### 13807s E INFO: Platform : 13807s E Architecture: armhf 13807s E Compiler : gcc 13807s E 13807s E CPU baseline : 13807s E Requested : 'min' 13807s E Enabled : none 13807s E Flags : none 13807s E Extra checks: none 13807s E 13807s E CPU dispatch : 13807s E Requested : 'max -xop -fma4' 13807s E Enabled : none 13807s E Generated : none 13807s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13807s 13807s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13807s d = '/tmp/tmpjj8q074z' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s err = None 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s kw = {} 13807s module_name = 'test_array_from_pyobj_ext' 13807s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13807s p = 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13807s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[ULONG] __________ 13807s 13807s def setup_module(): 13807s """ 13807s Build the required testing extension module 13807s 13807s """ 13807s global wrap 13807s 13807s # Check compiler availability first 13807s if not util.has_c_compiler(): 13807s pytest.skip("No C compiler available") 13807s 13807s if wrap is None: 13807s config_code = """ 13807s config.add_extension('test_array_from_pyobj_ext', 13807s sources=['wrapmodule.c', 'fortranobject.c'], 13807s define_macros=[]) 13807s """ 13807s d = os.path.dirname(__file__) 13807s src = [ 13807s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13807s util.getpath("src", "fortranobject.c"), 13807s util.getpath("src", "fortranobject.h"), 13807s ] 13807s > wrap = util.build_module_distutils(src, config_code, 13807s "test_array_from_pyobj_ext") 13807s 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13807s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13807s memo[key] = func(*a, **kw) 13807s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13807s func = 13807s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13807s kw = {} 13807s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s 13807s @_memoize 13807s def build_module_distutils(source_files, config_code, module_name, **kw): 13807s """ 13807s Build a module via distutils and import it. 13807s 13807s """ 13807s d = get_module_dir() 13807s 13807s # Copy files 13807s dst_sources = [] 13807s for fn in source_files: 13807s if not os.path.isfile(fn): 13807s raise RuntimeError("%s is not a file" % fn) 13807s dst = os.path.join(d, os.path.basename(fn)) 13807s shutil.copyfile(fn, dst) 13807s dst_sources.append(dst) 13807s 13807s # Build script 13807s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13807s 13807s code = fr""" 13807s import os 13807s import sys 13807s sys.path = {repr(sys.path)} 13807s 13807s def configuration(parent_name='',top_path=None): 13807s from numpy.distutils.misc_util import Configuration 13807s config = Configuration('', parent_name, top_path) 13807s {config_code} 13807s return config 13807s 13807s if __name__ == "__main__": 13807s from numpy.distutils.core import setup 13807s setup(configuration=configuration) 13807s """ 13807s script = os.path.join(d, get_temp_module_name() + ".py") 13807s dst_sources.append(script) 13807s with open(script, "wb") as f: 13807s f.write(asbytes(code)) 13807s 13807s # Build 13807s cwd = os.getcwd() 13807s try: 13807s os.chdir(d) 13807s cmd = [sys.executable, script, "build_ext", "-i"] 13807s p = subprocess.Popen(cmd, 13807s stdout=subprocess.PIPE, 13807s stderr=subprocess.STDOUT) 13807s out, err = p.communicate() 13807s if p.returncode != 0: 13807s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13807s (cmd[4:], asstr(out))) 13807s E RuntimeError: Running distutils build failed: [] 13807s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13807s E 13807s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13807s E of the deprecation of `distutils` itself. It will be removed for 13807s E Python >= 3.12. For older Python versions it will remain present. 13807s E It is recommended to use `setuptools < 60.0` for those Python versions. 13807s E For more details, see: 13807s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13807s E 13807s E 13807s E from numpy.distutils.core import setup 13807s E running build_ext 13807s E running build_src 13807s E INFO: build_src 13807s E INFO: building extension "test_array_from_pyobj_ext" sources 13807s E INFO: build_src: building npy-pkg config files 13807s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13807s E !! 13807s E 13807s E ******************************************************************************** 13807s E Please avoid running ``setup.py`` directly. 13807s E Instead, use pypa/build, pypa/installer or other 13807s E standards-based tools. 13807s E 13807s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13807s E ******************************************************************************** 13807s E 13807s E !! 13807s E self.initialize_options() 13807s E INFO: customize UnixCCompiler 13807s E INFO: customize UnixCCompiler using build_ext 13807s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/tmp 13807s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/usr 13807s E creating /tmp/tmppq19o2st/usr/lib 13807s E creating /tmp/tmppq19o2st/usr/lib/python3 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=native' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-O3' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-Werror' 13807s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13807s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-vfpv4' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=armv8.2-a+fp16' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13807s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13807s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13807s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13807s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13807s E INFO: building 'test_array_from_pyobj_ext' extension 13807s E INFO: compiling C sources 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13807s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13807s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13807s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13807s E 14 | #include 13807s E | ^~~~~~~~~~ 13807s E In file included from fortranobject.c:2: 13807s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13807s E 7 | #include 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E compilation terminated. 13807s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13807s E INFO: 13807s E ########### EXT COMPILER OPTIMIZATION ########### 13807s E INFO: Platform : 13807s E Architecture: armhf 13807s E Compiler : gcc 13807s E 13807s E CPU baseline : 13807s E Requested : 'min' 13807s E Enabled : none 13807s E Flags : none 13807s E Extra checks: none 13807s E 13807s E CPU dispatch : 13807s E Requested : 'max -xop -fma4' 13807s E Enabled : none 13807s E Generated : none 13807s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13807s 13807s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13807s d = '/tmp/tmpjj8q074z' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s err = None 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s kw = {} 13807s module_name = 'test_array_from_pyobj_ext' 13807s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13807s p = 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13807s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[ULONG] _______ 13807s 13807s def setup_module(): 13807s """ 13807s Build the required testing extension module 13807s 13807s """ 13807s global wrap 13807s 13807s # Check compiler availability first 13807s if not util.has_c_compiler(): 13807s pytest.skip("No C compiler available") 13807s 13807s if wrap is None: 13807s config_code = """ 13807s config.add_extension('test_array_from_pyobj_ext', 13807s sources=['wrapmodule.c', 'fortranobject.c'], 13807s define_macros=[]) 13807s """ 13807s d = os.path.dirname(__file__) 13807s src = [ 13807s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13807s util.getpath("src", "fortranobject.c"), 13807s util.getpath("src", "fortranobject.h"), 13807s ] 13807s > wrap = util.build_module_distutils(src, config_code, 13807s "test_array_from_pyobj_ext") 13807s 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13807s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13807s memo[key] = func(*a, **kw) 13807s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13807s func = 13807s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13807s kw = {} 13807s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s 13807s @_memoize 13807s def build_module_distutils(source_files, config_code, module_name, **kw): 13807s """ 13807s Build a module via distutils and import it. 13807s 13807s """ 13807s d = get_module_dir() 13807s 13807s # Copy files 13807s dst_sources = [] 13807s for fn in source_files: 13807s if not os.path.isfile(fn): 13807s raise RuntimeError("%s is not a file" % fn) 13807s dst = os.path.join(d, os.path.basename(fn)) 13807s shutil.copyfile(fn, dst) 13807s dst_sources.append(dst) 13807s 13807s # Build script 13807s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13807s 13807s code = fr""" 13807s import os 13807s import sys 13807s sys.path = {repr(sys.path)} 13807s 13807s def configuration(parent_name='',top_path=None): 13807s from numpy.distutils.misc_util import Configuration 13807s config = Configuration('', parent_name, top_path) 13807s {config_code} 13807s return config 13807s 13807s if __name__ == "__main__": 13807s from numpy.distutils.core import setup 13807s setup(configuration=configuration) 13807s """ 13807s script = os.path.join(d, get_temp_module_name() + ".py") 13807s dst_sources.append(script) 13807s with open(script, "wb") as f: 13807s f.write(asbytes(code)) 13807s 13807s # Build 13807s cwd = os.getcwd() 13807s try: 13807s os.chdir(d) 13807s cmd = [sys.executable, script, "build_ext", "-i"] 13807s p = subprocess.Popen(cmd, 13807s stdout=subprocess.PIPE, 13807s stderr=subprocess.STDOUT) 13807s out, err = p.communicate() 13807s if p.returncode != 0: 13807s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13807s (cmd[4:], asstr(out))) 13807s E RuntimeError: Running distutils build failed: [] 13807s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13807s E 13807s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13807s E of the deprecation of `distutils` itself. It will be removed for 13807s E Python >= 3.12. For older Python versions it will remain present. 13807s E It is recommended to use `setuptools < 60.0` for those Python versions. 13807s E For more details, see: 13807s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13807s E 13807s E 13807s E from numpy.distutils.core import setup 13807s E running build_ext 13807s E running build_src 13807s E INFO: build_src 13807s E INFO: building extension "test_array_from_pyobj_ext" sources 13807s E INFO: build_src: building npy-pkg config files 13807s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13807s E !! 13807s E 13807s E ******************************************************************************** 13807s E Please avoid running ``setup.py`` directly. 13807s E Instead, use pypa/build, pypa/installer or other 13807s E standards-based tools. 13807s E 13807s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13807s E ******************************************************************************** 13807s E 13807s E !! 13807s E self.initialize_options() 13807s E INFO: customize UnixCCompiler 13807s E INFO: customize UnixCCompiler using build_ext 13807s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/tmp 13807s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E creating /tmp/tmppq19o2st/usr 13807s E creating /tmp/tmppq19o2st/usr/lib 13807s E creating /tmp/tmppq19o2st/usr/lib/python3 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13807s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=native' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-O3' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-Werror' 13807s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13807s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-vfpv4' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13807s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-march=armv8.2-a+fp16' 13807s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/include/python3.12 -c' 13807s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13807s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13807s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13807s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13807s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13807s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13807s E 9 | # include_next 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E 13807s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13807s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13807s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13807s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13807s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13807s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13807s E INFO: building 'test_array_from_pyobj_ext' extension 13807s E INFO: compiling C sources 13807s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13807s E 13807s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13807s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13807s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13807s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13807s E 14 | #include 13807s E | ^~~~~~~~~~ 13807s E In file included from fortranobject.c:2: 13807s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13807s E 7 | #include 13807s E | ^~~~~~~~~~ 13807s E compilation terminated. 13807s E compilation terminated. 13807s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13807s E INFO: 13807s E ########### EXT COMPILER OPTIMIZATION ########### 13807s E INFO: Platform : 13807s E Architecture: armhf 13807s E Compiler : gcc 13807s E 13807s E CPU baseline : 13807s E Requested : 'min' 13807s E Enabled : none 13807s E Flags : none 13807s E Extra checks: none 13807s E 13807s E CPU dispatch : 13807s E Requested : 'max -xop -fma4' 13807s E Enabled : none 13807s E Generated : none 13807s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13807s 13807s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13807s d = '/tmp/tmpjj8q074z' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s err = None 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s kw = {} 13807s module_name = 'test_array_from_pyobj_ext' 13807s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13807s p = 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13807s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-2seq-C-w] _______ 13807s 13807s def setup_module(): 13807s """ 13807s Build the required testing extension module 13807s 13807s """ 13807s global wrap 13807s 13807s # Check compiler availability first 13807s if not util.has_c_compiler(): 13807s pytest.skip("No C compiler available") 13807s 13807s if wrap is None: 13807s config_code = """ 13807s config.add_extension('test_array_from_pyobj_ext', 13807s sources=['wrapmodule.c', 'fortranobject.c'], 13807s define_macros=[]) 13807s """ 13807s d = os.path.dirname(__file__) 13807s src = [ 13807s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13807s util.getpath("src", "fortranobject.c"), 13807s util.getpath("src", "fortranobject.h"), 13807s ] 13807s > wrap = util.build_module_distutils(src, config_code, 13807s "test_array_from_pyobj_ext") 13807s 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13807s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13807s memo[key] = func(*a, **kw) 13807s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13807s func = 13807s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13807s kw = {} 13807s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13807s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13807s 13807s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13807s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13807s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13807s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13807s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13807s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13807s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13807s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13807s 13807s @_memoize 13807s def build_module_distutils(source_files, config_code, module_name, **kw): 13807s """ 13807s Build a module via distutils and import it. 13807s 13807s """ 13807s d = get_module_dir() 13807s 13807s # Copy files 13807s dst_sources = [] 13807s for fn in source_files: 13807s if not os.path.isfile(fn): 13807s raise RuntimeError("%s is not a file" % fn) 13807s dst = os.path.join(d, os.path.basename(fn)) 13807s shutil.copyfile(fn, dst) 13807s dst_sources.append(dst) 13807s 13807s # Build script 13807s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13807s 13807s code = fr""" 13807s import os 13807s import sys 13807s sys.path = {repr(sys.path)} 13807s 13807s def configuration(parent_name='',top_path=None): 13807s from numpy.distutils.misc_util import Configuration 13807s config = Configuration('', parent_name, top_path) 13807s {config_code} 13807s return config 13807s 13807s if __name__ == "__main__": 13807s from numpy.distutils.core import setup 13807s setup(configuration=configuration) 13807s """ 13807s script = os.path.join(d, get_temp_module_name() + ".py") 13807s dst_sources.append(script) 13807s with open(script, "wb") as f: 13807s f.write(asbytes(code)) 13807s 13807s # Build 13807s cwd = os.getcwd() 13807s try: 13807s os.chdir(d) 13807s cmd = [sys.executable, script, "build_ext", "-i"] 13807s p = subprocess.Popen(cmd, 13807s stdout=subprocess.PIPE, 13807s stderr=subprocess.STDOUT) 13807s out, err = p.communicate() 13807s if p.returncode != 0: 13807s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13807s (cmd[4:], asstr(out))) 13807s E RuntimeError: Running distutils build failed: [] 13807s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13807s E 13807s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13807s E of the deprecation of `distutils` itself. It will be removed for 13807s E Python >= 3.12. For older Python versions it will remain present. 13807s E It is recommended to use `setuptools < 60.0` for those Python versions. 13807s E For more details, see: 13807s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13807s E 13807s E 13807s E from numpy.distutils.core import setup 13807s E running build_ext 13808s E running build_src 13808s E INFO: build_src 13808s E INFO: building extension "test_array_from_pyobj_ext" sources 13808s E INFO: build_src: building npy-pkg config files 13808s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13808s E !! 13808s E 13808s E ******************************************************************************** 13808s E Please avoid running ``setup.py`` directly. 13808s E Instead, use pypa/build, pypa/installer or other 13808s E standards-based tools. 13808s E 13808s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13808s E ******************************************************************************** 13808s E 13808s E !! 13808s E self.initialize_options() 13808s E INFO: customize UnixCCompiler 13808s E INFO: customize UnixCCompiler using build_ext 13808s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/tmp 13808s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/usr 13808s E creating /tmp/tmppq19o2st/usr/lib 13808s E creating /tmp/tmppq19o2st/usr/lib/python3 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=native' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-O3' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-Werror' 13808s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13808s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-vfpv4' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=armv8.2-a+fp16' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13808s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13808s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13808s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13808s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13808s E INFO: building 'test_array_from_pyobj_ext' extension 13808s E INFO: compiling C sources 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13808s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13808s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13808s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13808s E 14 | #include 13808s E | ^~~~~~~~~~ 13808s E In file included from fortranobject.c:2: 13808s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13808s E 7 | #include 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E compilation terminated. 13808s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13808s E INFO: 13808s E ########### EXT COMPILER OPTIMIZATION ########### 13808s E INFO: Platform : 13808s E Architecture: armhf 13808s E Compiler : gcc 13808s E 13808s E CPU baseline : 13808s E Requested : 'min' 13808s E Enabled : none 13808s E Flags : none 13808s E Extra checks: none 13808s E 13808s E CPU dispatch : 13808s E Requested : 'max -xop -fma4' 13808s E Enabled : none 13808s E Generated : none 13808s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13808s 13808s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13808s d = '/tmp/tmpjj8q074z' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s err = None 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s kw = {} 13808s module_name = 'test_array_from_pyobj_ext' 13808s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13808s p = 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13808s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-2seq-C-ro] ______ 13808s 13808s def setup_module(): 13808s """ 13808s Build the required testing extension module 13808s 13808s """ 13808s global wrap 13808s 13808s # Check compiler availability first 13808s if not util.has_c_compiler(): 13808s pytest.skip("No C compiler available") 13808s 13808s if wrap is None: 13808s config_code = """ 13808s config.add_extension('test_array_from_pyobj_ext', 13808s sources=['wrapmodule.c', 'fortranobject.c'], 13808s define_macros=[]) 13808s """ 13808s d = os.path.dirname(__file__) 13808s src = [ 13808s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13808s util.getpath("src", "fortranobject.c"), 13808s util.getpath("src", "fortranobject.h"), 13808s ] 13808s > wrap = util.build_module_distutils(src, config_code, 13808s "test_array_from_pyobj_ext") 13808s 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13808s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13808s memo[key] = func(*a, **kw) 13808s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13808s func = 13808s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13808s kw = {} 13808s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s 13808s @_memoize 13808s def build_module_distutils(source_files, config_code, module_name, **kw): 13808s """ 13808s Build a module via distutils and import it. 13808s 13808s """ 13808s d = get_module_dir() 13808s 13808s # Copy files 13808s dst_sources = [] 13808s for fn in source_files: 13808s if not os.path.isfile(fn): 13808s raise RuntimeError("%s is not a file" % fn) 13808s dst = os.path.join(d, os.path.basename(fn)) 13808s shutil.copyfile(fn, dst) 13808s dst_sources.append(dst) 13808s 13808s # Build script 13808s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13808s 13808s code = fr""" 13808s import os 13808s import sys 13808s sys.path = {repr(sys.path)} 13808s 13808s def configuration(parent_name='',top_path=None): 13808s from numpy.distutils.misc_util import Configuration 13808s config = Configuration('', parent_name, top_path) 13808s {config_code} 13808s return config 13808s 13808s if __name__ == "__main__": 13808s from numpy.distutils.core import setup 13808s setup(configuration=configuration) 13808s """ 13808s script = os.path.join(d, get_temp_module_name() + ".py") 13808s dst_sources.append(script) 13808s with open(script, "wb") as f: 13808s f.write(asbytes(code)) 13808s 13808s # Build 13808s cwd = os.getcwd() 13808s try: 13808s os.chdir(d) 13808s cmd = [sys.executable, script, "build_ext", "-i"] 13808s p = subprocess.Popen(cmd, 13808s stdout=subprocess.PIPE, 13808s stderr=subprocess.STDOUT) 13808s out, err = p.communicate() 13808s if p.returncode != 0: 13808s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13808s (cmd[4:], asstr(out))) 13808s E RuntimeError: Running distutils build failed: [] 13808s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13808s E 13808s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13808s E of the deprecation of `distutils` itself. It will be removed for 13808s E Python >= 3.12. For older Python versions it will remain present. 13808s E It is recommended to use `setuptools < 60.0` for those Python versions. 13808s E For more details, see: 13808s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13808s E 13808s E 13808s E from numpy.distutils.core import setup 13808s E running build_ext 13808s E running build_src 13808s E INFO: build_src 13808s E INFO: building extension "test_array_from_pyobj_ext" sources 13808s E INFO: build_src: building npy-pkg config files 13808s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13808s E !! 13808s E 13808s E ******************************************************************************** 13808s E Please avoid running ``setup.py`` directly. 13808s E Instead, use pypa/build, pypa/installer or other 13808s E standards-based tools. 13808s E 13808s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13808s E ******************************************************************************** 13808s E 13808s E !! 13808s E self.initialize_options() 13808s E INFO: customize UnixCCompiler 13808s E INFO: customize UnixCCompiler using build_ext 13808s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/tmp 13808s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/usr 13808s E creating /tmp/tmppq19o2st/usr/lib 13808s E creating /tmp/tmppq19o2st/usr/lib/python3 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=native' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-O3' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-Werror' 13808s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13808s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-vfpv4' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=armv8.2-a+fp16' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13808s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13808s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13808s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13808s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13808s E INFO: building 'test_array_from_pyobj_ext' extension 13808s E INFO: compiling C sources 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13808s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13808s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13808s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13808s E 14 | #include 13808s E | ^~~~~~~~~~ 13808s E In file included from fortranobject.c:2: 13808s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13808s E 7 | #include 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E compilation terminated. 13808s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13808s E INFO: 13808s E ########### EXT COMPILER OPTIMIZATION ########### 13808s E INFO: Platform : 13808s E Architecture: armhf 13808s E Compiler : gcc 13808s E 13808s E CPU baseline : 13808s E Requested : 'min' 13808s E Enabled : none 13808s E Flags : none 13808s E Extra checks: none 13808s E 13808s E CPU dispatch : 13808s E Requested : 'max -xop -fma4' 13808s E Enabled : none 13808s E Generated : none 13808s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13808s 13808s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13808s d = '/tmp/tmpjj8q074z' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s err = None 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s kw = {} 13808s module_name = 'test_array_from_pyobj_ext' 13808s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13808s p = 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13808s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-2seq-F-w] _______ 13808s 13808s def setup_module(): 13808s """ 13808s Build the required testing extension module 13808s 13808s """ 13808s global wrap 13808s 13808s # Check compiler availability first 13808s if not util.has_c_compiler(): 13808s pytest.skip("No C compiler available") 13808s 13808s if wrap is None: 13808s config_code = """ 13808s config.add_extension('test_array_from_pyobj_ext', 13808s sources=['wrapmodule.c', 'fortranobject.c'], 13808s define_macros=[]) 13808s """ 13808s d = os.path.dirname(__file__) 13808s src = [ 13808s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13808s util.getpath("src", "fortranobject.c"), 13808s util.getpath("src", "fortranobject.h"), 13808s ] 13808s > wrap = util.build_module_distutils(src, config_code, 13808s "test_array_from_pyobj_ext") 13808s 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13808s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13808s memo[key] = func(*a, **kw) 13808s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13808s func = 13808s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13808s kw = {} 13808s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s 13808s @_memoize 13808s def build_module_distutils(source_files, config_code, module_name, **kw): 13808s """ 13808s Build a module via distutils and import it. 13808s 13808s """ 13808s d = get_module_dir() 13808s 13808s # Copy files 13808s dst_sources = [] 13808s for fn in source_files: 13808s if not os.path.isfile(fn): 13808s raise RuntimeError("%s is not a file" % fn) 13808s dst = os.path.join(d, os.path.basename(fn)) 13808s shutil.copyfile(fn, dst) 13808s dst_sources.append(dst) 13808s 13808s # Build script 13808s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13808s 13808s code = fr""" 13808s import os 13808s import sys 13808s sys.path = {repr(sys.path)} 13808s 13808s def configuration(parent_name='',top_path=None): 13808s from numpy.distutils.misc_util import Configuration 13808s config = Configuration('', parent_name, top_path) 13808s {config_code} 13808s return config 13808s 13808s if __name__ == "__main__": 13808s from numpy.distutils.core import setup 13808s setup(configuration=configuration) 13808s """ 13808s script = os.path.join(d, get_temp_module_name() + ".py") 13808s dst_sources.append(script) 13808s with open(script, "wb") as f: 13808s f.write(asbytes(code)) 13808s 13808s # Build 13808s cwd = os.getcwd() 13808s try: 13808s os.chdir(d) 13808s cmd = [sys.executable, script, "build_ext", "-i"] 13808s p = subprocess.Popen(cmd, 13808s stdout=subprocess.PIPE, 13808s stderr=subprocess.STDOUT) 13808s out, err = p.communicate() 13808s if p.returncode != 0: 13808s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13808s (cmd[4:], asstr(out))) 13808s E RuntimeError: Running distutils build failed: [] 13808s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13808s E 13808s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13808s E of the deprecation of `distutils` itself. It will be removed for 13808s E Python >= 3.12. For older Python versions it will remain present. 13808s E It is recommended to use `setuptools < 60.0` for those Python versions. 13808s E For more details, see: 13808s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13808s E 13808s E 13808s E from numpy.distutils.core import setup 13808s E running build_ext 13808s E running build_src 13808s E INFO: build_src 13808s E INFO: building extension "test_array_from_pyobj_ext" sources 13808s E INFO: build_src: building npy-pkg config files 13808s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13808s E !! 13808s E 13808s E ******************************************************************************** 13808s E Please avoid running ``setup.py`` directly. 13808s E Instead, use pypa/build, pypa/installer or other 13808s E standards-based tools. 13808s E 13808s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13808s E ******************************************************************************** 13808s E 13808s E !! 13808s E self.initialize_options() 13808s E INFO: customize UnixCCompiler 13808s E INFO: customize UnixCCompiler using build_ext 13808s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/tmp 13808s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/usr 13808s E creating /tmp/tmppq19o2st/usr/lib 13808s E creating /tmp/tmppq19o2st/usr/lib/python3 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=native' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-O3' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-Werror' 13808s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13808s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-vfpv4' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=armv8.2-a+fp16' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13808s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13808s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13808s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13808s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13808s E INFO: building 'test_array_from_pyobj_ext' extension 13808s E INFO: compiling C sources 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13808s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13808s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13808s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13808s E 14 | #include 13808s E | ^~~~~~~~~~ 13808s E In file included from fortranobject.c:2: 13808s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13808s E 7 | #include 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E compilation terminated. 13808s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13808s E INFO: 13808s E ########### EXT COMPILER OPTIMIZATION ########### 13808s E INFO: Platform : 13808s E Architecture: armhf 13808s E Compiler : gcc 13808s E 13808s E CPU baseline : 13808s E Requested : 'min' 13808s E Enabled : none 13808s E Flags : none 13808s E Extra checks: none 13808s E 13808s E CPU dispatch : 13808s E Requested : 'max -xop -fma4' 13808s E Enabled : none 13808s E Generated : none 13808s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13808s 13808s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13808s d = '/tmp/tmpjj8q074z' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s err = None 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s kw = {} 13808s module_name = 'test_array_from_pyobj_ext' 13808s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13808s p = 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13808s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-2seq-F-ro] ______ 13808s 13808s def setup_module(): 13808s """ 13808s Build the required testing extension module 13808s 13808s """ 13808s global wrap 13808s 13808s # Check compiler availability first 13808s if not util.has_c_compiler(): 13808s pytest.skip("No C compiler available") 13808s 13808s if wrap is None: 13808s config_code = """ 13808s config.add_extension('test_array_from_pyobj_ext', 13808s sources=['wrapmodule.c', 'fortranobject.c'], 13808s define_macros=[]) 13808s """ 13808s d = os.path.dirname(__file__) 13808s src = [ 13808s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13808s util.getpath("src", "fortranobject.c"), 13808s util.getpath("src", "fortranobject.h"), 13808s ] 13808s > wrap = util.build_module_distutils(src, config_code, 13808s "test_array_from_pyobj_ext") 13808s 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13808s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13808s memo[key] = func(*a, **kw) 13808s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13808s func = 13808s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13808s kw = {} 13808s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s 13808s @_memoize 13808s def build_module_distutils(source_files, config_code, module_name, **kw): 13808s """ 13808s Build a module via distutils and import it. 13808s 13808s """ 13808s d = get_module_dir() 13808s 13808s # Copy files 13808s dst_sources = [] 13808s for fn in source_files: 13808s if not os.path.isfile(fn): 13808s raise RuntimeError("%s is not a file" % fn) 13808s dst = os.path.join(d, os.path.basename(fn)) 13808s shutil.copyfile(fn, dst) 13808s dst_sources.append(dst) 13808s 13808s # Build script 13808s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13808s 13808s code = fr""" 13808s import os 13808s import sys 13808s sys.path = {repr(sys.path)} 13808s 13808s def configuration(parent_name='',top_path=None): 13808s from numpy.distutils.misc_util import Configuration 13808s config = Configuration('', parent_name, top_path) 13808s {config_code} 13808s return config 13808s 13808s if __name__ == "__main__": 13808s from numpy.distutils.core import setup 13808s setup(configuration=configuration) 13808s """ 13808s script = os.path.join(d, get_temp_module_name() + ".py") 13808s dst_sources.append(script) 13808s with open(script, "wb") as f: 13808s f.write(asbytes(code)) 13808s 13808s # Build 13808s cwd = os.getcwd() 13808s try: 13808s os.chdir(d) 13808s cmd = [sys.executable, script, "build_ext", "-i"] 13808s p = subprocess.Popen(cmd, 13808s stdout=subprocess.PIPE, 13808s stderr=subprocess.STDOUT) 13808s out, err = p.communicate() 13808s if p.returncode != 0: 13808s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13808s (cmd[4:], asstr(out))) 13808s E RuntimeError: Running distutils build failed: [] 13808s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13808s E 13808s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13808s E of the deprecation of `distutils` itself. It will be removed for 13808s E Python >= 3.12. For older Python versions it will remain present. 13808s E It is recommended to use `setuptools < 60.0` for those Python versions. 13808s E For more details, see: 13808s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13808s E 13808s E 13808s E from numpy.distutils.core import setup 13808s E running build_ext 13808s E running build_src 13808s E INFO: build_src 13808s E INFO: building extension "test_array_from_pyobj_ext" sources 13808s E INFO: build_src: building npy-pkg config files 13808s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13808s E !! 13808s E 13808s E ******************************************************************************** 13808s E Please avoid running ``setup.py`` directly. 13808s E Instead, use pypa/build, pypa/installer or other 13808s E standards-based tools. 13808s E 13808s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13808s E ******************************************************************************** 13808s E 13808s E !! 13808s E self.initialize_options() 13808s E INFO: customize UnixCCompiler 13808s E INFO: customize UnixCCompiler using build_ext 13808s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/tmp 13808s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/usr 13808s E creating /tmp/tmppq19o2st/usr/lib 13808s E creating /tmp/tmppq19o2st/usr/lib/python3 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=native' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-O3' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-Werror' 13808s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13808s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-vfpv4' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=armv8.2-a+fp16' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13808s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13808s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13808s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13808s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13808s E INFO: building 'test_array_from_pyobj_ext' extension 13808s E INFO: compiling C sources 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13808s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13808s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13808s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13808s E 14 | #include 13808s E | ^~~~~~~~~~ 13808s E In file included from fortranobject.c:2: 13808s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13808s E 7 | #include 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E compilation terminated. 13808s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13808s E INFO: 13808s E ########### EXT COMPILER OPTIMIZATION ########### 13808s E INFO: Platform : 13808s E Architecture: armhf 13808s E Compiler : gcc 13808s E 13808s E CPU baseline : 13808s E Requested : 'min' 13808s E Enabled : none 13808s E Flags : none 13808s E Extra checks: none 13808s E 13808s E CPU dispatch : 13808s E Requested : 'max -xop -fma4' 13808s E Enabled : none 13808s E Generated : none 13808s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13808s 13808s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13808s d = '/tmp/tmpjj8q074z' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s err = None 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s kw = {} 13808s module_name = 'test_array_from_pyobj_ext' 13808s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13808s p = 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13808s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-23seq-C-w] ______ 13808s 13808s def setup_module(): 13808s """ 13808s Build the required testing extension module 13808s 13808s """ 13808s global wrap 13808s 13808s # Check compiler availability first 13808s if not util.has_c_compiler(): 13808s pytest.skip("No C compiler available") 13808s 13808s if wrap is None: 13808s config_code = """ 13808s config.add_extension('test_array_from_pyobj_ext', 13808s sources=['wrapmodule.c', 'fortranobject.c'], 13808s define_macros=[]) 13808s """ 13808s d = os.path.dirname(__file__) 13808s src = [ 13808s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13808s util.getpath("src", "fortranobject.c"), 13808s util.getpath("src", "fortranobject.h"), 13808s ] 13808s > wrap = util.build_module_distutils(src, config_code, 13808s "test_array_from_pyobj_ext") 13808s 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13808s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13808s memo[key] = func(*a, **kw) 13808s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13808s func = 13808s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13808s kw = {} 13808s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s 13808s @_memoize 13808s def build_module_distutils(source_files, config_code, module_name, **kw): 13808s """ 13808s Build a module via distutils and import it. 13808s 13808s """ 13808s d = get_module_dir() 13808s 13808s # Copy files 13808s dst_sources = [] 13808s for fn in source_files: 13808s if not os.path.isfile(fn): 13808s raise RuntimeError("%s is not a file" % fn) 13808s dst = os.path.join(d, os.path.basename(fn)) 13808s shutil.copyfile(fn, dst) 13808s dst_sources.append(dst) 13808s 13808s # Build script 13808s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13808s 13808s code = fr""" 13808s import os 13808s import sys 13808s sys.path = {repr(sys.path)} 13808s 13808s def configuration(parent_name='',top_path=None): 13808s from numpy.distutils.misc_util import Configuration 13808s config = Configuration('', parent_name, top_path) 13808s {config_code} 13808s return config 13808s 13808s if __name__ == "__main__": 13808s from numpy.distutils.core import setup 13808s setup(configuration=configuration) 13808s """ 13808s script = os.path.join(d, get_temp_module_name() + ".py") 13808s dst_sources.append(script) 13808s with open(script, "wb") as f: 13808s f.write(asbytes(code)) 13808s 13808s # Build 13808s cwd = os.getcwd() 13808s try: 13808s os.chdir(d) 13808s cmd = [sys.executable, script, "build_ext", "-i"] 13808s p = subprocess.Popen(cmd, 13808s stdout=subprocess.PIPE, 13808s stderr=subprocess.STDOUT) 13808s out, err = p.communicate() 13808s if p.returncode != 0: 13808s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13808s (cmd[4:], asstr(out))) 13808s E RuntimeError: Running distutils build failed: [] 13808s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13808s E 13808s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13808s E of the deprecation of `distutils` itself. It will be removed for 13808s E Python >= 3.12. For older Python versions it will remain present. 13808s E It is recommended to use `setuptools < 60.0` for those Python versions. 13808s E For more details, see: 13808s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13808s E 13808s E 13808s E from numpy.distutils.core import setup 13808s E running build_ext 13808s E running build_src 13808s E INFO: build_src 13808s E INFO: building extension "test_array_from_pyobj_ext" sources 13808s E INFO: build_src: building npy-pkg config files 13808s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13808s E !! 13808s E 13808s E ******************************************************************************** 13808s E Please avoid running ``setup.py`` directly. 13808s E Instead, use pypa/build, pypa/installer or other 13808s E standards-based tools. 13808s E 13808s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13808s E ******************************************************************************** 13808s E 13808s E !! 13808s E self.initialize_options() 13808s E INFO: customize UnixCCompiler 13808s E INFO: customize UnixCCompiler using build_ext 13808s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/tmp 13808s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E creating /tmp/tmppq19o2st/usr 13808s E creating /tmp/tmppq19o2st/usr/lib 13808s E creating /tmp/tmppq19o2st/usr/lib/python3 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13808s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=native' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-O3' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-Werror' 13808s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13808s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-vfpv4' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13808s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-march=armv8.2-a+fp16' 13808s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/include/python3.12 -c' 13808s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13808s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13808s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13808s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13808s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13808s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13808s E 9 | # include_next 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E 13808s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13808s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13808s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13808s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13808s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13808s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13808s E INFO: building 'test_array_from_pyobj_ext' extension 13808s E INFO: compiling C sources 13808s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13808s E 13808s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13808s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13808s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13808s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13808s E 14 | #include 13808s E | ^~~~~~~~~~ 13808s E In file included from fortranobject.c:2: 13808s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13808s E 7 | #include 13808s E | ^~~~~~~~~~ 13808s E compilation terminated. 13808s E compilation terminated. 13808s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13808s E INFO: 13808s E ########### EXT COMPILER OPTIMIZATION ########### 13808s E INFO: Platform : 13808s E Architecture: armhf 13808s E Compiler : gcc 13808s E 13808s E CPU baseline : 13808s E Requested : 'min' 13808s E Enabled : none 13808s E Flags : none 13808s E Extra checks: none 13808s E 13808s E CPU dispatch : 13808s E Requested : 'max -xop -fma4' 13808s E Enabled : none 13808s E Generated : none 13808s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13808s 13808s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13808s d = '/tmp/tmpjj8q074z' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s err = None 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s kw = {} 13808s module_name = 'test_array_from_pyobj_ext' 13808s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13808s p = 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13808s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-23seq-C-ro] ______ 13808s 13808s def setup_module(): 13808s """ 13808s Build the required testing extension module 13808s 13808s """ 13808s global wrap 13808s 13808s # Check compiler availability first 13808s if not util.has_c_compiler(): 13808s pytest.skip("No C compiler available") 13808s 13808s if wrap is None: 13808s config_code = """ 13808s config.add_extension('test_array_from_pyobj_ext', 13808s sources=['wrapmodule.c', 'fortranobject.c'], 13808s define_macros=[]) 13808s """ 13808s d = os.path.dirname(__file__) 13808s src = [ 13808s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13808s util.getpath("src", "fortranobject.c"), 13808s util.getpath("src", "fortranobject.h"), 13808s ] 13808s > wrap = util.build_module_distutils(src, config_code, 13808s "test_array_from_pyobj_ext") 13808s 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13808s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13808s memo[key] = func(*a, **kw) 13808s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13808s func = 13808s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13808s kw = {} 13808s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13808s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13808s 13808s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13808s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13808s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13808s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13808s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13808s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13808s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13808s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13808s 13808s @_memoize 13808s def build_module_distutils(source_files, config_code, module_name, **kw): 13808s """ 13808s Build a module via distutils and import it. 13808s 13808s """ 13808s d = get_module_dir() 13808s 13808s # Copy files 13808s dst_sources = [] 13808s for fn in source_files: 13808s if not os.path.isfile(fn): 13808s raise RuntimeError("%s is not a file" % fn) 13808s dst = os.path.join(d, os.path.basename(fn)) 13808s shutil.copyfile(fn, dst) 13808s dst_sources.append(dst) 13808s 13808s # Build script 13808s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13808s 13808s code = fr""" 13808s import os 13808s import sys 13808s sys.path = {repr(sys.path)} 13808s 13808s def configuration(parent_name='',top_path=None): 13808s from numpy.distutils.misc_util import Configuration 13808s config = Configuration('', parent_name, top_path) 13808s {config_code} 13808s return config 13808s 13808s if __name__ == "__main__": 13808s from numpy.distutils.core import setup 13808s setup(configuration=configuration) 13808s """ 13808s script = os.path.join(d, get_temp_module_name() + ".py") 13808s dst_sources.append(script) 13808s with open(script, "wb") as f: 13808s f.write(asbytes(code)) 13808s 13808s # Build 13808s cwd = os.getcwd() 13808s try: 13808s os.chdir(d) 13808s cmd = [sys.executable, script, "build_ext", "-i"] 13808s p = subprocess.Popen(cmd, 13808s stdout=subprocess.PIPE, 13808s stderr=subprocess.STDOUT) 13808s out, err = p.communicate() 13808s if p.returncode != 0: 13808s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13808s (cmd[4:], asstr(out))) 13809s E RuntimeError: Running distutils build failed: [] 13809s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13809s E 13809s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13809s E of the deprecation of `distutils` itself. It will be removed for 13809s E Python >= 3.12. For older Python versions it will remain present. 13809s E It is recommended to use `setuptools < 60.0` for those Python versions. 13809s E For more details, see: 13809s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13809s E 13809s E 13809s E from numpy.distutils.core import setup 13809s E running build_ext 13809s E running build_src 13809s E INFO: build_src 13809s E INFO: building extension "test_array_from_pyobj_ext" sources 13809s E INFO: build_src: building npy-pkg config files 13809s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13809s E !! 13809s E 13809s E ******************************************************************************** 13809s E Please avoid running ``setup.py`` directly. 13809s E Instead, use pypa/build, pypa/installer or other 13809s E standards-based tools. 13809s E 13809s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13809s E ******************************************************************************** 13809s E 13809s E !! 13809s E self.initialize_options() 13809s E INFO: customize UnixCCompiler 13809s E INFO: customize UnixCCompiler using build_ext 13809s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/tmp 13809s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/usr 13809s E creating /tmp/tmppq19o2st/usr/lib 13809s E creating /tmp/tmppq19o2st/usr/lib/python3 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=native' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-O3' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-Werror' 13809s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13809s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-vfpv4' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=armv8.2-a+fp16' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13809s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13809s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13809s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13809s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13809s E INFO: building 'test_array_from_pyobj_ext' extension 13809s E INFO: compiling C sources 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13809s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13809s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13809s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13809s E 14 | #include 13809s E | ^~~~~~~~~~ 13809s E In file included from fortranobject.c:2: 13809s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13809s E 7 | #include 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E compilation terminated. 13809s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13809s E INFO: 13809s E ########### EXT COMPILER OPTIMIZATION ########### 13809s E INFO: Platform : 13809s E Architecture: armhf 13809s E Compiler : gcc 13809s E 13809s E CPU baseline : 13809s E Requested : 'min' 13809s E Enabled : none 13809s E Flags : none 13809s E Extra checks: none 13809s E 13809s E CPU dispatch : 13809s E Requested : 'max -xop -fma4' 13809s E Enabled : none 13809s E Generated : none 13809s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13809s 13809s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13809s d = '/tmp/tmpjj8q074z' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s err = None 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s kw = {} 13809s module_name = 'test_array_from_pyobj_ext' 13809s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13809s p = 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13809s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-23seq-F-w] ______ 13809s 13809s def setup_module(): 13809s """ 13809s Build the required testing extension module 13809s 13809s """ 13809s global wrap 13809s 13809s # Check compiler availability first 13809s if not util.has_c_compiler(): 13809s pytest.skip("No C compiler available") 13809s 13809s if wrap is None: 13809s config_code = """ 13809s config.add_extension('test_array_from_pyobj_ext', 13809s sources=['wrapmodule.c', 'fortranobject.c'], 13809s define_macros=[]) 13809s """ 13809s d = os.path.dirname(__file__) 13809s src = [ 13809s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13809s util.getpath("src", "fortranobject.c"), 13809s util.getpath("src", "fortranobject.h"), 13809s ] 13809s > wrap = util.build_module_distutils(src, config_code, 13809s "test_array_from_pyobj_ext") 13809s 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13809s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13809s memo[key] = func(*a, **kw) 13809s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13809s func = 13809s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13809s kw = {} 13809s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s 13809s @_memoize 13809s def build_module_distutils(source_files, config_code, module_name, **kw): 13809s """ 13809s Build a module via distutils and import it. 13809s 13809s """ 13809s d = get_module_dir() 13809s 13809s # Copy files 13809s dst_sources = [] 13809s for fn in source_files: 13809s if not os.path.isfile(fn): 13809s raise RuntimeError("%s is not a file" % fn) 13809s dst = os.path.join(d, os.path.basename(fn)) 13809s shutil.copyfile(fn, dst) 13809s dst_sources.append(dst) 13809s 13809s # Build script 13809s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13809s 13809s code = fr""" 13809s import os 13809s import sys 13809s sys.path = {repr(sys.path)} 13809s 13809s def configuration(parent_name='',top_path=None): 13809s from numpy.distutils.misc_util import Configuration 13809s config = Configuration('', parent_name, top_path) 13809s {config_code} 13809s return config 13809s 13809s if __name__ == "__main__": 13809s from numpy.distutils.core import setup 13809s setup(configuration=configuration) 13809s """ 13809s script = os.path.join(d, get_temp_module_name() + ".py") 13809s dst_sources.append(script) 13809s with open(script, "wb") as f: 13809s f.write(asbytes(code)) 13809s 13809s # Build 13809s cwd = os.getcwd() 13809s try: 13809s os.chdir(d) 13809s cmd = [sys.executable, script, "build_ext", "-i"] 13809s p = subprocess.Popen(cmd, 13809s stdout=subprocess.PIPE, 13809s stderr=subprocess.STDOUT) 13809s out, err = p.communicate() 13809s if p.returncode != 0: 13809s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13809s (cmd[4:], asstr(out))) 13809s E RuntimeError: Running distutils build failed: [] 13809s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13809s E 13809s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13809s E of the deprecation of `distutils` itself. It will be removed for 13809s E Python >= 3.12. For older Python versions it will remain present. 13809s E It is recommended to use `setuptools < 60.0` for those Python versions. 13809s E For more details, see: 13809s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13809s E 13809s E 13809s E from numpy.distutils.core import setup 13809s E running build_ext 13809s E running build_src 13809s E INFO: build_src 13809s E INFO: building extension "test_array_from_pyobj_ext" sources 13809s E INFO: build_src: building npy-pkg config files 13809s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13809s E !! 13809s E 13809s E ******************************************************************************** 13809s E Please avoid running ``setup.py`` directly. 13809s E Instead, use pypa/build, pypa/installer or other 13809s E standards-based tools. 13809s E 13809s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13809s E ******************************************************************************** 13809s E 13809s E !! 13809s E self.initialize_options() 13809s E INFO: customize UnixCCompiler 13809s E INFO: customize UnixCCompiler using build_ext 13809s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/tmp 13809s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/usr 13809s E creating /tmp/tmppq19o2st/usr/lib 13809s E creating /tmp/tmppq19o2st/usr/lib/python3 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=native' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-O3' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-Werror' 13809s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13809s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-vfpv4' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=armv8.2-a+fp16' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13809s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13809s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13809s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13809s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13809s E INFO: building 'test_array_from_pyobj_ext' extension 13809s E INFO: compiling C sources 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13809s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13809s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13809s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13809s E 14 | #include 13809s E | ^~~~~~~~~~ 13809s E In file included from fortranobject.c:2: 13809s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13809s E 7 | #include 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E compilation terminated. 13809s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13809s E INFO: 13809s E ########### EXT COMPILER OPTIMIZATION ########### 13809s E INFO: Platform : 13809s E Architecture: armhf 13809s E Compiler : gcc 13809s E 13809s E CPU baseline : 13809s E Requested : 'min' 13809s E Enabled : none 13809s E Flags : none 13809s E Extra checks: none 13809s E 13809s E CPU dispatch : 13809s E Requested : 'max -xop -fma4' 13809s E Enabled : none 13809s E Generated : none 13809s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13809s 13809s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13809s d = '/tmp/tmpjj8q074z' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s err = None 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s kw = {} 13809s module_name = 'test_array_from_pyobj_ext' 13809s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13809s p = 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13809s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONG-23seq-F-ro] ______ 13809s 13809s def setup_module(): 13809s """ 13809s Build the required testing extension module 13809s 13809s """ 13809s global wrap 13809s 13809s # Check compiler availability first 13809s if not util.has_c_compiler(): 13809s pytest.skip("No C compiler available") 13809s 13809s if wrap is None: 13809s config_code = """ 13809s config.add_extension('test_array_from_pyobj_ext', 13809s sources=['wrapmodule.c', 'fortranobject.c'], 13809s define_macros=[]) 13809s """ 13809s d = os.path.dirname(__file__) 13809s src = [ 13809s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13809s util.getpath("src", "fortranobject.c"), 13809s util.getpath("src", "fortranobject.h"), 13809s ] 13809s > wrap = util.build_module_distutils(src, config_code, 13809s "test_array_from_pyobj_ext") 13809s 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13809s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13809s memo[key] = func(*a, **kw) 13809s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13809s func = 13809s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13809s kw = {} 13809s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s 13809s @_memoize 13809s def build_module_distutils(source_files, config_code, module_name, **kw): 13809s """ 13809s Build a module via distutils and import it. 13809s 13809s """ 13809s d = get_module_dir() 13809s 13809s # Copy files 13809s dst_sources = [] 13809s for fn in source_files: 13809s if not os.path.isfile(fn): 13809s raise RuntimeError("%s is not a file" % fn) 13809s dst = os.path.join(d, os.path.basename(fn)) 13809s shutil.copyfile(fn, dst) 13809s dst_sources.append(dst) 13809s 13809s # Build script 13809s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13809s 13809s code = fr""" 13809s import os 13809s import sys 13809s sys.path = {repr(sys.path)} 13809s 13809s def configuration(parent_name='',top_path=None): 13809s from numpy.distutils.misc_util import Configuration 13809s config = Configuration('', parent_name, top_path) 13809s {config_code} 13809s return config 13809s 13809s if __name__ == "__main__": 13809s from numpy.distutils.core import setup 13809s setup(configuration=configuration) 13809s """ 13809s script = os.path.join(d, get_temp_module_name() + ".py") 13809s dst_sources.append(script) 13809s with open(script, "wb") as f: 13809s f.write(asbytes(code)) 13809s 13809s # Build 13809s cwd = os.getcwd() 13809s try: 13809s os.chdir(d) 13809s cmd = [sys.executable, script, "build_ext", "-i"] 13809s p = subprocess.Popen(cmd, 13809s stdout=subprocess.PIPE, 13809s stderr=subprocess.STDOUT) 13809s out, err = p.communicate() 13809s if p.returncode != 0: 13809s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13809s (cmd[4:], asstr(out))) 13809s E RuntimeError: Running distutils build failed: [] 13809s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13809s E 13809s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13809s E of the deprecation of `distutils` itself. It will be removed for 13809s E Python >= 3.12. For older Python versions it will remain present. 13809s E It is recommended to use `setuptools < 60.0` for those Python versions. 13809s E For more details, see: 13809s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13809s E 13809s E 13809s E from numpy.distutils.core import setup 13809s E running build_ext 13809s E running build_src 13809s E INFO: build_src 13809s E INFO: building extension "test_array_from_pyobj_ext" sources 13809s E INFO: build_src: building npy-pkg config files 13809s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13809s E !! 13809s E 13809s E ******************************************************************************** 13809s E Please avoid running ``setup.py`` directly. 13809s E Instead, use pypa/build, pypa/installer or other 13809s E standards-based tools. 13809s E 13809s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13809s E ******************************************************************************** 13809s E 13809s E !! 13809s E self.initialize_options() 13809s E INFO: customize UnixCCompiler 13809s E INFO: customize UnixCCompiler using build_ext 13809s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/tmp 13809s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/usr 13809s E creating /tmp/tmppq19o2st/usr/lib 13809s E creating /tmp/tmppq19o2st/usr/lib/python3 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=native' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-O3' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-Werror' 13809s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13809s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-vfpv4' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=armv8.2-a+fp16' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13809s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13809s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13809s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13809s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13809s E INFO: building 'test_array_from_pyobj_ext' extension 13809s E INFO: compiling C sources 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13809s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13809s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13809s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13809s E 14 | #include 13809s E | ^~~~~~~~~~ 13809s E In file included from fortranobject.c:2: 13809s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13809s E 7 | #include 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E compilation terminated. 13809s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13809s E INFO: 13809s E ########### EXT COMPILER OPTIMIZATION ########### 13809s E INFO: Platform : 13809s E Architecture: armhf 13809s E Compiler : gcc 13809s E 13809s E CPU baseline : 13809s E Requested : 'min' 13809s E Enabled : none 13809s E Flags : none 13809s E Extra checks: none 13809s E 13809s E CPU dispatch : 13809s E Requested : 'max -xop -fma4' 13809s E Enabled : none 13809s E Generated : none 13809s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13809s 13809s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13809s d = '/tmp/tmpjj8q074z' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s err = None 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s kw = {} 13809s module_name = 'test_array_from_pyobj_ext' 13809s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13809s p = 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13809s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[ULONG] ___________ 13809s 13809s def setup_module(): 13809s """ 13809s Build the required testing extension module 13809s 13809s """ 13809s global wrap 13809s 13809s # Check compiler availability first 13809s if not util.has_c_compiler(): 13809s pytest.skip("No C compiler available") 13809s 13809s if wrap is None: 13809s config_code = """ 13809s config.add_extension('test_array_from_pyobj_ext', 13809s sources=['wrapmodule.c', 'fortranobject.c'], 13809s define_macros=[]) 13809s """ 13809s d = os.path.dirname(__file__) 13809s src = [ 13809s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13809s util.getpath("src", "fortranobject.c"), 13809s util.getpath("src", "fortranobject.h"), 13809s ] 13809s > wrap = util.build_module_distutils(src, config_code, 13809s "test_array_from_pyobj_ext") 13809s 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13809s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13809s memo[key] = func(*a, **kw) 13809s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13809s func = 13809s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13809s kw = {} 13809s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s 13809s @_memoize 13809s def build_module_distutils(source_files, config_code, module_name, **kw): 13809s """ 13809s Build a module via distutils and import it. 13809s 13809s """ 13809s d = get_module_dir() 13809s 13809s # Copy files 13809s dst_sources = [] 13809s for fn in source_files: 13809s if not os.path.isfile(fn): 13809s raise RuntimeError("%s is not a file" % fn) 13809s dst = os.path.join(d, os.path.basename(fn)) 13809s shutil.copyfile(fn, dst) 13809s dst_sources.append(dst) 13809s 13809s # Build script 13809s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13809s 13809s code = fr""" 13809s import os 13809s import sys 13809s sys.path = {repr(sys.path)} 13809s 13809s def configuration(parent_name='',top_path=None): 13809s from numpy.distutils.misc_util import Configuration 13809s config = Configuration('', parent_name, top_path) 13809s {config_code} 13809s return config 13809s 13809s if __name__ == "__main__": 13809s from numpy.distutils.core import setup 13809s setup(configuration=configuration) 13809s """ 13809s script = os.path.join(d, get_temp_module_name() + ".py") 13809s dst_sources.append(script) 13809s with open(script, "wb") as f: 13809s f.write(asbytes(code)) 13809s 13809s # Build 13809s cwd = os.getcwd() 13809s try: 13809s os.chdir(d) 13809s cmd = [sys.executable, script, "build_ext", "-i"] 13809s p = subprocess.Popen(cmd, 13809s stdout=subprocess.PIPE, 13809s stderr=subprocess.STDOUT) 13809s out, err = p.communicate() 13809s if p.returncode != 0: 13809s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13809s (cmd[4:], asstr(out))) 13809s E RuntimeError: Running distutils build failed: [] 13809s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13809s E 13809s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13809s E of the deprecation of `distutils` itself. It will be removed for 13809s E Python >= 3.12. For older Python versions it will remain present. 13809s E It is recommended to use `setuptools < 60.0` for those Python versions. 13809s E For more details, see: 13809s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13809s E 13809s E 13809s E from numpy.distutils.core import setup 13809s E running build_ext 13809s E running build_src 13809s E INFO: build_src 13809s E INFO: building extension "test_array_from_pyobj_ext" sources 13809s E INFO: build_src: building npy-pkg config files 13809s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13809s E !! 13809s E 13809s E ******************************************************************************** 13809s E Please avoid running ``setup.py`` directly. 13809s E Instead, use pypa/build, pypa/installer or other 13809s E standards-based tools. 13809s E 13809s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13809s E ******************************************************************************** 13809s E 13809s E !! 13809s E self.initialize_options() 13809s E INFO: customize UnixCCompiler 13809s E INFO: customize UnixCCompiler using build_ext 13809s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/tmp 13809s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/usr 13809s E creating /tmp/tmppq19o2st/usr/lib 13809s E creating /tmp/tmppq19o2st/usr/lib/python3 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=native' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-O3' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-Werror' 13809s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13809s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-vfpv4' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=armv8.2-a+fp16' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13809s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13809s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13809s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13809s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13809s E INFO: building 'test_array_from_pyobj_ext' extension 13809s E INFO: compiling C sources 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13809s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13809s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13809s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13809s E 14 | #include 13809s E | ^~~~~~~~~~ 13809s E In file included from fortranobject.c:2: 13809s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13809s E 7 | #include 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E compilation terminated. 13809s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13809s E INFO: 13809s E ########### EXT COMPILER OPTIMIZATION ########### 13809s E INFO: Platform : 13809s E Architecture: armhf 13809s E Compiler : gcc 13809s E 13809s E CPU baseline : 13809s E Requested : 'min' 13809s E Enabled : none 13809s E Flags : none 13809s E Extra checks: none 13809s E 13809s E CPU dispatch : 13809s E Requested : 'max -xop -fma4' 13809s E Enabled : none 13809s E Generated : none 13809s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13809s 13809s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13809s d = '/tmp/tmpjj8q074z' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s err = None 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s kw = {} 13809s module_name = 'test_array_from_pyobj_ext' 13809s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13809s p = 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13809s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[ULONG] _________ 13809s 13809s def setup_module(): 13809s """ 13809s Build the required testing extension module 13809s 13809s """ 13809s global wrap 13809s 13809s # Check compiler availability first 13809s if not util.has_c_compiler(): 13809s pytest.skip("No C compiler available") 13809s 13809s if wrap is None: 13809s config_code = """ 13809s config.add_extension('test_array_from_pyobj_ext', 13809s sources=['wrapmodule.c', 'fortranobject.c'], 13809s define_macros=[]) 13809s """ 13809s d = os.path.dirname(__file__) 13809s src = [ 13809s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13809s util.getpath("src", "fortranobject.c"), 13809s util.getpath("src", "fortranobject.h"), 13809s ] 13809s > wrap = util.build_module_distutils(src, config_code, 13809s "test_array_from_pyobj_ext") 13809s 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13809s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13809s memo[key] = func(*a, **kw) 13809s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13809s func = 13809s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13809s kw = {} 13809s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s 13809s @_memoize 13809s def build_module_distutils(source_files, config_code, module_name, **kw): 13809s """ 13809s Build a module via distutils and import it. 13809s 13809s """ 13809s d = get_module_dir() 13809s 13809s # Copy files 13809s dst_sources = [] 13809s for fn in source_files: 13809s if not os.path.isfile(fn): 13809s raise RuntimeError("%s is not a file" % fn) 13809s dst = os.path.join(d, os.path.basename(fn)) 13809s shutil.copyfile(fn, dst) 13809s dst_sources.append(dst) 13809s 13809s # Build script 13809s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13809s 13809s code = fr""" 13809s import os 13809s import sys 13809s sys.path = {repr(sys.path)} 13809s 13809s def configuration(parent_name='',top_path=None): 13809s from numpy.distutils.misc_util import Configuration 13809s config = Configuration('', parent_name, top_path) 13809s {config_code} 13809s return config 13809s 13809s if __name__ == "__main__": 13809s from numpy.distutils.core import setup 13809s setup(configuration=configuration) 13809s """ 13809s script = os.path.join(d, get_temp_module_name() + ".py") 13809s dst_sources.append(script) 13809s with open(script, "wb") as f: 13809s f.write(asbytes(code)) 13809s 13809s # Build 13809s cwd = os.getcwd() 13809s try: 13809s os.chdir(d) 13809s cmd = [sys.executable, script, "build_ext", "-i"] 13809s p = subprocess.Popen(cmd, 13809s stdout=subprocess.PIPE, 13809s stderr=subprocess.STDOUT) 13809s out, err = p.communicate() 13809s if p.returncode != 0: 13809s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13809s (cmd[4:], asstr(out))) 13809s E RuntimeError: Running distutils build failed: [] 13809s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13809s E 13809s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13809s E of the deprecation of `distutils` itself. It will be removed for 13809s E Python >= 3.12. For older Python versions it will remain present. 13809s E It is recommended to use `setuptools < 60.0` for those Python versions. 13809s E For more details, see: 13809s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13809s E 13809s E 13809s E from numpy.distutils.core import setup 13809s E running build_ext 13809s E running build_src 13809s E INFO: build_src 13809s E INFO: building extension "test_array_from_pyobj_ext" sources 13809s E INFO: build_src: building npy-pkg config files 13809s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13809s E !! 13809s E 13809s E ******************************************************************************** 13809s E Please avoid running ``setup.py`` directly. 13809s E Instead, use pypa/build, pypa/installer or other 13809s E standards-based tools. 13809s E 13809s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13809s E ******************************************************************************** 13809s E 13809s E !! 13809s E self.initialize_options() 13809s E INFO: customize UnixCCompiler 13809s E INFO: customize UnixCCompiler using build_ext 13809s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/tmp 13809s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E creating /tmp/tmppq19o2st/usr 13809s E creating /tmp/tmppq19o2st/usr/lib 13809s E creating /tmp/tmppq19o2st/usr/lib/python3 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13809s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=native' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-O3' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-Werror' 13809s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13809s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-vfpv4' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13809s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-march=armv8.2-a+fp16' 13809s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/include/python3.12 -c' 13809s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13809s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13809s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13809s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13809s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13809s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13809s E 9 | # include_next 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E 13809s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13809s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13809s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13809s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13809s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13809s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13809s E INFO: building 'test_array_from_pyobj_ext' extension 13809s E INFO: compiling C sources 13809s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13809s E 13809s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13809s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13809s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13809s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13809s E 14 | #include 13809s E | ^~~~~~~~~~ 13809s E In file included from fortranobject.c:2: 13809s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13809s E 7 | #include 13809s E | ^~~~~~~~~~ 13809s E compilation terminated. 13809s E compilation terminated. 13809s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13809s E INFO: 13809s E ########### EXT COMPILER OPTIMIZATION ########### 13809s E INFO: Platform : 13809s E Architecture: armhf 13809s E Compiler : gcc 13809s E 13809s E CPU baseline : 13809s E Requested : 'min' 13809s E Enabled : none 13809s E Flags : none 13809s E Extra checks: none 13809s E 13809s E CPU dispatch : 13809s E Requested : 'max -xop -fma4' 13809s E Enabled : none 13809s E Generated : none 13809s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13809s 13809s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13809s d = '/tmp/tmpjj8q074z' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s err = None 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s kw = {} 13809s module_name = 'test_array_from_pyobj_ext' 13809s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13809s p = 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13809s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[ULONG] _________ 13809s 13809s def setup_module(): 13809s """ 13809s Build the required testing extension module 13809s 13809s """ 13809s global wrap 13809s 13809s # Check compiler availability first 13809s if not util.has_c_compiler(): 13809s pytest.skip("No C compiler available") 13809s 13809s if wrap is None: 13809s config_code = """ 13809s config.add_extension('test_array_from_pyobj_ext', 13809s sources=['wrapmodule.c', 'fortranobject.c'], 13809s define_macros=[]) 13809s """ 13809s d = os.path.dirname(__file__) 13809s src = [ 13809s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13809s util.getpath("src", "fortranobject.c"), 13809s util.getpath("src", "fortranobject.h"), 13809s ] 13809s > wrap = util.build_module_distutils(src, config_code, 13809s "test_array_from_pyobj_ext") 13809s 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13809s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13809s memo[key] = func(*a, **kw) 13809s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13809s func = 13809s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13809s kw = {} 13809s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13809s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13809s 13809s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13809s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13809s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13809s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13809s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13809s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13809s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13809s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13809s 13809s @_memoize 13809s def build_module_distutils(source_files, config_code, module_name, **kw): 13809s """ 13809s Build a module via distutils and import it. 13809s 13809s """ 13809s d = get_module_dir() 13809s 13809s # Copy files 13809s dst_sources = [] 13809s for fn in source_files: 13809s if not os.path.isfile(fn): 13809s raise RuntimeError("%s is not a file" % fn) 13809s dst = os.path.join(d, os.path.basename(fn)) 13809s shutil.copyfile(fn, dst) 13809s dst_sources.append(dst) 13809s 13809s # Build script 13809s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13809s 13809s code = fr""" 13809s import os 13809s import sys 13809s sys.path = {repr(sys.path)} 13809s 13809s def configuration(parent_name='',top_path=None): 13809s from numpy.distutils.misc_util import Configuration 13809s config = Configuration('', parent_name, top_path) 13809s {config_code} 13809s return config 13809s 13809s if __name__ == "__main__": 13809s from numpy.distutils.core import setup 13809s setup(configuration=configuration) 13809s """ 13809s script = os.path.join(d, get_temp_module_name() + ".py") 13809s dst_sources.append(script) 13809s with open(script, "wb") as f: 13809s f.write(asbytes(code)) 13809s 13809s # Build 13809s cwd = os.getcwd() 13809s try: 13809s os.chdir(d) 13809s cmd = [sys.executable, script, "build_ext", "-i"] 13809s p = subprocess.Popen(cmd, 13809s stdout=subprocess.PIPE, 13809s stderr=subprocess.STDOUT) 13809s out, err = p.communicate() 13809s if p.returncode != 0: 13809s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13809s (cmd[4:], asstr(out))) 13809s E RuntimeError: Running distutils build failed: [] 13809s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13809s E 13809s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13809s E of the deprecation of `distutils` itself. It will be removed for 13809s E Python >= 3.12. For older Python versions it will remain present. 13809s E It is recommended to use `setuptools < 60.0` for those Python versions. 13809s E For more details, see: 13809s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13809s E 13809s E 13809s E from numpy.distutils.core import setup 13809s E running build_ext 13809s E running build_src 13809s E INFO: build_src 13809s E INFO: building extension "test_array_from_pyobj_ext" sources 13809s E INFO: build_src: building npy-pkg config files 13809s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13809s E !! 13810s E 13810s E ******************************************************************************** 13810s E Please avoid running ``setup.py`` directly. 13810s E Instead, use pypa/build, pypa/installer or other 13810s E standards-based tools. 13810s E 13810s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13810s E ******************************************************************************** 13810s E 13810s E !! 13810s E self.initialize_options() 13810s E INFO: customize UnixCCompiler 13810s E INFO: customize UnixCCompiler using build_ext 13810s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/tmp 13810s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/usr 13810s E creating /tmp/tmppq19o2st/usr/lib 13810s E creating /tmp/tmppq19o2st/usr/lib/python3 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=native' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-O3' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-Werror' 13810s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13810s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-vfpv4' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=armv8.2-a+fp16' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13810s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13810s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13810s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13810s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13810s E INFO: building 'test_array_from_pyobj_ext' extension 13810s E INFO: compiling C sources 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13810s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13810s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13810s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13810s E 14 | #include 13810s E | ^~~~~~~~~~ 13810s E In file included from fortranobject.c:2: 13810s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13810s E 7 | #include 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E compilation terminated. 13810s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13810s E INFO: 13810s E ########### EXT COMPILER OPTIMIZATION ########### 13810s E INFO: Platform : 13810s E Architecture: armhf 13810s E Compiler : gcc 13810s E 13810s E CPU baseline : 13810s E Requested : 'min' 13810s E Enabled : none 13810s E Flags : none 13810s E Extra checks: none 13810s E 13810s E CPU dispatch : 13810s E Requested : 'max -xop -fma4' 13810s E Enabled : none 13810s E Generated : none 13810s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13810s 13810s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13810s d = '/tmp/tmpjj8q074z' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s err = None 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s kw = {} 13810s module_name = 'test_array_from_pyobj_ext' 13810s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13810s p = 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13810s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[ULONG] _____ 13810s 13810s def setup_module(): 13810s """ 13810s Build the required testing extension module 13810s 13810s """ 13810s global wrap 13810s 13810s # Check compiler availability first 13810s if not util.has_c_compiler(): 13810s pytest.skip("No C compiler available") 13810s 13810s if wrap is None: 13810s config_code = """ 13810s config.add_extension('test_array_from_pyobj_ext', 13810s sources=['wrapmodule.c', 'fortranobject.c'], 13810s define_macros=[]) 13810s """ 13810s d = os.path.dirname(__file__) 13810s src = [ 13810s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13810s util.getpath("src", "fortranobject.c"), 13810s util.getpath("src", "fortranobject.h"), 13810s ] 13810s > wrap = util.build_module_distutils(src, config_code, 13810s "test_array_from_pyobj_ext") 13810s 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13810s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13810s memo[key] = func(*a, **kw) 13810s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13810s func = 13810s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13810s kw = {} 13810s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s 13810s @_memoize 13810s def build_module_distutils(source_files, config_code, module_name, **kw): 13810s """ 13810s Build a module via distutils and import it. 13810s 13810s """ 13810s d = get_module_dir() 13810s 13810s # Copy files 13810s dst_sources = [] 13810s for fn in source_files: 13810s if not os.path.isfile(fn): 13810s raise RuntimeError("%s is not a file" % fn) 13810s dst = os.path.join(d, os.path.basename(fn)) 13810s shutil.copyfile(fn, dst) 13810s dst_sources.append(dst) 13810s 13810s # Build script 13810s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13810s 13810s code = fr""" 13810s import os 13810s import sys 13810s sys.path = {repr(sys.path)} 13810s 13810s def configuration(parent_name='',top_path=None): 13810s from numpy.distutils.misc_util import Configuration 13810s config = Configuration('', parent_name, top_path) 13810s {config_code} 13810s return config 13810s 13810s if __name__ == "__main__": 13810s from numpy.distutils.core import setup 13810s setup(configuration=configuration) 13810s """ 13810s script = os.path.join(d, get_temp_module_name() + ".py") 13810s dst_sources.append(script) 13810s with open(script, "wb") as f: 13810s f.write(asbytes(code)) 13810s 13810s # Build 13810s cwd = os.getcwd() 13810s try: 13810s os.chdir(d) 13810s cmd = [sys.executable, script, "build_ext", "-i"] 13810s p = subprocess.Popen(cmd, 13810s stdout=subprocess.PIPE, 13810s stderr=subprocess.STDOUT) 13810s out, err = p.communicate() 13810s if p.returncode != 0: 13810s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13810s (cmd[4:], asstr(out))) 13810s E RuntimeError: Running distutils build failed: [] 13810s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13810s E 13810s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13810s E of the deprecation of `distutils` itself. It will be removed for 13810s E Python >= 3.12. For older Python versions it will remain present. 13810s E It is recommended to use `setuptools < 60.0` for those Python versions. 13810s E For more details, see: 13810s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13810s E 13810s E 13810s E from numpy.distutils.core import setup 13810s E running build_ext 13810s E running build_src 13810s E INFO: build_src 13810s E INFO: building extension "test_array_from_pyobj_ext" sources 13810s E INFO: build_src: building npy-pkg config files 13810s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13810s E !! 13810s E 13810s E ******************************************************************************** 13810s E Please avoid running ``setup.py`` directly. 13810s E Instead, use pypa/build, pypa/installer or other 13810s E standards-based tools. 13810s E 13810s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13810s E ******************************************************************************** 13810s E 13810s E !! 13810s E self.initialize_options() 13810s E INFO: customize UnixCCompiler 13810s E INFO: customize UnixCCompiler using build_ext 13810s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/tmp 13810s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/usr 13810s E creating /tmp/tmppq19o2st/usr/lib 13810s E creating /tmp/tmppq19o2st/usr/lib/python3 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=native' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-O3' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-Werror' 13810s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13810s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-vfpv4' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=armv8.2-a+fp16' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13810s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13810s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13810s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13810s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13810s E INFO: building 'test_array_from_pyobj_ext' extension 13810s E INFO: compiling C sources 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13810s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13810s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13810s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13810s E 14 | #include 13810s E | ^~~~~~~~~~ 13810s E In file included from fortranobject.c:2: 13810s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13810s E 7 | #include 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E compilation terminated. 13810s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13810s E INFO: 13810s E ########### EXT COMPILER OPTIMIZATION ########### 13810s E INFO: Platform : 13810s E Architecture: armhf 13810s E Compiler : gcc 13810s E 13810s E CPU baseline : 13810s E Requested : 'min' 13810s E Enabled : none 13810s E Flags : none 13810s E Extra checks: none 13810s E 13810s E CPU dispatch : 13810s E Requested : 'max -xop -fma4' 13810s E Enabled : none 13810s E Generated : none 13810s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13810s 13810s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13810s d = '/tmp/tmpjj8q074z' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s err = None 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s kw = {} 13810s module_name = 'test_array_from_pyobj_ext' 13810s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13810s p = 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13810s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[ULONG] ________ 13810s 13810s def setup_module(): 13810s """ 13810s Build the required testing extension module 13810s 13810s """ 13810s global wrap 13810s 13810s # Check compiler availability first 13810s if not util.has_c_compiler(): 13810s pytest.skip("No C compiler available") 13810s 13810s if wrap is None: 13810s config_code = """ 13810s config.add_extension('test_array_from_pyobj_ext', 13810s sources=['wrapmodule.c', 'fortranobject.c'], 13810s define_macros=[]) 13810s """ 13810s d = os.path.dirname(__file__) 13810s src = [ 13810s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13810s util.getpath("src", "fortranobject.c"), 13810s util.getpath("src", "fortranobject.h"), 13810s ] 13810s > wrap = util.build_module_distutils(src, config_code, 13810s "test_array_from_pyobj_ext") 13810s 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13810s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13810s memo[key] = func(*a, **kw) 13810s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13810s func = 13810s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13810s kw = {} 13810s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s 13810s @_memoize 13810s def build_module_distutils(source_files, config_code, module_name, **kw): 13810s """ 13810s Build a module via distutils and import it. 13810s 13810s """ 13810s d = get_module_dir() 13810s 13810s # Copy files 13810s dst_sources = [] 13810s for fn in source_files: 13810s if not os.path.isfile(fn): 13810s raise RuntimeError("%s is not a file" % fn) 13810s dst = os.path.join(d, os.path.basename(fn)) 13810s shutil.copyfile(fn, dst) 13810s dst_sources.append(dst) 13810s 13810s # Build script 13810s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13810s 13810s code = fr""" 13810s import os 13810s import sys 13810s sys.path = {repr(sys.path)} 13810s 13810s def configuration(parent_name='',top_path=None): 13810s from numpy.distutils.misc_util import Configuration 13810s config = Configuration('', parent_name, top_path) 13810s {config_code} 13810s return config 13810s 13810s if __name__ == "__main__": 13810s from numpy.distutils.core import setup 13810s setup(configuration=configuration) 13810s """ 13810s script = os.path.join(d, get_temp_module_name() + ".py") 13810s dst_sources.append(script) 13810s with open(script, "wb") as f: 13810s f.write(asbytes(code)) 13810s 13810s # Build 13810s cwd = os.getcwd() 13810s try: 13810s os.chdir(d) 13810s cmd = [sys.executable, script, "build_ext", "-i"] 13810s p = subprocess.Popen(cmd, 13810s stdout=subprocess.PIPE, 13810s stderr=subprocess.STDOUT) 13810s out, err = p.communicate() 13810s if p.returncode != 0: 13810s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13810s (cmd[4:], asstr(out))) 13810s E RuntimeError: Running distutils build failed: [] 13810s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13810s E 13810s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13810s E of the deprecation of `distutils` itself. It will be removed for 13810s E Python >= 3.12. For older Python versions it will remain present. 13810s E It is recommended to use `setuptools < 60.0` for those Python versions. 13810s E For more details, see: 13810s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13810s E 13810s E 13810s E from numpy.distutils.core import setup 13810s E running build_ext 13810s E running build_src 13810s E INFO: build_src 13810s E INFO: building extension "test_array_from_pyobj_ext" sources 13810s E INFO: build_src: building npy-pkg config files 13810s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13810s E !! 13810s E 13810s E ******************************************************************************** 13810s E Please avoid running ``setup.py`` directly. 13810s E Instead, use pypa/build, pypa/installer or other 13810s E standards-based tools. 13810s E 13810s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13810s E ******************************************************************************** 13810s E 13810s E !! 13810s E self.initialize_options() 13810s E INFO: customize UnixCCompiler 13810s E INFO: customize UnixCCompiler using build_ext 13810s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/tmp 13810s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/usr 13810s E creating /tmp/tmppq19o2st/usr/lib 13810s E creating /tmp/tmppq19o2st/usr/lib/python3 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=native' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-O3' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-Werror' 13810s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13810s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-vfpv4' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=armv8.2-a+fp16' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13810s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13810s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13810s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13810s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13810s E INFO: building 'test_array_from_pyobj_ext' extension 13810s E INFO: compiling C sources 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13810s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13810s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13810s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13810s E 14 | #include 13810s E | ^~~~~~~~~~ 13810s E In file included from fortranobject.c:2: 13810s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13810s E 7 | #include 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E compilation terminated. 13810s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13810s E INFO: 13810s E ########### EXT COMPILER OPTIMIZATION ########### 13810s E INFO: Platform : 13810s E Architecture: armhf 13810s E Compiler : gcc 13810s E 13810s E CPU baseline : 13810s E Requested : 'min' 13810s E Enabled : none 13810s E Flags : none 13810s E Extra checks: none 13810s E 13810s E CPU dispatch : 13810s E Requested : 'max -xop -fma4' 13810s E Enabled : none 13810s E Generated : none 13810s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13810s 13810s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13810s d = '/tmp/tmpjj8q074z' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s err = None 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s kw = {} 13810s module_name = 'test_array_from_pyobj_ext' 13810s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13810s p = 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13810s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[ULONG] _______ 13810s 13810s def setup_module(): 13810s """ 13810s Build the required testing extension module 13810s 13810s """ 13810s global wrap 13810s 13810s # Check compiler availability first 13810s if not util.has_c_compiler(): 13810s pytest.skip("No C compiler available") 13810s 13810s if wrap is None: 13810s config_code = """ 13810s config.add_extension('test_array_from_pyobj_ext', 13810s sources=['wrapmodule.c', 'fortranobject.c'], 13810s define_macros=[]) 13810s """ 13810s d = os.path.dirname(__file__) 13810s src = [ 13810s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13810s util.getpath("src", "fortranobject.c"), 13810s util.getpath("src", "fortranobject.h"), 13810s ] 13810s > wrap = util.build_module_distutils(src, config_code, 13810s "test_array_from_pyobj_ext") 13810s 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13810s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13810s memo[key] = func(*a, **kw) 13810s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13810s func = 13810s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13810s kw = {} 13810s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s 13810s @_memoize 13810s def build_module_distutils(source_files, config_code, module_name, **kw): 13810s """ 13810s Build a module via distutils and import it. 13810s 13810s """ 13810s d = get_module_dir() 13810s 13810s # Copy files 13810s dst_sources = [] 13810s for fn in source_files: 13810s if not os.path.isfile(fn): 13810s raise RuntimeError("%s is not a file" % fn) 13810s dst = os.path.join(d, os.path.basename(fn)) 13810s shutil.copyfile(fn, dst) 13810s dst_sources.append(dst) 13810s 13810s # Build script 13810s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13810s 13810s code = fr""" 13810s import os 13810s import sys 13810s sys.path = {repr(sys.path)} 13810s 13810s def configuration(parent_name='',top_path=None): 13810s from numpy.distutils.misc_util import Configuration 13810s config = Configuration('', parent_name, top_path) 13810s {config_code} 13810s return config 13810s 13810s if __name__ == "__main__": 13810s from numpy.distutils.core import setup 13810s setup(configuration=configuration) 13810s """ 13810s script = os.path.join(d, get_temp_module_name() + ".py") 13810s dst_sources.append(script) 13810s with open(script, "wb") as f: 13810s f.write(asbytes(code)) 13810s 13810s # Build 13810s cwd = os.getcwd() 13810s try: 13810s os.chdir(d) 13810s cmd = [sys.executable, script, "build_ext", "-i"] 13810s p = subprocess.Popen(cmd, 13810s stdout=subprocess.PIPE, 13810s stderr=subprocess.STDOUT) 13810s out, err = p.communicate() 13810s if p.returncode != 0: 13810s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13810s (cmd[4:], asstr(out))) 13810s E RuntimeError: Running distutils build failed: [] 13810s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13810s E 13810s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13810s E of the deprecation of `distutils` itself. It will be removed for 13810s E Python >= 3.12. For older Python versions it will remain present. 13810s E It is recommended to use `setuptools < 60.0` for those Python versions. 13810s E For more details, see: 13810s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13810s E 13810s E 13810s E from numpy.distutils.core import setup 13810s E running build_ext 13810s E running build_src 13810s E INFO: build_src 13810s E INFO: building extension "test_array_from_pyobj_ext" sources 13810s E INFO: build_src: building npy-pkg config files 13810s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13810s E !! 13810s E 13810s E ******************************************************************************** 13810s E Please avoid running ``setup.py`` directly. 13810s E Instead, use pypa/build, pypa/installer or other 13810s E standards-based tools. 13810s E 13810s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13810s E ******************************************************************************** 13810s E 13810s E !! 13810s E self.initialize_options() 13810s E INFO: customize UnixCCompiler 13810s E INFO: customize UnixCCompiler using build_ext 13810s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/tmp 13810s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/usr 13810s E creating /tmp/tmppq19o2st/usr/lib 13810s E creating /tmp/tmppq19o2st/usr/lib/python3 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=native' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-O3' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-Werror' 13810s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13810s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-vfpv4' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=armv8.2-a+fp16' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13810s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13810s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13810s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13810s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13810s E INFO: building 'test_array_from_pyobj_ext' extension 13810s E INFO: compiling C sources 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13810s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13810s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13810s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13810s E 14 | #include 13810s E | ^~~~~~~~~~ 13810s E In file included from fortranobject.c:2: 13810s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13810s E 7 | #include 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E compilation terminated. 13810s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13810s E INFO: 13810s E ########### EXT COMPILER OPTIMIZATION ########### 13810s E INFO: Platform : 13810s E Architecture: armhf 13810s E Compiler : gcc 13810s E 13810s E CPU baseline : 13810s E Requested : 'min' 13810s E Enabled : none 13810s E Flags : none 13810s E Extra checks: none 13810s E 13810s E CPU dispatch : 13810s E Requested : 'max -xop -fma4' 13810s E Enabled : none 13810s E Generated : none 13810s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13810s 13810s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13810s d = '/tmp/tmpjj8q074z' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s err = None 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s kw = {} 13810s module_name = 'test_array_from_pyobj_ext' 13810s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13810s p = 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13810s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[ULONG] ______ 13810s 13810s def setup_module(): 13810s """ 13810s Build the required testing extension module 13810s 13810s """ 13810s global wrap 13810s 13810s # Check compiler availability first 13810s if not util.has_c_compiler(): 13810s pytest.skip("No C compiler available") 13810s 13810s if wrap is None: 13810s config_code = """ 13810s config.add_extension('test_array_from_pyobj_ext', 13810s sources=['wrapmodule.c', 'fortranobject.c'], 13810s define_macros=[]) 13810s """ 13810s d = os.path.dirname(__file__) 13810s src = [ 13810s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13810s util.getpath("src", "fortranobject.c"), 13810s util.getpath("src", "fortranobject.h"), 13810s ] 13810s > wrap = util.build_module_distutils(src, config_code, 13810s "test_array_from_pyobj_ext") 13810s 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13810s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13810s memo[key] = func(*a, **kw) 13810s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13810s func = 13810s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13810s kw = {} 13810s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s 13810s @_memoize 13810s def build_module_distutils(source_files, config_code, module_name, **kw): 13810s """ 13810s Build a module via distutils and import it. 13810s 13810s """ 13810s d = get_module_dir() 13810s 13810s # Copy files 13810s dst_sources = [] 13810s for fn in source_files: 13810s if not os.path.isfile(fn): 13810s raise RuntimeError("%s is not a file" % fn) 13810s dst = os.path.join(d, os.path.basename(fn)) 13810s shutil.copyfile(fn, dst) 13810s dst_sources.append(dst) 13810s 13810s # Build script 13810s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13810s 13810s code = fr""" 13810s import os 13810s import sys 13810s sys.path = {repr(sys.path)} 13810s 13810s def configuration(parent_name='',top_path=None): 13810s from numpy.distutils.misc_util import Configuration 13810s config = Configuration('', parent_name, top_path) 13810s {config_code} 13810s return config 13810s 13810s if __name__ == "__main__": 13810s from numpy.distutils.core import setup 13810s setup(configuration=configuration) 13810s """ 13810s script = os.path.join(d, get_temp_module_name() + ".py") 13810s dst_sources.append(script) 13810s with open(script, "wb") as f: 13810s f.write(asbytes(code)) 13810s 13810s # Build 13810s cwd = os.getcwd() 13810s try: 13810s os.chdir(d) 13810s cmd = [sys.executable, script, "build_ext", "-i"] 13810s p = subprocess.Popen(cmd, 13810s stdout=subprocess.PIPE, 13810s stderr=subprocess.STDOUT) 13810s out, err = p.communicate() 13810s if p.returncode != 0: 13810s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13810s (cmd[4:], asstr(out))) 13810s E RuntimeError: Running distutils build failed: [] 13810s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13810s E 13810s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13810s E of the deprecation of `distutils` itself. It will be removed for 13810s E Python >= 3.12. For older Python versions it will remain present. 13810s E It is recommended to use `setuptools < 60.0` for those Python versions. 13810s E For more details, see: 13810s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13810s E 13810s E 13810s E from numpy.distutils.core import setup 13810s E running build_ext 13810s E running build_src 13810s E INFO: build_src 13810s E INFO: building extension "test_array_from_pyobj_ext" sources 13810s E INFO: build_src: building npy-pkg config files 13810s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13810s E !! 13810s E 13810s E ******************************************************************************** 13810s E Please avoid running ``setup.py`` directly. 13810s E Instead, use pypa/build, pypa/installer or other 13810s E standards-based tools. 13810s E 13810s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13810s E ******************************************************************************** 13810s E 13810s E !! 13810s E self.initialize_options() 13810s E INFO: customize UnixCCompiler 13810s E INFO: customize UnixCCompiler using build_ext 13810s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/tmp 13810s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/usr 13810s E creating /tmp/tmppq19o2st/usr/lib 13810s E creating /tmp/tmppq19o2st/usr/lib/python3 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=native' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-O3' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-Werror' 13810s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13810s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-vfpv4' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=armv8.2-a+fp16' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13810s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13810s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13810s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13810s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13810s E INFO: building 'test_array_from_pyobj_ext' extension 13810s E INFO: compiling C sources 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13810s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13810s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13810s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13810s E 14 | #include 13810s E | ^~~~~~~~~~ 13810s E In file included from fortranobject.c:2: 13810s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13810s E 7 | #include 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E compilation terminated. 13810s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13810s E INFO: 13810s E ########### EXT COMPILER OPTIMIZATION ########### 13810s E INFO: Platform : 13810s E Architecture: armhf 13810s E Compiler : gcc 13810s E 13810s E CPU baseline : 13810s E Requested : 'min' 13810s E Enabled : none 13810s E Flags : none 13810s E Extra checks: none 13810s E 13810s E CPU dispatch : 13810s E Requested : 'max -xop -fma4' 13810s E Enabled : none 13810s E Generated : none 13810s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13810s 13810s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13810s d = '/tmp/tmpjj8q074z' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s err = None 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s kw = {} 13810s module_name = 'test_array_from_pyobj_ext' 13810s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13810s p = 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13810s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[ULONG] ______ 13810s 13810s def setup_module(): 13810s """ 13810s Build the required testing extension module 13810s 13810s """ 13810s global wrap 13810s 13810s # Check compiler availability first 13810s if not util.has_c_compiler(): 13810s pytest.skip("No C compiler available") 13810s 13810s if wrap is None: 13810s config_code = """ 13810s config.add_extension('test_array_from_pyobj_ext', 13810s sources=['wrapmodule.c', 'fortranobject.c'], 13810s define_macros=[]) 13810s """ 13810s d = os.path.dirname(__file__) 13810s src = [ 13810s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13810s util.getpath("src", "fortranobject.c"), 13810s util.getpath("src", "fortranobject.h"), 13810s ] 13810s > wrap = util.build_module_distutils(src, config_code, 13810s "test_array_from_pyobj_ext") 13810s 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13810s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13810s memo[key] = func(*a, **kw) 13810s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13810s func = 13810s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13810s kw = {} 13810s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13810s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13810s 13810s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13810s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13810s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13810s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13810s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13810s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13810s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13810s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13810s 13810s @_memoize 13810s def build_module_distutils(source_files, config_code, module_name, **kw): 13810s """ 13810s Build a module via distutils and import it. 13810s 13810s """ 13810s d = get_module_dir() 13810s 13810s # Copy files 13810s dst_sources = [] 13810s for fn in source_files: 13810s if not os.path.isfile(fn): 13810s raise RuntimeError("%s is not a file" % fn) 13810s dst = os.path.join(d, os.path.basename(fn)) 13810s shutil.copyfile(fn, dst) 13810s dst_sources.append(dst) 13810s 13810s # Build script 13810s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13810s 13810s code = fr""" 13810s import os 13810s import sys 13810s sys.path = {repr(sys.path)} 13810s 13810s def configuration(parent_name='',top_path=None): 13810s from numpy.distutils.misc_util import Configuration 13810s config = Configuration('', parent_name, top_path) 13810s {config_code} 13810s return config 13810s 13810s if __name__ == "__main__": 13810s from numpy.distutils.core import setup 13810s setup(configuration=configuration) 13810s """ 13810s script = os.path.join(d, get_temp_module_name() + ".py") 13810s dst_sources.append(script) 13810s with open(script, "wb") as f: 13810s f.write(asbytes(code)) 13810s 13810s # Build 13810s cwd = os.getcwd() 13810s try: 13810s os.chdir(d) 13810s cmd = [sys.executable, script, "build_ext", "-i"] 13810s p = subprocess.Popen(cmd, 13810s stdout=subprocess.PIPE, 13810s stderr=subprocess.STDOUT) 13810s out, err = p.communicate() 13810s if p.returncode != 0: 13810s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13810s (cmd[4:], asstr(out))) 13810s E RuntimeError: Running distutils build failed: [] 13810s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13810s E 13810s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13810s E of the deprecation of `distutils` itself. It will be removed for 13810s E Python >= 3.12. For older Python versions it will remain present. 13810s E It is recommended to use `setuptools < 60.0` for those Python versions. 13810s E For more details, see: 13810s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13810s E 13810s E 13810s E from numpy.distutils.core import setup 13810s E running build_ext 13810s E running build_src 13810s E INFO: build_src 13810s E INFO: building extension "test_array_from_pyobj_ext" sources 13810s E INFO: build_src: building npy-pkg config files 13810s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13810s E !! 13810s E 13810s E ******************************************************************************** 13810s E Please avoid running ``setup.py`` directly. 13810s E Instead, use pypa/build, pypa/installer or other 13810s E standards-based tools. 13810s E 13810s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13810s E ******************************************************************************** 13810s E 13810s E !! 13810s E self.initialize_options() 13810s E INFO: customize UnixCCompiler 13810s E INFO: customize UnixCCompiler using build_ext 13810s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/tmp 13810s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E creating /tmp/tmppq19o2st/usr 13810s E creating /tmp/tmppq19o2st/usr/lib 13810s E creating /tmp/tmppq19o2st/usr/lib/python3 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13810s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=native' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-O3' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-Werror' 13810s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13810s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-vfpv4' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13810s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-march=armv8.2-a+fp16' 13810s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13810s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13810s E 13810s E INFO: compile options: '-I/usr/include/python3.12 -c' 13810s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13810s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13810s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13810s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13810s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13810s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13810s E 9 | # include_next 13810s E | ^~~~~~~~~~ 13810s E compilation terminated. 13810s E 13810s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13810s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13811s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13811s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13811s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13811s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13811s E INFO: building 'test_array_from_pyobj_ext' extension 13811s E INFO: compiling C sources 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13811s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13811s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13811s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13811s E 14 | #include 13811s E | ^~~~~~~~~~ 13811s E In file included from fortranobject.c:2: 13811s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13811s E 7 | #include 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E compilation terminated. 13811s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13811s E INFO: 13811s E ########### EXT COMPILER OPTIMIZATION ########### 13811s E INFO: Platform : 13811s E Architecture: armhf 13811s E Compiler : gcc 13811s E 13811s E CPU baseline : 13811s E Requested : 'min' 13811s E Enabled : none 13811s E Flags : none 13811s E Extra checks: none 13811s E 13811s E CPU dispatch : 13811s E Requested : 'max -xop -fma4' 13811s E Enabled : none 13811s E Generated : none 13811s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13811s 13811s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13811s d = '/tmp/tmpjj8q074z' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s err = None 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s kw = {} 13811s module_name = 'test_array_from_pyobj_ext' 13811s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13811s p = 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13811s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[ULONG] ___ 13811s 13811s def setup_module(): 13811s """ 13811s Build the required testing extension module 13811s 13811s """ 13811s global wrap 13811s 13811s # Check compiler availability first 13811s if not util.has_c_compiler(): 13811s pytest.skip("No C compiler available") 13811s 13811s if wrap is None: 13811s config_code = """ 13811s config.add_extension('test_array_from_pyobj_ext', 13811s sources=['wrapmodule.c', 'fortranobject.c'], 13811s define_macros=[]) 13811s """ 13811s d = os.path.dirname(__file__) 13811s src = [ 13811s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13811s util.getpath("src", "fortranobject.c"), 13811s util.getpath("src", "fortranobject.h"), 13811s ] 13811s > wrap = util.build_module_distutils(src, config_code, 13811s "test_array_from_pyobj_ext") 13811s 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13811s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13811s memo[key] = func(*a, **kw) 13811s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13811s func = 13811s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13811s kw = {} 13811s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s 13811s @_memoize 13811s def build_module_distutils(source_files, config_code, module_name, **kw): 13811s """ 13811s Build a module via distutils and import it. 13811s 13811s """ 13811s d = get_module_dir() 13811s 13811s # Copy files 13811s dst_sources = [] 13811s for fn in source_files: 13811s if not os.path.isfile(fn): 13811s raise RuntimeError("%s is not a file" % fn) 13811s dst = os.path.join(d, os.path.basename(fn)) 13811s shutil.copyfile(fn, dst) 13811s dst_sources.append(dst) 13811s 13811s # Build script 13811s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13811s 13811s code = fr""" 13811s import os 13811s import sys 13811s sys.path = {repr(sys.path)} 13811s 13811s def configuration(parent_name='',top_path=None): 13811s from numpy.distutils.misc_util import Configuration 13811s config = Configuration('', parent_name, top_path) 13811s {config_code} 13811s return config 13811s 13811s if __name__ == "__main__": 13811s from numpy.distutils.core import setup 13811s setup(configuration=configuration) 13811s """ 13811s script = os.path.join(d, get_temp_module_name() + ".py") 13811s dst_sources.append(script) 13811s with open(script, "wb") as f: 13811s f.write(asbytes(code)) 13811s 13811s # Build 13811s cwd = os.getcwd() 13811s try: 13811s os.chdir(d) 13811s cmd = [sys.executable, script, "build_ext", "-i"] 13811s p = subprocess.Popen(cmd, 13811s stdout=subprocess.PIPE, 13811s stderr=subprocess.STDOUT) 13811s out, err = p.communicate() 13811s if p.returncode != 0: 13811s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13811s (cmd[4:], asstr(out))) 13811s E RuntimeError: Running distutils build failed: [] 13811s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13811s E 13811s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13811s E of the deprecation of `distutils` itself. It will be removed for 13811s E Python >= 3.12. For older Python versions it will remain present. 13811s E It is recommended to use `setuptools < 60.0` for those Python versions. 13811s E For more details, see: 13811s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13811s E 13811s E 13811s E from numpy.distutils.core import setup 13811s E running build_ext 13811s E running build_src 13811s E INFO: build_src 13811s E INFO: building extension "test_array_from_pyobj_ext" sources 13811s E INFO: build_src: building npy-pkg config files 13811s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13811s E !! 13811s E 13811s E ******************************************************************************** 13811s E Please avoid running ``setup.py`` directly. 13811s E Instead, use pypa/build, pypa/installer or other 13811s E standards-based tools. 13811s E 13811s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13811s E ******************************************************************************** 13811s E 13811s E !! 13811s E self.initialize_options() 13811s E INFO: customize UnixCCompiler 13811s E INFO: customize UnixCCompiler using build_ext 13811s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/tmp 13811s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/usr 13811s E creating /tmp/tmppq19o2st/usr/lib 13811s E creating /tmp/tmppq19o2st/usr/lib/python3 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=native' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-O3' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-Werror' 13811s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13811s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-vfpv4' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=armv8.2-a+fp16' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13811s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13811s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13811s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13811s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13811s E INFO: building 'test_array_from_pyobj_ext' extension 13811s E INFO: compiling C sources 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13811s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13811s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13811s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13811s E 14 | #include 13811s E | ^~~~~~~~~~ 13811s E In file included from fortranobject.c:2: 13811s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13811s E 7 | #include 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E compilation terminated. 13811s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13811s E INFO: 13811s E ########### EXT COMPILER OPTIMIZATION ########### 13811s E INFO: Platform : 13811s E Architecture: armhf 13811s E Compiler : gcc 13811s E 13811s E CPU baseline : 13811s E Requested : 'min' 13811s E Enabled : none 13811s E Flags : none 13811s E Extra checks: none 13811s E 13811s E CPU dispatch : 13811s E Requested : 'max -xop -fma4' 13811s E Enabled : none 13811s E Generated : none 13811s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13811s 13811s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13811s d = '/tmp/tmpjj8q074z' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s err = None 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s kw = {} 13811s module_name = 'test_array_from_pyobj_ext' 13811s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13811s p = 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13811s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[ULONG] ___ 13811s 13811s def setup_module(): 13811s """ 13811s Build the required testing extension module 13811s 13811s """ 13811s global wrap 13811s 13811s # Check compiler availability first 13811s if not util.has_c_compiler(): 13811s pytest.skip("No C compiler available") 13811s 13811s if wrap is None: 13811s config_code = """ 13811s config.add_extension('test_array_from_pyobj_ext', 13811s sources=['wrapmodule.c', 'fortranobject.c'], 13811s define_macros=[]) 13811s """ 13811s d = os.path.dirname(__file__) 13811s src = [ 13811s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13811s util.getpath("src", "fortranobject.c"), 13811s util.getpath("src", "fortranobject.h"), 13811s ] 13811s > wrap = util.build_module_distutils(src, config_code, 13811s "test_array_from_pyobj_ext") 13811s 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13811s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13811s memo[key] = func(*a, **kw) 13811s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13811s func = 13811s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13811s kw = {} 13811s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s 13811s @_memoize 13811s def build_module_distutils(source_files, config_code, module_name, **kw): 13811s """ 13811s Build a module via distutils and import it. 13811s 13811s """ 13811s d = get_module_dir() 13811s 13811s # Copy files 13811s dst_sources = [] 13811s for fn in source_files: 13811s if not os.path.isfile(fn): 13811s raise RuntimeError("%s is not a file" % fn) 13811s dst = os.path.join(d, os.path.basename(fn)) 13811s shutil.copyfile(fn, dst) 13811s dst_sources.append(dst) 13811s 13811s # Build script 13811s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13811s 13811s code = fr""" 13811s import os 13811s import sys 13811s sys.path = {repr(sys.path)} 13811s 13811s def configuration(parent_name='',top_path=None): 13811s from numpy.distutils.misc_util import Configuration 13811s config = Configuration('', parent_name, top_path) 13811s {config_code} 13811s return config 13811s 13811s if __name__ == "__main__": 13811s from numpy.distutils.core import setup 13811s setup(configuration=configuration) 13811s """ 13811s script = os.path.join(d, get_temp_module_name() + ".py") 13811s dst_sources.append(script) 13811s with open(script, "wb") as f: 13811s f.write(asbytes(code)) 13811s 13811s # Build 13811s cwd = os.getcwd() 13811s try: 13811s os.chdir(d) 13811s cmd = [sys.executable, script, "build_ext", "-i"] 13811s p = subprocess.Popen(cmd, 13811s stdout=subprocess.PIPE, 13811s stderr=subprocess.STDOUT) 13811s out, err = p.communicate() 13811s if p.returncode != 0: 13811s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13811s (cmd[4:], asstr(out))) 13811s E RuntimeError: Running distutils build failed: [] 13811s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13811s E 13811s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13811s E of the deprecation of `distutils` itself. It will be removed for 13811s E Python >= 3.12. For older Python versions it will remain present. 13811s E It is recommended to use `setuptools < 60.0` for those Python versions. 13811s E For more details, see: 13811s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13811s E 13811s E 13811s E from numpy.distutils.core import setup 13811s E running build_ext 13811s E running build_src 13811s E INFO: build_src 13811s E INFO: building extension "test_array_from_pyobj_ext" sources 13811s E INFO: build_src: building npy-pkg config files 13811s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13811s E !! 13811s E 13811s E ******************************************************************************** 13811s E Please avoid running ``setup.py`` directly. 13811s E Instead, use pypa/build, pypa/installer or other 13811s E standards-based tools. 13811s E 13811s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13811s E ******************************************************************************** 13811s E 13811s E !! 13811s E self.initialize_options() 13811s E INFO: customize UnixCCompiler 13811s E INFO: customize UnixCCompiler using build_ext 13811s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/tmp 13811s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/usr 13811s E creating /tmp/tmppq19o2st/usr/lib 13811s E creating /tmp/tmppq19o2st/usr/lib/python3 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=native' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-O3' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-Werror' 13811s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13811s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-vfpv4' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=armv8.2-a+fp16' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13811s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13811s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13811s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13811s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13811s E INFO: building 'test_array_from_pyobj_ext' extension 13811s E INFO: compiling C sources 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13811s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13811s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13811s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13811s E 14 | #include 13811s E | ^~~~~~~~~~ 13811s E In file included from fortranobject.c:2: 13811s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13811s E 7 | #include 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E compilation terminated. 13811s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13811s E INFO: 13811s E ########### EXT COMPILER OPTIMIZATION ########### 13811s E INFO: Platform : 13811s E Architecture: armhf 13811s E Compiler : gcc 13811s E 13811s E CPU baseline : 13811s E Requested : 'min' 13811s E Enabled : none 13811s E Flags : none 13811s E Extra checks: none 13811s E 13811s E CPU dispatch : 13811s E Requested : 'max -xop -fma4' 13811s E Enabled : none 13811s E Generated : none 13811s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13811s 13811s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13811s d = '/tmp/tmpjj8q074z' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s err = None 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s kw = {} 13811s module_name = 'test_array_from_pyobj_ext' 13811s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13811s p = 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13811s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[ULONG] ____ 13811s 13811s def setup_module(): 13811s """ 13811s Build the required testing extension module 13811s 13811s """ 13811s global wrap 13811s 13811s # Check compiler availability first 13811s if not util.has_c_compiler(): 13811s pytest.skip("No C compiler available") 13811s 13811s if wrap is None: 13811s config_code = """ 13811s config.add_extension('test_array_from_pyobj_ext', 13811s sources=['wrapmodule.c', 'fortranobject.c'], 13811s define_macros=[]) 13811s """ 13811s d = os.path.dirname(__file__) 13811s src = [ 13811s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13811s util.getpath("src", "fortranobject.c"), 13811s util.getpath("src", "fortranobject.h"), 13811s ] 13811s > wrap = util.build_module_distutils(src, config_code, 13811s "test_array_from_pyobj_ext") 13811s 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13811s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13811s memo[key] = func(*a, **kw) 13811s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13811s func = 13811s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13811s kw = {} 13811s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s 13811s @_memoize 13811s def build_module_distutils(source_files, config_code, module_name, **kw): 13811s """ 13811s Build a module via distutils and import it. 13811s 13811s """ 13811s d = get_module_dir() 13811s 13811s # Copy files 13811s dst_sources = [] 13811s for fn in source_files: 13811s if not os.path.isfile(fn): 13811s raise RuntimeError("%s is not a file" % fn) 13811s dst = os.path.join(d, os.path.basename(fn)) 13811s shutil.copyfile(fn, dst) 13811s dst_sources.append(dst) 13811s 13811s # Build script 13811s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13811s 13811s code = fr""" 13811s import os 13811s import sys 13811s sys.path = {repr(sys.path)} 13811s 13811s def configuration(parent_name='',top_path=None): 13811s from numpy.distutils.misc_util import Configuration 13811s config = Configuration('', parent_name, top_path) 13811s {config_code} 13811s return config 13811s 13811s if __name__ == "__main__": 13811s from numpy.distutils.core import setup 13811s setup(configuration=configuration) 13811s """ 13811s script = os.path.join(d, get_temp_module_name() + ".py") 13811s dst_sources.append(script) 13811s with open(script, "wb") as f: 13811s f.write(asbytes(code)) 13811s 13811s # Build 13811s cwd = os.getcwd() 13811s try: 13811s os.chdir(d) 13811s cmd = [sys.executable, script, "build_ext", "-i"] 13811s p = subprocess.Popen(cmd, 13811s stdout=subprocess.PIPE, 13811s stderr=subprocess.STDOUT) 13811s out, err = p.communicate() 13811s if p.returncode != 0: 13811s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13811s (cmd[4:], asstr(out))) 13811s E RuntimeError: Running distutils build failed: [] 13811s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13811s E 13811s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13811s E of the deprecation of `distutils` itself. It will be removed for 13811s E Python >= 3.12. For older Python versions it will remain present. 13811s E It is recommended to use `setuptools < 60.0` for those Python versions. 13811s E For more details, see: 13811s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13811s E 13811s E 13811s E from numpy.distutils.core import setup 13811s E running build_ext 13811s E running build_src 13811s E INFO: build_src 13811s E INFO: building extension "test_array_from_pyobj_ext" sources 13811s E INFO: build_src: building npy-pkg config files 13811s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13811s E !! 13811s E 13811s E ******************************************************************************** 13811s E Please avoid running ``setup.py`` directly. 13811s E Instead, use pypa/build, pypa/installer or other 13811s E standards-based tools. 13811s E 13811s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13811s E ******************************************************************************** 13811s E 13811s E !! 13811s E self.initialize_options() 13811s E INFO: customize UnixCCompiler 13811s E INFO: customize UnixCCompiler using build_ext 13811s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/tmp 13811s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/usr 13811s E creating /tmp/tmppq19o2st/usr/lib 13811s E creating /tmp/tmppq19o2st/usr/lib/python3 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=native' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-O3' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-Werror' 13811s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13811s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-vfpv4' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=armv8.2-a+fp16' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13811s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13811s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13811s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13811s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13811s E INFO: building 'test_array_from_pyobj_ext' extension 13811s E INFO: compiling C sources 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13811s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13811s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13811s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13811s E 14 | #include 13811s E | ^~~~~~~~~~ 13811s E In file included from fortranobject.c:2: 13811s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13811s E 7 | #include 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E compilation terminated. 13811s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13811s E INFO: 13811s E ########### EXT COMPILER OPTIMIZATION ########### 13811s E INFO: Platform : 13811s E Architecture: armhf 13811s E Compiler : gcc 13811s E 13811s E CPU baseline : 13811s E Requested : 'min' 13811s E Enabled : none 13811s E Flags : none 13811s E Extra checks: none 13811s E 13811s E CPU dispatch : 13811s E Requested : 'max -xop -fma4' 13811s E Enabled : none 13811s E Generated : none 13811s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13811s 13811s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13811s d = '/tmp/tmpjj8q074z' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s err = None 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s kw = {} 13811s module_name = 'test_array_from_pyobj_ext' 13811s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13811s p = 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13811s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[ULONG] _ 13811s 13811s def setup_module(): 13811s """ 13811s Build the required testing extension module 13811s 13811s """ 13811s global wrap 13811s 13811s # Check compiler availability first 13811s if not util.has_c_compiler(): 13811s pytest.skip("No C compiler available") 13811s 13811s if wrap is None: 13811s config_code = """ 13811s config.add_extension('test_array_from_pyobj_ext', 13811s sources=['wrapmodule.c', 'fortranobject.c'], 13811s define_macros=[]) 13811s """ 13811s d = os.path.dirname(__file__) 13811s src = [ 13811s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13811s util.getpath("src", "fortranobject.c"), 13811s util.getpath("src", "fortranobject.h"), 13811s ] 13811s > wrap = util.build_module_distutils(src, config_code, 13811s "test_array_from_pyobj_ext") 13811s 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13811s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13811s memo[key] = func(*a, **kw) 13811s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13811s func = 13811s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13811s kw = {} 13811s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s 13811s @_memoize 13811s def build_module_distutils(source_files, config_code, module_name, **kw): 13811s """ 13811s Build a module via distutils and import it. 13811s 13811s """ 13811s d = get_module_dir() 13811s 13811s # Copy files 13811s dst_sources = [] 13811s for fn in source_files: 13811s if not os.path.isfile(fn): 13811s raise RuntimeError("%s is not a file" % fn) 13811s dst = os.path.join(d, os.path.basename(fn)) 13811s shutil.copyfile(fn, dst) 13811s dst_sources.append(dst) 13811s 13811s # Build script 13811s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13811s 13811s code = fr""" 13811s import os 13811s import sys 13811s sys.path = {repr(sys.path)} 13811s 13811s def configuration(parent_name='',top_path=None): 13811s from numpy.distutils.misc_util import Configuration 13811s config = Configuration('', parent_name, top_path) 13811s {config_code} 13811s return config 13811s 13811s if __name__ == "__main__": 13811s from numpy.distutils.core import setup 13811s setup(configuration=configuration) 13811s """ 13811s script = os.path.join(d, get_temp_module_name() + ".py") 13811s dst_sources.append(script) 13811s with open(script, "wb") as f: 13811s f.write(asbytes(code)) 13811s 13811s # Build 13811s cwd = os.getcwd() 13811s try: 13811s os.chdir(d) 13811s cmd = [sys.executable, script, "build_ext", "-i"] 13811s p = subprocess.Popen(cmd, 13811s stdout=subprocess.PIPE, 13811s stderr=subprocess.STDOUT) 13811s out, err = p.communicate() 13811s if p.returncode != 0: 13811s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13811s (cmd[4:], asstr(out))) 13811s E RuntimeError: Running distutils build failed: [] 13811s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13811s E 13811s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13811s E of the deprecation of `distutils` itself. It will be removed for 13811s E Python >= 3.12. For older Python versions it will remain present. 13811s E It is recommended to use `setuptools < 60.0` for those Python versions. 13811s E For more details, see: 13811s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13811s E 13811s E 13811s E from numpy.distutils.core import setup 13811s E running build_ext 13811s E running build_src 13811s E INFO: build_src 13811s E INFO: building extension "test_array_from_pyobj_ext" sources 13811s E INFO: build_src: building npy-pkg config files 13811s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13811s E !! 13811s E 13811s E ******************************************************************************** 13811s E Please avoid running ``setup.py`` directly. 13811s E Instead, use pypa/build, pypa/installer or other 13811s E standards-based tools. 13811s E 13811s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13811s E ******************************************************************************** 13811s E 13811s E !! 13811s E self.initialize_options() 13811s E INFO: customize UnixCCompiler 13811s E INFO: customize UnixCCompiler using build_ext 13811s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/tmp 13811s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/usr 13811s E creating /tmp/tmppq19o2st/usr/lib 13811s E creating /tmp/tmppq19o2st/usr/lib/python3 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=native' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-O3' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-Werror' 13811s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13811s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-vfpv4' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=armv8.2-a+fp16' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13811s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13811s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13811s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13811s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13811s E INFO: building 'test_array_from_pyobj_ext' extension 13811s E INFO: compiling C sources 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13811s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13811s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13811s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13811s E 14 | #include 13811s E | ^~~~~~~~~~ 13811s E In file included from fortranobject.c:2: 13811s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13811s E 7 | #include 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E compilation terminated. 13811s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13811s E INFO: 13811s E ########### EXT COMPILER OPTIMIZATION ########### 13811s E INFO: Platform : 13811s E Architecture: armhf 13811s E Compiler : gcc 13811s E 13811s E CPU baseline : 13811s E Requested : 'min' 13811s E Enabled : none 13811s E Flags : none 13811s E Extra checks: none 13811s E 13811s E CPU dispatch : 13811s E Requested : 'max -xop -fma4' 13811s E Enabled : none 13811s E Generated : none 13811s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13811s 13811s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13811s d = '/tmp/tmpjj8q074z' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s err = None 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s kw = {} 13811s module_name = 'test_array_from_pyobj_ext' 13811s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13811s p = 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13811s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[ULONG] __________ 13811s 13811s def setup_module(): 13811s """ 13811s Build the required testing extension module 13811s 13811s """ 13811s global wrap 13811s 13811s # Check compiler availability first 13811s if not util.has_c_compiler(): 13811s pytest.skip("No C compiler available") 13811s 13811s if wrap is None: 13811s config_code = """ 13811s config.add_extension('test_array_from_pyobj_ext', 13811s sources=['wrapmodule.c', 'fortranobject.c'], 13811s define_macros=[]) 13811s """ 13811s d = os.path.dirname(__file__) 13811s src = [ 13811s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13811s util.getpath("src", "fortranobject.c"), 13811s util.getpath("src", "fortranobject.h"), 13811s ] 13811s > wrap = util.build_module_distutils(src, config_code, 13811s "test_array_from_pyobj_ext") 13811s 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13811s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13811s memo[key] = func(*a, **kw) 13811s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13811s func = 13811s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13811s kw = {} 13811s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s 13811s @_memoize 13811s def build_module_distutils(source_files, config_code, module_name, **kw): 13811s """ 13811s Build a module via distutils and import it. 13811s 13811s """ 13811s d = get_module_dir() 13811s 13811s # Copy files 13811s dst_sources = [] 13811s for fn in source_files: 13811s if not os.path.isfile(fn): 13811s raise RuntimeError("%s is not a file" % fn) 13811s dst = os.path.join(d, os.path.basename(fn)) 13811s shutil.copyfile(fn, dst) 13811s dst_sources.append(dst) 13811s 13811s # Build script 13811s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13811s 13811s code = fr""" 13811s import os 13811s import sys 13811s sys.path = {repr(sys.path)} 13811s 13811s def configuration(parent_name='',top_path=None): 13811s from numpy.distutils.misc_util import Configuration 13811s config = Configuration('', parent_name, top_path) 13811s {config_code} 13811s return config 13811s 13811s if __name__ == "__main__": 13811s from numpy.distutils.core import setup 13811s setup(configuration=configuration) 13811s """ 13811s script = os.path.join(d, get_temp_module_name() + ".py") 13811s dst_sources.append(script) 13811s with open(script, "wb") as f: 13811s f.write(asbytes(code)) 13811s 13811s # Build 13811s cwd = os.getcwd() 13811s try: 13811s os.chdir(d) 13811s cmd = [sys.executable, script, "build_ext", "-i"] 13811s p = subprocess.Popen(cmd, 13811s stdout=subprocess.PIPE, 13811s stderr=subprocess.STDOUT) 13811s out, err = p.communicate() 13811s if p.returncode != 0: 13811s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13811s (cmd[4:], asstr(out))) 13811s E RuntimeError: Running distutils build failed: [] 13811s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13811s E 13811s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13811s E of the deprecation of `distutils` itself. It will be removed for 13811s E Python >= 3.12. For older Python versions it will remain present. 13811s E It is recommended to use `setuptools < 60.0` for those Python versions. 13811s E For more details, see: 13811s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13811s E 13811s E 13811s E from numpy.distutils.core import setup 13811s E running build_ext 13811s E running build_src 13811s E INFO: build_src 13811s E INFO: building extension "test_array_from_pyobj_ext" sources 13811s E INFO: build_src: building npy-pkg config files 13811s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13811s E !! 13811s E 13811s E ******************************************************************************** 13811s E Please avoid running ``setup.py`` directly. 13811s E Instead, use pypa/build, pypa/installer or other 13811s E standards-based tools. 13811s E 13811s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13811s E ******************************************************************************** 13811s E 13811s E !! 13811s E self.initialize_options() 13811s E INFO: customize UnixCCompiler 13811s E INFO: customize UnixCCompiler using build_ext 13811s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/tmp 13811s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/usr 13811s E creating /tmp/tmppq19o2st/usr/lib 13811s E creating /tmp/tmppq19o2st/usr/lib/python3 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=native' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-O3' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-Werror' 13811s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13811s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-vfpv4' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=armv8.2-a+fp16' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13811s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13811s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13811s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13811s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13811s E INFO: building 'test_array_from_pyobj_ext' extension 13811s E INFO: compiling C sources 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13811s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13811s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13811s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13811s E 14 | #include 13811s E | ^~~~~~~~~~ 13811s E In file included from fortranobject.c:2: 13811s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13811s E 7 | #include 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E compilation terminated. 13811s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13811s E INFO: 13811s E ########### EXT COMPILER OPTIMIZATION ########### 13811s E INFO: Platform : 13811s E Architecture: armhf 13811s E Compiler : gcc 13811s E 13811s E CPU baseline : 13811s E Requested : 'min' 13811s E Enabled : none 13811s E Flags : none 13811s E Extra checks: none 13811s E 13811s E CPU dispatch : 13811s E Requested : 'max -xop -fma4' 13811s E Enabled : none 13811s E Generated : none 13811s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13811s 13811s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13811s d = '/tmp/tmpjj8q074z' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s err = None 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s kw = {} 13811s module_name = 'test_array_from_pyobj_ext' 13811s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13811s p = 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13811s ____________ ERROR at setup of TestSharedMemory.test_hidden[ULONG] _____________ 13811s 13811s def setup_module(): 13811s """ 13811s Build the required testing extension module 13811s 13811s """ 13811s global wrap 13811s 13811s # Check compiler availability first 13811s if not util.has_c_compiler(): 13811s pytest.skip("No C compiler available") 13811s 13811s if wrap is None: 13811s config_code = """ 13811s config.add_extension('test_array_from_pyobj_ext', 13811s sources=['wrapmodule.c', 'fortranobject.c'], 13811s define_macros=[]) 13811s """ 13811s d = os.path.dirname(__file__) 13811s src = [ 13811s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13811s util.getpath("src", "fortranobject.c"), 13811s util.getpath("src", "fortranobject.h"), 13811s ] 13811s > wrap = util.build_module_distutils(src, config_code, 13811s "test_array_from_pyobj_ext") 13811s 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13811s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13811s memo[key] = func(*a, **kw) 13811s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13811s func = 13811s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13811s kw = {} 13811s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s 13811s @_memoize 13811s def build_module_distutils(source_files, config_code, module_name, **kw): 13811s """ 13811s Build a module via distutils and import it. 13811s 13811s """ 13811s d = get_module_dir() 13811s 13811s # Copy files 13811s dst_sources = [] 13811s for fn in source_files: 13811s if not os.path.isfile(fn): 13811s raise RuntimeError("%s is not a file" % fn) 13811s dst = os.path.join(d, os.path.basename(fn)) 13811s shutil.copyfile(fn, dst) 13811s dst_sources.append(dst) 13811s 13811s # Build script 13811s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13811s 13811s code = fr""" 13811s import os 13811s import sys 13811s sys.path = {repr(sys.path)} 13811s 13811s def configuration(parent_name='',top_path=None): 13811s from numpy.distutils.misc_util import Configuration 13811s config = Configuration('', parent_name, top_path) 13811s {config_code} 13811s return config 13811s 13811s if __name__ == "__main__": 13811s from numpy.distutils.core import setup 13811s setup(configuration=configuration) 13811s """ 13811s script = os.path.join(d, get_temp_module_name() + ".py") 13811s dst_sources.append(script) 13811s with open(script, "wb") as f: 13811s f.write(asbytes(code)) 13811s 13811s # Build 13811s cwd = os.getcwd() 13811s try: 13811s os.chdir(d) 13811s cmd = [sys.executable, script, "build_ext", "-i"] 13811s p = subprocess.Popen(cmd, 13811s stdout=subprocess.PIPE, 13811s stderr=subprocess.STDOUT) 13811s out, err = p.communicate() 13811s if p.returncode != 0: 13811s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13811s (cmd[4:], asstr(out))) 13811s E RuntimeError: Running distutils build failed: [] 13811s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13811s E 13811s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13811s E of the deprecation of `distutils` itself. It will be removed for 13811s E Python >= 3.12. For older Python versions it will remain present. 13811s E It is recommended to use `setuptools < 60.0` for those Python versions. 13811s E For more details, see: 13811s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13811s E 13811s E 13811s E from numpy.distutils.core import setup 13811s E running build_ext 13811s E running build_src 13811s E INFO: build_src 13811s E INFO: building extension "test_array_from_pyobj_ext" sources 13811s E INFO: build_src: building npy-pkg config files 13811s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13811s E !! 13811s E 13811s E ******************************************************************************** 13811s E Please avoid running ``setup.py`` directly. 13811s E Instead, use pypa/build, pypa/installer or other 13811s E standards-based tools. 13811s E 13811s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13811s E ******************************************************************************** 13811s E 13811s E !! 13811s E self.initialize_options() 13811s E INFO: customize UnixCCompiler 13811s E INFO: customize UnixCCompiler using build_ext 13811s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/tmp 13811s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E creating /tmp/tmppq19o2st/usr 13811s E creating /tmp/tmppq19o2st/usr/lib 13811s E creating /tmp/tmppq19o2st/usr/lib/python3 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13811s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=native' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-O3' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-Werror' 13811s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13811s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-vfpv4' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13811s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-march=armv8.2-a+fp16' 13811s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/include/python3.12 -c' 13811s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13811s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13811s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13811s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13811s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13811s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13811s E 9 | # include_next 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E 13811s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13811s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13811s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13811s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13811s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13811s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13811s E INFO: building 'test_array_from_pyobj_ext' extension 13811s E INFO: compiling C sources 13811s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13811s E 13811s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13811s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13811s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13811s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13811s E 14 | #include 13811s E | ^~~~~~~~~~ 13811s E In file included from fortranobject.c:2: 13811s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13811s E 7 | #include 13811s E | ^~~~~~~~~~ 13811s E compilation terminated. 13811s E compilation terminated. 13811s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13811s E INFO: 13811s E ########### EXT COMPILER OPTIMIZATION ########### 13811s E INFO: Platform : 13811s E Architecture: armhf 13811s E Compiler : gcc 13811s E 13811s E CPU baseline : 13811s E Requested : 'min' 13811s E Enabled : none 13811s E Flags : none 13811s E Extra checks: none 13811s E 13811s E CPU dispatch : 13811s E Requested : 'max -xop -fma4' 13811s E Enabled : none 13811s E Generated : none 13811s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13811s 13811s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13811s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13811s d = '/tmp/tmpjj8q074z' 13811s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13811s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13811s err = None 13811s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13811s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s kw = {} 13811s module_name = 'test_array_from_pyobj_ext' 13811s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13811s p = 13811s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13811s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13811s _________ ERROR at setup of TestSharedMemory.test_optional_none[ULONG] _________ 13811s 13811s def setup_module(): 13811s """ 13811s Build the required testing extension module 13811s 13811s """ 13811s global wrap 13811s 13811s # Check compiler availability first 13811s if not util.has_c_compiler(): 13811s pytest.skip("No C compiler available") 13811s 13811s if wrap is None: 13811s config_code = """ 13811s config.add_extension('test_array_from_pyobj_ext', 13811s sources=['wrapmodule.c', 'fortranobject.c'], 13811s define_macros=[]) 13811s """ 13811s d = os.path.dirname(__file__) 13811s src = [ 13811s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13811s util.getpath("src", "fortranobject.c"), 13811s util.getpath("src", "fortranobject.h"), 13811s ] 13811s > wrap = util.build_module_distutils(src, config_code, 13811s "test_array_from_pyobj_ext") 13811s 13811s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13811s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13811s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13811s 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13811s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13811s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13811s memo[key] = func(*a, **kw) 13811s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13811s func = 13812s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13812s kw = {} 13812s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s 13812s @_memoize 13812s def build_module_distutils(source_files, config_code, module_name, **kw): 13812s """ 13812s Build a module via distutils and import it. 13812s 13812s """ 13812s d = get_module_dir() 13812s 13812s # Copy files 13812s dst_sources = [] 13812s for fn in source_files: 13812s if not os.path.isfile(fn): 13812s raise RuntimeError("%s is not a file" % fn) 13812s dst = os.path.join(d, os.path.basename(fn)) 13812s shutil.copyfile(fn, dst) 13812s dst_sources.append(dst) 13812s 13812s # Build script 13812s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13812s 13812s code = fr""" 13812s import os 13812s import sys 13812s sys.path = {repr(sys.path)} 13812s 13812s def configuration(parent_name='',top_path=None): 13812s from numpy.distutils.misc_util import Configuration 13812s config = Configuration('', parent_name, top_path) 13812s {config_code} 13812s return config 13812s 13812s if __name__ == "__main__": 13812s from numpy.distutils.core import setup 13812s setup(configuration=configuration) 13812s """ 13812s script = os.path.join(d, get_temp_module_name() + ".py") 13812s dst_sources.append(script) 13812s with open(script, "wb") as f: 13812s f.write(asbytes(code)) 13812s 13812s # Build 13812s cwd = os.getcwd() 13812s try: 13812s os.chdir(d) 13812s cmd = [sys.executable, script, "build_ext", "-i"] 13812s p = subprocess.Popen(cmd, 13812s stdout=subprocess.PIPE, 13812s stderr=subprocess.STDOUT) 13812s out, err = p.communicate() 13812s if p.returncode != 0: 13812s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13812s (cmd[4:], asstr(out))) 13812s E RuntimeError: Running distutils build failed: [] 13812s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13812s E 13812s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13812s E of the deprecation of `distutils` itself. It will be removed for 13812s E Python >= 3.12. For older Python versions it will remain present. 13812s E It is recommended to use `setuptools < 60.0` for those Python versions. 13812s E For more details, see: 13812s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13812s E 13812s E 13812s E from numpy.distutils.core import setup 13812s E running build_ext 13812s E running build_src 13812s E INFO: build_src 13812s E INFO: building extension "test_array_from_pyobj_ext" sources 13812s E INFO: build_src: building npy-pkg config files 13812s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13812s E !! 13812s E 13812s E ******************************************************************************** 13812s E Please avoid running ``setup.py`` directly. 13812s E Instead, use pypa/build, pypa/installer or other 13812s E standards-based tools. 13812s E 13812s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13812s E ******************************************************************************** 13812s E 13812s E !! 13812s E self.initialize_options() 13812s E INFO: customize UnixCCompiler 13812s E INFO: customize UnixCCompiler using build_ext 13812s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/tmp 13812s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/usr 13812s E creating /tmp/tmppq19o2st/usr/lib 13812s E creating /tmp/tmppq19o2st/usr/lib/python3 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=native' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-O3' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-Werror' 13812s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13812s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-vfpv4' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=armv8.2-a+fp16' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13812s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13812s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13812s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13812s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13812s E INFO: building 'test_array_from_pyobj_ext' extension 13812s E INFO: compiling C sources 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13812s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13812s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13812s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13812s E 14 | #include 13812s E | ^~~~~~~~~~ 13812s E In file included from fortranobject.c:2: 13812s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13812s E 7 | #include 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E compilation terminated. 13812s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13812s E INFO: 13812s E ########### EXT COMPILER OPTIMIZATION ########### 13812s E INFO: Platform : 13812s E Architecture: armhf 13812s E Compiler : gcc 13812s E 13812s E CPU baseline : 13812s E Requested : 'min' 13812s E Enabled : none 13812s E Flags : none 13812s E Extra checks: none 13812s E 13812s E CPU dispatch : 13812s E Requested : 'max -xop -fma4' 13812s E Enabled : none 13812s E Generated : none 13812s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13812s 13812s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13812s d = '/tmp/tmpjj8q074z' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s err = None 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s kw = {} 13812s module_name = 'test_array_from_pyobj_ext' 13812s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13812s p = 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13812s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[ULONG] _______ 13812s 13812s def setup_module(): 13812s """ 13812s Build the required testing extension module 13812s 13812s """ 13812s global wrap 13812s 13812s # Check compiler availability first 13812s if not util.has_c_compiler(): 13812s pytest.skip("No C compiler available") 13812s 13812s if wrap is None: 13812s config_code = """ 13812s config.add_extension('test_array_from_pyobj_ext', 13812s sources=['wrapmodule.c', 'fortranobject.c'], 13812s define_macros=[]) 13812s """ 13812s d = os.path.dirname(__file__) 13812s src = [ 13812s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13812s util.getpath("src", "fortranobject.c"), 13812s util.getpath("src", "fortranobject.h"), 13812s ] 13812s > wrap = util.build_module_distutils(src, config_code, 13812s "test_array_from_pyobj_ext") 13812s 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13812s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13812s memo[key] = func(*a, **kw) 13812s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13812s func = 13812s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13812s kw = {} 13812s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s 13812s @_memoize 13812s def build_module_distutils(source_files, config_code, module_name, **kw): 13812s """ 13812s Build a module via distutils and import it. 13812s 13812s """ 13812s d = get_module_dir() 13812s 13812s # Copy files 13812s dst_sources = [] 13812s for fn in source_files: 13812s if not os.path.isfile(fn): 13812s raise RuntimeError("%s is not a file" % fn) 13812s dst = os.path.join(d, os.path.basename(fn)) 13812s shutil.copyfile(fn, dst) 13812s dst_sources.append(dst) 13812s 13812s # Build script 13812s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13812s 13812s code = fr""" 13812s import os 13812s import sys 13812s sys.path = {repr(sys.path)} 13812s 13812s def configuration(parent_name='',top_path=None): 13812s from numpy.distutils.misc_util import Configuration 13812s config = Configuration('', parent_name, top_path) 13812s {config_code} 13812s return config 13812s 13812s if __name__ == "__main__": 13812s from numpy.distutils.core import setup 13812s setup(configuration=configuration) 13812s """ 13812s script = os.path.join(d, get_temp_module_name() + ".py") 13812s dst_sources.append(script) 13812s with open(script, "wb") as f: 13812s f.write(asbytes(code)) 13812s 13812s # Build 13812s cwd = os.getcwd() 13812s try: 13812s os.chdir(d) 13812s cmd = [sys.executable, script, "build_ext", "-i"] 13812s p = subprocess.Popen(cmd, 13812s stdout=subprocess.PIPE, 13812s stderr=subprocess.STDOUT) 13812s out, err = p.communicate() 13812s if p.returncode != 0: 13812s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13812s (cmd[4:], asstr(out))) 13812s E RuntimeError: Running distutils build failed: [] 13812s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13812s E 13812s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13812s E of the deprecation of `distutils` itself. It will be removed for 13812s E Python >= 3.12. For older Python versions it will remain present. 13812s E It is recommended to use `setuptools < 60.0` for those Python versions. 13812s E For more details, see: 13812s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13812s E 13812s E 13812s E from numpy.distutils.core import setup 13812s E running build_ext 13812s E running build_src 13812s E INFO: build_src 13812s E INFO: building extension "test_array_from_pyobj_ext" sources 13812s E INFO: build_src: building npy-pkg config files 13812s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13812s E !! 13812s E 13812s E ******************************************************************************** 13812s E Please avoid running ``setup.py`` directly. 13812s E Instead, use pypa/build, pypa/installer or other 13812s E standards-based tools. 13812s E 13812s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13812s E ******************************************************************************** 13812s E 13812s E !! 13812s E self.initialize_options() 13812s E INFO: customize UnixCCompiler 13812s E INFO: customize UnixCCompiler using build_ext 13812s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/tmp 13812s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/usr 13812s E creating /tmp/tmppq19o2st/usr/lib 13812s E creating /tmp/tmppq19o2st/usr/lib/python3 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=native' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-O3' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-Werror' 13812s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13812s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-vfpv4' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=armv8.2-a+fp16' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13812s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13812s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13812s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13812s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13812s E INFO: building 'test_array_from_pyobj_ext' extension 13812s E INFO: compiling C sources 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13812s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13812s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13812s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13812s E 14 | #include 13812s E | ^~~~~~~~~~ 13812s E In file included from fortranobject.c:2: 13812s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13812s E 7 | #include 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E compilation terminated. 13812s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13812s E INFO: 13812s E ########### EXT COMPILER OPTIMIZATION ########### 13812s E INFO: Platform : 13812s E Architecture: armhf 13812s E Compiler : gcc 13812s E 13812s E CPU baseline : 13812s E Requested : 'min' 13812s E Enabled : none 13812s E Flags : none 13812s E Extra checks: none 13812s E 13812s E CPU dispatch : 13812s E Requested : 'max -xop -fma4' 13812s E Enabled : none 13812s E Generated : none 13812s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13812s 13812s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13812s d = '/tmp/tmpjj8q074z' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s err = None 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s kw = {} 13812s module_name = 'test_array_from_pyobj_ext' 13812s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13812s p = 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13812s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[ULONG] ______ 13812s 13812s def setup_module(): 13812s """ 13812s Build the required testing extension module 13812s 13812s """ 13812s global wrap 13812s 13812s # Check compiler availability first 13812s if not util.has_c_compiler(): 13812s pytest.skip("No C compiler available") 13812s 13812s if wrap is None: 13812s config_code = """ 13812s config.add_extension('test_array_from_pyobj_ext', 13812s sources=['wrapmodule.c', 'fortranobject.c'], 13812s define_macros=[]) 13812s """ 13812s d = os.path.dirname(__file__) 13812s src = [ 13812s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13812s util.getpath("src", "fortranobject.c"), 13812s util.getpath("src", "fortranobject.h"), 13812s ] 13812s > wrap = util.build_module_distutils(src, config_code, 13812s "test_array_from_pyobj_ext") 13812s 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13812s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13812s memo[key] = func(*a, **kw) 13812s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13812s func = 13812s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13812s kw = {} 13812s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s 13812s @_memoize 13812s def build_module_distutils(source_files, config_code, module_name, **kw): 13812s """ 13812s Build a module via distutils and import it. 13812s 13812s """ 13812s d = get_module_dir() 13812s 13812s # Copy files 13812s dst_sources = [] 13812s for fn in source_files: 13812s if not os.path.isfile(fn): 13812s raise RuntimeError("%s is not a file" % fn) 13812s dst = os.path.join(d, os.path.basename(fn)) 13812s shutil.copyfile(fn, dst) 13812s dst_sources.append(dst) 13812s 13812s # Build script 13812s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13812s 13812s code = fr""" 13812s import os 13812s import sys 13812s sys.path = {repr(sys.path)} 13812s 13812s def configuration(parent_name='',top_path=None): 13812s from numpy.distutils.misc_util import Configuration 13812s config = Configuration('', parent_name, top_path) 13812s {config_code} 13812s return config 13812s 13812s if __name__ == "__main__": 13812s from numpy.distutils.core import setup 13812s setup(configuration=configuration) 13812s """ 13812s script = os.path.join(d, get_temp_module_name() + ".py") 13812s dst_sources.append(script) 13812s with open(script, "wb") as f: 13812s f.write(asbytes(code)) 13812s 13812s # Build 13812s cwd = os.getcwd() 13812s try: 13812s os.chdir(d) 13812s cmd = [sys.executable, script, "build_ext", "-i"] 13812s p = subprocess.Popen(cmd, 13812s stdout=subprocess.PIPE, 13812s stderr=subprocess.STDOUT) 13812s out, err = p.communicate() 13812s if p.returncode != 0: 13812s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13812s (cmd[4:], asstr(out))) 13812s E RuntimeError: Running distutils build failed: [] 13812s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13812s E 13812s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13812s E of the deprecation of `distutils` itself. It will be removed for 13812s E Python >= 3.12. For older Python versions it will remain present. 13812s E It is recommended to use `setuptools < 60.0` for those Python versions. 13812s E For more details, see: 13812s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13812s E 13812s E 13812s E from numpy.distutils.core import setup 13812s E running build_ext 13812s E running build_src 13812s E INFO: build_src 13812s E INFO: building extension "test_array_from_pyobj_ext" sources 13812s E INFO: build_src: building npy-pkg config files 13812s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13812s E !! 13812s E 13812s E ******************************************************************************** 13812s E Please avoid running ``setup.py`` directly. 13812s E Instead, use pypa/build, pypa/installer or other 13812s E standards-based tools. 13812s E 13812s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13812s E ******************************************************************************** 13812s E 13812s E !! 13812s E self.initialize_options() 13812s E INFO: customize UnixCCompiler 13812s E INFO: customize UnixCCompiler using build_ext 13812s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/tmp 13812s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/usr 13812s E creating /tmp/tmppq19o2st/usr/lib 13812s E creating /tmp/tmppq19o2st/usr/lib/python3 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=native' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-O3' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-Werror' 13812s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13812s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-vfpv4' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=armv8.2-a+fp16' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13812s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13812s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13812s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13812s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13812s E INFO: building 'test_array_from_pyobj_ext' extension 13812s E INFO: compiling C sources 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13812s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13812s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13812s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13812s E 14 | #include 13812s E | ^~~~~~~~~~ 13812s E In file included from fortranobject.c:2: 13812s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13812s E 7 | #include 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E compilation terminated. 13812s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13812s E INFO: 13812s E ########### EXT COMPILER OPTIMIZATION ########### 13812s E INFO: Platform : 13812s E Architecture: armhf 13812s E Compiler : gcc 13812s E 13812s E CPU baseline : 13812s E Requested : 'min' 13812s E Enabled : none 13812s E Flags : none 13812s E Extra checks: none 13812s E 13812s E CPU dispatch : 13812s E Requested : 'max -xop -fma4' 13812s E Enabled : none 13812s E Generated : none 13812s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13812s 13812s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13812s d = '/tmp/tmpjj8q074z' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s err = None 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s kw = {} 13812s module_name = 'test_array_from_pyobj_ext' 13812s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13812s p = 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13812s ____________ ERROR at setup of TestSharedMemory.test_inplace[ULONG] ____________ 13812s 13812s def setup_module(): 13812s """ 13812s Build the required testing extension module 13812s 13812s """ 13812s global wrap 13812s 13812s # Check compiler availability first 13812s if not util.has_c_compiler(): 13812s pytest.skip("No C compiler available") 13812s 13812s if wrap is None: 13812s config_code = """ 13812s config.add_extension('test_array_from_pyobj_ext', 13812s sources=['wrapmodule.c', 'fortranobject.c'], 13812s define_macros=[]) 13812s """ 13812s d = os.path.dirname(__file__) 13812s src = [ 13812s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13812s util.getpath("src", "fortranobject.c"), 13812s util.getpath("src", "fortranobject.h"), 13812s ] 13812s > wrap = util.build_module_distutils(src, config_code, 13812s "test_array_from_pyobj_ext") 13812s 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13812s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13812s memo[key] = func(*a, **kw) 13812s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13812s func = 13812s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13812s kw = {} 13812s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s 13812s @_memoize 13812s def build_module_distutils(source_files, config_code, module_name, **kw): 13812s """ 13812s Build a module via distutils and import it. 13812s 13812s """ 13812s d = get_module_dir() 13812s 13812s # Copy files 13812s dst_sources = [] 13812s for fn in source_files: 13812s if not os.path.isfile(fn): 13812s raise RuntimeError("%s is not a file" % fn) 13812s dst = os.path.join(d, os.path.basename(fn)) 13812s shutil.copyfile(fn, dst) 13812s dst_sources.append(dst) 13812s 13812s # Build script 13812s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13812s 13812s code = fr""" 13812s import os 13812s import sys 13812s sys.path = {repr(sys.path)} 13812s 13812s def configuration(parent_name='',top_path=None): 13812s from numpy.distutils.misc_util import Configuration 13812s config = Configuration('', parent_name, top_path) 13812s {config_code} 13812s return config 13812s 13812s if __name__ == "__main__": 13812s from numpy.distutils.core import setup 13812s setup(configuration=configuration) 13812s """ 13812s script = os.path.join(d, get_temp_module_name() + ".py") 13812s dst_sources.append(script) 13812s with open(script, "wb") as f: 13812s f.write(asbytes(code)) 13812s 13812s # Build 13812s cwd = os.getcwd() 13812s try: 13812s os.chdir(d) 13812s cmd = [sys.executable, script, "build_ext", "-i"] 13812s p = subprocess.Popen(cmd, 13812s stdout=subprocess.PIPE, 13812s stderr=subprocess.STDOUT) 13812s out, err = p.communicate() 13812s if p.returncode != 0: 13812s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13812s (cmd[4:], asstr(out))) 13812s E RuntimeError: Running distutils build failed: [] 13812s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13812s E 13812s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13812s E of the deprecation of `distutils` itself. It will be removed for 13812s E Python >= 3.12. For older Python versions it will remain present. 13812s E It is recommended to use `setuptools < 60.0` for those Python versions. 13812s E For more details, see: 13812s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13812s E 13812s E 13812s E from numpy.distutils.core import setup 13812s E running build_ext 13812s E running build_src 13812s E INFO: build_src 13812s E INFO: building extension "test_array_from_pyobj_ext" sources 13812s E INFO: build_src: building npy-pkg config files 13812s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13812s E !! 13812s E 13812s E ******************************************************************************** 13812s E Please avoid running ``setup.py`` directly. 13812s E Instead, use pypa/build, pypa/installer or other 13812s E standards-based tools. 13812s E 13812s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13812s E ******************************************************************************** 13812s E 13812s E !! 13812s E self.initialize_options() 13812s E INFO: customize UnixCCompiler 13812s E INFO: customize UnixCCompiler using build_ext 13812s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/tmp 13812s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/usr 13812s E creating /tmp/tmppq19o2st/usr/lib 13812s E creating /tmp/tmppq19o2st/usr/lib/python3 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=native' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-O3' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-Werror' 13812s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13812s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-vfpv4' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=armv8.2-a+fp16' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13812s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13812s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13812s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13812s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13812s E INFO: building 'test_array_from_pyobj_ext' extension 13812s E INFO: compiling C sources 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13812s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13812s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13812s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13812s E 14 | #include 13812s E | ^~~~~~~~~~ 13812s E In file included from fortranobject.c:2: 13812s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13812s E 7 | #include 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E compilation terminated. 13812s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13812s E INFO: 13812s E ########### EXT COMPILER OPTIMIZATION ########### 13812s E INFO: Platform : 13812s E Architecture: armhf 13812s E Compiler : gcc 13812s E 13812s E CPU baseline : 13812s E Requested : 'min' 13812s E Enabled : none 13812s E Flags : none 13812s E Extra checks: none 13812s E 13812s E CPU dispatch : 13812s E Requested : 'max -xop -fma4' 13812s E Enabled : none 13812s E Generated : none 13812s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13812s 13812s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13812s d = '/tmp/tmpjj8q074z' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s err = None 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s kw = {} 13812s module_name = 'test_array_from_pyobj_ext' 13812s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13812s p = 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13812s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[ULONG] _____ 13812s 13812s def setup_module(): 13812s """ 13812s Build the required testing extension module 13812s 13812s """ 13812s global wrap 13812s 13812s # Check compiler availability first 13812s if not util.has_c_compiler(): 13812s pytest.skip("No C compiler available") 13812s 13812s if wrap is None: 13812s config_code = """ 13812s config.add_extension('test_array_from_pyobj_ext', 13812s sources=['wrapmodule.c', 'fortranobject.c'], 13812s define_macros=[]) 13812s """ 13812s d = os.path.dirname(__file__) 13812s src = [ 13812s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13812s util.getpath("src", "fortranobject.c"), 13812s util.getpath("src", "fortranobject.h"), 13812s ] 13812s > wrap = util.build_module_distutils(src, config_code, 13812s "test_array_from_pyobj_ext") 13812s 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13812s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13812s memo[key] = func(*a, **kw) 13812s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13812s func = 13812s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13812s kw = {} 13812s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s 13812s @_memoize 13812s def build_module_distutils(source_files, config_code, module_name, **kw): 13812s """ 13812s Build a module via distutils and import it. 13812s 13812s """ 13812s d = get_module_dir() 13812s 13812s # Copy files 13812s dst_sources = [] 13812s for fn in source_files: 13812s if not os.path.isfile(fn): 13812s raise RuntimeError("%s is not a file" % fn) 13812s dst = os.path.join(d, os.path.basename(fn)) 13812s shutil.copyfile(fn, dst) 13812s dst_sources.append(dst) 13812s 13812s # Build script 13812s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13812s 13812s code = fr""" 13812s import os 13812s import sys 13812s sys.path = {repr(sys.path)} 13812s 13812s def configuration(parent_name='',top_path=None): 13812s from numpy.distutils.misc_util import Configuration 13812s config = Configuration('', parent_name, top_path) 13812s {config_code} 13812s return config 13812s 13812s if __name__ == "__main__": 13812s from numpy.distutils.core import setup 13812s setup(configuration=configuration) 13812s """ 13812s script = os.path.join(d, get_temp_module_name() + ".py") 13812s dst_sources.append(script) 13812s with open(script, "wb") as f: 13812s f.write(asbytes(code)) 13812s 13812s # Build 13812s cwd = os.getcwd() 13812s try: 13812s os.chdir(d) 13812s cmd = [sys.executable, script, "build_ext", "-i"] 13812s p = subprocess.Popen(cmd, 13812s stdout=subprocess.PIPE, 13812s stderr=subprocess.STDOUT) 13812s out, err = p.communicate() 13812s if p.returncode != 0: 13812s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13812s (cmd[4:], asstr(out))) 13812s E RuntimeError: Running distutils build failed: [] 13812s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13812s E 13812s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13812s E of the deprecation of `distutils` itself. It will be removed for 13812s E Python >= 3.12. For older Python versions it will remain present. 13812s E It is recommended to use `setuptools < 60.0` for those Python versions. 13812s E For more details, see: 13812s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13812s E 13812s E 13812s E from numpy.distutils.core import setup 13812s E running build_ext 13812s E running build_src 13812s E INFO: build_src 13812s E INFO: building extension "test_array_from_pyobj_ext" sources 13812s E INFO: build_src: building npy-pkg config files 13812s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13812s E !! 13812s E 13812s E ******************************************************************************** 13812s E Please avoid running ``setup.py`` directly. 13812s E Instead, use pypa/build, pypa/installer or other 13812s E standards-based tools. 13812s E 13812s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13812s E ******************************************************************************** 13812s E 13812s E !! 13812s E self.initialize_options() 13812s E INFO: customize UnixCCompiler 13812s E INFO: customize UnixCCompiler using build_ext 13812s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/tmp 13812s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/usr 13812s E creating /tmp/tmppq19o2st/usr/lib 13812s E creating /tmp/tmppq19o2st/usr/lib/python3 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13812s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=native' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-O3' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-Werror' 13812s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13812s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-vfpv4' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-march=armv8.2-a+fp16' 13812s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13812s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13812s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13812s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13812s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13812s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13812s E 9 | # include_next 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E 13812s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13812s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13812s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13812s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13812s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13812s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13812s E INFO: building 'test_array_from_pyobj_ext' extension 13812s E INFO: compiling C sources 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13812s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13812s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13812s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13812s E 14 | #include 13812s E | ^~~~~~~~~~ 13812s E In file included from fortranobject.c:2: 13812s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13812s E 7 | #include 13812s E | ^~~~~~~~~~ 13812s E compilation terminated. 13812s E compilation terminated. 13812s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13812s E INFO: 13812s E ########### EXT COMPILER OPTIMIZATION ########### 13812s E INFO: Platform : 13812s E Architecture: armhf 13812s E Compiler : gcc 13812s E 13812s E CPU baseline : 13812s E Requested : 'min' 13812s E Enabled : none 13812s E Flags : none 13812s E Extra checks: none 13812s E 13812s E CPU dispatch : 13812s E Requested : 'max -xop -fma4' 13812s E Enabled : none 13812s E Generated : none 13812s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13812s 13812s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13812s d = '/tmp/tmpjj8q074z' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s err = None 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s kw = {} 13812s module_name = 'test_array_from_pyobj_ext' 13812s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13812s p = 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13812s ________ ERROR at setup of TestSharedMemory.test_in_from_2seq[LONGLONG] ________ 13812s 13812s def setup_module(): 13812s """ 13812s Build the required testing extension module 13812s 13812s """ 13812s global wrap 13812s 13812s # Check compiler availability first 13812s if not util.has_c_compiler(): 13812s pytest.skip("No C compiler available") 13812s 13812s if wrap is None: 13812s config_code = """ 13812s config.add_extension('test_array_from_pyobj_ext', 13812s sources=['wrapmodule.c', 'fortranobject.c'], 13812s define_macros=[]) 13812s """ 13812s d = os.path.dirname(__file__) 13812s src = [ 13812s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13812s util.getpath("src", "fortranobject.c"), 13812s util.getpath("src", "fortranobject.h"), 13812s ] 13812s > wrap = util.build_module_distutils(src, config_code, 13812s "test_array_from_pyobj_ext") 13812s 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13812s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13812s memo[key] = func(*a, **kw) 13812s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13812s func = 13812s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13812s kw = {} 13812s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13812s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13812s 13812s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13812s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13812s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13812s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13812s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13812s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13812s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13812s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13812s 13812s @_memoize 13812s def build_module_distutils(source_files, config_code, module_name, **kw): 13812s """ 13812s Build a module via distutils and import it. 13812s 13812s """ 13812s d = get_module_dir() 13812s 13812s # Copy files 13812s dst_sources = [] 13812s for fn in source_files: 13812s if not os.path.isfile(fn): 13812s raise RuntimeError("%s is not a file" % fn) 13812s dst = os.path.join(d, os.path.basename(fn)) 13812s shutil.copyfile(fn, dst) 13812s dst_sources.append(dst) 13812s 13812s # Build script 13812s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13812s 13812s code = fr""" 13812s import os 13812s import sys 13812s sys.path = {repr(sys.path)} 13812s 13812s def configuration(parent_name='',top_path=None): 13812s from numpy.distutils.misc_util import Configuration 13812s config = Configuration('', parent_name, top_path) 13812s {config_code} 13812s return config 13812s 13812s if __name__ == "__main__": 13812s from numpy.distutils.core import setup 13812s setup(configuration=configuration) 13812s """ 13812s script = os.path.join(d, get_temp_module_name() + ".py") 13812s dst_sources.append(script) 13812s with open(script, "wb") as f: 13812s f.write(asbytes(code)) 13812s 13812s # Build 13812s cwd = os.getcwd() 13812s try: 13812s os.chdir(d) 13812s cmd = [sys.executable, script, "build_ext", "-i"] 13812s p = subprocess.Popen(cmd, 13812s stdout=subprocess.PIPE, 13812s stderr=subprocess.STDOUT) 13812s out, err = p.communicate() 13812s if p.returncode != 0: 13812s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13812s (cmd[4:], asstr(out))) 13812s E RuntimeError: Running distutils build failed: [] 13812s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13812s E 13812s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13812s E of the deprecation of `distutils` itself. It will be removed for 13812s E Python >= 3.12. For older Python versions it will remain present. 13812s E It is recommended to use `setuptools < 60.0` for those Python versions. 13812s E For more details, see: 13812s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13812s E 13812s E 13812s E from numpy.distutils.core import setup 13812s E running build_ext 13812s E running build_src 13812s E INFO: build_src 13812s E INFO: building extension "test_array_from_pyobj_ext" sources 13812s E INFO: build_src: building npy-pkg config files 13812s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13812s E !! 13812s E 13812s E ******************************************************************************** 13812s E Please avoid running ``setup.py`` directly. 13812s E Instead, use pypa/build, pypa/installer or other 13812s E standards-based tools. 13812s E 13812s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13812s E ******************************************************************************** 13812s E 13812s E !! 13812s E self.initialize_options() 13812s E INFO: customize UnixCCompiler 13812s E INFO: customize UnixCCompiler using build_ext 13812s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13812s E 13812s E creating /tmp/tmppq19o2st/tmp 13812s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13812s E INFO: compile options: '-I/usr/include/python3.12 -c' 13812s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13812s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s _____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[LONGLONG] ______ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13813s E 13813s E 13813s E from numpy.distutils.core import setup 13813s E running build_ext 13813s E running build_src 13813s E INFO: build_src 13813s E INFO: building extension "test_array_from_pyobj_ext" sources 13813s E INFO: build_src: building npy-pkg config files 13813s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13813s E !! 13813s E 13813s E ******************************************************************************** 13813s E Please avoid running ``setup.py`` directly. 13813s E Instead, use pypa/build, pypa/installer or other 13813s E standards-based tools. 13813s E 13813s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13813s E ******************************************************************************** 13813s E 13813s E !! 13813s E self.initialize_options() 13813s E INFO: customize UnixCCompiler 13813s E INFO: customize UnixCCompiler using build_ext 13813s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/tmp 13813s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-2seq-C-w] _____ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13813s E 13813s E 13813s E from numpy.distutils.core import setup 13813s E running build_ext 13813s E running build_src 13813s E INFO: build_src 13813s E INFO: building extension "test_array_from_pyobj_ext" sources 13813s E INFO: build_src: building npy-pkg config files 13813s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13813s E !! 13813s E 13813s E ******************************************************************************** 13813s E Please avoid running ``setup.py`` directly. 13813s E Instead, use pypa/build, pypa/installer or other 13813s E standards-based tools. 13813s E 13813s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13813s E ******************************************************************************** 13813s E 13813s E !! 13813s E self.initialize_options() 13813s E INFO: customize UnixCCompiler 13813s E INFO: customize UnixCCompiler using build_ext 13813s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/tmp 13813s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-2seq-C-ro] _____ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13813s E 13813s E 13813s E from numpy.distutils.core import setup 13813s E running build_ext 13813s E running build_src 13813s E INFO: build_src 13813s E INFO: building extension "test_array_from_pyobj_ext" sources 13813s E INFO: build_src: building npy-pkg config files 13813s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13813s E !! 13813s E 13813s E ******************************************************************************** 13813s E Please avoid running ``setup.py`` directly. 13813s E Instead, use pypa/build, pypa/installer or other 13813s E standards-based tools. 13813s E 13813s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13813s E ******************************************************************************** 13813s E 13813s E !! 13813s E self.initialize_options() 13813s E INFO: customize UnixCCompiler 13813s E INFO: customize UnixCCompiler using build_ext 13813s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/tmp 13813s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-2seq-F-w] _____ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13813s E 13813s E 13813s E from numpy.distutils.core import setup 13813s E running build_ext 13813s E running build_src 13813s E INFO: build_src 13813s E INFO: building extension "test_array_from_pyobj_ext" sources 13813s E INFO: build_src: building npy-pkg config files 13813s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13813s E !! 13813s E 13813s E ******************************************************************************** 13813s E Please avoid running ``setup.py`` directly. 13813s E Instead, use pypa/build, pypa/installer or other 13813s E standards-based tools. 13813s E 13813s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13813s E ******************************************************************************** 13813s E 13813s E !! 13813s E self.initialize_options() 13813s E INFO: customize UnixCCompiler 13813s E INFO: customize UnixCCompiler using build_ext 13813s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/tmp 13813s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-2seq-F-ro] _____ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13813s E 13813s E 13813s E from numpy.distutils.core import setup 13813s E running build_ext 13813s E running build_src 13813s E INFO: build_src 13813s E INFO: building extension "test_array_from_pyobj_ext" sources 13813s E INFO: build_src: building npy-pkg config files 13813s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13813s E !! 13813s E 13813s E ******************************************************************************** 13813s E Please avoid running ``setup.py`` directly. 13813s E Instead, use pypa/build, pypa/installer or other 13813s E standards-based tools. 13813s E 13813s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13813s E ******************************************************************************** 13813s E 13813s E !! 13813s E self.initialize_options() 13813s E INFO: customize UnixCCompiler 13813s E INFO: customize UnixCCompiler using build_ext 13813s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/tmp 13813s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-23seq-C-w] _____ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13813s E 13813s E 13813s E from numpy.distutils.core import setup 13813s E running build_ext 13813s E running build_src 13813s E INFO: build_src 13813s E INFO: building extension "test_array_from_pyobj_ext" sources 13813s E INFO: build_src: building npy-pkg config files 13813s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13813s E !! 13813s E 13813s E ******************************************************************************** 13813s E Please avoid running ``setup.py`` directly. 13813s E Instead, use pypa/build, pypa/installer or other 13813s E standards-based tools. 13813s E 13813s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13813s E ******************************************************************************** 13813s E 13813s E !! 13813s E self.initialize_options() 13813s E INFO: customize UnixCCompiler 13813s E INFO: customize UnixCCompiler using build_ext 13813s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/tmp 13813s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-23seq-C-ro] ____ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13813s E 13813s E 13813s E from numpy.distutils.core import setup 13813s E running build_ext 13813s E running build_src 13813s E INFO: build_src 13813s E INFO: building extension "test_array_from_pyobj_ext" sources 13813s E INFO: build_src: building npy-pkg config files 13813s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13813s E !! 13813s E 13813s E ******************************************************************************** 13813s E Please avoid running ``setup.py`` directly. 13813s E Instead, use pypa/build, pypa/installer or other 13813s E standards-based tools. 13813s E 13813s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13813s E ******************************************************************************** 13813s E 13813s E !! 13813s E self.initialize_options() 13813s E INFO: customize UnixCCompiler 13813s E INFO: customize UnixCCompiler using build_ext 13813s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/tmp 13813s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-23seq-F-w] _____ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13813s E 13813s E 13813s E from numpy.distutils.core import setup 13813s E running build_ext 13813s E running build_src 13813s E INFO: build_src 13813s E INFO: building extension "test_array_from_pyobj_ext" sources 13813s E INFO: build_src: building npy-pkg config files 13813s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13813s E !! 13813s E 13813s E ******************************************************************************** 13813s E Please avoid running ``setup.py`` directly. 13813s E Instead, use pypa/build, pypa/installer or other 13813s E standards-based tools. 13813s E 13813s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13813s E ******************************************************************************** 13813s E 13813s E !! 13813s E self.initialize_options() 13813s E INFO: customize UnixCCompiler 13813s E INFO: customize UnixCCompiler using build_ext 13813s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/tmp 13813s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E creating /tmp/tmppq19o2st/usr 13813s E creating /tmp/tmppq19o2st/usr/lib 13813s E creating /tmp/tmppq19o2st/usr/lib/python3 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13813s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=native' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-O3' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-Werror' 13813s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13813s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-vfpv4' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13813s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-march=armv8.2-a+fp16' 13813s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/include/python3.12 -c' 13813s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13813s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13813s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13813s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13813s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13813s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13813s E 9 | # include_next 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E 13813s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13813s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13813s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13813s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13813s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13813s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13813s E INFO: building 'test_array_from_pyobj_ext' extension 13813s E INFO: compiling C sources 13813s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13813s E 13813s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13813s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13813s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13813s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13813s E 14 | #include 13813s E | ^~~~~~~~~~ 13813s E In file included from fortranobject.c:2: 13813s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13813s E 7 | #include 13813s E | ^~~~~~~~~~ 13813s E compilation terminated. 13813s E compilation terminated. 13813s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13813s E INFO: 13813s E ########### EXT COMPILER OPTIMIZATION ########### 13813s E INFO: Platform : 13813s E Architecture: armhf 13813s E Compiler : gcc 13813s E 13813s E CPU baseline : 13813s E Requested : 'min' 13813s E Enabled : none 13813s E Flags : none 13813s E Extra checks: none 13813s E 13813s E CPU dispatch : 13813s E Requested : 'max -xop -fma4' 13813s E Enabled : none 13813s E Generated : none 13813s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13813s 13813s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13813s d = '/tmp/tmpjj8q074z' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s err = None 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s kw = {} 13813s module_name = 'test_array_from_pyobj_ext' 13813s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13813s p = 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13813s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGLONG-23seq-F-ro] ____ 13813s 13813s def setup_module(): 13813s """ 13813s Build the required testing extension module 13813s 13813s """ 13813s global wrap 13813s 13813s # Check compiler availability first 13813s if not util.has_c_compiler(): 13813s pytest.skip("No C compiler available") 13813s 13813s if wrap is None: 13813s config_code = """ 13813s config.add_extension('test_array_from_pyobj_ext', 13813s sources=['wrapmodule.c', 'fortranobject.c'], 13813s define_macros=[]) 13813s """ 13813s d = os.path.dirname(__file__) 13813s src = [ 13813s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13813s util.getpath("src", "fortranobject.c"), 13813s util.getpath("src", "fortranobject.h"), 13813s ] 13813s > wrap = util.build_module_distutils(src, config_code, 13813s "test_array_from_pyobj_ext") 13813s 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13813s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13813s memo[key] = func(*a, **kw) 13813s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13813s func = 13813s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13813s kw = {} 13813s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13813s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13813s 13813s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13813s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13813s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13813s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13813s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13813s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13813s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13813s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13813s 13813s @_memoize 13813s def build_module_distutils(source_files, config_code, module_name, **kw): 13813s """ 13813s Build a module via distutils and import it. 13813s 13813s """ 13813s d = get_module_dir() 13813s 13813s # Copy files 13813s dst_sources = [] 13813s for fn in source_files: 13813s if not os.path.isfile(fn): 13813s raise RuntimeError("%s is not a file" % fn) 13813s dst = os.path.join(d, os.path.basename(fn)) 13813s shutil.copyfile(fn, dst) 13813s dst_sources.append(dst) 13813s 13813s # Build script 13813s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13813s 13813s code = fr""" 13813s import os 13813s import sys 13813s sys.path = {repr(sys.path)} 13813s 13813s def configuration(parent_name='',top_path=None): 13813s from numpy.distutils.misc_util import Configuration 13813s config = Configuration('', parent_name, top_path) 13813s {config_code} 13813s return config 13813s 13813s if __name__ == "__main__": 13813s from numpy.distutils.core import setup 13813s setup(configuration=configuration) 13813s """ 13813s script = os.path.join(d, get_temp_module_name() + ".py") 13813s dst_sources.append(script) 13813s with open(script, "wb") as f: 13813s f.write(asbytes(code)) 13813s 13813s # Build 13813s cwd = os.getcwd() 13813s try: 13813s os.chdir(d) 13813s cmd = [sys.executable, script, "build_ext", "-i"] 13813s p = subprocess.Popen(cmd, 13813s stdout=subprocess.PIPE, 13813s stderr=subprocess.STDOUT) 13813s out, err = p.communicate() 13813s if p.returncode != 0: 13813s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13813s (cmd[4:], asstr(out))) 13813s E RuntimeError: Running distutils build failed: [] 13813s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13813s E 13813s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13813s E of the deprecation of `distutils` itself. It will be removed for 13813s E Python >= 3.12. For older Python versions it will remain present. 13813s E It is recommended to use `setuptools < 60.0` for those Python versions. 13813s E For more details, see: 13813s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13814s E 13814s E 13814s E from numpy.distutils.core import setup 13814s E running build_ext 13814s E running build_src 13814s E INFO: build_src 13814s E INFO: building extension "test_array_from_pyobj_ext" sources 13814s E INFO: build_src: building npy-pkg config files 13814s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13814s E !! 13814s E 13814s E ******************************************************************************** 13814s E Please avoid running ``setup.py`` directly. 13814s E Instead, use pypa/build, pypa/installer or other 13814s E standards-based tools. 13814s E 13814s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13814s E ******************************************************************************** 13814s E 13814s E !! 13814s E self.initialize_options() 13814s E INFO: customize UnixCCompiler 13814s E INFO: customize UnixCCompiler using build_ext 13814s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/tmp 13814s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/usr 13814s E creating /tmp/tmppq19o2st/usr/lib 13814s E creating /tmp/tmppq19o2st/usr/lib/python3 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=native' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-O3' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-Werror' 13814s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13814s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-vfpv4' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=armv8.2-a+fp16' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13814s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13814s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13814s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13814s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13814s E INFO: building 'test_array_from_pyobj_ext' extension 13814s E INFO: compiling C sources 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13814s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13814s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13814s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13814s E 14 | #include 13814s E | ^~~~~~~~~~ 13814s E In file included from fortranobject.c:2: 13814s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13814s E 7 | #include 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E compilation terminated. 13814s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13814s E INFO: 13814s E ########### EXT COMPILER OPTIMIZATION ########### 13814s E INFO: Platform : 13814s E Architecture: armhf 13814s E Compiler : gcc 13814s E 13814s E CPU baseline : 13814s E Requested : 'min' 13814s E Enabled : none 13814s E Flags : none 13814s E Extra checks: none 13814s E 13814s E CPU dispatch : 13814s E Requested : 'max -xop -fma4' 13814s E Enabled : none 13814s E Generated : none 13814s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13814s 13814s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13814s d = '/tmp/tmpjj8q074z' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s err = None 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s kw = {} 13814s module_name = 'test_array_from_pyobj_ext' 13814s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13814s p = 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13814s _________ ERROR at setup of TestSharedMemory.test_inout_2seq[LONGLONG] _________ 13814s 13814s def setup_module(): 13814s """ 13814s Build the required testing extension module 13814s 13814s """ 13814s global wrap 13814s 13814s # Check compiler availability first 13814s if not util.has_c_compiler(): 13814s pytest.skip("No C compiler available") 13814s 13814s if wrap is None: 13814s config_code = """ 13814s config.add_extension('test_array_from_pyobj_ext', 13814s sources=['wrapmodule.c', 'fortranobject.c'], 13814s define_macros=[]) 13814s """ 13814s d = os.path.dirname(__file__) 13814s src = [ 13814s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13814s util.getpath("src", "fortranobject.c"), 13814s util.getpath("src", "fortranobject.h"), 13814s ] 13814s > wrap = util.build_module_distutils(src, config_code, 13814s "test_array_from_pyobj_ext") 13814s 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13814s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13814s memo[key] = func(*a, **kw) 13814s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13814s func = 13814s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13814s kw = {} 13814s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s 13814s @_memoize 13814s def build_module_distutils(source_files, config_code, module_name, **kw): 13814s """ 13814s Build a module via distutils and import it. 13814s 13814s """ 13814s d = get_module_dir() 13814s 13814s # Copy files 13814s dst_sources = [] 13814s for fn in source_files: 13814s if not os.path.isfile(fn): 13814s raise RuntimeError("%s is not a file" % fn) 13814s dst = os.path.join(d, os.path.basename(fn)) 13814s shutil.copyfile(fn, dst) 13814s dst_sources.append(dst) 13814s 13814s # Build script 13814s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13814s 13814s code = fr""" 13814s import os 13814s import sys 13814s sys.path = {repr(sys.path)} 13814s 13814s def configuration(parent_name='',top_path=None): 13814s from numpy.distutils.misc_util import Configuration 13814s config = Configuration('', parent_name, top_path) 13814s {config_code} 13814s return config 13814s 13814s if __name__ == "__main__": 13814s from numpy.distutils.core import setup 13814s setup(configuration=configuration) 13814s """ 13814s script = os.path.join(d, get_temp_module_name() + ".py") 13814s dst_sources.append(script) 13814s with open(script, "wb") as f: 13814s f.write(asbytes(code)) 13814s 13814s # Build 13814s cwd = os.getcwd() 13814s try: 13814s os.chdir(d) 13814s cmd = [sys.executable, script, "build_ext", "-i"] 13814s p = subprocess.Popen(cmd, 13814s stdout=subprocess.PIPE, 13814s stderr=subprocess.STDOUT) 13814s out, err = p.communicate() 13814s if p.returncode != 0: 13814s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13814s (cmd[4:], asstr(out))) 13814s E RuntimeError: Running distutils build failed: [] 13814s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13814s E 13814s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13814s E of the deprecation of `distutils` itself. It will be removed for 13814s E Python >= 3.12. For older Python versions it will remain present. 13814s E It is recommended to use `setuptools < 60.0` for those Python versions. 13814s E For more details, see: 13814s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13814s E 13814s E 13814s E from numpy.distutils.core import setup 13814s E running build_ext 13814s E running build_src 13814s E INFO: build_src 13814s E INFO: building extension "test_array_from_pyobj_ext" sources 13814s E INFO: build_src: building npy-pkg config files 13814s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13814s E !! 13814s E 13814s E ******************************************************************************** 13814s E Please avoid running ``setup.py`` directly. 13814s E Instead, use pypa/build, pypa/installer or other 13814s E standards-based tools. 13814s E 13814s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13814s E ******************************************************************************** 13814s E 13814s E !! 13814s E self.initialize_options() 13814s E INFO: customize UnixCCompiler 13814s E INFO: customize UnixCCompiler using build_ext 13814s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/tmp 13814s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/usr 13814s E creating /tmp/tmppq19o2st/usr/lib 13814s E creating /tmp/tmppq19o2st/usr/lib/python3 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=native' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-O3' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-Werror' 13814s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13814s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-vfpv4' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=armv8.2-a+fp16' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13814s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13814s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13814s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13814s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13814s E INFO: building 'test_array_from_pyobj_ext' extension 13814s E INFO: compiling C sources 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13814s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13814s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13814s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13814s E 14 | #include 13814s E | ^~~~~~~~~~ 13814s E In file included from fortranobject.c:2: 13814s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13814s E 7 | #include 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E compilation terminated. 13814s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13814s E INFO: 13814s E ########### EXT COMPILER OPTIMIZATION ########### 13814s E INFO: Platform : 13814s E Architecture: armhf 13814s E Compiler : gcc 13814s E 13814s E CPU baseline : 13814s E Requested : 'min' 13814s E Enabled : none 13814s E Flags : none 13814s E Extra checks: none 13814s E 13814s E CPU dispatch : 13814s E Requested : 'max -xop -fma4' 13814s E Enabled : none 13814s E Generated : none 13814s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13814s 13814s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13814s d = '/tmp/tmpjj8q074z' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s err = None 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s kw = {} 13814s module_name = 'test_array_from_pyobj_ext' 13814s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13814s p = 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13814s _______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[LONGLONG] ________ 13814s 13814s def setup_module(): 13814s """ 13814s Build the required testing extension module 13814s 13814s """ 13814s global wrap 13814s 13814s # Check compiler availability first 13814s if not util.has_c_compiler(): 13814s pytest.skip("No C compiler available") 13814s 13814s if wrap is None: 13814s config_code = """ 13814s config.add_extension('test_array_from_pyobj_ext', 13814s sources=['wrapmodule.c', 'fortranobject.c'], 13814s define_macros=[]) 13814s """ 13814s d = os.path.dirname(__file__) 13814s src = [ 13814s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13814s util.getpath("src", "fortranobject.c"), 13814s util.getpath("src", "fortranobject.h"), 13814s ] 13814s > wrap = util.build_module_distutils(src, config_code, 13814s "test_array_from_pyobj_ext") 13814s 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13814s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13814s memo[key] = func(*a, **kw) 13814s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13814s func = 13814s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13814s kw = {} 13814s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s 13814s @_memoize 13814s def build_module_distutils(source_files, config_code, module_name, **kw): 13814s """ 13814s Build a module via distutils and import it. 13814s 13814s """ 13814s d = get_module_dir() 13814s 13814s # Copy files 13814s dst_sources = [] 13814s for fn in source_files: 13814s if not os.path.isfile(fn): 13814s raise RuntimeError("%s is not a file" % fn) 13814s dst = os.path.join(d, os.path.basename(fn)) 13814s shutil.copyfile(fn, dst) 13814s dst_sources.append(dst) 13814s 13814s # Build script 13814s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13814s 13814s code = fr""" 13814s import os 13814s import sys 13814s sys.path = {repr(sys.path)} 13814s 13814s def configuration(parent_name='',top_path=None): 13814s from numpy.distutils.misc_util import Configuration 13814s config = Configuration('', parent_name, top_path) 13814s {config_code} 13814s return config 13814s 13814s if __name__ == "__main__": 13814s from numpy.distutils.core import setup 13814s setup(configuration=configuration) 13814s """ 13814s script = os.path.join(d, get_temp_module_name() + ".py") 13814s dst_sources.append(script) 13814s with open(script, "wb") as f: 13814s f.write(asbytes(code)) 13814s 13814s # Build 13814s cwd = os.getcwd() 13814s try: 13814s os.chdir(d) 13814s cmd = [sys.executable, script, "build_ext", "-i"] 13814s p = subprocess.Popen(cmd, 13814s stdout=subprocess.PIPE, 13814s stderr=subprocess.STDOUT) 13814s out, err = p.communicate() 13814s if p.returncode != 0: 13814s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13814s (cmd[4:], asstr(out))) 13814s E RuntimeError: Running distutils build failed: [] 13814s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13814s E 13814s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13814s E of the deprecation of `distutils` itself. It will be removed for 13814s E Python >= 3.12. For older Python versions it will remain present. 13814s E It is recommended to use `setuptools < 60.0` for those Python versions. 13814s E For more details, see: 13814s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13814s E 13814s E 13814s E from numpy.distutils.core import setup 13814s E running build_ext 13814s E running build_src 13814s E INFO: build_src 13814s E INFO: building extension "test_array_from_pyobj_ext" sources 13814s E INFO: build_src: building npy-pkg config files 13814s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13814s E !! 13814s E 13814s E ******************************************************************************** 13814s E Please avoid running ``setup.py`` directly. 13814s E Instead, use pypa/build, pypa/installer or other 13814s E standards-based tools. 13814s E 13814s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13814s E ******************************************************************************** 13814s E 13814s E !! 13814s E self.initialize_options() 13814s E INFO: customize UnixCCompiler 13814s E INFO: customize UnixCCompiler using build_ext 13814s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/tmp 13814s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/usr 13814s E creating /tmp/tmppq19o2st/usr/lib 13814s E creating /tmp/tmppq19o2st/usr/lib/python3 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=native' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-O3' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-Werror' 13814s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13814s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-vfpv4' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=armv8.2-a+fp16' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13814s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13814s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13814s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13814s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13814s E INFO: building 'test_array_from_pyobj_ext' extension 13814s E INFO: compiling C sources 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13814s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13814s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13814s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13814s E 14 | #include 13814s E | ^~~~~~~~~~ 13814s E In file included from fortranobject.c:2: 13814s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13814s E 7 | #include 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E compilation terminated. 13814s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13814s E INFO: 13814s E ########### EXT COMPILER OPTIMIZATION ########### 13814s E INFO: Platform : 13814s E Architecture: armhf 13814s E Compiler : gcc 13814s E 13814s E CPU baseline : 13814s E Requested : 'min' 13814s E Enabled : none 13814s E Flags : none 13814s E Extra checks: none 13814s E 13814s E CPU dispatch : 13814s E Requested : 'max -xop -fma4' 13814s E Enabled : none 13814s E Generated : none 13814s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13814s 13814s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13814s d = '/tmp/tmpjj8q074z' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s err = None 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s kw = {} 13814s module_name = 'test_array_from_pyobj_ext' 13814s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13814s p = 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13814s _______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[LONGLONG] ________ 13814s 13814s def setup_module(): 13814s """ 13814s Build the required testing extension module 13814s 13814s """ 13814s global wrap 13814s 13814s # Check compiler availability first 13814s if not util.has_c_compiler(): 13814s pytest.skip("No C compiler available") 13814s 13814s if wrap is None: 13814s config_code = """ 13814s config.add_extension('test_array_from_pyobj_ext', 13814s sources=['wrapmodule.c', 'fortranobject.c'], 13814s define_macros=[]) 13814s """ 13814s d = os.path.dirname(__file__) 13814s src = [ 13814s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13814s util.getpath("src", "fortranobject.c"), 13814s util.getpath("src", "fortranobject.h"), 13814s ] 13814s > wrap = util.build_module_distutils(src, config_code, 13814s "test_array_from_pyobj_ext") 13814s 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13814s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13814s memo[key] = func(*a, **kw) 13814s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13814s func = 13814s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13814s kw = {} 13814s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s 13814s @_memoize 13814s def build_module_distutils(source_files, config_code, module_name, **kw): 13814s """ 13814s Build a module via distutils and import it. 13814s 13814s """ 13814s d = get_module_dir() 13814s 13814s # Copy files 13814s dst_sources = [] 13814s for fn in source_files: 13814s if not os.path.isfile(fn): 13814s raise RuntimeError("%s is not a file" % fn) 13814s dst = os.path.join(d, os.path.basename(fn)) 13814s shutil.copyfile(fn, dst) 13814s dst_sources.append(dst) 13814s 13814s # Build script 13814s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13814s 13814s code = fr""" 13814s import os 13814s import sys 13814s sys.path = {repr(sys.path)} 13814s 13814s def configuration(parent_name='',top_path=None): 13814s from numpy.distutils.misc_util import Configuration 13814s config = Configuration('', parent_name, top_path) 13814s {config_code} 13814s return config 13814s 13814s if __name__ == "__main__": 13814s from numpy.distutils.core import setup 13814s setup(configuration=configuration) 13814s """ 13814s script = os.path.join(d, get_temp_module_name() + ".py") 13814s dst_sources.append(script) 13814s with open(script, "wb") as f: 13814s f.write(asbytes(code)) 13814s 13814s # Build 13814s cwd = os.getcwd() 13814s try: 13814s os.chdir(d) 13814s cmd = [sys.executable, script, "build_ext", "-i"] 13814s p = subprocess.Popen(cmd, 13814s stdout=subprocess.PIPE, 13814s stderr=subprocess.STDOUT) 13814s out, err = p.communicate() 13814s if p.returncode != 0: 13814s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13814s (cmd[4:], asstr(out))) 13814s E RuntimeError: Running distutils build failed: [] 13814s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13814s E 13814s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13814s E of the deprecation of `distutils` itself. It will be removed for 13814s E Python >= 3.12. For older Python versions it will remain present. 13814s E It is recommended to use `setuptools < 60.0` for those Python versions. 13814s E For more details, see: 13814s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13814s E 13814s E 13814s E from numpy.distutils.core import setup 13814s E running build_ext 13814s E running build_src 13814s E INFO: build_src 13814s E INFO: building extension "test_array_from_pyobj_ext" sources 13814s E INFO: build_src: building npy-pkg config files 13814s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13814s E !! 13814s E 13814s E ******************************************************************************** 13814s E Please avoid running ``setup.py`` directly. 13814s E Instead, use pypa/build, pypa/installer or other 13814s E standards-based tools. 13814s E 13814s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13814s E ******************************************************************************** 13814s E 13814s E !! 13814s E self.initialize_options() 13814s E INFO: customize UnixCCompiler 13814s E INFO: customize UnixCCompiler using build_ext 13814s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/tmp 13814s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/usr 13814s E creating /tmp/tmppq19o2st/usr/lib 13814s E creating /tmp/tmppq19o2st/usr/lib/python3 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=native' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-O3' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-Werror' 13814s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13814s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-vfpv4' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=armv8.2-a+fp16' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13814s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13814s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13814s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13814s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13814s E INFO: building 'test_array_from_pyobj_ext' extension 13814s E INFO: compiling C sources 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13814s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13814s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13814s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13814s E 14 | #include 13814s E | ^~~~~~~~~~ 13814s E In file included from fortranobject.c:2: 13814s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13814s E 7 | #include 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E compilation terminated. 13814s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13814s E INFO: 13814s E ########### EXT COMPILER OPTIMIZATION ########### 13814s E INFO: Platform : 13814s E Architecture: armhf 13814s E Compiler : gcc 13814s E 13814s E CPU baseline : 13814s E Requested : 'min' 13814s E Enabled : none 13814s E Flags : none 13814s E Extra checks: none 13814s E 13814s E CPU dispatch : 13814s E Requested : 'max -xop -fma4' 13814s E Enabled : none 13814s E Generated : none 13814s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13814s 13814s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13814s d = '/tmp/tmpjj8q074z' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s err = None 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s kw = {} 13814s module_name = 'test_array_from_pyobj_ext' 13814s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13814s p = 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13814s ___ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[LONGLONG] ___ 13814s 13814s def setup_module(): 13814s """ 13814s Build the required testing extension module 13814s 13814s """ 13814s global wrap 13814s 13814s # Check compiler availability first 13814s if not util.has_c_compiler(): 13814s pytest.skip("No C compiler available") 13814s 13814s if wrap is None: 13814s config_code = """ 13814s config.add_extension('test_array_from_pyobj_ext', 13814s sources=['wrapmodule.c', 'fortranobject.c'], 13814s define_macros=[]) 13814s """ 13814s d = os.path.dirname(__file__) 13814s src = [ 13814s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13814s util.getpath("src", "fortranobject.c"), 13814s util.getpath("src", "fortranobject.h"), 13814s ] 13814s > wrap = util.build_module_distutils(src, config_code, 13814s "test_array_from_pyobj_ext") 13814s 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13814s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13814s memo[key] = func(*a, **kw) 13814s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13814s func = 13814s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13814s kw = {} 13814s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s 13814s @_memoize 13814s def build_module_distutils(source_files, config_code, module_name, **kw): 13814s """ 13814s Build a module via distutils and import it. 13814s 13814s """ 13814s d = get_module_dir() 13814s 13814s # Copy files 13814s dst_sources = [] 13814s for fn in source_files: 13814s if not os.path.isfile(fn): 13814s raise RuntimeError("%s is not a file" % fn) 13814s dst = os.path.join(d, os.path.basename(fn)) 13814s shutil.copyfile(fn, dst) 13814s dst_sources.append(dst) 13814s 13814s # Build script 13814s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13814s 13814s code = fr""" 13814s import os 13814s import sys 13814s sys.path = {repr(sys.path)} 13814s 13814s def configuration(parent_name='',top_path=None): 13814s from numpy.distutils.misc_util import Configuration 13814s config = Configuration('', parent_name, top_path) 13814s {config_code} 13814s return config 13814s 13814s if __name__ == "__main__": 13814s from numpy.distutils.core import setup 13814s setup(configuration=configuration) 13814s """ 13814s script = os.path.join(d, get_temp_module_name() + ".py") 13814s dst_sources.append(script) 13814s with open(script, "wb") as f: 13814s f.write(asbytes(code)) 13814s 13814s # Build 13814s cwd = os.getcwd() 13814s try: 13814s os.chdir(d) 13814s cmd = [sys.executable, script, "build_ext", "-i"] 13814s p = subprocess.Popen(cmd, 13814s stdout=subprocess.PIPE, 13814s stderr=subprocess.STDOUT) 13814s out, err = p.communicate() 13814s if p.returncode != 0: 13814s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13814s (cmd[4:], asstr(out))) 13814s E RuntimeError: Running distutils build failed: [] 13814s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13814s E 13814s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13814s E of the deprecation of `distutils` itself. It will be removed for 13814s E Python >= 3.12. For older Python versions it will remain present. 13814s E It is recommended to use `setuptools < 60.0` for those Python versions. 13814s E For more details, see: 13814s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13814s E 13814s E 13814s E from numpy.distutils.core import setup 13814s E running build_ext 13814s E running build_src 13814s E INFO: build_src 13814s E INFO: building extension "test_array_from_pyobj_ext" sources 13814s E INFO: build_src: building npy-pkg config files 13814s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13814s E !! 13814s E 13814s E ******************************************************************************** 13814s E Please avoid running ``setup.py`` directly. 13814s E Instead, use pypa/build, pypa/installer or other 13814s E standards-based tools. 13814s E 13814s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13814s E ******************************************************************************** 13814s E 13814s E !! 13814s E self.initialize_options() 13814s E INFO: customize UnixCCompiler 13814s E INFO: customize UnixCCompiler using build_ext 13814s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/tmp 13814s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/usr 13814s E creating /tmp/tmppq19o2st/usr/lib 13814s E creating /tmp/tmppq19o2st/usr/lib/python3 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=native' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-O3' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-Werror' 13814s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13814s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-vfpv4' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=armv8.2-a+fp16' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13814s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13814s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13814s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13814s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13814s E INFO: building 'test_array_from_pyobj_ext' extension 13814s E INFO: compiling C sources 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13814s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13814s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13814s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13814s E 14 | #include 13814s E | ^~~~~~~~~~ 13814s E In file included from fortranobject.c:2: 13814s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13814s E 7 | #include 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E compilation terminated. 13814s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13814s E INFO: 13814s E ########### EXT COMPILER OPTIMIZATION ########### 13814s E INFO: Platform : 13814s E Architecture: armhf 13814s E Compiler : gcc 13814s E 13814s E CPU baseline : 13814s E Requested : 'min' 13814s E Enabled : none 13814s E Flags : none 13814s E Extra checks: none 13814s E 13814s E CPU dispatch : 13814s E Requested : 'max -xop -fma4' 13814s E Enabled : none 13814s E Generated : none 13814s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13814s 13814s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13814s d = '/tmp/tmpjj8q074z' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s err = None 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s kw = {} 13814s module_name = 'test_array_from_pyobj_ext' 13814s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13814s p = 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13814s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[LONGLONG] _______ 13814s 13814s def setup_module(): 13814s """ 13814s Build the required testing extension module 13814s 13814s """ 13814s global wrap 13814s 13814s # Check compiler availability first 13814s if not util.has_c_compiler(): 13814s pytest.skip("No C compiler available") 13814s 13814s if wrap is None: 13814s config_code = """ 13814s config.add_extension('test_array_from_pyobj_ext', 13814s sources=['wrapmodule.c', 'fortranobject.c'], 13814s define_macros=[]) 13814s """ 13814s d = os.path.dirname(__file__) 13814s src = [ 13814s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13814s util.getpath("src", "fortranobject.c"), 13814s util.getpath("src", "fortranobject.h"), 13814s ] 13814s > wrap = util.build_module_distutils(src, config_code, 13814s "test_array_from_pyobj_ext") 13814s 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13814s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13814s memo[key] = func(*a, **kw) 13814s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13814s func = 13814s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13814s kw = {} 13814s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s 13814s @_memoize 13814s def build_module_distutils(source_files, config_code, module_name, **kw): 13814s """ 13814s Build a module via distutils and import it. 13814s 13814s """ 13814s d = get_module_dir() 13814s 13814s # Copy files 13814s dst_sources = [] 13814s for fn in source_files: 13814s if not os.path.isfile(fn): 13814s raise RuntimeError("%s is not a file" % fn) 13814s dst = os.path.join(d, os.path.basename(fn)) 13814s shutil.copyfile(fn, dst) 13814s dst_sources.append(dst) 13814s 13814s # Build script 13814s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13814s 13814s code = fr""" 13814s import os 13814s import sys 13814s sys.path = {repr(sys.path)} 13814s 13814s def configuration(parent_name='',top_path=None): 13814s from numpy.distutils.misc_util import Configuration 13814s config = Configuration('', parent_name, top_path) 13814s {config_code} 13814s return config 13814s 13814s if __name__ == "__main__": 13814s from numpy.distutils.core import setup 13814s setup(configuration=configuration) 13814s """ 13814s script = os.path.join(d, get_temp_module_name() + ".py") 13814s dst_sources.append(script) 13814s with open(script, "wb") as f: 13814s f.write(asbytes(code)) 13814s 13814s # Build 13814s cwd = os.getcwd() 13814s try: 13814s os.chdir(d) 13814s cmd = [sys.executable, script, "build_ext", "-i"] 13814s p = subprocess.Popen(cmd, 13814s stdout=subprocess.PIPE, 13814s stderr=subprocess.STDOUT) 13814s out, err = p.communicate() 13814s if p.returncode != 0: 13814s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13814s (cmd[4:], asstr(out))) 13814s E RuntimeError: Running distutils build failed: [] 13814s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13814s E 13814s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13814s E of the deprecation of `distutils` itself. It will be removed for 13814s E Python >= 3.12. For older Python versions it will remain present. 13814s E It is recommended to use `setuptools < 60.0` for those Python versions. 13814s E For more details, see: 13814s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13814s E 13814s E 13814s E from numpy.distutils.core import setup 13814s E running build_ext 13814s E running build_src 13814s E INFO: build_src 13814s E INFO: building extension "test_array_from_pyobj_ext" sources 13814s E INFO: build_src: building npy-pkg config files 13814s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13814s E !! 13814s E 13814s E ******************************************************************************** 13814s E Please avoid running ``setup.py`` directly. 13814s E Instead, use pypa/build, pypa/installer or other 13814s E standards-based tools. 13814s E 13814s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13814s E ******************************************************************************** 13814s E 13814s E !! 13814s E self.initialize_options() 13814s E INFO: customize UnixCCompiler 13814s E INFO: customize UnixCCompiler using build_ext 13814s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/tmp 13814s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/usr 13814s E creating /tmp/tmppq19o2st/usr/lib 13814s E creating /tmp/tmppq19o2st/usr/lib/python3 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=native' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-O3' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-Werror' 13814s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13814s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-vfpv4' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=armv8.2-a+fp16' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13814s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13814s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13814s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13814s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13814s E INFO: building 'test_array_from_pyobj_ext' extension 13814s E INFO: compiling C sources 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13814s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13814s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13814s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13814s E 14 | #include 13814s E | ^~~~~~~~~~ 13814s E In file included from fortranobject.c:2: 13814s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13814s E 7 | #include 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E compilation terminated. 13814s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13814s E INFO: 13814s E ########### EXT COMPILER OPTIMIZATION ########### 13814s E INFO: Platform : 13814s E Architecture: armhf 13814s E Compiler : gcc 13814s E 13814s E CPU baseline : 13814s E Requested : 'min' 13814s E Enabled : none 13814s E Flags : none 13814s E Extra checks: none 13814s E 13814s E CPU dispatch : 13814s E Requested : 'max -xop -fma4' 13814s E Enabled : none 13814s E Generated : none 13814s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13814s 13814s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13814s d = '/tmp/tmpjj8q074z' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s err = None 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s kw = {} 13814s module_name = 'test_array_from_pyobj_ext' 13814s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13814s p = 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13814s _____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[LONGLONG] _____ 13814s 13814s def setup_module(): 13814s """ 13814s Build the required testing extension module 13814s 13814s """ 13814s global wrap 13814s 13814s # Check compiler availability first 13814s if not util.has_c_compiler(): 13814s pytest.skip("No C compiler available") 13814s 13814s if wrap is None: 13814s config_code = """ 13814s config.add_extension('test_array_from_pyobj_ext', 13814s sources=['wrapmodule.c', 'fortranobject.c'], 13814s define_macros=[]) 13814s """ 13814s d = os.path.dirname(__file__) 13814s src = [ 13814s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13814s util.getpath("src", "fortranobject.c"), 13814s util.getpath("src", "fortranobject.h"), 13814s ] 13814s > wrap = util.build_module_distutils(src, config_code, 13814s "test_array_from_pyobj_ext") 13814s 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13814s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13814s memo[key] = func(*a, **kw) 13814s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13814s func = 13814s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13814s kw = {} 13814s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s 13814s @_memoize 13814s def build_module_distutils(source_files, config_code, module_name, **kw): 13814s """ 13814s Build a module via distutils and import it. 13814s 13814s """ 13814s d = get_module_dir() 13814s 13814s # Copy files 13814s dst_sources = [] 13814s for fn in source_files: 13814s if not os.path.isfile(fn): 13814s raise RuntimeError("%s is not a file" % fn) 13814s dst = os.path.join(d, os.path.basename(fn)) 13814s shutil.copyfile(fn, dst) 13814s dst_sources.append(dst) 13814s 13814s # Build script 13814s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13814s 13814s code = fr""" 13814s import os 13814s import sys 13814s sys.path = {repr(sys.path)} 13814s 13814s def configuration(parent_name='',top_path=None): 13814s from numpy.distutils.misc_util import Configuration 13814s config = Configuration('', parent_name, top_path) 13814s {config_code} 13814s return config 13814s 13814s if __name__ == "__main__": 13814s from numpy.distutils.core import setup 13814s setup(configuration=configuration) 13814s """ 13814s script = os.path.join(d, get_temp_module_name() + ".py") 13814s dst_sources.append(script) 13814s with open(script, "wb") as f: 13814s f.write(asbytes(code)) 13814s 13814s # Build 13814s cwd = os.getcwd() 13814s try: 13814s os.chdir(d) 13814s cmd = [sys.executable, script, "build_ext", "-i"] 13814s p = subprocess.Popen(cmd, 13814s stdout=subprocess.PIPE, 13814s stderr=subprocess.STDOUT) 13814s out, err = p.communicate() 13814s if p.returncode != 0: 13814s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13814s (cmd[4:], asstr(out))) 13814s E RuntimeError: Running distutils build failed: [] 13814s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13814s E 13814s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13814s E of the deprecation of `distutils` itself. It will be removed for 13814s E Python >= 3.12. For older Python versions it will remain present. 13814s E It is recommended to use `setuptools < 60.0` for those Python versions. 13814s E For more details, see: 13814s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13814s E 13814s E 13814s E from numpy.distutils.core import setup 13814s E running build_ext 13814s E running build_src 13814s E INFO: build_src 13814s E INFO: building extension "test_array_from_pyobj_ext" sources 13814s E INFO: build_src: building npy-pkg config files 13814s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13814s E !! 13814s E 13814s E ******************************************************************************** 13814s E Please avoid running ``setup.py`` directly. 13814s E Instead, use pypa/build, pypa/installer or other 13814s E standards-based tools. 13814s E 13814s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13814s E ******************************************************************************** 13814s E 13814s E !! 13814s E self.initialize_options() 13814s E INFO: customize UnixCCompiler 13814s E INFO: customize UnixCCompiler using build_ext 13814s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/tmp 13814s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/usr 13814s E creating /tmp/tmppq19o2st/usr/lib 13814s E creating /tmp/tmppq19o2st/usr/lib/python3 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=native' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-O3' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-Werror' 13814s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13814s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-vfpv4' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=armv8.2-a+fp16' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13814s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13814s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13814s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13814s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13814s E INFO: building 'test_array_from_pyobj_ext' extension 13814s E INFO: compiling C sources 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13814s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13814s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13814s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13814s E 14 | #include 13814s E | ^~~~~~~~~~ 13814s E In file included from fortranobject.c:2: 13814s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13814s E 7 | #include 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E compilation terminated. 13814s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13814s E INFO: 13814s E ########### EXT COMPILER OPTIMIZATION ########### 13814s E INFO: Platform : 13814s E Architecture: armhf 13814s E Compiler : gcc 13814s E 13814s E CPU baseline : 13814s E Requested : 'min' 13814s E Enabled : none 13814s E Flags : none 13814s E Extra checks: none 13814s E 13814s E CPU dispatch : 13814s E Requested : 'max -xop -fma4' 13814s E Enabled : none 13814s E Generated : none 13814s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13814s 13814s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13814s d = '/tmp/tmpjj8q074z' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s err = None 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s kw = {} 13814s module_name = 'test_array_from_pyobj_ext' 13814s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13814s p = 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13814s ____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[LONGLONG] ____ 13814s 13814s def setup_module(): 13814s """ 13814s Build the required testing extension module 13814s 13814s """ 13814s global wrap 13814s 13814s # Check compiler availability first 13814s if not util.has_c_compiler(): 13814s pytest.skip("No C compiler available") 13814s 13814s if wrap is None: 13814s config_code = """ 13814s config.add_extension('test_array_from_pyobj_ext', 13814s sources=['wrapmodule.c', 'fortranobject.c'], 13814s define_macros=[]) 13814s """ 13814s d = os.path.dirname(__file__) 13814s src = [ 13814s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13814s util.getpath("src", "fortranobject.c"), 13814s util.getpath("src", "fortranobject.h"), 13814s ] 13814s > wrap = util.build_module_distutils(src, config_code, 13814s "test_array_from_pyobj_ext") 13814s 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13814s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13814s memo[key] = func(*a, **kw) 13814s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13814s func = 13814s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13814s kw = {} 13814s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13814s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13814s 13814s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13814s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13814s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13814s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13814s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13814s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13814s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13814s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13814s 13814s @_memoize 13814s def build_module_distutils(source_files, config_code, module_name, **kw): 13814s """ 13814s Build a module via distutils and import it. 13814s 13814s """ 13814s d = get_module_dir() 13814s 13814s # Copy files 13814s dst_sources = [] 13814s for fn in source_files: 13814s if not os.path.isfile(fn): 13814s raise RuntimeError("%s is not a file" % fn) 13814s dst = os.path.join(d, os.path.basename(fn)) 13814s shutil.copyfile(fn, dst) 13814s dst_sources.append(dst) 13814s 13814s # Build script 13814s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13814s 13814s code = fr""" 13814s import os 13814s import sys 13814s sys.path = {repr(sys.path)} 13814s 13814s def configuration(parent_name='',top_path=None): 13814s from numpy.distutils.misc_util import Configuration 13814s config = Configuration('', parent_name, top_path) 13814s {config_code} 13814s return config 13814s 13814s if __name__ == "__main__": 13814s from numpy.distutils.core import setup 13814s setup(configuration=configuration) 13814s """ 13814s script = os.path.join(d, get_temp_module_name() + ".py") 13814s dst_sources.append(script) 13814s with open(script, "wb") as f: 13814s f.write(asbytes(code)) 13814s 13814s # Build 13814s cwd = os.getcwd() 13814s try: 13814s os.chdir(d) 13814s cmd = [sys.executable, script, "build_ext", "-i"] 13814s p = subprocess.Popen(cmd, 13814s stdout=subprocess.PIPE, 13814s stderr=subprocess.STDOUT) 13814s out, err = p.communicate() 13814s if p.returncode != 0: 13814s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13814s (cmd[4:], asstr(out))) 13814s E RuntimeError: Running distutils build failed: [] 13814s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13814s E 13814s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13814s E of the deprecation of `distutils` itself. It will be removed for 13814s E Python >= 3.12. For older Python versions it will remain present. 13814s E It is recommended to use `setuptools < 60.0` for those Python versions. 13814s E For more details, see: 13814s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13814s E 13814s E 13814s E from numpy.distutils.core import setup 13814s E running build_ext 13814s E running build_src 13814s E INFO: build_src 13814s E INFO: building extension "test_array_from_pyobj_ext" sources 13814s E INFO: build_src: building npy-pkg config files 13814s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13814s E !! 13814s E 13814s E ******************************************************************************** 13814s E Please avoid running ``setup.py`` directly. 13814s E Instead, use pypa/build, pypa/installer or other 13814s E standards-based tools. 13814s E 13814s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13814s E ******************************************************************************** 13814s E 13814s E !! 13814s E self.initialize_options() 13814s E INFO: customize UnixCCompiler 13814s E INFO: customize UnixCCompiler using build_ext 13814s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/tmp 13814s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E creating /tmp/tmppq19o2st/usr 13814s E creating /tmp/tmppq19o2st/usr/lib 13814s E creating /tmp/tmppq19o2st/usr/lib/python3 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13814s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-march=native' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-O3' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-Werror' 13814s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13814s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon' 13814s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13814s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13814s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13814s E 13814s E INFO: compile options: '-I/usr/include/python3.12 -c' 13814s E extra options: '-mfpu=neon -Werror' 13814s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13814s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13814s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13814s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13814s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13814s E 9 | # include_next 13814s E | ^~~~~~~~~~ 13814s E compilation terminated. 13814s E 13814s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-vfpv4' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=armv8.2-a+fp16' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13815s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13815s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13815s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13815s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13815s E INFO: building 'test_array_from_pyobj_ext' extension 13815s E INFO: compiling C sources 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13815s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13815s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13815s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13815s E 14 | #include 13815s E | ^~~~~~~~~~ 13815s E In file included from fortranobject.c:2: 13815s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13815s E 7 | #include 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E compilation terminated. 13815s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13815s E INFO: 13815s E ########### EXT COMPILER OPTIMIZATION ########### 13815s E INFO: Platform : 13815s E Architecture: armhf 13815s E Compiler : gcc 13815s E 13815s E CPU baseline : 13815s E Requested : 'min' 13815s E Enabled : none 13815s E Flags : none 13815s E Extra checks: none 13815s E 13815s E CPU dispatch : 13815s E Requested : 'max -xop -fma4' 13815s E Enabled : none 13815s E Generated : none 13815s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13815s 13815s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13815s d = '/tmp/tmpjj8q074z' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s err = None 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s kw = {} 13815s module_name = 'test_array_from_pyobj_ext' 13815s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13815s p = 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13815s ____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[LONGLONG] ____ 13815s 13815s def setup_module(): 13815s """ 13815s Build the required testing extension module 13815s 13815s """ 13815s global wrap 13815s 13815s # Check compiler availability first 13815s if not util.has_c_compiler(): 13815s pytest.skip("No C compiler available") 13815s 13815s if wrap is None: 13815s config_code = """ 13815s config.add_extension('test_array_from_pyobj_ext', 13815s sources=['wrapmodule.c', 'fortranobject.c'], 13815s define_macros=[]) 13815s """ 13815s d = os.path.dirname(__file__) 13815s src = [ 13815s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13815s util.getpath("src", "fortranobject.c"), 13815s util.getpath("src", "fortranobject.h"), 13815s ] 13815s > wrap = util.build_module_distutils(src, config_code, 13815s "test_array_from_pyobj_ext") 13815s 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13815s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13815s memo[key] = func(*a, **kw) 13815s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13815s func = 13815s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13815s kw = {} 13815s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s 13815s @_memoize 13815s def build_module_distutils(source_files, config_code, module_name, **kw): 13815s """ 13815s Build a module via distutils and import it. 13815s 13815s """ 13815s d = get_module_dir() 13815s 13815s # Copy files 13815s dst_sources = [] 13815s for fn in source_files: 13815s if not os.path.isfile(fn): 13815s raise RuntimeError("%s is not a file" % fn) 13815s dst = os.path.join(d, os.path.basename(fn)) 13815s shutil.copyfile(fn, dst) 13815s dst_sources.append(dst) 13815s 13815s # Build script 13815s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13815s 13815s code = fr""" 13815s import os 13815s import sys 13815s sys.path = {repr(sys.path)} 13815s 13815s def configuration(parent_name='',top_path=None): 13815s from numpy.distutils.misc_util import Configuration 13815s config = Configuration('', parent_name, top_path) 13815s {config_code} 13815s return config 13815s 13815s if __name__ == "__main__": 13815s from numpy.distutils.core import setup 13815s setup(configuration=configuration) 13815s """ 13815s script = os.path.join(d, get_temp_module_name() + ".py") 13815s dst_sources.append(script) 13815s with open(script, "wb") as f: 13815s f.write(asbytes(code)) 13815s 13815s # Build 13815s cwd = os.getcwd() 13815s try: 13815s os.chdir(d) 13815s cmd = [sys.executable, script, "build_ext", "-i"] 13815s p = subprocess.Popen(cmd, 13815s stdout=subprocess.PIPE, 13815s stderr=subprocess.STDOUT) 13815s out, err = p.communicate() 13815s if p.returncode != 0: 13815s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13815s (cmd[4:], asstr(out))) 13815s E RuntimeError: Running distutils build failed: [] 13815s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13815s E 13815s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13815s E of the deprecation of `distutils` itself. It will be removed for 13815s E Python >= 3.12. For older Python versions it will remain present. 13815s E It is recommended to use `setuptools < 60.0` for those Python versions. 13815s E For more details, see: 13815s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13815s E 13815s E 13815s E from numpy.distutils.core import setup 13815s E running build_ext 13815s E running build_src 13815s E INFO: build_src 13815s E INFO: building extension "test_array_from_pyobj_ext" sources 13815s E INFO: build_src: building npy-pkg config files 13815s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13815s E !! 13815s E 13815s E ******************************************************************************** 13815s E Please avoid running ``setup.py`` directly. 13815s E Instead, use pypa/build, pypa/installer or other 13815s E standards-based tools. 13815s E 13815s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13815s E ******************************************************************************** 13815s E 13815s E !! 13815s E self.initialize_options() 13815s E INFO: customize UnixCCompiler 13815s E INFO: customize UnixCCompiler using build_ext 13815s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/tmp 13815s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/usr 13815s E creating /tmp/tmppq19o2st/usr/lib 13815s E creating /tmp/tmppq19o2st/usr/lib/python3 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=native' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-O3' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-Werror' 13815s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13815s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-vfpv4' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=armv8.2-a+fp16' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13815s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13815s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13815s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13815s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13815s E INFO: building 'test_array_from_pyobj_ext' extension 13815s E INFO: compiling C sources 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13815s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13815s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13815s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13815s E 14 | #include 13815s E | ^~~~~~~~~~ 13815s E In file included from fortranobject.c:2: 13815s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13815s E 7 | #include 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E compilation terminated. 13815s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13815s E INFO: 13815s E ########### EXT COMPILER OPTIMIZATION ########### 13815s E INFO: Platform : 13815s E Architecture: armhf 13815s E Compiler : gcc 13815s E 13815s E CPU baseline : 13815s E Requested : 'min' 13815s E Enabled : none 13815s E Flags : none 13815s E Extra checks: none 13815s E 13815s E CPU dispatch : 13815s E Requested : 'max -xop -fma4' 13815s E Enabled : none 13815s E Generated : none 13815s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13815s 13815s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13815s d = '/tmp/tmpjj8q074z' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s err = None 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s kw = {} 13815s module_name = 'test_array_from_pyobj_ext' 13815s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13815s p = 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13815s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[LONGLONG] __ 13815s 13815s def setup_module(): 13815s """ 13815s Build the required testing extension module 13815s 13815s """ 13815s global wrap 13815s 13815s # Check compiler availability first 13815s if not util.has_c_compiler(): 13815s pytest.skip("No C compiler available") 13815s 13815s if wrap is None: 13815s config_code = """ 13815s config.add_extension('test_array_from_pyobj_ext', 13815s sources=['wrapmodule.c', 'fortranobject.c'], 13815s define_macros=[]) 13815s """ 13815s d = os.path.dirname(__file__) 13815s src = [ 13815s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13815s util.getpath("src", "fortranobject.c"), 13815s util.getpath("src", "fortranobject.h"), 13815s ] 13815s > wrap = util.build_module_distutils(src, config_code, 13815s "test_array_from_pyobj_ext") 13815s 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13815s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13815s memo[key] = func(*a, **kw) 13815s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13815s func = 13815s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13815s kw = {} 13815s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s 13815s @_memoize 13815s def build_module_distutils(source_files, config_code, module_name, **kw): 13815s """ 13815s Build a module via distutils and import it. 13815s 13815s """ 13815s d = get_module_dir() 13815s 13815s # Copy files 13815s dst_sources = [] 13815s for fn in source_files: 13815s if not os.path.isfile(fn): 13815s raise RuntimeError("%s is not a file" % fn) 13815s dst = os.path.join(d, os.path.basename(fn)) 13815s shutil.copyfile(fn, dst) 13815s dst_sources.append(dst) 13815s 13815s # Build script 13815s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13815s 13815s code = fr""" 13815s import os 13815s import sys 13815s sys.path = {repr(sys.path)} 13815s 13815s def configuration(parent_name='',top_path=None): 13815s from numpy.distutils.misc_util import Configuration 13815s config = Configuration('', parent_name, top_path) 13815s {config_code} 13815s return config 13815s 13815s if __name__ == "__main__": 13815s from numpy.distutils.core import setup 13815s setup(configuration=configuration) 13815s """ 13815s script = os.path.join(d, get_temp_module_name() + ".py") 13815s dst_sources.append(script) 13815s with open(script, "wb") as f: 13815s f.write(asbytes(code)) 13815s 13815s # Build 13815s cwd = os.getcwd() 13815s try: 13815s os.chdir(d) 13815s cmd = [sys.executable, script, "build_ext", "-i"] 13815s p = subprocess.Popen(cmd, 13815s stdout=subprocess.PIPE, 13815s stderr=subprocess.STDOUT) 13815s out, err = p.communicate() 13815s if p.returncode != 0: 13815s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13815s (cmd[4:], asstr(out))) 13815s E RuntimeError: Running distutils build failed: [] 13815s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13815s E 13815s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13815s E of the deprecation of `distutils` itself. It will be removed for 13815s E Python >= 3.12. For older Python versions it will remain present. 13815s E It is recommended to use `setuptools < 60.0` for those Python versions. 13815s E For more details, see: 13815s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13815s E 13815s E 13815s E from numpy.distutils.core import setup 13815s E running build_ext 13815s E running build_src 13815s E INFO: build_src 13815s E INFO: building extension "test_array_from_pyobj_ext" sources 13815s E INFO: build_src: building npy-pkg config files 13815s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13815s E !! 13815s E 13815s E ******************************************************************************** 13815s E Please avoid running ``setup.py`` directly. 13815s E Instead, use pypa/build, pypa/installer or other 13815s E standards-based tools. 13815s E 13815s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13815s E ******************************************************************************** 13815s E 13815s E !! 13815s E self.initialize_options() 13815s E INFO: customize UnixCCompiler 13815s E INFO: customize UnixCCompiler using build_ext 13815s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/tmp 13815s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/usr 13815s E creating /tmp/tmppq19o2st/usr/lib 13815s E creating /tmp/tmppq19o2st/usr/lib/python3 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=native' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-O3' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-Werror' 13815s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13815s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-vfpv4' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=armv8.2-a+fp16' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13815s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13815s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13815s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13815s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13815s E INFO: building 'test_array_from_pyobj_ext' extension 13815s E INFO: compiling C sources 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13815s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13815s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13815s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13815s E 14 | #include 13815s E | ^~~~~~~~~~ 13815s E In file included from fortranobject.c:2: 13815s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13815s E 7 | #include 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E compilation terminated. 13815s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13815s E INFO: 13815s E ########### EXT COMPILER OPTIMIZATION ########### 13815s E INFO: Platform : 13815s E Architecture: armhf 13815s E Compiler : gcc 13815s E 13815s E CPU baseline : 13815s E Requested : 'min' 13815s E Enabled : none 13815s E Flags : none 13815s E Extra checks: none 13815s E 13815s E CPU dispatch : 13815s E Requested : 'max -xop -fma4' 13815s E Enabled : none 13815s E Generated : none 13815s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13815s 13815s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13815s d = '/tmp/tmpjj8q074z' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s err = None 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s kw = {} 13815s module_name = 'test_array_from_pyobj_ext' 13815s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13815s p = 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13815s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[LONGLONG] __ 13815s 13815s def setup_module(): 13815s """ 13815s Build the required testing extension module 13815s 13815s """ 13815s global wrap 13815s 13815s # Check compiler availability first 13815s if not util.has_c_compiler(): 13815s pytest.skip("No C compiler available") 13815s 13815s if wrap is None: 13815s config_code = """ 13815s config.add_extension('test_array_from_pyobj_ext', 13815s sources=['wrapmodule.c', 'fortranobject.c'], 13815s define_macros=[]) 13815s """ 13815s d = os.path.dirname(__file__) 13815s src = [ 13815s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13815s util.getpath("src", "fortranobject.c"), 13815s util.getpath("src", "fortranobject.h"), 13815s ] 13815s > wrap = util.build_module_distutils(src, config_code, 13815s "test_array_from_pyobj_ext") 13815s 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13815s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13815s memo[key] = func(*a, **kw) 13815s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13815s func = 13815s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13815s kw = {} 13815s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s 13815s @_memoize 13815s def build_module_distutils(source_files, config_code, module_name, **kw): 13815s """ 13815s Build a module via distutils and import it. 13815s 13815s """ 13815s d = get_module_dir() 13815s 13815s # Copy files 13815s dst_sources = [] 13815s for fn in source_files: 13815s if not os.path.isfile(fn): 13815s raise RuntimeError("%s is not a file" % fn) 13815s dst = os.path.join(d, os.path.basename(fn)) 13815s shutil.copyfile(fn, dst) 13815s dst_sources.append(dst) 13815s 13815s # Build script 13815s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13815s 13815s code = fr""" 13815s import os 13815s import sys 13815s sys.path = {repr(sys.path)} 13815s 13815s def configuration(parent_name='',top_path=None): 13815s from numpy.distutils.misc_util import Configuration 13815s config = Configuration('', parent_name, top_path) 13815s {config_code} 13815s return config 13815s 13815s if __name__ == "__main__": 13815s from numpy.distutils.core import setup 13815s setup(configuration=configuration) 13815s """ 13815s script = os.path.join(d, get_temp_module_name() + ".py") 13815s dst_sources.append(script) 13815s with open(script, "wb") as f: 13815s f.write(asbytes(code)) 13815s 13815s # Build 13815s cwd = os.getcwd() 13815s try: 13815s os.chdir(d) 13815s cmd = [sys.executable, script, "build_ext", "-i"] 13815s p = subprocess.Popen(cmd, 13815s stdout=subprocess.PIPE, 13815s stderr=subprocess.STDOUT) 13815s out, err = p.communicate() 13815s if p.returncode != 0: 13815s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13815s (cmd[4:], asstr(out))) 13815s E RuntimeError: Running distutils build failed: [] 13815s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13815s E 13815s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13815s E of the deprecation of `distutils` itself. It will be removed for 13815s E Python >= 3.12. For older Python versions it will remain present. 13815s E It is recommended to use `setuptools < 60.0` for those Python versions. 13815s E For more details, see: 13815s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13815s E 13815s E 13815s E from numpy.distutils.core import setup 13815s E running build_ext 13815s E running build_src 13815s E INFO: build_src 13815s E INFO: building extension "test_array_from_pyobj_ext" sources 13815s E INFO: build_src: building npy-pkg config files 13815s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13815s E !! 13815s E 13815s E ******************************************************************************** 13815s E Please avoid running ``setup.py`` directly. 13815s E Instead, use pypa/build, pypa/installer or other 13815s E standards-based tools. 13815s E 13815s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13815s E ******************************************************************************** 13815s E 13815s E !! 13815s E self.initialize_options() 13815s E INFO: customize UnixCCompiler 13815s E INFO: customize UnixCCompiler using build_ext 13815s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/tmp 13815s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/usr 13815s E creating /tmp/tmppq19o2st/usr/lib 13815s E creating /tmp/tmppq19o2st/usr/lib/python3 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=native' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-O3' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-Werror' 13815s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13815s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-vfpv4' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=armv8.2-a+fp16' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13815s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13815s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13815s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13815s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13815s E INFO: building 'test_array_from_pyobj_ext' extension 13815s E INFO: compiling C sources 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13815s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13815s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13815s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13815s E 14 | #include 13815s E | ^~~~~~~~~~ 13815s E In file included from fortranobject.c:2: 13815s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13815s E 7 | #include 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E compilation terminated. 13815s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13815s E INFO: 13815s E ########### EXT COMPILER OPTIMIZATION ########### 13815s E INFO: Platform : 13815s E Architecture: armhf 13815s E Compiler : gcc 13815s E 13815s E CPU baseline : 13815s E Requested : 'min' 13815s E Enabled : none 13815s E Flags : none 13815s E Extra checks: none 13815s E 13815s E CPU dispatch : 13815s E Requested : 'max -xop -fma4' 13815s E Enabled : none 13815s E Generated : none 13815s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13815s 13815s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13815s d = '/tmp/tmpjj8q074z' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s err = None 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s kw = {} 13815s module_name = 'test_array_from_pyobj_ext' 13815s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13815s p = 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13815s __ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[LONGLONG] ___ 13815s 13815s def setup_module(): 13815s """ 13815s Build the required testing extension module 13815s 13815s """ 13815s global wrap 13815s 13815s # Check compiler availability first 13815s if not util.has_c_compiler(): 13815s pytest.skip("No C compiler available") 13815s 13815s if wrap is None: 13815s config_code = """ 13815s config.add_extension('test_array_from_pyobj_ext', 13815s sources=['wrapmodule.c', 'fortranobject.c'], 13815s define_macros=[]) 13815s """ 13815s d = os.path.dirname(__file__) 13815s src = [ 13815s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13815s util.getpath("src", "fortranobject.c"), 13815s util.getpath("src", "fortranobject.h"), 13815s ] 13815s > wrap = util.build_module_distutils(src, config_code, 13815s "test_array_from_pyobj_ext") 13815s 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13815s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13815s memo[key] = func(*a, **kw) 13815s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13815s func = 13815s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13815s kw = {} 13815s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s 13815s @_memoize 13815s def build_module_distutils(source_files, config_code, module_name, **kw): 13815s """ 13815s Build a module via distutils and import it. 13815s 13815s """ 13815s d = get_module_dir() 13815s 13815s # Copy files 13815s dst_sources = [] 13815s for fn in source_files: 13815s if not os.path.isfile(fn): 13815s raise RuntimeError("%s is not a file" % fn) 13815s dst = os.path.join(d, os.path.basename(fn)) 13815s shutil.copyfile(fn, dst) 13815s dst_sources.append(dst) 13815s 13815s # Build script 13815s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13815s 13815s code = fr""" 13815s import os 13815s import sys 13815s sys.path = {repr(sys.path)} 13815s 13815s def configuration(parent_name='',top_path=None): 13815s from numpy.distutils.misc_util import Configuration 13815s config = Configuration('', parent_name, top_path) 13815s {config_code} 13815s return config 13815s 13815s if __name__ == "__main__": 13815s from numpy.distutils.core import setup 13815s setup(configuration=configuration) 13815s """ 13815s script = os.path.join(d, get_temp_module_name() + ".py") 13815s dst_sources.append(script) 13815s with open(script, "wb") as f: 13815s f.write(asbytes(code)) 13815s 13815s # Build 13815s cwd = os.getcwd() 13815s try: 13815s os.chdir(d) 13815s cmd = [sys.executable, script, "build_ext", "-i"] 13815s p = subprocess.Popen(cmd, 13815s stdout=subprocess.PIPE, 13815s stderr=subprocess.STDOUT) 13815s out, err = p.communicate() 13815s if p.returncode != 0: 13815s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13815s (cmd[4:], asstr(out))) 13815s E RuntimeError: Running distutils build failed: [] 13815s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13815s E 13815s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13815s E of the deprecation of `distutils` itself. It will be removed for 13815s E Python >= 3.12. For older Python versions it will remain present. 13815s E It is recommended to use `setuptools < 60.0` for those Python versions. 13815s E For more details, see: 13815s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13815s E 13815s E 13815s E from numpy.distutils.core import setup 13815s E running build_ext 13815s E running build_src 13815s E INFO: build_src 13815s E INFO: building extension "test_array_from_pyobj_ext" sources 13815s E INFO: build_src: building npy-pkg config files 13815s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13815s E !! 13815s E 13815s E ******************************************************************************** 13815s E Please avoid running ``setup.py`` directly. 13815s E Instead, use pypa/build, pypa/installer or other 13815s E standards-based tools. 13815s E 13815s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13815s E ******************************************************************************** 13815s E 13815s E !! 13815s E self.initialize_options() 13815s E INFO: customize UnixCCompiler 13815s E INFO: customize UnixCCompiler using build_ext 13815s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/tmp 13815s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/usr 13815s E creating /tmp/tmppq19o2st/usr/lib 13815s E creating /tmp/tmppq19o2st/usr/lib/python3 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=native' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-O3' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-Werror' 13815s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13815s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-vfpv4' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=armv8.2-a+fp16' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13815s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13815s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13815s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13815s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13815s E INFO: building 'test_array_from_pyobj_ext' extension 13815s E INFO: compiling C sources 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13815s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13815s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13815s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13815s E 14 | #include 13815s E | ^~~~~~~~~~ 13815s E In file included from fortranobject.c:2: 13815s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13815s E 7 | #include 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E compilation terminated. 13815s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13815s E INFO: 13815s E ########### EXT COMPILER OPTIMIZATION ########### 13815s E INFO: Platform : 13815s E Architecture: armhf 13815s E Compiler : gcc 13815s E 13815s E CPU baseline : 13815s E Requested : 'min' 13815s E Enabled : none 13815s E Flags : none 13815s E Extra checks: none 13815s E 13815s E CPU dispatch : 13815s E Requested : 'max -xop -fma4' 13815s E Enabled : none 13815s E Generated : none 13815s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13815s 13815s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13815s d = '/tmp/tmpjj8q074z' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s err = None 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s kw = {} 13815s module_name = 'test_array_from_pyobj_ext' 13815s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13815s p = 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13815s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[LONGLONG] _ 13815s 13815s def setup_module(): 13815s """ 13815s Build the required testing extension module 13815s 13815s """ 13815s global wrap 13815s 13815s # Check compiler availability first 13815s if not util.has_c_compiler(): 13815s pytest.skip("No C compiler available") 13815s 13815s if wrap is None: 13815s config_code = """ 13815s config.add_extension('test_array_from_pyobj_ext', 13815s sources=['wrapmodule.c', 'fortranobject.c'], 13815s define_macros=[]) 13815s """ 13815s d = os.path.dirname(__file__) 13815s src = [ 13815s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13815s util.getpath("src", "fortranobject.c"), 13815s util.getpath("src", "fortranobject.h"), 13815s ] 13815s > wrap = util.build_module_distutils(src, config_code, 13815s "test_array_from_pyobj_ext") 13815s 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13815s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13815s memo[key] = func(*a, **kw) 13815s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13815s func = 13815s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13815s kw = {} 13815s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s 13815s @_memoize 13815s def build_module_distutils(source_files, config_code, module_name, **kw): 13815s """ 13815s Build a module via distutils and import it. 13815s 13815s """ 13815s d = get_module_dir() 13815s 13815s # Copy files 13815s dst_sources = [] 13815s for fn in source_files: 13815s if not os.path.isfile(fn): 13815s raise RuntimeError("%s is not a file" % fn) 13815s dst = os.path.join(d, os.path.basename(fn)) 13815s shutil.copyfile(fn, dst) 13815s dst_sources.append(dst) 13815s 13815s # Build script 13815s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13815s 13815s code = fr""" 13815s import os 13815s import sys 13815s sys.path = {repr(sys.path)} 13815s 13815s def configuration(parent_name='',top_path=None): 13815s from numpy.distutils.misc_util import Configuration 13815s config = Configuration('', parent_name, top_path) 13815s {config_code} 13815s return config 13815s 13815s if __name__ == "__main__": 13815s from numpy.distutils.core import setup 13815s setup(configuration=configuration) 13815s """ 13815s script = os.path.join(d, get_temp_module_name() + ".py") 13815s dst_sources.append(script) 13815s with open(script, "wb") as f: 13815s f.write(asbytes(code)) 13815s 13815s # Build 13815s cwd = os.getcwd() 13815s try: 13815s os.chdir(d) 13815s cmd = [sys.executable, script, "build_ext", "-i"] 13815s p = subprocess.Popen(cmd, 13815s stdout=subprocess.PIPE, 13815s stderr=subprocess.STDOUT) 13815s out, err = p.communicate() 13815s if p.returncode != 0: 13815s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13815s (cmd[4:], asstr(out))) 13815s E RuntimeError: Running distutils build failed: [] 13815s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13815s E 13815s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13815s E of the deprecation of `distutils` itself. It will be removed for 13815s E Python >= 3.12. For older Python versions it will remain present. 13815s E It is recommended to use `setuptools < 60.0` for those Python versions. 13815s E For more details, see: 13815s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13815s E 13815s E 13815s E from numpy.distutils.core import setup 13815s E running build_ext 13815s E running build_src 13815s E INFO: build_src 13815s E INFO: building extension "test_array_from_pyobj_ext" sources 13815s E INFO: build_src: building npy-pkg config files 13815s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13815s E !! 13815s E 13815s E ******************************************************************************** 13815s E Please avoid running ``setup.py`` directly. 13815s E Instead, use pypa/build, pypa/installer or other 13815s E standards-based tools. 13815s E 13815s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13815s E ******************************************************************************** 13815s E 13815s E !! 13815s E self.initialize_options() 13815s E INFO: customize UnixCCompiler 13815s E INFO: customize UnixCCompiler using build_ext 13815s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/tmp 13815s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/usr 13815s E creating /tmp/tmppq19o2st/usr/lib 13815s E creating /tmp/tmppq19o2st/usr/lib/python3 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=native' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-O3' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-Werror' 13815s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13815s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-vfpv4' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=armv8.2-a+fp16' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13815s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13815s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13815s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13815s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13815s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13815s E 9 | # include_next 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E 13815s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13815s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13815s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13815s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13815s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13815s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13815s E INFO: building 'test_array_from_pyobj_ext' extension 13815s E INFO: compiling C sources 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13815s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13815s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13815s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13815s E 14 | #include 13815s E | ^~~~~~~~~~ 13815s E In file included from fortranobject.c:2: 13815s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13815s E 7 | #include 13815s E | ^~~~~~~~~~ 13815s E compilation terminated. 13815s E compilation terminated. 13815s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13815s E INFO: 13815s E ########### EXT COMPILER OPTIMIZATION ########### 13815s E INFO: Platform : 13815s E Architecture: armhf 13815s E Compiler : gcc 13815s E 13815s E CPU baseline : 13815s E Requested : 'min' 13815s E Enabled : none 13815s E Flags : none 13815s E Extra checks: none 13815s E 13815s E CPU dispatch : 13815s E Requested : 'max -xop -fma4' 13815s E Enabled : none 13815s E Generated : none 13815s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13815s 13815s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13815s d = '/tmp/tmpjj8q074z' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s err = None 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s kw = {} 13815s module_name = 'test_array_from_pyobj_ext' 13815s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13815s p = 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13815s ________ ERROR at setup of TestSharedMemory.test_cache_hidden[LONGLONG] ________ 13815s 13815s def setup_module(): 13815s """ 13815s Build the required testing extension module 13815s 13815s """ 13815s global wrap 13815s 13815s # Check compiler availability first 13815s if not util.has_c_compiler(): 13815s pytest.skip("No C compiler available") 13815s 13815s if wrap is None: 13815s config_code = """ 13815s config.add_extension('test_array_from_pyobj_ext', 13815s sources=['wrapmodule.c', 'fortranobject.c'], 13815s define_macros=[]) 13815s """ 13815s d = os.path.dirname(__file__) 13815s src = [ 13815s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13815s util.getpath("src", "fortranobject.c"), 13815s util.getpath("src", "fortranobject.h"), 13815s ] 13815s > wrap = util.build_module_distutils(src, config_code, 13815s "test_array_from_pyobj_ext") 13815s 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13815s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13815s memo[key] = func(*a, **kw) 13815s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13815s func = 13815s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13815s kw = {} 13815s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13815s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13815s 13815s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13815s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13815s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13815s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13815s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13815s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13815s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13815s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13815s 13815s @_memoize 13815s def build_module_distutils(source_files, config_code, module_name, **kw): 13815s """ 13815s Build a module via distutils and import it. 13815s 13815s """ 13815s d = get_module_dir() 13815s 13815s # Copy files 13815s dst_sources = [] 13815s for fn in source_files: 13815s if not os.path.isfile(fn): 13815s raise RuntimeError("%s is not a file" % fn) 13815s dst = os.path.join(d, os.path.basename(fn)) 13815s shutil.copyfile(fn, dst) 13815s dst_sources.append(dst) 13815s 13815s # Build script 13815s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13815s 13815s code = fr""" 13815s import os 13815s import sys 13815s sys.path = {repr(sys.path)} 13815s 13815s def configuration(parent_name='',top_path=None): 13815s from numpy.distutils.misc_util import Configuration 13815s config = Configuration('', parent_name, top_path) 13815s {config_code} 13815s return config 13815s 13815s if __name__ == "__main__": 13815s from numpy.distutils.core import setup 13815s setup(configuration=configuration) 13815s """ 13815s script = os.path.join(d, get_temp_module_name() + ".py") 13815s dst_sources.append(script) 13815s with open(script, "wb") as f: 13815s f.write(asbytes(code)) 13815s 13815s # Build 13815s cwd = os.getcwd() 13815s try: 13815s os.chdir(d) 13815s cmd = [sys.executable, script, "build_ext", "-i"] 13815s p = subprocess.Popen(cmd, 13815s stdout=subprocess.PIPE, 13815s stderr=subprocess.STDOUT) 13815s out, err = p.communicate() 13815s if p.returncode != 0: 13815s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13815s (cmd[4:], asstr(out))) 13815s E RuntimeError: Running distutils build failed: [] 13815s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13815s E 13815s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13815s E of the deprecation of `distutils` itself. It will be removed for 13815s E Python >= 3.12. For older Python versions it will remain present. 13815s E It is recommended to use `setuptools < 60.0` for those Python versions. 13815s E For more details, see: 13815s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13815s E 13815s E 13815s E from numpy.distutils.core import setup 13815s E running build_ext 13815s E running build_src 13815s E INFO: build_src 13815s E INFO: building extension "test_array_from_pyobj_ext" sources 13815s E INFO: build_src: building npy-pkg config files 13815s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13815s E !! 13815s E 13815s E ******************************************************************************** 13815s E Please avoid running ``setup.py`` directly. 13815s E Instead, use pypa/build, pypa/installer or other 13815s E standards-based tools. 13815s E 13815s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13815s E ******************************************************************************** 13815s E 13815s E !! 13815s E self.initialize_options() 13815s E INFO: customize UnixCCompiler 13815s E INFO: customize UnixCCompiler using build_ext 13815s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/tmp 13815s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E creating /tmp/tmppq19o2st/usr 13815s E creating /tmp/tmppq19o2st/usr/lib 13815s E creating /tmp/tmppq19o2st/usr/lib/python3 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13815s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-march=native' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-O3' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-Werror' 13815s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13815s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon' 13815s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13815s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13815s E 13815s E INFO: compile options: '-I/usr/include/python3.12 -c' 13815s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13815s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-vfpv4' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=armv8.2-a+fp16' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13816s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13816s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13816s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13816s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13816s E INFO: building 'test_array_from_pyobj_ext' extension 13816s E INFO: compiling C sources 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13816s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13816s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13816s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13816s E 14 | #include 13816s E | ^~~~~~~~~~ 13816s E In file included from fortranobject.c:2: 13816s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13816s E 7 | #include 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E compilation terminated. 13816s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13816s E INFO: 13816s E ########### EXT COMPILER OPTIMIZATION ########### 13816s E INFO: Platform : 13816s E Architecture: armhf 13816s E Compiler : gcc 13816s E 13816s E CPU baseline : 13816s E Requested : 'min' 13816s E Enabled : none 13816s E Flags : none 13816s E Extra checks: none 13816s E 13816s E CPU dispatch : 13816s E Requested : 'max -xop -fma4' 13816s E Enabled : none 13816s E Generated : none 13816s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13816s 13816s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13816s d = '/tmp/tmpjj8q074z' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s err = None 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s kw = {} 13816s module_name = 'test_array_from_pyobj_ext' 13816s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13816s p = 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13816s ___________ ERROR at setup of TestSharedMemory.test_hidden[LONGLONG] ___________ 13816s 13816s def setup_module(): 13816s """ 13816s Build the required testing extension module 13816s 13816s """ 13816s global wrap 13816s 13816s # Check compiler availability first 13816s if not util.has_c_compiler(): 13816s pytest.skip("No C compiler available") 13816s 13816s if wrap is None: 13816s config_code = """ 13816s config.add_extension('test_array_from_pyobj_ext', 13816s sources=['wrapmodule.c', 'fortranobject.c'], 13816s define_macros=[]) 13816s """ 13816s d = os.path.dirname(__file__) 13816s src = [ 13816s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13816s util.getpath("src", "fortranobject.c"), 13816s util.getpath("src", "fortranobject.h"), 13816s ] 13816s > wrap = util.build_module_distutils(src, config_code, 13816s "test_array_from_pyobj_ext") 13816s 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13816s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13816s memo[key] = func(*a, **kw) 13816s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13816s func = 13816s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13816s kw = {} 13816s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s 13816s @_memoize 13816s def build_module_distutils(source_files, config_code, module_name, **kw): 13816s """ 13816s Build a module via distutils and import it. 13816s 13816s """ 13816s d = get_module_dir() 13816s 13816s # Copy files 13816s dst_sources = [] 13816s for fn in source_files: 13816s if not os.path.isfile(fn): 13816s raise RuntimeError("%s is not a file" % fn) 13816s dst = os.path.join(d, os.path.basename(fn)) 13816s shutil.copyfile(fn, dst) 13816s dst_sources.append(dst) 13816s 13816s # Build script 13816s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13816s 13816s code = fr""" 13816s import os 13816s import sys 13816s sys.path = {repr(sys.path)} 13816s 13816s def configuration(parent_name='',top_path=None): 13816s from numpy.distutils.misc_util import Configuration 13816s config = Configuration('', parent_name, top_path) 13816s {config_code} 13816s return config 13816s 13816s if __name__ == "__main__": 13816s from numpy.distutils.core import setup 13816s setup(configuration=configuration) 13816s """ 13816s script = os.path.join(d, get_temp_module_name() + ".py") 13816s dst_sources.append(script) 13816s with open(script, "wb") as f: 13816s f.write(asbytes(code)) 13816s 13816s # Build 13816s cwd = os.getcwd() 13816s try: 13816s os.chdir(d) 13816s cmd = [sys.executable, script, "build_ext", "-i"] 13816s p = subprocess.Popen(cmd, 13816s stdout=subprocess.PIPE, 13816s stderr=subprocess.STDOUT) 13816s out, err = p.communicate() 13816s if p.returncode != 0: 13816s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13816s (cmd[4:], asstr(out))) 13816s E RuntimeError: Running distutils build failed: [] 13816s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13816s E 13816s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13816s E of the deprecation of `distutils` itself. It will be removed for 13816s E Python >= 3.12. For older Python versions it will remain present. 13816s E It is recommended to use `setuptools < 60.0` for those Python versions. 13816s E For more details, see: 13816s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13816s E 13816s E 13816s E from numpy.distutils.core import setup 13816s E running build_ext 13816s E running build_src 13816s E INFO: build_src 13816s E INFO: building extension "test_array_from_pyobj_ext" sources 13816s E INFO: build_src: building npy-pkg config files 13816s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13816s E !! 13816s E 13816s E ******************************************************************************** 13816s E Please avoid running ``setup.py`` directly. 13816s E Instead, use pypa/build, pypa/installer or other 13816s E standards-based tools. 13816s E 13816s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13816s E ******************************************************************************** 13816s E 13816s E !! 13816s E self.initialize_options() 13816s E INFO: customize UnixCCompiler 13816s E INFO: customize UnixCCompiler using build_ext 13816s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/tmp 13816s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/usr 13816s E creating /tmp/tmppq19o2st/usr/lib 13816s E creating /tmp/tmppq19o2st/usr/lib/python3 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=native' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-O3' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-Werror' 13816s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13816s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-vfpv4' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=armv8.2-a+fp16' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13816s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13816s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13816s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13816s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13816s E INFO: building 'test_array_from_pyobj_ext' extension 13816s E INFO: compiling C sources 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13816s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13816s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13816s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13816s E 14 | #include 13816s E | ^~~~~~~~~~ 13816s E In file included from fortranobject.c:2: 13816s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13816s E 7 | #include 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E compilation terminated. 13816s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13816s E INFO: 13816s E ########### EXT COMPILER OPTIMIZATION ########### 13816s E INFO: Platform : 13816s E Architecture: armhf 13816s E Compiler : gcc 13816s E 13816s E CPU baseline : 13816s E Requested : 'min' 13816s E Enabled : none 13816s E Flags : none 13816s E Extra checks: none 13816s E 13816s E CPU dispatch : 13816s E Requested : 'max -xop -fma4' 13816s E Enabled : none 13816s E Generated : none 13816s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13816s 13816s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13816s d = '/tmp/tmpjj8q074z' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s err = None 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s kw = {} 13816s module_name = 'test_array_from_pyobj_ext' 13816s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13816s p = 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13816s _______ ERROR at setup of TestSharedMemory.test_optional_none[LONGLONG] ________ 13816s 13816s def setup_module(): 13816s """ 13816s Build the required testing extension module 13816s 13816s """ 13816s global wrap 13816s 13816s # Check compiler availability first 13816s if not util.has_c_compiler(): 13816s pytest.skip("No C compiler available") 13816s 13816s if wrap is None: 13816s config_code = """ 13816s config.add_extension('test_array_from_pyobj_ext', 13816s sources=['wrapmodule.c', 'fortranobject.c'], 13816s define_macros=[]) 13816s """ 13816s d = os.path.dirname(__file__) 13816s src = [ 13816s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13816s util.getpath("src", "fortranobject.c"), 13816s util.getpath("src", "fortranobject.h"), 13816s ] 13816s > wrap = util.build_module_distutils(src, config_code, 13816s "test_array_from_pyobj_ext") 13816s 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13816s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13816s memo[key] = func(*a, **kw) 13816s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13816s func = 13816s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13816s kw = {} 13816s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s 13816s @_memoize 13816s def build_module_distutils(source_files, config_code, module_name, **kw): 13816s """ 13816s Build a module via distutils and import it. 13816s 13816s """ 13816s d = get_module_dir() 13816s 13816s # Copy files 13816s dst_sources = [] 13816s for fn in source_files: 13816s if not os.path.isfile(fn): 13816s raise RuntimeError("%s is not a file" % fn) 13816s dst = os.path.join(d, os.path.basename(fn)) 13816s shutil.copyfile(fn, dst) 13816s dst_sources.append(dst) 13816s 13816s # Build script 13816s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13816s 13816s code = fr""" 13816s import os 13816s import sys 13816s sys.path = {repr(sys.path)} 13816s 13816s def configuration(parent_name='',top_path=None): 13816s from numpy.distutils.misc_util import Configuration 13816s config = Configuration('', parent_name, top_path) 13816s {config_code} 13816s return config 13816s 13816s if __name__ == "__main__": 13816s from numpy.distutils.core import setup 13816s setup(configuration=configuration) 13816s """ 13816s script = os.path.join(d, get_temp_module_name() + ".py") 13816s dst_sources.append(script) 13816s with open(script, "wb") as f: 13816s f.write(asbytes(code)) 13816s 13816s # Build 13816s cwd = os.getcwd() 13816s try: 13816s os.chdir(d) 13816s cmd = [sys.executable, script, "build_ext", "-i"] 13816s p = subprocess.Popen(cmd, 13816s stdout=subprocess.PIPE, 13816s stderr=subprocess.STDOUT) 13816s out, err = p.communicate() 13816s if p.returncode != 0: 13816s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13816s (cmd[4:], asstr(out))) 13816s E RuntimeError: Running distutils build failed: [] 13816s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13816s E 13816s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13816s E of the deprecation of `distutils` itself. It will be removed for 13816s E Python >= 3.12. For older Python versions it will remain present. 13816s E It is recommended to use `setuptools < 60.0` for those Python versions. 13816s E For more details, see: 13816s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13816s E 13816s E 13816s E from numpy.distutils.core import setup 13816s E running build_ext 13816s E running build_src 13816s E INFO: build_src 13816s E INFO: building extension "test_array_from_pyobj_ext" sources 13816s E INFO: build_src: building npy-pkg config files 13816s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13816s E !! 13816s E 13816s E ******************************************************************************** 13816s E Please avoid running ``setup.py`` directly. 13816s E Instead, use pypa/build, pypa/installer or other 13816s E standards-based tools. 13816s E 13816s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13816s E ******************************************************************************** 13816s E 13816s E !! 13816s E self.initialize_options() 13816s E INFO: customize UnixCCompiler 13816s E INFO: customize UnixCCompiler using build_ext 13816s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/tmp 13816s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/usr 13816s E creating /tmp/tmppq19o2st/usr/lib 13816s E creating /tmp/tmppq19o2st/usr/lib/python3 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=native' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-O3' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-Werror' 13816s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13816s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-vfpv4' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=armv8.2-a+fp16' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13816s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13816s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13816s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13816s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13816s E INFO: building 'test_array_from_pyobj_ext' extension 13816s E INFO: compiling C sources 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13816s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13816s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13816s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13816s E 14 | #include 13816s E | ^~~~~~~~~~ 13816s E In file included from fortranobject.c:2: 13816s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13816s E 7 | #include 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E compilation terminated. 13816s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13816s E INFO: 13816s E ########### EXT COMPILER OPTIMIZATION ########### 13816s E INFO: Platform : 13816s E Architecture: armhf 13816s E Compiler : gcc 13816s E 13816s E CPU baseline : 13816s E Requested : 'min' 13816s E Enabled : none 13816s E Flags : none 13816s E Extra checks: none 13816s E 13816s E CPU dispatch : 13816s E Requested : 'max -xop -fma4' 13816s E Enabled : none 13816s E Generated : none 13816s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13816s 13816s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13816s d = '/tmp/tmpjj8q074z' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s err = None 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s kw = {} 13816s module_name = 'test_array_from_pyobj_ext' 13816s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13816s p = 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13816s _____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[LONGLONG] _____ 13816s 13816s def setup_module(): 13816s """ 13816s Build the required testing extension module 13816s 13816s """ 13816s global wrap 13816s 13816s # Check compiler availability first 13816s if not util.has_c_compiler(): 13816s pytest.skip("No C compiler available") 13816s 13816s if wrap is None: 13816s config_code = """ 13816s config.add_extension('test_array_from_pyobj_ext', 13816s sources=['wrapmodule.c', 'fortranobject.c'], 13816s define_macros=[]) 13816s """ 13816s d = os.path.dirname(__file__) 13816s src = [ 13816s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13816s util.getpath("src", "fortranobject.c"), 13816s util.getpath("src", "fortranobject.h"), 13816s ] 13816s > wrap = util.build_module_distutils(src, config_code, 13816s "test_array_from_pyobj_ext") 13816s 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13816s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13816s memo[key] = func(*a, **kw) 13816s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13816s func = 13816s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13816s kw = {} 13816s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s 13816s @_memoize 13816s def build_module_distutils(source_files, config_code, module_name, **kw): 13816s """ 13816s Build a module via distutils and import it. 13816s 13816s """ 13816s d = get_module_dir() 13816s 13816s # Copy files 13816s dst_sources = [] 13816s for fn in source_files: 13816s if not os.path.isfile(fn): 13816s raise RuntimeError("%s is not a file" % fn) 13816s dst = os.path.join(d, os.path.basename(fn)) 13816s shutil.copyfile(fn, dst) 13816s dst_sources.append(dst) 13816s 13816s # Build script 13816s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13816s 13816s code = fr""" 13816s import os 13816s import sys 13816s sys.path = {repr(sys.path)} 13816s 13816s def configuration(parent_name='',top_path=None): 13816s from numpy.distutils.misc_util import Configuration 13816s config = Configuration('', parent_name, top_path) 13816s {config_code} 13816s return config 13816s 13816s if __name__ == "__main__": 13816s from numpy.distutils.core import setup 13816s setup(configuration=configuration) 13816s """ 13816s script = os.path.join(d, get_temp_module_name() + ".py") 13816s dst_sources.append(script) 13816s with open(script, "wb") as f: 13816s f.write(asbytes(code)) 13816s 13816s # Build 13816s cwd = os.getcwd() 13816s try: 13816s os.chdir(d) 13816s cmd = [sys.executable, script, "build_ext", "-i"] 13816s p = subprocess.Popen(cmd, 13816s stdout=subprocess.PIPE, 13816s stderr=subprocess.STDOUT) 13816s out, err = p.communicate() 13816s if p.returncode != 0: 13816s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13816s (cmd[4:], asstr(out))) 13816s E RuntimeError: Running distutils build failed: [] 13816s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13816s E 13816s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13816s E of the deprecation of `distutils` itself. It will be removed for 13816s E Python >= 3.12. For older Python versions it will remain present. 13816s E It is recommended to use `setuptools < 60.0` for those Python versions. 13816s E For more details, see: 13816s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13816s E 13816s E 13816s E from numpy.distutils.core import setup 13816s E running build_ext 13816s E running build_src 13816s E INFO: build_src 13816s E INFO: building extension "test_array_from_pyobj_ext" sources 13816s E INFO: build_src: building npy-pkg config files 13816s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13816s E !! 13816s E 13816s E ******************************************************************************** 13816s E Please avoid running ``setup.py`` directly. 13816s E Instead, use pypa/build, pypa/installer or other 13816s E standards-based tools. 13816s E 13816s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13816s E ******************************************************************************** 13816s E 13816s E !! 13816s E self.initialize_options() 13816s E INFO: customize UnixCCompiler 13816s E INFO: customize UnixCCompiler using build_ext 13816s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/tmp 13816s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/usr 13816s E creating /tmp/tmppq19o2st/usr/lib 13816s E creating /tmp/tmppq19o2st/usr/lib/python3 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=native' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-O3' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-Werror' 13816s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13816s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-vfpv4' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=armv8.2-a+fp16' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13816s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13816s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13816s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13816s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13816s E INFO: building 'test_array_from_pyobj_ext' extension 13816s E INFO: compiling C sources 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13816s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13816s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13816s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13816s E 14 | #include 13816s E | ^~~~~~~~~~ 13816s E In file included from fortranobject.c:2: 13816s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13816s E 7 | #include 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E compilation terminated. 13816s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13816s E INFO: 13816s E ########### EXT COMPILER OPTIMIZATION ########### 13816s E INFO: Platform : 13816s E Architecture: armhf 13816s E Compiler : gcc 13816s E 13816s E CPU baseline : 13816s E Requested : 'min' 13816s E Enabled : none 13816s E Flags : none 13816s E Extra checks: none 13816s E 13816s E CPU dispatch : 13816s E Requested : 'max -xop -fma4' 13816s E Enabled : none 13816s E Generated : none 13816s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13816s 13816s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13816s d = '/tmp/tmpjj8q074z' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s err = None 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s kw = {} 13816s module_name = 'test_array_from_pyobj_ext' 13816s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13816s p = 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13816s ____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[LONGLONG] _____ 13816s 13816s def setup_module(): 13816s """ 13816s Build the required testing extension module 13816s 13816s """ 13816s global wrap 13816s 13816s # Check compiler availability first 13816s if not util.has_c_compiler(): 13816s pytest.skip("No C compiler available") 13816s 13816s if wrap is None: 13816s config_code = """ 13816s config.add_extension('test_array_from_pyobj_ext', 13816s sources=['wrapmodule.c', 'fortranobject.c'], 13816s define_macros=[]) 13816s """ 13816s d = os.path.dirname(__file__) 13816s src = [ 13816s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13816s util.getpath("src", "fortranobject.c"), 13816s util.getpath("src", "fortranobject.h"), 13816s ] 13816s > wrap = util.build_module_distutils(src, config_code, 13816s "test_array_from_pyobj_ext") 13816s 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13816s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13816s memo[key] = func(*a, **kw) 13816s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13816s func = 13816s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13816s kw = {} 13816s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s 13816s @_memoize 13816s def build_module_distutils(source_files, config_code, module_name, **kw): 13816s """ 13816s Build a module via distutils and import it. 13816s 13816s """ 13816s d = get_module_dir() 13816s 13816s # Copy files 13816s dst_sources = [] 13816s for fn in source_files: 13816s if not os.path.isfile(fn): 13816s raise RuntimeError("%s is not a file" % fn) 13816s dst = os.path.join(d, os.path.basename(fn)) 13816s shutil.copyfile(fn, dst) 13816s dst_sources.append(dst) 13816s 13816s # Build script 13816s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13816s 13816s code = fr""" 13816s import os 13816s import sys 13816s sys.path = {repr(sys.path)} 13816s 13816s def configuration(parent_name='',top_path=None): 13816s from numpy.distutils.misc_util import Configuration 13816s config = Configuration('', parent_name, top_path) 13816s {config_code} 13816s return config 13816s 13816s if __name__ == "__main__": 13816s from numpy.distutils.core import setup 13816s setup(configuration=configuration) 13816s """ 13816s script = os.path.join(d, get_temp_module_name() + ".py") 13816s dst_sources.append(script) 13816s with open(script, "wb") as f: 13816s f.write(asbytes(code)) 13816s 13816s # Build 13816s cwd = os.getcwd() 13816s try: 13816s os.chdir(d) 13816s cmd = [sys.executable, script, "build_ext", "-i"] 13816s p = subprocess.Popen(cmd, 13816s stdout=subprocess.PIPE, 13816s stderr=subprocess.STDOUT) 13816s out, err = p.communicate() 13816s if p.returncode != 0: 13816s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13816s (cmd[4:], asstr(out))) 13816s E RuntimeError: Running distutils build failed: [] 13816s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13816s E 13816s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13816s E of the deprecation of `distutils` itself. It will be removed for 13816s E Python >= 3.12. For older Python versions it will remain present. 13816s E It is recommended to use `setuptools < 60.0` for those Python versions. 13816s E For more details, see: 13816s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13816s E 13816s E 13816s E from numpy.distutils.core import setup 13816s E running build_ext 13816s E running build_src 13816s E INFO: build_src 13816s E INFO: building extension "test_array_from_pyobj_ext" sources 13816s E INFO: build_src: building npy-pkg config files 13816s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13816s E !! 13816s E 13816s E ******************************************************************************** 13816s E Please avoid running ``setup.py`` directly. 13816s E Instead, use pypa/build, pypa/installer or other 13816s E standards-based tools. 13816s E 13816s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13816s E ******************************************************************************** 13816s E 13816s E !! 13816s E self.initialize_options() 13816s E INFO: customize UnixCCompiler 13816s E INFO: customize UnixCCompiler using build_ext 13816s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/tmp 13816s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/usr 13816s E creating /tmp/tmppq19o2st/usr/lib 13816s E creating /tmp/tmppq19o2st/usr/lib/python3 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=native' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-O3' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-Werror' 13816s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13816s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-vfpv4' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=armv8.2-a+fp16' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13816s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13816s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13816s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13816s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13816s E INFO: building 'test_array_from_pyobj_ext' extension 13816s E INFO: compiling C sources 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13816s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13816s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13816s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13816s E 14 | #include 13816s E | ^~~~~~~~~~ 13816s E In file included from fortranobject.c:2: 13816s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13816s E 7 | #include 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E compilation terminated. 13816s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13816s E INFO: 13816s E ########### EXT COMPILER OPTIMIZATION ########### 13816s E INFO: Platform : 13816s E Architecture: armhf 13816s E Compiler : gcc 13816s E 13816s E CPU baseline : 13816s E Requested : 'min' 13816s E Enabled : none 13816s E Flags : none 13816s E Extra checks: none 13816s E 13816s E CPU dispatch : 13816s E Requested : 'max -xop -fma4' 13816s E Enabled : none 13816s E Generated : none 13816s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13816s 13816s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13816s d = '/tmp/tmpjj8q074z' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s err = None 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s kw = {} 13816s module_name = 'test_array_from_pyobj_ext' 13816s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13816s p = 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13816s __________ ERROR at setup of TestSharedMemory.test_inplace[LONGLONG] ___________ 13816s 13816s def setup_module(): 13816s """ 13816s Build the required testing extension module 13816s 13816s """ 13816s global wrap 13816s 13816s # Check compiler availability first 13816s if not util.has_c_compiler(): 13816s pytest.skip("No C compiler available") 13816s 13816s if wrap is None: 13816s config_code = """ 13816s config.add_extension('test_array_from_pyobj_ext', 13816s sources=['wrapmodule.c', 'fortranobject.c'], 13816s define_macros=[]) 13816s """ 13816s d = os.path.dirname(__file__) 13816s src = [ 13816s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13816s util.getpath("src", "fortranobject.c"), 13816s util.getpath("src", "fortranobject.h"), 13816s ] 13816s > wrap = util.build_module_distutils(src, config_code, 13816s "test_array_from_pyobj_ext") 13816s 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13816s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13816s memo[key] = func(*a, **kw) 13816s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13816s func = 13816s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13816s kw = {} 13816s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s 13816s @_memoize 13816s def build_module_distutils(source_files, config_code, module_name, **kw): 13816s """ 13816s Build a module via distutils and import it. 13816s 13816s """ 13816s d = get_module_dir() 13816s 13816s # Copy files 13816s dst_sources = [] 13816s for fn in source_files: 13816s if not os.path.isfile(fn): 13816s raise RuntimeError("%s is not a file" % fn) 13816s dst = os.path.join(d, os.path.basename(fn)) 13816s shutil.copyfile(fn, dst) 13816s dst_sources.append(dst) 13816s 13816s # Build script 13816s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13816s 13816s code = fr""" 13816s import os 13816s import sys 13816s sys.path = {repr(sys.path)} 13816s 13816s def configuration(parent_name='',top_path=None): 13816s from numpy.distutils.misc_util import Configuration 13816s config = Configuration('', parent_name, top_path) 13816s {config_code} 13816s return config 13816s 13816s if __name__ == "__main__": 13816s from numpy.distutils.core import setup 13816s setup(configuration=configuration) 13816s """ 13816s script = os.path.join(d, get_temp_module_name() + ".py") 13816s dst_sources.append(script) 13816s with open(script, "wb") as f: 13816s f.write(asbytes(code)) 13816s 13816s # Build 13816s cwd = os.getcwd() 13816s try: 13816s os.chdir(d) 13816s cmd = [sys.executable, script, "build_ext", "-i"] 13816s p = subprocess.Popen(cmd, 13816s stdout=subprocess.PIPE, 13816s stderr=subprocess.STDOUT) 13816s out, err = p.communicate() 13816s if p.returncode != 0: 13816s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13816s (cmd[4:], asstr(out))) 13816s E RuntimeError: Running distutils build failed: [] 13816s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13816s E 13816s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13816s E of the deprecation of `distutils` itself. It will be removed for 13816s E Python >= 3.12. For older Python versions it will remain present. 13816s E It is recommended to use `setuptools < 60.0` for those Python versions. 13816s E For more details, see: 13816s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13816s E 13816s E 13816s E from numpy.distutils.core import setup 13816s E running build_ext 13816s E running build_src 13816s E INFO: build_src 13816s E INFO: building extension "test_array_from_pyobj_ext" sources 13816s E INFO: build_src: building npy-pkg config files 13816s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13816s E !! 13816s E 13816s E ******************************************************************************** 13816s E Please avoid running ``setup.py`` directly. 13816s E Instead, use pypa/build, pypa/installer or other 13816s E standards-based tools. 13816s E 13816s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13816s E ******************************************************************************** 13816s E 13816s E !! 13816s E self.initialize_options() 13816s E INFO: customize UnixCCompiler 13816s E INFO: customize UnixCCompiler using build_ext 13816s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/tmp 13816s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/usr 13816s E creating /tmp/tmppq19o2st/usr/lib 13816s E creating /tmp/tmppq19o2st/usr/lib/python3 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=native' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-O3' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-Werror' 13816s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13816s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-vfpv4' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=armv8.2-a+fp16' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13816s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13816s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13816s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13816s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13816s E INFO: building 'test_array_from_pyobj_ext' extension 13816s E INFO: compiling C sources 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13816s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13816s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13816s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13816s E 14 | #include 13816s E | ^~~~~~~~~~ 13816s E In file included from fortranobject.c:2: 13816s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13816s E 7 | #include 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E compilation terminated. 13816s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13816s E INFO: 13816s E ########### EXT COMPILER OPTIMIZATION ########### 13816s E INFO: Platform : 13816s E Architecture: armhf 13816s E Compiler : gcc 13816s E 13816s E CPU baseline : 13816s E Requested : 'min' 13816s E Enabled : none 13816s E Flags : none 13816s E Extra checks: none 13816s E 13816s E CPU dispatch : 13816s E Requested : 'max -xop -fma4' 13816s E Enabled : none 13816s E Generated : none 13816s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13816s 13816s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13816s d = '/tmp/tmpjj8q074z' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s err = None 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s kw = {} 13816s module_name = 'test_array_from_pyobj_ext' 13816s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13816s p = 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13816s ___ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[LONGLONG] ____ 13816s 13816s def setup_module(): 13816s """ 13816s Build the required testing extension module 13816s 13816s """ 13816s global wrap 13816s 13816s # Check compiler availability first 13816s if not util.has_c_compiler(): 13816s pytest.skip("No C compiler available") 13816s 13816s if wrap is None: 13816s config_code = """ 13816s config.add_extension('test_array_from_pyobj_ext', 13816s sources=['wrapmodule.c', 'fortranobject.c'], 13816s define_macros=[]) 13816s """ 13816s d = os.path.dirname(__file__) 13816s src = [ 13816s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13816s util.getpath("src", "fortranobject.c"), 13816s util.getpath("src", "fortranobject.h"), 13816s ] 13816s > wrap = util.build_module_distutils(src, config_code, 13816s "test_array_from_pyobj_ext") 13816s 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13816s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13816s memo[key] = func(*a, **kw) 13816s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13816s func = 13816s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13816s kw = {} 13816s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s 13816s @_memoize 13816s def build_module_distutils(source_files, config_code, module_name, **kw): 13816s """ 13816s Build a module via distutils and import it. 13816s 13816s """ 13816s d = get_module_dir() 13816s 13816s # Copy files 13816s dst_sources = [] 13816s for fn in source_files: 13816s if not os.path.isfile(fn): 13816s raise RuntimeError("%s is not a file" % fn) 13816s dst = os.path.join(d, os.path.basename(fn)) 13816s shutil.copyfile(fn, dst) 13816s dst_sources.append(dst) 13816s 13816s # Build script 13816s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13816s 13816s code = fr""" 13816s import os 13816s import sys 13816s sys.path = {repr(sys.path)} 13816s 13816s def configuration(parent_name='',top_path=None): 13816s from numpy.distutils.misc_util import Configuration 13816s config = Configuration('', parent_name, top_path) 13816s {config_code} 13816s return config 13816s 13816s if __name__ == "__main__": 13816s from numpy.distutils.core import setup 13816s setup(configuration=configuration) 13816s """ 13816s script = os.path.join(d, get_temp_module_name() + ".py") 13816s dst_sources.append(script) 13816s with open(script, "wb") as f: 13816s f.write(asbytes(code)) 13816s 13816s # Build 13816s cwd = os.getcwd() 13816s try: 13816s os.chdir(d) 13816s cmd = [sys.executable, script, "build_ext", "-i"] 13816s p = subprocess.Popen(cmd, 13816s stdout=subprocess.PIPE, 13816s stderr=subprocess.STDOUT) 13816s out, err = p.communicate() 13816s if p.returncode != 0: 13816s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13816s (cmd[4:], asstr(out))) 13816s E RuntimeError: Running distutils build failed: [] 13816s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13816s E 13816s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13816s E of the deprecation of `distutils` itself. It will be removed for 13816s E Python >= 3.12. For older Python versions it will remain present. 13816s E It is recommended to use `setuptools < 60.0` for those Python versions. 13816s E For more details, see: 13816s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13816s E 13816s E 13816s E from numpy.distutils.core import setup 13816s E running build_ext 13816s E running build_src 13816s E INFO: build_src 13816s E INFO: building extension "test_array_from_pyobj_ext" sources 13816s E INFO: build_src: building npy-pkg config files 13816s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13816s E !! 13816s E 13816s E ******************************************************************************** 13816s E Please avoid running ``setup.py`` directly. 13816s E Instead, use pypa/build, pypa/installer or other 13816s E standards-based tools. 13816s E 13816s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13816s E ******************************************************************************** 13816s E 13816s E !! 13816s E self.initialize_options() 13816s E INFO: customize UnixCCompiler 13816s E INFO: customize UnixCCompiler using build_ext 13816s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/tmp 13816s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/usr 13816s E creating /tmp/tmppq19o2st/usr/lib 13816s E creating /tmp/tmppq19o2st/usr/lib/python3 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=native' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-O3' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-Werror' 13816s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13816s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-vfpv4' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=armv8.2-a+fp16' 13816s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13816s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13816s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13816s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13816s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13816s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13816s E 9 | # include_next 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E 13816s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13816s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13816s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13816s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13816s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13816s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13816s E INFO: building 'test_array_from_pyobj_ext' extension 13816s E INFO: compiling C sources 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13816s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13816s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13816s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13816s E 14 | #include 13816s E | ^~~~~~~~~~ 13816s E In file included from fortranobject.c:2: 13816s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13816s E 7 | #include 13816s E | ^~~~~~~~~~ 13816s E compilation terminated. 13816s E compilation terminated. 13816s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13816s E INFO: 13816s E ########### EXT COMPILER OPTIMIZATION ########### 13816s E INFO: Platform : 13816s E Architecture: armhf 13816s E Compiler : gcc 13816s E 13816s E CPU baseline : 13816s E Requested : 'min' 13816s E Enabled : none 13816s E Flags : none 13816s E Extra checks: none 13816s E 13816s E CPU dispatch : 13816s E Requested : 'max -xop -fma4' 13816s E Enabled : none 13816s E Generated : none 13816s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13816s 13816s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13816s d = '/tmp/tmpjj8q074z' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s err = None 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s kw = {} 13816s module_name = 'test_array_from_pyobj_ext' 13816s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13816s p = 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13816s _______ ERROR at setup of TestSharedMemory.test_in_from_2seq[ULONGLONG] ________ 13816s 13816s def setup_module(): 13816s """ 13816s Build the required testing extension module 13816s 13816s """ 13816s global wrap 13816s 13816s # Check compiler availability first 13816s if not util.has_c_compiler(): 13816s pytest.skip("No C compiler available") 13816s 13816s if wrap is None: 13816s config_code = """ 13816s config.add_extension('test_array_from_pyobj_ext', 13816s sources=['wrapmodule.c', 'fortranobject.c'], 13816s define_macros=[]) 13816s """ 13816s d = os.path.dirname(__file__) 13816s src = [ 13816s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13816s util.getpath("src", "fortranobject.c"), 13816s util.getpath("src", "fortranobject.h"), 13816s ] 13816s > wrap = util.build_module_distutils(src, config_code, 13816s "test_array_from_pyobj_ext") 13816s 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13816s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13816s memo[key] = func(*a, **kw) 13816s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13816s func = 13816s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13816s kw = {} 13816s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13816s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13816s 13816s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13816s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13816s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13816s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13816s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13816s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13816s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13816s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13816s 13816s @_memoize 13816s def build_module_distutils(source_files, config_code, module_name, **kw): 13816s """ 13816s Build a module via distutils and import it. 13816s 13816s """ 13816s d = get_module_dir() 13816s 13816s # Copy files 13816s dst_sources = [] 13816s for fn in source_files: 13816s if not os.path.isfile(fn): 13816s raise RuntimeError("%s is not a file" % fn) 13816s dst = os.path.join(d, os.path.basename(fn)) 13816s shutil.copyfile(fn, dst) 13816s dst_sources.append(dst) 13816s 13816s # Build script 13816s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13816s 13816s code = fr""" 13816s import os 13816s import sys 13816s sys.path = {repr(sys.path)} 13816s 13816s def configuration(parent_name='',top_path=None): 13816s from numpy.distutils.misc_util import Configuration 13816s config = Configuration('', parent_name, top_path) 13816s {config_code} 13816s return config 13816s 13816s if __name__ == "__main__": 13816s from numpy.distutils.core import setup 13816s setup(configuration=configuration) 13816s """ 13816s script = os.path.join(d, get_temp_module_name() + ".py") 13816s dst_sources.append(script) 13816s with open(script, "wb") as f: 13816s f.write(asbytes(code)) 13816s 13816s # Build 13816s cwd = os.getcwd() 13816s try: 13816s os.chdir(d) 13816s cmd = [sys.executable, script, "build_ext", "-i"] 13816s p = subprocess.Popen(cmd, 13816s stdout=subprocess.PIPE, 13816s stderr=subprocess.STDOUT) 13816s out, err = p.communicate() 13816s if p.returncode != 0: 13816s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13816s (cmd[4:], asstr(out))) 13816s E RuntimeError: Running distutils build failed: [] 13816s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13816s E 13816s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13816s E of the deprecation of `distutils` itself. It will be removed for 13816s E Python >= 3.12. For older Python versions it will remain present. 13816s E It is recommended to use `setuptools < 60.0` for those Python versions. 13816s E For more details, see: 13816s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13816s E 13816s E 13816s E from numpy.distutils.core import setup 13816s E running build_ext 13816s E running build_src 13816s E INFO: build_src 13816s E INFO: building extension "test_array_from_pyobj_ext" sources 13816s E INFO: build_src: building npy-pkg config files 13816s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13816s E !! 13816s E 13816s E ******************************************************************************** 13816s E Please avoid running ``setup.py`` directly. 13816s E Instead, use pypa/build, pypa/installer or other 13816s E standards-based tools. 13816s E 13816s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13816s E ******************************************************************************** 13816s E 13816s E !! 13816s E self.initialize_options() 13816s E INFO: customize UnixCCompiler 13816s E INFO: customize UnixCCompiler using build_ext 13816s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/tmp 13816s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E creating /tmp/tmppq19o2st/usr 13816s E creating /tmp/tmppq19o2st/usr/lib 13816s E creating /tmp/tmppq19o2st/usr/lib/python3 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13816s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-march=native' 13816s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13816s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13816s E 13816s E INFO: compile options: '-I/usr/include/python3.12 -c' 13816s E extra options: '-O3' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-Werror' 13817s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13817s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-vfpv4' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=armv8.2-a+fp16' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13817s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13817s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13817s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13817s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13817s E INFO: building 'test_array_from_pyobj_ext' extension 13817s E INFO: compiling C sources 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13817s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13817s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13817s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13817s E 14 | #include 13817s E | ^~~~~~~~~~ 13817s E In file included from fortranobject.c:2: 13817s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13817s E 7 | #include 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E compilation terminated. 13817s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13817s E INFO: 13817s E ########### EXT COMPILER OPTIMIZATION ########### 13817s E INFO: Platform : 13817s E Architecture: armhf 13817s E Compiler : gcc 13817s E 13817s E CPU baseline : 13817s E Requested : 'min' 13817s E Enabled : none 13817s E Flags : none 13817s E Extra checks: none 13817s E 13817s E CPU dispatch : 13817s E Requested : 'max -xop -fma4' 13817s E Enabled : none 13817s E Generated : none 13817s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13817s 13817s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13817s d = '/tmp/tmpjj8q074z' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s err = None 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s kw = {} 13817s module_name = 'test_array_from_pyobj_ext' 13817s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13817s p = 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13817s _____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[ULONGLONG] _____ 13817s 13817s def setup_module(): 13817s """ 13817s Build the required testing extension module 13817s 13817s """ 13817s global wrap 13817s 13817s # Check compiler availability first 13817s if not util.has_c_compiler(): 13817s pytest.skip("No C compiler available") 13817s 13817s if wrap is None: 13817s config_code = """ 13817s config.add_extension('test_array_from_pyobj_ext', 13817s sources=['wrapmodule.c', 'fortranobject.c'], 13817s define_macros=[]) 13817s """ 13817s d = os.path.dirname(__file__) 13817s src = [ 13817s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13817s util.getpath("src", "fortranobject.c"), 13817s util.getpath("src", "fortranobject.h"), 13817s ] 13817s > wrap = util.build_module_distutils(src, config_code, 13817s "test_array_from_pyobj_ext") 13817s 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13817s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13817s memo[key] = func(*a, **kw) 13817s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13817s func = 13817s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13817s kw = {} 13817s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s 13817s @_memoize 13817s def build_module_distutils(source_files, config_code, module_name, **kw): 13817s """ 13817s Build a module via distutils and import it. 13817s 13817s """ 13817s d = get_module_dir() 13817s 13817s # Copy files 13817s dst_sources = [] 13817s for fn in source_files: 13817s if not os.path.isfile(fn): 13817s raise RuntimeError("%s is not a file" % fn) 13817s dst = os.path.join(d, os.path.basename(fn)) 13817s shutil.copyfile(fn, dst) 13817s dst_sources.append(dst) 13817s 13817s # Build script 13817s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13817s 13817s code = fr""" 13817s import os 13817s import sys 13817s sys.path = {repr(sys.path)} 13817s 13817s def configuration(parent_name='',top_path=None): 13817s from numpy.distutils.misc_util import Configuration 13817s config = Configuration('', parent_name, top_path) 13817s {config_code} 13817s return config 13817s 13817s if __name__ == "__main__": 13817s from numpy.distutils.core import setup 13817s setup(configuration=configuration) 13817s """ 13817s script = os.path.join(d, get_temp_module_name() + ".py") 13817s dst_sources.append(script) 13817s with open(script, "wb") as f: 13817s f.write(asbytes(code)) 13817s 13817s # Build 13817s cwd = os.getcwd() 13817s try: 13817s os.chdir(d) 13817s cmd = [sys.executable, script, "build_ext", "-i"] 13817s p = subprocess.Popen(cmd, 13817s stdout=subprocess.PIPE, 13817s stderr=subprocess.STDOUT) 13817s out, err = p.communicate() 13817s if p.returncode != 0: 13817s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13817s (cmd[4:], asstr(out))) 13817s E RuntimeError: Running distutils build failed: [] 13817s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13817s E 13817s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13817s E of the deprecation of `distutils` itself. It will be removed for 13817s E Python >= 3.12. For older Python versions it will remain present. 13817s E It is recommended to use `setuptools < 60.0` for those Python versions. 13817s E For more details, see: 13817s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13817s E 13817s E 13817s E from numpy.distutils.core import setup 13817s E running build_ext 13817s E running build_src 13817s E INFO: build_src 13817s E INFO: building extension "test_array_from_pyobj_ext" sources 13817s E INFO: build_src: building npy-pkg config files 13817s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13817s E !! 13817s E 13817s E ******************************************************************************** 13817s E Please avoid running ``setup.py`` directly. 13817s E Instead, use pypa/build, pypa/installer or other 13817s E standards-based tools. 13817s E 13817s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13817s E ******************************************************************************** 13817s E 13817s E !! 13817s E self.initialize_options() 13817s E INFO: customize UnixCCompiler 13817s E INFO: customize UnixCCompiler using build_ext 13817s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/tmp 13817s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/usr 13817s E creating /tmp/tmppq19o2st/usr/lib 13817s E creating /tmp/tmppq19o2st/usr/lib/python3 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=native' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-O3' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-Werror' 13817s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13817s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-vfpv4' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=armv8.2-a+fp16' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13817s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13817s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13817s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13817s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13817s E INFO: building 'test_array_from_pyobj_ext' extension 13817s E INFO: compiling C sources 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13817s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13817s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13817s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13817s E 14 | #include 13817s E | ^~~~~~~~~~ 13817s E In file included from fortranobject.c:2: 13817s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13817s E 7 | #include 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E compilation terminated. 13817s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13817s E INFO: 13817s E ########### EXT COMPILER OPTIMIZATION ########### 13817s E INFO: Platform : 13817s E Architecture: armhf 13817s E Compiler : gcc 13817s E 13817s E CPU baseline : 13817s E Requested : 'min' 13817s E Enabled : none 13817s E Flags : none 13817s E Extra checks: none 13817s E 13817s E CPU dispatch : 13817s E Requested : 'max -xop -fma4' 13817s E Enabled : none 13817s E Generated : none 13817s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13817s 13817s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13817s d = '/tmp/tmpjj8q074z' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s err = None 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s kw = {} 13817s module_name = 'test_array_from_pyobj_ext' 13817s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13817s p = 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13817s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-2seq-C-w] _____ 13817s 13817s def setup_module(): 13817s """ 13817s Build the required testing extension module 13817s 13817s """ 13817s global wrap 13817s 13817s # Check compiler availability first 13817s if not util.has_c_compiler(): 13817s pytest.skip("No C compiler available") 13817s 13817s if wrap is None: 13817s config_code = """ 13817s config.add_extension('test_array_from_pyobj_ext', 13817s sources=['wrapmodule.c', 'fortranobject.c'], 13817s define_macros=[]) 13817s """ 13817s d = os.path.dirname(__file__) 13817s src = [ 13817s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13817s util.getpath("src", "fortranobject.c"), 13817s util.getpath("src", "fortranobject.h"), 13817s ] 13817s > wrap = util.build_module_distutils(src, config_code, 13817s "test_array_from_pyobj_ext") 13817s 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13817s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13817s memo[key] = func(*a, **kw) 13817s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13817s func = 13817s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13817s kw = {} 13817s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s 13817s @_memoize 13817s def build_module_distutils(source_files, config_code, module_name, **kw): 13817s """ 13817s Build a module via distutils and import it. 13817s 13817s """ 13817s d = get_module_dir() 13817s 13817s # Copy files 13817s dst_sources = [] 13817s for fn in source_files: 13817s if not os.path.isfile(fn): 13817s raise RuntimeError("%s is not a file" % fn) 13817s dst = os.path.join(d, os.path.basename(fn)) 13817s shutil.copyfile(fn, dst) 13817s dst_sources.append(dst) 13817s 13817s # Build script 13817s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13817s 13817s code = fr""" 13817s import os 13817s import sys 13817s sys.path = {repr(sys.path)} 13817s 13817s def configuration(parent_name='',top_path=None): 13817s from numpy.distutils.misc_util import Configuration 13817s config = Configuration('', parent_name, top_path) 13817s {config_code} 13817s return config 13817s 13817s if __name__ == "__main__": 13817s from numpy.distutils.core import setup 13817s setup(configuration=configuration) 13817s """ 13817s script = os.path.join(d, get_temp_module_name() + ".py") 13817s dst_sources.append(script) 13817s with open(script, "wb") as f: 13817s f.write(asbytes(code)) 13817s 13817s # Build 13817s cwd = os.getcwd() 13817s try: 13817s os.chdir(d) 13817s cmd = [sys.executable, script, "build_ext", "-i"] 13817s p = subprocess.Popen(cmd, 13817s stdout=subprocess.PIPE, 13817s stderr=subprocess.STDOUT) 13817s out, err = p.communicate() 13817s if p.returncode != 0: 13817s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13817s (cmd[4:], asstr(out))) 13817s E RuntimeError: Running distutils build failed: [] 13817s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13817s E 13817s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13817s E of the deprecation of `distutils` itself. It will be removed for 13817s E Python >= 3.12. For older Python versions it will remain present. 13817s E It is recommended to use `setuptools < 60.0` for those Python versions. 13817s E For more details, see: 13817s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13817s E 13817s E 13817s E from numpy.distutils.core import setup 13817s E running build_ext 13817s E running build_src 13817s E INFO: build_src 13817s E INFO: building extension "test_array_from_pyobj_ext" sources 13817s E INFO: build_src: building npy-pkg config files 13817s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13817s E !! 13817s E 13817s E ******************************************************************************** 13817s E Please avoid running ``setup.py`` directly. 13817s E Instead, use pypa/build, pypa/installer or other 13817s E standards-based tools. 13817s E 13817s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13817s E ******************************************************************************** 13817s E 13817s E !! 13817s E self.initialize_options() 13817s E INFO: customize UnixCCompiler 13817s E INFO: customize UnixCCompiler using build_ext 13817s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/tmp 13817s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/usr 13817s E creating /tmp/tmppq19o2st/usr/lib 13817s E creating /tmp/tmppq19o2st/usr/lib/python3 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=native' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-O3' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-Werror' 13817s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13817s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-vfpv4' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=armv8.2-a+fp16' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13817s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13817s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13817s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13817s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13817s E INFO: building 'test_array_from_pyobj_ext' extension 13817s E INFO: compiling C sources 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13817s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13817s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13817s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13817s E 14 | #include 13817s E | ^~~~~~~~~~ 13817s E In file included from fortranobject.c:2: 13817s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13817s E 7 | #include 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E compilation terminated. 13817s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13817s E INFO: 13817s E ########### EXT COMPILER OPTIMIZATION ########### 13817s E INFO: Platform : 13817s E Architecture: armhf 13817s E Compiler : gcc 13817s E 13817s E CPU baseline : 13817s E Requested : 'min' 13817s E Enabled : none 13817s E Flags : none 13817s E Extra checks: none 13817s E 13817s E CPU dispatch : 13817s E Requested : 'max -xop -fma4' 13817s E Enabled : none 13817s E Generated : none 13817s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13817s 13817s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13817s d = '/tmp/tmpjj8q074z' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s err = None 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s kw = {} 13817s module_name = 'test_array_from_pyobj_ext' 13817s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13817s p = 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13817s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-2seq-C-ro] ____ 13817s 13817s def setup_module(): 13817s """ 13817s Build the required testing extension module 13817s 13817s """ 13817s global wrap 13817s 13817s # Check compiler availability first 13817s if not util.has_c_compiler(): 13817s pytest.skip("No C compiler available") 13817s 13817s if wrap is None: 13817s config_code = """ 13817s config.add_extension('test_array_from_pyobj_ext', 13817s sources=['wrapmodule.c', 'fortranobject.c'], 13817s define_macros=[]) 13817s """ 13817s d = os.path.dirname(__file__) 13817s src = [ 13817s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13817s util.getpath("src", "fortranobject.c"), 13817s util.getpath("src", "fortranobject.h"), 13817s ] 13817s > wrap = util.build_module_distutils(src, config_code, 13817s "test_array_from_pyobj_ext") 13817s 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13817s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13817s memo[key] = func(*a, **kw) 13817s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13817s func = 13817s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13817s kw = {} 13817s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s 13817s @_memoize 13817s def build_module_distutils(source_files, config_code, module_name, **kw): 13817s """ 13817s Build a module via distutils and import it. 13817s 13817s """ 13817s d = get_module_dir() 13817s 13817s # Copy files 13817s dst_sources = [] 13817s for fn in source_files: 13817s if not os.path.isfile(fn): 13817s raise RuntimeError("%s is not a file" % fn) 13817s dst = os.path.join(d, os.path.basename(fn)) 13817s shutil.copyfile(fn, dst) 13817s dst_sources.append(dst) 13817s 13817s # Build script 13817s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13817s 13817s code = fr""" 13817s import os 13817s import sys 13817s sys.path = {repr(sys.path)} 13817s 13817s def configuration(parent_name='',top_path=None): 13817s from numpy.distutils.misc_util import Configuration 13817s config = Configuration('', parent_name, top_path) 13817s {config_code} 13817s return config 13817s 13817s if __name__ == "__main__": 13817s from numpy.distutils.core import setup 13817s setup(configuration=configuration) 13817s """ 13817s script = os.path.join(d, get_temp_module_name() + ".py") 13817s dst_sources.append(script) 13817s with open(script, "wb") as f: 13817s f.write(asbytes(code)) 13817s 13817s # Build 13817s cwd = os.getcwd() 13817s try: 13817s os.chdir(d) 13817s cmd = [sys.executable, script, "build_ext", "-i"] 13817s p = subprocess.Popen(cmd, 13817s stdout=subprocess.PIPE, 13817s stderr=subprocess.STDOUT) 13817s out, err = p.communicate() 13817s if p.returncode != 0: 13817s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13817s (cmd[4:], asstr(out))) 13817s E RuntimeError: Running distutils build failed: [] 13817s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13817s E 13817s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13817s E of the deprecation of `distutils` itself. It will be removed for 13817s E Python >= 3.12. For older Python versions it will remain present. 13817s E It is recommended to use `setuptools < 60.0` for those Python versions. 13817s E For more details, see: 13817s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13817s E 13817s E 13817s E from numpy.distutils.core import setup 13817s E running build_ext 13817s E running build_src 13817s E INFO: build_src 13817s E INFO: building extension "test_array_from_pyobj_ext" sources 13817s E INFO: build_src: building npy-pkg config files 13817s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13817s E !! 13817s E 13817s E ******************************************************************************** 13817s E Please avoid running ``setup.py`` directly. 13817s E Instead, use pypa/build, pypa/installer or other 13817s E standards-based tools. 13817s E 13817s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13817s E ******************************************************************************** 13817s E 13817s E !! 13817s E self.initialize_options() 13817s E INFO: customize UnixCCompiler 13817s E INFO: customize UnixCCompiler using build_ext 13817s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/tmp 13817s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/usr 13817s E creating /tmp/tmppq19o2st/usr/lib 13817s E creating /tmp/tmppq19o2st/usr/lib/python3 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=native' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-O3' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-Werror' 13817s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13817s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-vfpv4' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=armv8.2-a+fp16' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13817s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13817s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13817s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13817s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13817s E INFO: building 'test_array_from_pyobj_ext' extension 13817s E INFO: compiling C sources 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13817s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13817s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13817s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13817s E 14 | #include 13817s E | ^~~~~~~~~~ 13817s E In file included from fortranobject.c:2: 13817s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13817s E 7 | #include 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E compilation terminated. 13817s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13817s E INFO: 13817s E ########### EXT COMPILER OPTIMIZATION ########### 13817s E INFO: Platform : 13817s E Architecture: armhf 13817s E Compiler : gcc 13817s E 13817s E CPU baseline : 13817s E Requested : 'min' 13817s E Enabled : none 13817s E Flags : none 13817s E Extra checks: none 13817s E 13817s E CPU dispatch : 13817s E Requested : 'max -xop -fma4' 13817s E Enabled : none 13817s E Generated : none 13817s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13817s 13817s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13817s d = '/tmp/tmpjj8q074z' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s err = None 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s kw = {} 13817s module_name = 'test_array_from_pyobj_ext' 13817s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13817s p = 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13817s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-2seq-F-w] _____ 13817s 13817s def setup_module(): 13817s """ 13817s Build the required testing extension module 13817s 13817s """ 13817s global wrap 13817s 13817s # Check compiler availability first 13817s if not util.has_c_compiler(): 13817s pytest.skip("No C compiler available") 13817s 13817s if wrap is None: 13817s config_code = """ 13817s config.add_extension('test_array_from_pyobj_ext', 13817s sources=['wrapmodule.c', 'fortranobject.c'], 13817s define_macros=[]) 13817s """ 13817s d = os.path.dirname(__file__) 13817s src = [ 13817s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13817s util.getpath("src", "fortranobject.c"), 13817s util.getpath("src", "fortranobject.h"), 13817s ] 13817s > wrap = util.build_module_distutils(src, config_code, 13817s "test_array_from_pyobj_ext") 13817s 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13817s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13817s memo[key] = func(*a, **kw) 13817s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13817s func = 13817s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13817s kw = {} 13817s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s 13817s @_memoize 13817s def build_module_distutils(source_files, config_code, module_name, **kw): 13817s """ 13817s Build a module via distutils and import it. 13817s 13817s """ 13817s d = get_module_dir() 13817s 13817s # Copy files 13817s dst_sources = [] 13817s for fn in source_files: 13817s if not os.path.isfile(fn): 13817s raise RuntimeError("%s is not a file" % fn) 13817s dst = os.path.join(d, os.path.basename(fn)) 13817s shutil.copyfile(fn, dst) 13817s dst_sources.append(dst) 13817s 13817s # Build script 13817s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13817s 13817s code = fr""" 13817s import os 13817s import sys 13817s sys.path = {repr(sys.path)} 13817s 13817s def configuration(parent_name='',top_path=None): 13817s from numpy.distutils.misc_util import Configuration 13817s config = Configuration('', parent_name, top_path) 13817s {config_code} 13817s return config 13817s 13817s if __name__ == "__main__": 13817s from numpy.distutils.core import setup 13817s setup(configuration=configuration) 13817s """ 13817s script = os.path.join(d, get_temp_module_name() + ".py") 13817s dst_sources.append(script) 13817s with open(script, "wb") as f: 13817s f.write(asbytes(code)) 13817s 13817s # Build 13817s cwd = os.getcwd() 13817s try: 13817s os.chdir(d) 13817s cmd = [sys.executable, script, "build_ext", "-i"] 13817s p = subprocess.Popen(cmd, 13817s stdout=subprocess.PIPE, 13817s stderr=subprocess.STDOUT) 13817s out, err = p.communicate() 13817s if p.returncode != 0: 13817s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13817s (cmd[4:], asstr(out))) 13817s E RuntimeError: Running distutils build failed: [] 13817s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13817s E 13817s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13817s E of the deprecation of `distutils` itself. It will be removed for 13817s E Python >= 3.12. For older Python versions it will remain present. 13817s E It is recommended to use `setuptools < 60.0` for those Python versions. 13817s E For more details, see: 13817s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13817s E 13817s E 13817s E from numpy.distutils.core import setup 13817s E running build_ext 13817s E running build_src 13817s E INFO: build_src 13817s E INFO: building extension "test_array_from_pyobj_ext" sources 13817s E INFO: build_src: building npy-pkg config files 13817s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13817s E !! 13817s E 13817s E ******************************************************************************** 13817s E Please avoid running ``setup.py`` directly. 13817s E Instead, use pypa/build, pypa/installer or other 13817s E standards-based tools. 13817s E 13817s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13817s E ******************************************************************************** 13817s E 13817s E !! 13817s E self.initialize_options() 13817s E INFO: customize UnixCCompiler 13817s E INFO: customize UnixCCompiler using build_ext 13817s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/tmp 13817s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/usr 13817s E creating /tmp/tmppq19o2st/usr/lib 13817s E creating /tmp/tmppq19o2st/usr/lib/python3 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=native' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-O3' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-Werror' 13817s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13817s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-vfpv4' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=armv8.2-a+fp16' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13817s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13817s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13817s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13817s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13817s E INFO: building 'test_array_from_pyobj_ext' extension 13817s E INFO: compiling C sources 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13817s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13817s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13817s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13817s E 14 | #include 13817s E | ^~~~~~~~~~ 13817s E In file included from fortranobject.c:2: 13817s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13817s E 7 | #include 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E compilation terminated. 13817s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13817s E INFO: 13817s E ########### EXT COMPILER OPTIMIZATION ########### 13817s E INFO: Platform : 13817s E Architecture: armhf 13817s E Compiler : gcc 13817s E 13817s E CPU baseline : 13817s E Requested : 'min' 13817s E Enabled : none 13817s E Flags : none 13817s E Extra checks: none 13817s E 13817s E CPU dispatch : 13817s E Requested : 'max -xop -fma4' 13817s E Enabled : none 13817s E Generated : none 13817s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13817s 13817s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13817s d = '/tmp/tmpjj8q074z' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s err = None 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s kw = {} 13817s module_name = 'test_array_from_pyobj_ext' 13817s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13817s p = 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13817s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-2seq-F-ro] ____ 13817s 13817s def setup_module(): 13817s """ 13817s Build the required testing extension module 13817s 13817s """ 13817s global wrap 13817s 13817s # Check compiler availability first 13817s if not util.has_c_compiler(): 13817s pytest.skip("No C compiler available") 13817s 13817s if wrap is None: 13817s config_code = """ 13817s config.add_extension('test_array_from_pyobj_ext', 13817s sources=['wrapmodule.c', 'fortranobject.c'], 13817s define_macros=[]) 13817s """ 13817s d = os.path.dirname(__file__) 13817s src = [ 13817s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13817s util.getpath("src", "fortranobject.c"), 13817s util.getpath("src", "fortranobject.h"), 13817s ] 13817s > wrap = util.build_module_distutils(src, config_code, 13817s "test_array_from_pyobj_ext") 13817s 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13817s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13817s memo[key] = func(*a, **kw) 13817s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13817s func = 13817s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13817s kw = {} 13817s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s 13817s @_memoize 13817s def build_module_distutils(source_files, config_code, module_name, **kw): 13817s """ 13817s Build a module via distutils and import it. 13817s 13817s """ 13817s d = get_module_dir() 13817s 13817s # Copy files 13817s dst_sources = [] 13817s for fn in source_files: 13817s if not os.path.isfile(fn): 13817s raise RuntimeError("%s is not a file" % fn) 13817s dst = os.path.join(d, os.path.basename(fn)) 13817s shutil.copyfile(fn, dst) 13817s dst_sources.append(dst) 13817s 13817s # Build script 13817s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13817s 13817s code = fr""" 13817s import os 13817s import sys 13817s sys.path = {repr(sys.path)} 13817s 13817s def configuration(parent_name='',top_path=None): 13817s from numpy.distutils.misc_util import Configuration 13817s config = Configuration('', parent_name, top_path) 13817s {config_code} 13817s return config 13817s 13817s if __name__ == "__main__": 13817s from numpy.distutils.core import setup 13817s setup(configuration=configuration) 13817s """ 13817s script = os.path.join(d, get_temp_module_name() + ".py") 13817s dst_sources.append(script) 13817s with open(script, "wb") as f: 13817s f.write(asbytes(code)) 13817s 13817s # Build 13817s cwd = os.getcwd() 13817s try: 13817s os.chdir(d) 13817s cmd = [sys.executable, script, "build_ext", "-i"] 13817s p = subprocess.Popen(cmd, 13817s stdout=subprocess.PIPE, 13817s stderr=subprocess.STDOUT) 13817s out, err = p.communicate() 13817s if p.returncode != 0: 13817s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13817s (cmd[4:], asstr(out))) 13817s E RuntimeError: Running distutils build failed: [] 13817s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13817s E 13817s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13817s E of the deprecation of `distutils` itself. It will be removed for 13817s E Python >= 3.12. For older Python versions it will remain present. 13817s E It is recommended to use `setuptools < 60.0` for those Python versions. 13817s E For more details, see: 13817s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13817s E 13817s E 13817s E from numpy.distutils.core import setup 13817s E running build_ext 13817s E running build_src 13817s E INFO: build_src 13817s E INFO: building extension "test_array_from_pyobj_ext" sources 13817s E INFO: build_src: building npy-pkg config files 13817s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13817s E !! 13817s E 13817s E ******************************************************************************** 13817s E Please avoid running ``setup.py`` directly. 13817s E Instead, use pypa/build, pypa/installer or other 13817s E standards-based tools. 13817s E 13817s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13817s E ******************************************************************************** 13817s E 13817s E !! 13817s E self.initialize_options() 13817s E INFO: customize UnixCCompiler 13817s E INFO: customize UnixCCompiler using build_ext 13817s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/tmp 13817s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/usr 13817s E creating /tmp/tmppq19o2st/usr/lib 13817s E creating /tmp/tmppq19o2st/usr/lib/python3 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=native' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-O3' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-Werror' 13817s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13817s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-vfpv4' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=armv8.2-a+fp16' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13817s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13817s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13817s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13817s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13817s E INFO: building 'test_array_from_pyobj_ext' extension 13817s E INFO: compiling C sources 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13817s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13817s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13817s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13817s E 14 | #include 13817s E | ^~~~~~~~~~ 13817s E In file included from fortranobject.c:2: 13817s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13817s E 7 | #include 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E compilation terminated. 13817s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13817s E INFO: 13817s E ########### EXT COMPILER OPTIMIZATION ########### 13817s E INFO: Platform : 13817s E Architecture: armhf 13817s E Compiler : gcc 13817s E 13817s E CPU baseline : 13817s E Requested : 'min' 13817s E Enabled : none 13817s E Flags : none 13817s E Extra checks: none 13817s E 13817s E CPU dispatch : 13817s E Requested : 'max -xop -fma4' 13817s E Enabled : none 13817s E Generated : none 13817s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13817s 13817s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13817s d = '/tmp/tmpjj8q074z' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s err = None 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s kw = {} 13817s module_name = 'test_array_from_pyobj_ext' 13817s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13817s p = 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13817s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-23seq-C-w] ____ 13817s 13817s def setup_module(): 13817s """ 13817s Build the required testing extension module 13817s 13817s """ 13817s global wrap 13817s 13817s # Check compiler availability first 13817s if not util.has_c_compiler(): 13817s pytest.skip("No C compiler available") 13817s 13817s if wrap is None: 13817s config_code = """ 13817s config.add_extension('test_array_from_pyobj_ext', 13817s sources=['wrapmodule.c', 'fortranobject.c'], 13817s define_macros=[]) 13817s """ 13817s d = os.path.dirname(__file__) 13817s src = [ 13817s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13817s util.getpath("src", "fortranobject.c"), 13817s util.getpath("src", "fortranobject.h"), 13817s ] 13817s > wrap = util.build_module_distutils(src, config_code, 13817s "test_array_from_pyobj_ext") 13817s 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13817s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13817s memo[key] = func(*a, **kw) 13817s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13817s func = 13817s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13817s kw = {} 13817s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s 13817s @_memoize 13817s def build_module_distutils(source_files, config_code, module_name, **kw): 13817s """ 13817s Build a module via distutils and import it. 13817s 13817s """ 13817s d = get_module_dir() 13817s 13817s # Copy files 13817s dst_sources = [] 13817s for fn in source_files: 13817s if not os.path.isfile(fn): 13817s raise RuntimeError("%s is not a file" % fn) 13817s dst = os.path.join(d, os.path.basename(fn)) 13817s shutil.copyfile(fn, dst) 13817s dst_sources.append(dst) 13817s 13817s # Build script 13817s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13817s 13817s code = fr""" 13817s import os 13817s import sys 13817s sys.path = {repr(sys.path)} 13817s 13817s def configuration(parent_name='',top_path=None): 13817s from numpy.distutils.misc_util import Configuration 13817s config = Configuration('', parent_name, top_path) 13817s {config_code} 13817s return config 13817s 13817s if __name__ == "__main__": 13817s from numpy.distutils.core import setup 13817s setup(configuration=configuration) 13817s """ 13817s script = os.path.join(d, get_temp_module_name() + ".py") 13817s dst_sources.append(script) 13817s with open(script, "wb") as f: 13817s f.write(asbytes(code)) 13817s 13817s # Build 13817s cwd = os.getcwd() 13817s try: 13817s os.chdir(d) 13817s cmd = [sys.executable, script, "build_ext", "-i"] 13817s p = subprocess.Popen(cmd, 13817s stdout=subprocess.PIPE, 13817s stderr=subprocess.STDOUT) 13817s out, err = p.communicate() 13817s if p.returncode != 0: 13817s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13817s (cmd[4:], asstr(out))) 13817s E RuntimeError: Running distutils build failed: [] 13817s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13817s E 13817s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13817s E of the deprecation of `distutils` itself. It will be removed for 13817s E Python >= 3.12. For older Python versions it will remain present. 13817s E It is recommended to use `setuptools < 60.0` for those Python versions. 13817s E For more details, see: 13817s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13817s E 13817s E 13817s E from numpy.distutils.core import setup 13817s E running build_ext 13817s E running build_src 13817s E INFO: build_src 13817s E INFO: building extension "test_array_from_pyobj_ext" sources 13817s E INFO: build_src: building npy-pkg config files 13817s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13817s E !! 13817s E 13817s E ******************************************************************************** 13817s E Please avoid running ``setup.py`` directly. 13817s E Instead, use pypa/build, pypa/installer or other 13817s E standards-based tools. 13817s E 13817s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13817s E ******************************************************************************** 13817s E 13817s E !! 13817s E self.initialize_options() 13817s E INFO: customize UnixCCompiler 13817s E INFO: customize UnixCCompiler using build_ext 13817s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/tmp 13817s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/usr 13817s E creating /tmp/tmppq19o2st/usr/lib 13817s E creating /tmp/tmppq19o2st/usr/lib/python3 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=native' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-O3' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-Werror' 13817s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13817s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-vfpv4' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=armv8.2-a+fp16' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13817s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13817s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13817s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13817s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13817s E INFO: building 'test_array_from_pyobj_ext' extension 13817s E INFO: compiling C sources 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13817s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13817s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13817s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13817s E 14 | #include 13817s E | ^~~~~~~~~~ 13817s E In file included from fortranobject.c:2: 13817s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13817s E 7 | #include 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E compilation terminated. 13817s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13817s E INFO: 13817s E ########### EXT COMPILER OPTIMIZATION ########### 13817s E INFO: Platform : 13817s E Architecture: armhf 13817s E Compiler : gcc 13817s E 13817s E CPU baseline : 13817s E Requested : 'min' 13817s E Enabled : none 13817s E Flags : none 13817s E Extra checks: none 13817s E 13817s E CPU dispatch : 13817s E Requested : 'max -xop -fma4' 13817s E Enabled : none 13817s E Generated : none 13817s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13817s 13817s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13817s d = '/tmp/tmpjj8q074z' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s err = None 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s kw = {} 13817s module_name = 'test_array_from_pyobj_ext' 13817s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13817s p = 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13817s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-23seq-C-ro] ____ 13817s 13817s def setup_module(): 13817s """ 13817s Build the required testing extension module 13817s 13817s """ 13817s global wrap 13817s 13817s # Check compiler availability first 13817s if not util.has_c_compiler(): 13817s pytest.skip("No C compiler available") 13817s 13817s if wrap is None: 13817s config_code = """ 13817s config.add_extension('test_array_from_pyobj_ext', 13817s sources=['wrapmodule.c', 'fortranobject.c'], 13817s define_macros=[]) 13817s """ 13817s d = os.path.dirname(__file__) 13817s src = [ 13817s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13817s util.getpath("src", "fortranobject.c"), 13817s util.getpath("src", "fortranobject.h"), 13817s ] 13817s > wrap = util.build_module_distutils(src, config_code, 13817s "test_array_from_pyobj_ext") 13817s 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13817s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13817s memo[key] = func(*a, **kw) 13817s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13817s func = 13817s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13817s kw = {} 13817s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s 13817s @_memoize 13817s def build_module_distutils(source_files, config_code, module_name, **kw): 13817s """ 13817s Build a module via distutils and import it. 13817s 13817s """ 13817s d = get_module_dir() 13817s 13817s # Copy files 13817s dst_sources = [] 13817s for fn in source_files: 13817s if not os.path.isfile(fn): 13817s raise RuntimeError("%s is not a file" % fn) 13817s dst = os.path.join(d, os.path.basename(fn)) 13817s shutil.copyfile(fn, dst) 13817s dst_sources.append(dst) 13817s 13817s # Build script 13817s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13817s 13817s code = fr""" 13817s import os 13817s import sys 13817s sys.path = {repr(sys.path)} 13817s 13817s def configuration(parent_name='',top_path=None): 13817s from numpy.distutils.misc_util import Configuration 13817s config = Configuration('', parent_name, top_path) 13817s {config_code} 13817s return config 13817s 13817s if __name__ == "__main__": 13817s from numpy.distutils.core import setup 13817s setup(configuration=configuration) 13817s """ 13817s script = os.path.join(d, get_temp_module_name() + ".py") 13817s dst_sources.append(script) 13817s with open(script, "wb") as f: 13817s f.write(asbytes(code)) 13817s 13817s # Build 13817s cwd = os.getcwd() 13817s try: 13817s os.chdir(d) 13817s cmd = [sys.executable, script, "build_ext", "-i"] 13817s p = subprocess.Popen(cmd, 13817s stdout=subprocess.PIPE, 13817s stderr=subprocess.STDOUT) 13817s out, err = p.communicate() 13817s if p.returncode != 0: 13817s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13817s (cmd[4:], asstr(out))) 13817s E RuntimeError: Running distutils build failed: [] 13817s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13817s E 13817s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13817s E of the deprecation of `distutils` itself. It will be removed for 13817s E Python >= 3.12. For older Python versions it will remain present. 13817s E It is recommended to use `setuptools < 60.0` for those Python versions. 13817s E For more details, see: 13817s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13817s E 13817s E 13817s E from numpy.distutils.core import setup 13817s E running build_ext 13817s E running build_src 13817s E INFO: build_src 13817s E INFO: building extension "test_array_from_pyobj_ext" sources 13817s E INFO: build_src: building npy-pkg config files 13817s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13817s E !! 13817s E 13817s E ******************************************************************************** 13817s E Please avoid running ``setup.py`` directly. 13817s E Instead, use pypa/build, pypa/installer or other 13817s E standards-based tools. 13817s E 13817s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13817s E ******************************************************************************** 13817s E 13817s E !! 13817s E self.initialize_options() 13817s E INFO: customize UnixCCompiler 13817s E INFO: customize UnixCCompiler using build_ext 13817s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/tmp 13817s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E creating /tmp/tmppq19o2st/usr 13817s E creating /tmp/tmppq19o2st/usr/lib 13817s E creating /tmp/tmppq19o2st/usr/lib/python3 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13817s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=native' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-O3' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-Werror' 13817s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13817s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-vfpv4' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13817s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-march=armv8.2-a+fp16' 13817s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/include/python3.12 -c' 13817s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13817s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13817s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13817s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13817s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13817s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13817s E 9 | # include_next 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E 13817s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13817s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13817s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13817s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13817s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13817s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13817s E INFO: building 'test_array_from_pyobj_ext' extension 13817s E INFO: compiling C sources 13817s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13817s E 13817s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13817s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13817s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13817s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13817s E 14 | #include 13817s E | ^~~~~~~~~~ 13817s E In file included from fortranobject.c:2: 13817s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13817s E 7 | #include 13817s E | ^~~~~~~~~~ 13817s E compilation terminated. 13817s E compilation terminated. 13817s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13817s E INFO: 13817s E ########### EXT COMPILER OPTIMIZATION ########### 13817s E INFO: Platform : 13817s E Architecture: armhf 13817s E Compiler : gcc 13817s E 13817s E CPU baseline : 13817s E Requested : 'min' 13817s E Enabled : none 13817s E Flags : none 13817s E Extra checks: none 13817s E 13817s E CPU dispatch : 13817s E Requested : 'max -xop -fma4' 13817s E Enabled : none 13817s E Generated : none 13817s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13817s 13817s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13817s d = '/tmp/tmpjj8q074z' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s err = None 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s kw = {} 13817s module_name = 'test_array_from_pyobj_ext' 13817s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13817s p = 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13817s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-23seq-F-w] ____ 13817s 13817s def setup_module(): 13817s """ 13817s Build the required testing extension module 13817s 13817s """ 13817s global wrap 13817s 13817s # Check compiler availability first 13817s if not util.has_c_compiler(): 13817s pytest.skip("No C compiler available") 13817s 13817s if wrap is None: 13817s config_code = """ 13817s config.add_extension('test_array_from_pyobj_ext', 13817s sources=['wrapmodule.c', 'fortranobject.c'], 13817s define_macros=[]) 13817s """ 13817s d = os.path.dirname(__file__) 13817s src = [ 13817s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13817s util.getpath("src", "fortranobject.c"), 13817s util.getpath("src", "fortranobject.h"), 13817s ] 13817s > wrap = util.build_module_distutils(src, config_code, 13817s "test_array_from_pyobj_ext") 13817s 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13817s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13817s memo[key] = func(*a, **kw) 13817s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13817s func = 13817s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13817s kw = {} 13817s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13817s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13817s 13817s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13817s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13817s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13817s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13817s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13817s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13817s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13817s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13817s 13817s @_memoize 13817s def build_module_distutils(source_files, config_code, module_name, **kw): 13817s """ 13817s Build a module via distutils and import it. 13817s 13817s """ 13817s d = get_module_dir() 13817s 13817s # Copy files 13817s dst_sources = [] 13817s for fn in source_files: 13817s if not os.path.isfile(fn): 13817s raise RuntimeError("%s is not a file" % fn) 13817s dst = os.path.join(d, os.path.basename(fn)) 13817s shutil.copyfile(fn, dst) 13817s dst_sources.append(dst) 13817s 13817s # Build script 13817s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13817s 13817s code = fr""" 13817s import os 13817s import sys 13817s sys.path = {repr(sys.path)} 13817s 13817s def configuration(parent_name='',top_path=None): 13817s from numpy.distutils.misc_util import Configuration 13817s config = Configuration('', parent_name, top_path) 13817s {config_code} 13817s return config 13817s 13817s if __name__ == "__main__": 13817s from numpy.distutils.core import setup 13817s setup(configuration=configuration) 13817s """ 13817s script = os.path.join(d, get_temp_module_name() + ".py") 13817s dst_sources.append(script) 13817s with open(script, "wb") as f: 13817s f.write(asbytes(code)) 13817s 13817s # Build 13817s cwd = os.getcwd() 13817s try: 13817s os.chdir(d) 13817s cmd = [sys.executable, script, "build_ext", "-i"] 13817s p = subprocess.Popen(cmd, 13817s stdout=subprocess.PIPE, 13817s stderr=subprocess.STDOUT) 13817s out, err = p.communicate() 13817s if p.returncode != 0: 13817s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13817s (cmd[4:], asstr(out))) 13817s E RuntimeError: Running distutils build failed: [] 13817s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13817s E 13817s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13817s E of the deprecation of `distutils` itself. It will be removed for 13817s E Python >= 3.12. For older Python versions it will remain present. 13817s E It is recommended to use `setuptools < 60.0` for those Python versions. 13817s E For more details, see: 13817s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-vfpv4' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=armv8.2-a+fp16' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13818s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13818s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13818s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13818s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13818s E INFO: building 'test_array_from_pyobj_ext' extension 13818s E INFO: compiling C sources 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13818s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13818s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13818s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13818s E 14 | #include 13818s E | ^~~~~~~~~~ 13818s E In file included from fortranobject.c:2: 13818s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13818s E 7 | #include 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E compilation terminated. 13818s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13818s E INFO: 13818s E ########### EXT COMPILER OPTIMIZATION ########### 13818s E INFO: Platform : 13818s E Architecture: armhf 13818s E Compiler : gcc 13818s E 13818s E CPU baseline : 13818s E Requested : 'min' 13818s E Enabled : none 13818s E Flags : none 13818s E Extra checks: none 13818s E 13818s E CPU dispatch : 13818s E Requested : 'max -xop -fma4' 13818s E Enabled : none 13818s E Generated : none 13818s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13818s 13818s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13818s d = '/tmp/tmpjj8q074z' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s err = None 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s kw = {} 13818s module_name = 'test_array_from_pyobj_ext' 13818s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13818s p = 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13818s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[ULONGLONG-23seq-F-ro] ____ 13818s 13818s def setup_module(): 13818s """ 13818s Build the required testing extension module 13818s 13818s """ 13818s global wrap 13818s 13818s # Check compiler availability first 13818s if not util.has_c_compiler(): 13818s pytest.skip("No C compiler available") 13818s 13818s if wrap is None: 13818s config_code = """ 13818s config.add_extension('test_array_from_pyobj_ext', 13818s sources=['wrapmodule.c', 'fortranobject.c'], 13818s define_macros=[]) 13818s """ 13818s d = os.path.dirname(__file__) 13818s src = [ 13818s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13818s util.getpath("src", "fortranobject.c"), 13818s util.getpath("src", "fortranobject.h"), 13818s ] 13818s > wrap = util.build_module_distutils(src, config_code, 13818s "test_array_from_pyobj_ext") 13818s 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13818s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13818s memo[key] = func(*a, **kw) 13818s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13818s func = 13818s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13818s kw = {} 13818s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s 13818s @_memoize 13818s def build_module_distutils(source_files, config_code, module_name, **kw): 13818s """ 13818s Build a module via distutils and import it. 13818s 13818s """ 13818s d = get_module_dir() 13818s 13818s # Copy files 13818s dst_sources = [] 13818s for fn in source_files: 13818s if not os.path.isfile(fn): 13818s raise RuntimeError("%s is not a file" % fn) 13818s dst = os.path.join(d, os.path.basename(fn)) 13818s shutil.copyfile(fn, dst) 13818s dst_sources.append(dst) 13818s 13818s # Build script 13818s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13818s 13818s code = fr""" 13818s import os 13818s import sys 13818s sys.path = {repr(sys.path)} 13818s 13818s def configuration(parent_name='',top_path=None): 13818s from numpy.distutils.misc_util import Configuration 13818s config = Configuration('', parent_name, top_path) 13818s {config_code} 13818s return config 13818s 13818s if __name__ == "__main__": 13818s from numpy.distutils.core import setup 13818s setup(configuration=configuration) 13818s """ 13818s script = os.path.join(d, get_temp_module_name() + ".py") 13818s dst_sources.append(script) 13818s with open(script, "wb") as f: 13818s f.write(asbytes(code)) 13818s 13818s # Build 13818s cwd = os.getcwd() 13818s try: 13818s os.chdir(d) 13818s cmd = [sys.executable, script, "build_ext", "-i"] 13818s p = subprocess.Popen(cmd, 13818s stdout=subprocess.PIPE, 13818s stderr=subprocess.STDOUT) 13818s out, err = p.communicate() 13818s if p.returncode != 0: 13818s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13818s (cmd[4:], asstr(out))) 13818s E RuntimeError: Running distutils build failed: [] 13818s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13818s E 13818s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13818s E of the deprecation of `distutils` itself. It will be removed for 13818s E Python >= 3.12. For older Python versions it will remain present. 13818s E It is recommended to use `setuptools < 60.0` for those Python versions. 13818s E For more details, see: 13818s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-vfpv4' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=armv8.2-a+fp16' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13818s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13818s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13818s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13818s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13818s E INFO: building 'test_array_from_pyobj_ext' extension 13818s E INFO: compiling C sources 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13818s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13818s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13818s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13818s E 14 | #include 13818s E | ^~~~~~~~~~ 13818s E In file included from fortranobject.c:2: 13818s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13818s E 7 | #include 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E compilation terminated. 13818s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13818s E INFO: 13818s E ########### EXT COMPILER OPTIMIZATION ########### 13818s E INFO: Platform : 13818s E Architecture: armhf 13818s E Compiler : gcc 13818s E 13818s E CPU baseline : 13818s E Requested : 'min' 13818s E Enabled : none 13818s E Flags : none 13818s E Extra checks: none 13818s E 13818s E CPU dispatch : 13818s E Requested : 'max -xop -fma4' 13818s E Enabled : none 13818s E Generated : none 13818s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13818s 13818s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13818s d = '/tmp/tmpjj8q074z' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s err = None 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s kw = {} 13818s module_name = 'test_array_from_pyobj_ext' 13818s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13818s p = 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13818s ________ ERROR at setup of TestSharedMemory.test_inout_2seq[ULONGLONG] _________ 13818s 13818s def setup_module(): 13818s """ 13818s Build the required testing extension module 13818s 13818s """ 13818s global wrap 13818s 13818s # Check compiler availability first 13818s if not util.has_c_compiler(): 13818s pytest.skip("No C compiler available") 13818s 13818s if wrap is None: 13818s config_code = """ 13818s config.add_extension('test_array_from_pyobj_ext', 13818s sources=['wrapmodule.c', 'fortranobject.c'], 13818s define_macros=[]) 13818s """ 13818s d = os.path.dirname(__file__) 13818s src = [ 13818s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13818s util.getpath("src", "fortranobject.c"), 13818s util.getpath("src", "fortranobject.h"), 13818s ] 13818s > wrap = util.build_module_distutils(src, config_code, 13818s "test_array_from_pyobj_ext") 13818s 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13818s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13818s memo[key] = func(*a, **kw) 13818s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13818s func = 13818s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13818s kw = {} 13818s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s 13818s @_memoize 13818s def build_module_distutils(source_files, config_code, module_name, **kw): 13818s """ 13818s Build a module via distutils and import it. 13818s 13818s """ 13818s d = get_module_dir() 13818s 13818s # Copy files 13818s dst_sources = [] 13818s for fn in source_files: 13818s if not os.path.isfile(fn): 13818s raise RuntimeError("%s is not a file" % fn) 13818s dst = os.path.join(d, os.path.basename(fn)) 13818s shutil.copyfile(fn, dst) 13818s dst_sources.append(dst) 13818s 13818s # Build script 13818s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13818s 13818s code = fr""" 13818s import os 13818s import sys 13818s sys.path = {repr(sys.path)} 13818s 13818s def configuration(parent_name='',top_path=None): 13818s from numpy.distutils.misc_util import Configuration 13818s config = Configuration('', parent_name, top_path) 13818s {config_code} 13818s return config 13818s 13818s if __name__ == "__main__": 13818s from numpy.distutils.core import setup 13818s setup(configuration=configuration) 13818s """ 13818s script = os.path.join(d, get_temp_module_name() + ".py") 13818s dst_sources.append(script) 13818s with open(script, "wb") as f: 13818s f.write(asbytes(code)) 13818s 13818s # Build 13818s cwd = os.getcwd() 13818s try: 13818s os.chdir(d) 13818s cmd = [sys.executable, script, "build_ext", "-i"] 13818s p = subprocess.Popen(cmd, 13818s stdout=subprocess.PIPE, 13818s stderr=subprocess.STDOUT) 13818s out, err = p.communicate() 13818s if p.returncode != 0: 13818s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13818s (cmd[4:], asstr(out))) 13818s E RuntimeError: Running distutils build failed: [] 13818s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13818s E 13818s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13818s E of the deprecation of `distutils` itself. It will be removed for 13818s E Python >= 3.12. For older Python versions it will remain present. 13818s E It is recommended to use `setuptools < 60.0` for those Python versions. 13818s E For more details, see: 13818s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-vfpv4' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=armv8.2-a+fp16' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13818s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13818s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13818s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13818s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13818s E INFO: building 'test_array_from_pyobj_ext' extension 13818s E INFO: compiling C sources 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13818s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13818s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13818s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13818s E 14 | #include 13818s E | ^~~~~~~~~~ 13818s E In file included from fortranobject.c:2: 13818s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13818s E 7 | #include 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E compilation terminated. 13818s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13818s E INFO: 13818s E ########### EXT COMPILER OPTIMIZATION ########### 13818s E INFO: Platform : 13818s E Architecture: armhf 13818s E Compiler : gcc 13818s E 13818s E CPU baseline : 13818s E Requested : 'min' 13818s E Enabled : none 13818s E Flags : none 13818s E Extra checks: none 13818s E 13818s E CPU dispatch : 13818s E Requested : 'max -xop -fma4' 13818s E Enabled : none 13818s E Generated : none 13818s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13818s 13818s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13818s d = '/tmp/tmpjj8q074z' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s err = None 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s kw = {} 13818s module_name = 'test_array_from_pyobj_ext' 13818s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13818s p = 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13818s _______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[ULONGLONG] _______ 13818s 13818s def setup_module(): 13818s """ 13818s Build the required testing extension module 13818s 13818s """ 13818s global wrap 13818s 13818s # Check compiler availability first 13818s if not util.has_c_compiler(): 13818s pytest.skip("No C compiler available") 13818s 13818s if wrap is None: 13818s config_code = """ 13818s config.add_extension('test_array_from_pyobj_ext', 13818s sources=['wrapmodule.c', 'fortranobject.c'], 13818s define_macros=[]) 13818s """ 13818s d = os.path.dirname(__file__) 13818s src = [ 13818s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13818s util.getpath("src", "fortranobject.c"), 13818s util.getpath("src", "fortranobject.h"), 13818s ] 13818s > wrap = util.build_module_distutils(src, config_code, 13818s "test_array_from_pyobj_ext") 13818s 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13818s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13818s memo[key] = func(*a, **kw) 13818s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13818s func = 13818s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13818s kw = {} 13818s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s 13818s @_memoize 13818s def build_module_distutils(source_files, config_code, module_name, **kw): 13818s """ 13818s Build a module via distutils and import it. 13818s 13818s """ 13818s d = get_module_dir() 13818s 13818s # Copy files 13818s dst_sources = [] 13818s for fn in source_files: 13818s if not os.path.isfile(fn): 13818s raise RuntimeError("%s is not a file" % fn) 13818s dst = os.path.join(d, os.path.basename(fn)) 13818s shutil.copyfile(fn, dst) 13818s dst_sources.append(dst) 13818s 13818s # Build script 13818s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13818s 13818s code = fr""" 13818s import os 13818s import sys 13818s sys.path = {repr(sys.path)} 13818s 13818s def configuration(parent_name='',top_path=None): 13818s from numpy.distutils.misc_util import Configuration 13818s config = Configuration('', parent_name, top_path) 13818s {config_code} 13818s return config 13818s 13818s if __name__ == "__main__": 13818s from numpy.distutils.core import setup 13818s setup(configuration=configuration) 13818s """ 13818s script = os.path.join(d, get_temp_module_name() + ".py") 13818s dst_sources.append(script) 13818s with open(script, "wb") as f: 13818s f.write(asbytes(code)) 13818s 13818s # Build 13818s cwd = os.getcwd() 13818s try: 13818s os.chdir(d) 13818s cmd = [sys.executable, script, "build_ext", "-i"] 13818s p = subprocess.Popen(cmd, 13818s stdout=subprocess.PIPE, 13818s stderr=subprocess.STDOUT) 13818s out, err = p.communicate() 13818s if p.returncode != 0: 13818s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13818s (cmd[4:], asstr(out))) 13818s E RuntimeError: Running distutils build failed: [] 13818s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13818s E 13818s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13818s E of the deprecation of `distutils` itself. It will be removed for 13818s E Python >= 3.12. For older Python versions it will remain present. 13818s E It is recommended to use `setuptools < 60.0` for those Python versions. 13818s E For more details, see: 13818s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-vfpv4' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=armv8.2-a+fp16' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13818s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13818s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13818s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13818s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13818s E INFO: building 'test_array_from_pyobj_ext' extension 13818s E INFO: compiling C sources 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13818s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13818s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13818s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13818s E 14 | #include 13818s E | ^~~~~~~~~~ 13818s E In file included from fortranobject.c:2: 13818s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13818s E 7 | #include 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E compilation terminated. 13818s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13818s E INFO: 13818s E ########### EXT COMPILER OPTIMIZATION ########### 13818s E INFO: Platform : 13818s E Architecture: armhf 13818s E Compiler : gcc 13818s E 13818s E CPU baseline : 13818s E Requested : 'min' 13818s E Enabled : none 13818s E Flags : none 13818s E Extra checks: none 13818s E 13818s E CPU dispatch : 13818s E Requested : 'max -xop -fma4' 13818s E Enabled : none 13818s E Generated : none 13818s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13818s 13818s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13818s d = '/tmp/tmpjj8q074z' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s err = None 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s kw = {} 13818s module_name = 'test_array_from_pyobj_ext' 13818s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13818s p = 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13818s _______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[ULONGLONG] _______ 13818s 13818s def setup_module(): 13818s """ 13818s Build the required testing extension module 13818s 13818s """ 13818s global wrap 13818s 13818s # Check compiler availability first 13818s if not util.has_c_compiler(): 13818s pytest.skip("No C compiler available") 13818s 13818s if wrap is None: 13818s config_code = """ 13818s config.add_extension('test_array_from_pyobj_ext', 13818s sources=['wrapmodule.c', 'fortranobject.c'], 13818s define_macros=[]) 13818s """ 13818s d = os.path.dirname(__file__) 13818s src = [ 13818s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13818s util.getpath("src", "fortranobject.c"), 13818s util.getpath("src", "fortranobject.h"), 13818s ] 13818s > wrap = util.build_module_distutils(src, config_code, 13818s "test_array_from_pyobj_ext") 13818s 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13818s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13818s memo[key] = func(*a, **kw) 13818s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13818s func = 13818s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13818s kw = {} 13818s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s 13818s @_memoize 13818s def build_module_distutils(source_files, config_code, module_name, **kw): 13818s """ 13818s Build a module via distutils and import it. 13818s 13818s """ 13818s d = get_module_dir() 13818s 13818s # Copy files 13818s dst_sources = [] 13818s for fn in source_files: 13818s if not os.path.isfile(fn): 13818s raise RuntimeError("%s is not a file" % fn) 13818s dst = os.path.join(d, os.path.basename(fn)) 13818s shutil.copyfile(fn, dst) 13818s dst_sources.append(dst) 13818s 13818s # Build script 13818s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13818s 13818s code = fr""" 13818s import os 13818s import sys 13818s sys.path = {repr(sys.path)} 13818s 13818s def configuration(parent_name='',top_path=None): 13818s from numpy.distutils.misc_util import Configuration 13818s config = Configuration('', parent_name, top_path) 13818s {config_code} 13818s return config 13818s 13818s if __name__ == "__main__": 13818s from numpy.distutils.core import setup 13818s setup(configuration=configuration) 13818s """ 13818s script = os.path.join(d, get_temp_module_name() + ".py") 13818s dst_sources.append(script) 13818s with open(script, "wb") as f: 13818s f.write(asbytes(code)) 13818s 13818s # Build 13818s cwd = os.getcwd() 13818s try: 13818s os.chdir(d) 13818s cmd = [sys.executable, script, "build_ext", "-i"] 13818s p = subprocess.Popen(cmd, 13818s stdout=subprocess.PIPE, 13818s stderr=subprocess.STDOUT) 13818s out, err = p.communicate() 13818s if p.returncode != 0: 13818s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13818s (cmd[4:], asstr(out))) 13818s E RuntimeError: Running distutils build failed: [] 13818s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13818s E 13818s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13818s E of the deprecation of `distutils` itself. It will be removed for 13818s E Python >= 3.12. For older Python versions it will remain present. 13818s E It is recommended to use `setuptools < 60.0` for those Python versions. 13818s E For more details, see: 13818s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-vfpv4' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=armv8.2-a+fp16' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13818s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13818s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13818s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13818s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13818s E INFO: building 'test_array_from_pyobj_ext' extension 13818s E INFO: compiling C sources 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13818s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13818s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13818s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13818s E 14 | #include 13818s E | ^~~~~~~~~~ 13818s E In file included from fortranobject.c:2: 13818s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13818s E 7 | #include 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E compilation terminated. 13818s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13818s E INFO: 13818s E ########### EXT COMPILER OPTIMIZATION ########### 13818s E INFO: Platform : 13818s E Architecture: armhf 13818s E Compiler : gcc 13818s E 13818s E CPU baseline : 13818s E Requested : 'min' 13818s E Enabled : none 13818s E Flags : none 13818s E Extra checks: none 13818s E 13818s E CPU dispatch : 13818s E Requested : 'max -xop -fma4' 13818s E Enabled : none 13818s E Generated : none 13818s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13818s 13818s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13818s d = '/tmp/tmpjj8q074z' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s err = None 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s kw = {} 13818s module_name = 'test_array_from_pyobj_ext' 13818s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13818s p = 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13818s __ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[ULONGLONG] ___ 13818s 13818s def setup_module(): 13818s """ 13818s Build the required testing extension module 13818s 13818s """ 13818s global wrap 13818s 13818s # Check compiler availability first 13818s if not util.has_c_compiler(): 13818s pytest.skip("No C compiler available") 13818s 13818s if wrap is None: 13818s config_code = """ 13818s config.add_extension('test_array_from_pyobj_ext', 13818s sources=['wrapmodule.c', 'fortranobject.c'], 13818s define_macros=[]) 13818s """ 13818s d = os.path.dirname(__file__) 13818s src = [ 13818s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13818s util.getpath("src", "fortranobject.c"), 13818s util.getpath("src", "fortranobject.h"), 13818s ] 13818s > wrap = util.build_module_distutils(src, config_code, 13818s "test_array_from_pyobj_ext") 13818s 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13818s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13818s memo[key] = func(*a, **kw) 13818s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13818s func = 13818s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13818s kw = {} 13818s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s 13818s @_memoize 13818s def build_module_distutils(source_files, config_code, module_name, **kw): 13818s """ 13818s Build a module via distutils and import it. 13818s 13818s """ 13818s d = get_module_dir() 13818s 13818s # Copy files 13818s dst_sources = [] 13818s for fn in source_files: 13818s if not os.path.isfile(fn): 13818s raise RuntimeError("%s is not a file" % fn) 13818s dst = os.path.join(d, os.path.basename(fn)) 13818s shutil.copyfile(fn, dst) 13818s dst_sources.append(dst) 13818s 13818s # Build script 13818s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13818s 13818s code = fr""" 13818s import os 13818s import sys 13818s sys.path = {repr(sys.path)} 13818s 13818s def configuration(parent_name='',top_path=None): 13818s from numpy.distutils.misc_util import Configuration 13818s config = Configuration('', parent_name, top_path) 13818s {config_code} 13818s return config 13818s 13818s if __name__ == "__main__": 13818s from numpy.distutils.core import setup 13818s setup(configuration=configuration) 13818s """ 13818s script = os.path.join(d, get_temp_module_name() + ".py") 13818s dst_sources.append(script) 13818s with open(script, "wb") as f: 13818s f.write(asbytes(code)) 13818s 13818s # Build 13818s cwd = os.getcwd() 13818s try: 13818s os.chdir(d) 13818s cmd = [sys.executable, script, "build_ext", "-i"] 13818s p = subprocess.Popen(cmd, 13818s stdout=subprocess.PIPE, 13818s stderr=subprocess.STDOUT) 13818s out, err = p.communicate() 13818s if p.returncode != 0: 13818s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13818s (cmd[4:], asstr(out))) 13818s E RuntimeError: Running distutils build failed: [] 13818s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13818s E 13818s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13818s E of the deprecation of `distutils` itself. It will be removed for 13818s E Python >= 3.12. For older Python versions it will remain present. 13818s E It is recommended to use `setuptools < 60.0` for those Python versions. 13818s E For more details, see: 13818s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-vfpv4' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=armv8.2-a+fp16' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13818s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13818s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13818s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13818s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13818s E INFO: building 'test_array_from_pyobj_ext' extension 13818s E INFO: compiling C sources 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13818s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13818s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13818s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13818s E 14 | #include 13818s E | ^~~~~~~~~~ 13818s E In file included from fortranobject.c:2: 13818s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13818s E 7 | #include 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E compilation terminated. 13818s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13818s E INFO: 13818s E ########### EXT COMPILER OPTIMIZATION ########### 13818s E INFO: Platform : 13818s E Architecture: armhf 13818s E Compiler : gcc 13818s E 13818s E CPU baseline : 13818s E Requested : 'min' 13818s E Enabled : none 13818s E Flags : none 13818s E Extra checks: none 13818s E 13818s E CPU dispatch : 13818s E Requested : 'max -xop -fma4' 13818s E Enabled : none 13818s E Generated : none 13818s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13818s 13818s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13818s d = '/tmp/tmpjj8q074z' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s err = None 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s kw = {} 13818s module_name = 'test_array_from_pyobj_ext' 13818s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13818s p = 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13818s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[ULONGLONG] ______ 13818s 13818s def setup_module(): 13818s """ 13818s Build the required testing extension module 13818s 13818s """ 13818s global wrap 13818s 13818s # Check compiler availability first 13818s if not util.has_c_compiler(): 13818s pytest.skip("No C compiler available") 13818s 13818s if wrap is None: 13818s config_code = """ 13818s config.add_extension('test_array_from_pyobj_ext', 13818s sources=['wrapmodule.c', 'fortranobject.c'], 13818s define_macros=[]) 13818s """ 13818s d = os.path.dirname(__file__) 13818s src = [ 13818s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13818s util.getpath("src", "fortranobject.c"), 13818s util.getpath("src", "fortranobject.h"), 13818s ] 13818s > wrap = util.build_module_distutils(src, config_code, 13818s "test_array_from_pyobj_ext") 13818s 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13818s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13818s memo[key] = func(*a, **kw) 13818s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13818s func = 13818s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13818s kw = {} 13818s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s 13818s @_memoize 13818s def build_module_distutils(source_files, config_code, module_name, **kw): 13818s """ 13818s Build a module via distutils and import it. 13818s 13818s """ 13818s d = get_module_dir() 13818s 13818s # Copy files 13818s dst_sources = [] 13818s for fn in source_files: 13818s if not os.path.isfile(fn): 13818s raise RuntimeError("%s is not a file" % fn) 13818s dst = os.path.join(d, os.path.basename(fn)) 13818s shutil.copyfile(fn, dst) 13818s dst_sources.append(dst) 13818s 13818s # Build script 13818s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13818s 13818s code = fr""" 13818s import os 13818s import sys 13818s sys.path = {repr(sys.path)} 13818s 13818s def configuration(parent_name='',top_path=None): 13818s from numpy.distutils.misc_util import Configuration 13818s config = Configuration('', parent_name, top_path) 13818s {config_code} 13818s return config 13818s 13818s if __name__ == "__main__": 13818s from numpy.distutils.core import setup 13818s setup(configuration=configuration) 13818s """ 13818s script = os.path.join(d, get_temp_module_name() + ".py") 13818s dst_sources.append(script) 13818s with open(script, "wb") as f: 13818s f.write(asbytes(code)) 13818s 13818s # Build 13818s cwd = os.getcwd() 13818s try: 13818s os.chdir(d) 13818s cmd = [sys.executable, script, "build_ext", "-i"] 13818s p = subprocess.Popen(cmd, 13818s stdout=subprocess.PIPE, 13818s stderr=subprocess.STDOUT) 13818s out, err = p.communicate() 13818s if p.returncode != 0: 13818s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13818s (cmd[4:], asstr(out))) 13818s E RuntimeError: Running distutils build failed: [] 13818s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13818s E 13818s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13818s E of the deprecation of `distutils` itself. It will be removed for 13818s E Python >= 3.12. For older Python versions it will remain present. 13818s E It is recommended to use `setuptools < 60.0` for those Python versions. 13818s E For more details, see: 13818s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-vfpv4' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=armv8.2-a+fp16' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13818s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13818s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13818s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13818s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13818s E INFO: building 'test_array_from_pyobj_ext' extension 13818s E INFO: compiling C sources 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13818s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13818s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13818s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13818s E 14 | #include 13818s E | ^~~~~~~~~~ 13818s E In file included from fortranobject.c:2: 13818s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13818s E 7 | #include 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E compilation terminated. 13818s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13818s E INFO: 13818s E ########### EXT COMPILER OPTIMIZATION ########### 13818s E INFO: Platform : 13818s E Architecture: armhf 13818s E Compiler : gcc 13818s E 13818s E CPU baseline : 13818s E Requested : 'min' 13818s E Enabled : none 13818s E Flags : none 13818s E Extra checks: none 13818s E 13818s E CPU dispatch : 13818s E Requested : 'max -xop -fma4' 13818s E Enabled : none 13818s E Generated : none 13818s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13818s 13818s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13818s d = '/tmp/tmpjj8q074z' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s err = None 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s kw = {} 13818s module_name = 'test_array_from_pyobj_ext' 13818s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13818s p = 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13818s ____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[ULONGLONG] _____ 13818s 13818s def setup_module(): 13818s """ 13818s Build the required testing extension module 13818s 13818s """ 13818s global wrap 13818s 13818s # Check compiler availability first 13818s if not util.has_c_compiler(): 13818s pytest.skip("No C compiler available") 13818s 13818s if wrap is None: 13818s config_code = """ 13818s config.add_extension('test_array_from_pyobj_ext', 13818s sources=['wrapmodule.c', 'fortranobject.c'], 13818s define_macros=[]) 13818s """ 13818s d = os.path.dirname(__file__) 13818s src = [ 13818s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13818s util.getpath("src", "fortranobject.c"), 13818s util.getpath("src", "fortranobject.h"), 13818s ] 13818s > wrap = util.build_module_distutils(src, config_code, 13818s "test_array_from_pyobj_ext") 13818s 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13818s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13818s memo[key] = func(*a, **kw) 13818s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13818s func = 13818s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13818s kw = {} 13818s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s 13818s @_memoize 13818s def build_module_distutils(source_files, config_code, module_name, **kw): 13818s """ 13818s Build a module via distutils and import it. 13818s 13818s """ 13818s d = get_module_dir() 13818s 13818s # Copy files 13818s dst_sources = [] 13818s for fn in source_files: 13818s if not os.path.isfile(fn): 13818s raise RuntimeError("%s is not a file" % fn) 13818s dst = os.path.join(d, os.path.basename(fn)) 13818s shutil.copyfile(fn, dst) 13818s dst_sources.append(dst) 13818s 13818s # Build script 13818s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13818s 13818s code = fr""" 13818s import os 13818s import sys 13818s sys.path = {repr(sys.path)} 13818s 13818s def configuration(parent_name='',top_path=None): 13818s from numpy.distutils.misc_util import Configuration 13818s config = Configuration('', parent_name, top_path) 13818s {config_code} 13818s return config 13818s 13818s if __name__ == "__main__": 13818s from numpy.distutils.core import setup 13818s setup(configuration=configuration) 13818s """ 13818s script = os.path.join(d, get_temp_module_name() + ".py") 13818s dst_sources.append(script) 13818s with open(script, "wb") as f: 13818s f.write(asbytes(code)) 13818s 13818s # Build 13818s cwd = os.getcwd() 13818s try: 13818s os.chdir(d) 13818s cmd = [sys.executable, script, "build_ext", "-i"] 13818s p = subprocess.Popen(cmd, 13818s stdout=subprocess.PIPE, 13818s stderr=subprocess.STDOUT) 13818s out, err = p.communicate() 13818s if p.returncode != 0: 13818s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13818s (cmd[4:], asstr(out))) 13818s E RuntimeError: Running distutils build failed: [] 13818s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13818s E 13818s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13818s E of the deprecation of `distutils` itself. It will be removed for 13818s E Python >= 3.12. For older Python versions it will remain present. 13818s E It is recommended to use `setuptools < 60.0` for those Python versions. 13818s E For more details, see: 13818s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-vfpv4' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=armv8.2-a+fp16' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13818s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13818s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13818s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13818s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13818s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13818s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13818s E INFO: building 'test_array_from_pyobj_ext' extension 13818s E INFO: compiling C sources 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13818s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13818s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13818s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13818s E 14 | #include 13818s E | ^~~~~~~~~~ 13818s E In file included from fortranobject.c:2: 13818s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13818s E 7 | #include 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E compilation terminated. 13818s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13818s E INFO: 13818s E ########### EXT COMPILER OPTIMIZATION ########### 13818s E INFO: Platform : 13818s E Architecture: armhf 13818s E Compiler : gcc 13818s E 13818s E CPU baseline : 13818s E Requested : 'min' 13818s E Enabled : none 13818s E Flags : none 13818s E Extra checks: none 13818s E 13818s E CPU dispatch : 13818s E Requested : 'max -xop -fma4' 13818s E Enabled : none 13818s E Generated : none 13818s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13818s 13818s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13818s d = '/tmp/tmpjj8q074z' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s err = None 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s kw = {} 13818s module_name = 'test_array_from_pyobj_ext' 13818s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13818s p = 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13818s ___ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[ULONGLONG] ____ 13818s 13818s def setup_module(): 13818s """ 13818s Build the required testing extension module 13818s 13818s """ 13818s global wrap 13818s 13818s # Check compiler availability first 13818s if not util.has_c_compiler(): 13818s pytest.skip("No C compiler available") 13818s 13818s if wrap is None: 13818s config_code = """ 13818s config.add_extension('test_array_from_pyobj_ext', 13818s sources=['wrapmodule.c', 'fortranobject.c'], 13818s define_macros=[]) 13818s """ 13818s d = os.path.dirname(__file__) 13818s src = [ 13818s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13818s util.getpath("src", "fortranobject.c"), 13818s util.getpath("src", "fortranobject.h"), 13818s ] 13818s > wrap = util.build_module_distutils(src, config_code, 13818s "test_array_from_pyobj_ext") 13818s 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13818s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13818s memo[key] = func(*a, **kw) 13818s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13818s func = 13818s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13818s kw = {} 13818s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13818s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13818s 13818s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13818s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13818s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13818s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13818s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13818s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13818s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13818s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13818s 13818s @_memoize 13818s def build_module_distutils(source_files, config_code, module_name, **kw): 13818s """ 13818s Build a module via distutils and import it. 13818s 13818s """ 13818s d = get_module_dir() 13818s 13818s # Copy files 13818s dst_sources = [] 13818s for fn in source_files: 13818s if not os.path.isfile(fn): 13818s raise RuntimeError("%s is not a file" % fn) 13818s dst = os.path.join(d, os.path.basename(fn)) 13818s shutil.copyfile(fn, dst) 13818s dst_sources.append(dst) 13818s 13818s # Build script 13818s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13818s 13818s code = fr""" 13818s import os 13818s import sys 13818s sys.path = {repr(sys.path)} 13818s 13818s def configuration(parent_name='',top_path=None): 13818s from numpy.distutils.misc_util import Configuration 13818s config = Configuration('', parent_name, top_path) 13818s {config_code} 13818s return config 13818s 13818s if __name__ == "__main__": 13818s from numpy.distutils.core import setup 13818s setup(configuration=configuration) 13818s """ 13818s script = os.path.join(d, get_temp_module_name() + ".py") 13818s dst_sources.append(script) 13818s with open(script, "wb") as f: 13818s f.write(asbytes(code)) 13818s 13818s # Build 13818s cwd = os.getcwd() 13818s try: 13818s os.chdir(d) 13818s cmd = [sys.executable, script, "build_ext", "-i"] 13818s p = subprocess.Popen(cmd, 13818s stdout=subprocess.PIPE, 13818s stderr=subprocess.STDOUT) 13818s out, err = p.communicate() 13818s if p.returncode != 0: 13818s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13818s (cmd[4:], asstr(out))) 13818s E RuntimeError: Running distutils build failed: [] 13818s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13818s E 13818s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13818s E of the deprecation of `distutils` itself. It will be removed for 13818s E Python >= 3.12. For older Python versions it will remain present. 13818s E It is recommended to use `setuptools < 60.0` for those Python versions. 13818s E For more details, see: 13818s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13818s E 13818s E 13818s E from numpy.distutils.core import setup 13818s E running build_ext 13818s E running build_src 13818s E INFO: build_src 13818s E INFO: building extension "test_array_from_pyobj_ext" sources 13818s E INFO: build_src: building npy-pkg config files 13818s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13818s E !! 13818s E 13818s E ******************************************************************************** 13818s E Please avoid running ``setup.py`` directly. 13818s E Instead, use pypa/build, pypa/installer or other 13818s E standards-based tools. 13818s E 13818s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13818s E ******************************************************************************** 13818s E 13818s E !! 13818s E self.initialize_options() 13818s E INFO: customize UnixCCompiler 13818s E INFO: customize UnixCCompiler using build_ext 13818s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/tmp 13818s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E creating /tmp/tmppq19o2st/usr 13818s E creating /tmp/tmppq19o2st/usr/lib 13818s E creating /tmp/tmppq19o2st/usr/lib/python3 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13818s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-march=native' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-O3' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-Werror' 13818s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13818s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon' 13818s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13818s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13818s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13818s E 13818s E INFO: compile options: '-I/usr/include/python3.12 -c' 13818s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13818s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13818s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13818s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13818s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13818s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13818s E 9 | # include_next 13818s E | ^~~~~~~~~~ 13818s E compilation terminated. 13818s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13819s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13819s E 7 | #include 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E compilation terminated. 13819s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13819s E INFO: 13819s E ########### EXT COMPILER OPTIMIZATION ########### 13819s E INFO: Platform : 13819s E Architecture: armhf 13819s E Compiler : gcc 13819s E 13819s E CPU baseline : 13819s E Requested : 'min' 13819s E Enabled : none 13819s E Flags : none 13819s E Extra checks: none 13819s E 13819s E CPU dispatch : 13819s E Requested : 'max -xop -fma4' 13819s E Enabled : none 13819s E Generated : none 13819s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13819s 13819s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13819s d = '/tmp/tmpjj8q074z' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s err = None 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s kw = {} 13819s module_name = 'test_array_from_pyobj_ext' 13819s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13819s p = 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13819s ___ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[ULONGLONG] ____ 13819s 13819s def setup_module(): 13819s """ 13819s Build the required testing extension module 13819s 13819s """ 13819s global wrap 13819s 13819s # Check compiler availability first 13819s if not util.has_c_compiler(): 13819s pytest.skip("No C compiler available") 13819s 13819s if wrap is None: 13819s config_code = """ 13819s config.add_extension('test_array_from_pyobj_ext', 13819s sources=['wrapmodule.c', 'fortranobject.c'], 13819s define_macros=[]) 13819s """ 13819s d = os.path.dirname(__file__) 13819s src = [ 13819s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13819s util.getpath("src", "fortranobject.c"), 13819s util.getpath("src", "fortranobject.h"), 13819s ] 13819s > wrap = util.build_module_distutils(src, config_code, 13819s "test_array_from_pyobj_ext") 13819s 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13819s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13819s memo[key] = func(*a, **kw) 13819s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13819s func = 13819s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13819s kw = {} 13819s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s 13819s @_memoize 13819s def build_module_distutils(source_files, config_code, module_name, **kw): 13819s """ 13819s Build a module via distutils and import it. 13819s 13819s """ 13819s d = get_module_dir() 13819s 13819s # Copy files 13819s dst_sources = [] 13819s for fn in source_files: 13819s if not os.path.isfile(fn): 13819s raise RuntimeError("%s is not a file" % fn) 13819s dst = os.path.join(d, os.path.basename(fn)) 13819s shutil.copyfile(fn, dst) 13819s dst_sources.append(dst) 13819s 13819s # Build script 13819s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13819s 13819s code = fr""" 13819s import os 13819s import sys 13819s sys.path = {repr(sys.path)} 13819s 13819s def configuration(parent_name='',top_path=None): 13819s from numpy.distutils.misc_util import Configuration 13819s config = Configuration('', parent_name, top_path) 13819s {config_code} 13819s return config 13819s 13819s if __name__ == "__main__": 13819s from numpy.distutils.core import setup 13819s setup(configuration=configuration) 13819s """ 13819s script = os.path.join(d, get_temp_module_name() + ".py") 13819s dst_sources.append(script) 13819s with open(script, "wb") as f: 13819s f.write(asbytes(code)) 13819s 13819s # Build 13819s cwd = os.getcwd() 13819s try: 13819s os.chdir(d) 13819s cmd = [sys.executable, script, "build_ext", "-i"] 13819s p = subprocess.Popen(cmd, 13819s stdout=subprocess.PIPE, 13819s stderr=subprocess.STDOUT) 13819s out, err = p.communicate() 13819s if p.returncode != 0: 13819s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13819s (cmd[4:], asstr(out))) 13819s E RuntimeError: Running distutils build failed: [] 13819s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13819s E 13819s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13819s E of the deprecation of `distutils` itself. It will be removed for 13819s E Python >= 3.12. For older Python versions it will remain present. 13819s E It is recommended to use `setuptools < 60.0` for those Python versions. 13819s E For more details, see: 13819s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13819s E 13819s E 13819s E from numpy.distutils.core import setup 13819s E running build_ext 13819s E running build_src 13819s E INFO: build_src 13819s E INFO: building extension "test_array_from_pyobj_ext" sources 13819s E INFO: build_src: building npy-pkg config files 13819s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13819s E !! 13819s E 13819s E ******************************************************************************** 13819s E Please avoid running ``setup.py`` directly. 13819s E Instead, use pypa/build, pypa/installer or other 13819s E standards-based tools. 13819s E 13819s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13819s E ******************************************************************************** 13819s E 13819s E !! 13819s E self.initialize_options() 13819s E INFO: customize UnixCCompiler 13819s E INFO: customize UnixCCompiler using build_ext 13819s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/tmp 13819s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/usr 13819s E creating /tmp/tmppq19o2st/usr/lib 13819s E creating /tmp/tmppq19o2st/usr/lib/python3 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=native' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-O3' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-Werror' 13819s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13819s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13819s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13819s E 7 | #include 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E compilation terminated. 13819s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13819s E INFO: 13819s E ########### EXT COMPILER OPTIMIZATION ########### 13819s E INFO: Platform : 13819s E Architecture: armhf 13819s E Compiler : gcc 13819s E 13819s E CPU baseline : 13819s E Requested : 'min' 13819s E Enabled : none 13819s E Flags : none 13819s E Extra checks: none 13819s E 13819s E CPU dispatch : 13819s E Requested : 'max -xop -fma4' 13819s E Enabled : none 13819s E Generated : none 13819s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13819s 13819s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13819s d = '/tmp/tmpjj8q074z' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s err = None 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s kw = {} 13819s module_name = 'test_array_from_pyobj_ext' 13819s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13819s p = 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13819s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[ULONGLONG] _ 13819s 13819s def setup_module(): 13819s """ 13819s Build the required testing extension module 13819s 13819s """ 13819s global wrap 13819s 13819s # Check compiler availability first 13819s if not util.has_c_compiler(): 13819s pytest.skip("No C compiler available") 13819s 13819s if wrap is None: 13819s config_code = """ 13819s config.add_extension('test_array_from_pyobj_ext', 13819s sources=['wrapmodule.c', 'fortranobject.c'], 13819s define_macros=[]) 13819s """ 13819s d = os.path.dirname(__file__) 13819s src = [ 13819s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13819s util.getpath("src", "fortranobject.c"), 13819s util.getpath("src", "fortranobject.h"), 13819s ] 13819s > wrap = util.build_module_distutils(src, config_code, 13819s "test_array_from_pyobj_ext") 13819s 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13819s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13819s memo[key] = func(*a, **kw) 13819s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13819s func = 13819s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13819s kw = {} 13819s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s 13819s @_memoize 13819s def build_module_distutils(source_files, config_code, module_name, **kw): 13819s """ 13819s Build a module via distutils and import it. 13819s 13819s """ 13819s d = get_module_dir() 13819s 13819s # Copy files 13819s dst_sources = [] 13819s for fn in source_files: 13819s if not os.path.isfile(fn): 13819s raise RuntimeError("%s is not a file" % fn) 13819s dst = os.path.join(d, os.path.basename(fn)) 13819s shutil.copyfile(fn, dst) 13819s dst_sources.append(dst) 13819s 13819s # Build script 13819s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13819s 13819s code = fr""" 13819s import os 13819s import sys 13819s sys.path = {repr(sys.path)} 13819s 13819s def configuration(parent_name='',top_path=None): 13819s from numpy.distutils.misc_util import Configuration 13819s config = Configuration('', parent_name, top_path) 13819s {config_code} 13819s return config 13819s 13819s if __name__ == "__main__": 13819s from numpy.distutils.core import setup 13819s setup(configuration=configuration) 13819s """ 13819s script = os.path.join(d, get_temp_module_name() + ".py") 13819s dst_sources.append(script) 13819s with open(script, "wb") as f: 13819s f.write(asbytes(code)) 13819s 13819s # Build 13819s cwd = os.getcwd() 13819s try: 13819s os.chdir(d) 13819s cmd = [sys.executable, script, "build_ext", "-i"] 13819s p = subprocess.Popen(cmd, 13819s stdout=subprocess.PIPE, 13819s stderr=subprocess.STDOUT) 13819s out, err = p.communicate() 13819s if p.returncode != 0: 13819s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13819s (cmd[4:], asstr(out))) 13819s E RuntimeError: Running distutils build failed: [] 13819s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13819s E 13819s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13819s E of the deprecation of `distutils` itself. It will be removed for 13819s E Python >= 3.12. For older Python versions it will remain present. 13819s E It is recommended to use `setuptools < 60.0` for those Python versions. 13819s E For more details, see: 13819s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13819s E 13819s E 13819s E from numpy.distutils.core import setup 13819s E running build_ext 13819s E running build_src 13819s E INFO: build_src 13819s E INFO: building extension "test_array_from_pyobj_ext" sources 13819s E INFO: build_src: building npy-pkg config files 13819s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13819s E !! 13819s E 13819s E ******************************************************************************** 13819s E Please avoid running ``setup.py`` directly. 13819s E Instead, use pypa/build, pypa/installer or other 13819s E standards-based tools. 13819s E 13819s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13819s E ******************************************************************************** 13819s E 13819s E !! 13819s E self.initialize_options() 13819s E INFO: customize UnixCCompiler 13819s E INFO: customize UnixCCompiler using build_ext 13819s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/tmp 13819s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/usr 13819s E creating /tmp/tmppq19o2st/usr/lib 13819s E creating /tmp/tmppq19o2st/usr/lib/python3 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=native' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-O3' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-Werror' 13819s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13819s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13819s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13819s E 7 | #include 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E compilation terminated. 13819s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13819s E INFO: 13819s E ########### EXT COMPILER OPTIMIZATION ########### 13819s E INFO: Platform : 13819s E Architecture: armhf 13819s E Compiler : gcc 13819s E 13819s E CPU baseline : 13819s E Requested : 'min' 13819s E Enabled : none 13819s E Flags : none 13819s E Extra checks: none 13819s E 13819s E CPU dispatch : 13819s E Requested : 'max -xop -fma4' 13819s E Enabled : none 13819s E Generated : none 13819s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13819s 13819s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13819s d = '/tmp/tmpjj8q074z' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s err = None 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s kw = {} 13819s module_name = 'test_array_from_pyobj_ext' 13819s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13819s p = 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13819s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[ULONGLONG] _ 13819s 13819s def setup_module(): 13819s """ 13819s Build the required testing extension module 13819s 13819s """ 13819s global wrap 13819s 13819s # Check compiler availability first 13819s if not util.has_c_compiler(): 13819s pytest.skip("No C compiler available") 13819s 13819s if wrap is None: 13819s config_code = """ 13819s config.add_extension('test_array_from_pyobj_ext', 13819s sources=['wrapmodule.c', 'fortranobject.c'], 13819s define_macros=[]) 13819s """ 13819s d = os.path.dirname(__file__) 13819s src = [ 13819s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13819s util.getpath("src", "fortranobject.c"), 13819s util.getpath("src", "fortranobject.h"), 13819s ] 13819s > wrap = util.build_module_distutils(src, config_code, 13819s "test_array_from_pyobj_ext") 13819s 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13819s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13819s memo[key] = func(*a, **kw) 13819s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13819s func = 13819s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13819s kw = {} 13819s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s 13819s @_memoize 13819s def build_module_distutils(source_files, config_code, module_name, **kw): 13819s """ 13819s Build a module via distutils and import it. 13819s 13819s """ 13819s d = get_module_dir() 13819s 13819s # Copy files 13819s dst_sources = [] 13819s for fn in source_files: 13819s if not os.path.isfile(fn): 13819s raise RuntimeError("%s is not a file" % fn) 13819s dst = os.path.join(d, os.path.basename(fn)) 13819s shutil.copyfile(fn, dst) 13819s dst_sources.append(dst) 13819s 13819s # Build script 13819s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13819s 13819s code = fr""" 13819s import os 13819s import sys 13819s sys.path = {repr(sys.path)} 13819s 13819s def configuration(parent_name='',top_path=None): 13819s from numpy.distutils.misc_util import Configuration 13819s config = Configuration('', parent_name, top_path) 13819s {config_code} 13819s return config 13819s 13819s if __name__ == "__main__": 13819s from numpy.distutils.core import setup 13819s setup(configuration=configuration) 13819s """ 13819s script = os.path.join(d, get_temp_module_name() + ".py") 13819s dst_sources.append(script) 13819s with open(script, "wb") as f: 13819s f.write(asbytes(code)) 13819s 13819s # Build 13819s cwd = os.getcwd() 13819s try: 13819s os.chdir(d) 13819s cmd = [sys.executable, script, "build_ext", "-i"] 13819s p = subprocess.Popen(cmd, 13819s stdout=subprocess.PIPE, 13819s stderr=subprocess.STDOUT) 13819s out, err = p.communicate() 13819s if p.returncode != 0: 13819s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13819s (cmd[4:], asstr(out))) 13819s E RuntimeError: Running distutils build failed: [] 13819s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13819s E 13819s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13819s E of the deprecation of `distutils` itself. It will be removed for 13819s E Python >= 3.12. For older Python versions it will remain present. 13819s E It is recommended to use `setuptools < 60.0` for those Python versions. 13819s E For more details, see: 13819s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13819s E 13819s E 13819s E from numpy.distutils.core import setup 13819s E running build_ext 13819s E running build_src 13819s E INFO: build_src 13819s E INFO: building extension "test_array_from_pyobj_ext" sources 13819s E INFO: build_src: building npy-pkg config files 13819s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13819s E !! 13819s E 13819s E ******************************************************************************** 13819s E Please avoid running ``setup.py`` directly. 13819s E Instead, use pypa/build, pypa/installer or other 13819s E standards-based tools. 13819s E 13819s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13819s E ******************************************************************************** 13819s E 13819s E !! 13819s E self.initialize_options() 13819s E INFO: customize UnixCCompiler 13819s E INFO: customize UnixCCompiler using build_ext 13819s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/tmp 13819s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/usr 13819s E creating /tmp/tmppq19o2st/usr/lib 13819s E creating /tmp/tmppq19o2st/usr/lib/python3 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=native' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-O3' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-Werror' 13819s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13819s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13819s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13819s E 7 | #include 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E compilation terminated. 13819s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13819s E INFO: 13819s E ########### EXT COMPILER OPTIMIZATION ########### 13819s E INFO: Platform : 13819s E Architecture: armhf 13819s E Compiler : gcc 13819s E 13819s E CPU baseline : 13819s E Requested : 'min' 13819s E Enabled : none 13819s E Flags : none 13819s E Extra checks: none 13819s E 13819s E CPU dispatch : 13819s E Requested : 'max -xop -fma4' 13819s E Enabled : none 13819s E Generated : none 13819s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13819s 13819s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13819s d = '/tmp/tmpjj8q074z' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s err = None 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s kw = {} 13819s module_name = 'test_array_from_pyobj_ext' 13819s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13819s p = 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13819s __ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[ULONGLONG] __ 13819s 13819s def setup_module(): 13819s """ 13819s Build the required testing extension module 13819s 13819s """ 13819s global wrap 13819s 13819s # Check compiler availability first 13819s if not util.has_c_compiler(): 13819s pytest.skip("No C compiler available") 13819s 13819s if wrap is None: 13819s config_code = """ 13819s config.add_extension('test_array_from_pyobj_ext', 13819s sources=['wrapmodule.c', 'fortranobject.c'], 13819s define_macros=[]) 13819s """ 13819s d = os.path.dirname(__file__) 13819s src = [ 13819s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13819s util.getpath("src", "fortranobject.c"), 13819s util.getpath("src", "fortranobject.h"), 13819s ] 13819s > wrap = util.build_module_distutils(src, config_code, 13819s "test_array_from_pyobj_ext") 13819s 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13819s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13819s memo[key] = func(*a, **kw) 13819s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13819s func = 13819s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13819s kw = {} 13819s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s 13819s @_memoize 13819s def build_module_distutils(source_files, config_code, module_name, **kw): 13819s """ 13819s Build a module via distutils and import it. 13819s 13819s """ 13819s d = get_module_dir() 13819s 13819s # Copy files 13819s dst_sources = [] 13819s for fn in source_files: 13819s if not os.path.isfile(fn): 13819s raise RuntimeError("%s is not a file" % fn) 13819s dst = os.path.join(d, os.path.basename(fn)) 13819s shutil.copyfile(fn, dst) 13819s dst_sources.append(dst) 13819s 13819s # Build script 13819s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13819s 13819s code = fr""" 13819s import os 13819s import sys 13819s sys.path = {repr(sys.path)} 13819s 13819s def configuration(parent_name='',top_path=None): 13819s from numpy.distutils.misc_util import Configuration 13819s config = Configuration('', parent_name, top_path) 13819s {config_code} 13819s return config 13819s 13819s if __name__ == "__main__": 13819s from numpy.distutils.core import setup 13819s setup(configuration=configuration) 13819s """ 13819s script = os.path.join(d, get_temp_module_name() + ".py") 13819s dst_sources.append(script) 13819s with open(script, "wb") as f: 13819s f.write(asbytes(code)) 13819s 13819s # Build 13819s cwd = os.getcwd() 13819s try: 13819s os.chdir(d) 13819s cmd = [sys.executable, script, "build_ext", "-i"] 13819s p = subprocess.Popen(cmd, 13819s stdout=subprocess.PIPE, 13819s stderr=subprocess.STDOUT) 13819s out, err = p.communicate() 13819s if p.returncode != 0: 13819s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13819s (cmd[4:], asstr(out))) 13819s E RuntimeError: Running distutils build failed: [] 13819s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13819s E 13819s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13819s E of the deprecation of `distutils` itself. It will be removed for 13819s E Python >= 3.12. For older Python versions it will remain present. 13819s E It is recommended to use `setuptools < 60.0` for those Python versions. 13819s E For more details, see: 13819s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13819s E 13819s E 13819s E from numpy.distutils.core import setup 13819s E running build_ext 13819s E running build_src 13819s E INFO: build_src 13819s E INFO: building extension "test_array_from_pyobj_ext" sources 13819s E INFO: build_src: building npy-pkg config files 13819s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13819s E !! 13819s E 13819s E ******************************************************************************** 13819s E Please avoid running ``setup.py`` directly. 13819s E Instead, use pypa/build, pypa/installer or other 13819s E standards-based tools. 13819s E 13819s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13819s E ******************************************************************************** 13819s E 13819s E !! 13819s E self.initialize_options() 13819s E INFO: customize UnixCCompiler 13819s E INFO: customize UnixCCompiler using build_ext 13819s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/tmp 13819s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/usr 13819s E creating /tmp/tmppq19o2st/usr/lib 13819s E creating /tmp/tmppq19o2st/usr/lib/python3 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=native' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-O3' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-Werror' 13819s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13819s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13819s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13819s E 7 | #include 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E compilation terminated. 13819s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13819s E INFO: 13819s E ########### EXT COMPILER OPTIMIZATION ########### 13819s E INFO: Platform : 13819s E Architecture: armhf 13819s E Compiler : gcc 13819s E 13819s E CPU baseline : 13819s E Requested : 'min' 13819s E Enabled : none 13819s E Flags : none 13819s E Extra checks: none 13819s E 13819s E CPU dispatch : 13819s E Requested : 'max -xop -fma4' 13819s E Enabled : none 13819s E Generated : none 13819s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13819s 13819s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13819s d = '/tmp/tmpjj8q074z' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s err = None 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s kw = {} 13819s module_name = 'test_array_from_pyobj_ext' 13819s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13819s p = 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13819s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[ULONGLONG] _ 13819s 13819s def setup_module(): 13819s """ 13819s Build the required testing extension module 13819s 13819s """ 13819s global wrap 13819s 13819s # Check compiler availability first 13819s if not util.has_c_compiler(): 13819s pytest.skip("No C compiler available") 13819s 13819s if wrap is None: 13819s config_code = """ 13819s config.add_extension('test_array_from_pyobj_ext', 13819s sources=['wrapmodule.c', 'fortranobject.c'], 13819s define_macros=[]) 13819s """ 13819s d = os.path.dirname(__file__) 13819s src = [ 13819s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13819s util.getpath("src", "fortranobject.c"), 13819s util.getpath("src", "fortranobject.h"), 13819s ] 13819s > wrap = util.build_module_distutils(src, config_code, 13819s "test_array_from_pyobj_ext") 13819s 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13819s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13819s memo[key] = func(*a, **kw) 13819s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13819s func = 13819s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13819s kw = {} 13819s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s 13819s @_memoize 13819s def build_module_distutils(source_files, config_code, module_name, **kw): 13819s """ 13819s Build a module via distutils and import it. 13819s 13819s """ 13819s d = get_module_dir() 13819s 13819s # Copy files 13819s dst_sources = [] 13819s for fn in source_files: 13819s if not os.path.isfile(fn): 13819s raise RuntimeError("%s is not a file" % fn) 13819s dst = os.path.join(d, os.path.basename(fn)) 13819s shutil.copyfile(fn, dst) 13819s dst_sources.append(dst) 13819s 13819s # Build script 13819s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13819s 13819s code = fr""" 13819s import os 13819s import sys 13819s sys.path = {repr(sys.path)} 13819s 13819s def configuration(parent_name='',top_path=None): 13819s from numpy.distutils.misc_util import Configuration 13819s config = Configuration('', parent_name, top_path) 13819s {config_code} 13819s return config 13819s 13819s if __name__ == "__main__": 13819s from numpy.distutils.core import setup 13819s setup(configuration=configuration) 13819s """ 13819s script = os.path.join(d, get_temp_module_name() + ".py") 13819s dst_sources.append(script) 13819s with open(script, "wb") as f: 13819s f.write(asbytes(code)) 13819s 13819s # Build 13819s cwd = os.getcwd() 13819s try: 13819s os.chdir(d) 13819s cmd = [sys.executable, script, "build_ext", "-i"] 13819s p = subprocess.Popen(cmd, 13819s stdout=subprocess.PIPE, 13819s stderr=subprocess.STDOUT) 13819s out, err = p.communicate() 13819s if p.returncode != 0: 13819s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13819s (cmd[4:], asstr(out))) 13819s E RuntimeError: Running distutils build failed: [] 13819s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13819s E 13819s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13819s E of the deprecation of `distutils` itself. It will be removed for 13819s E Python >= 3.12. For older Python versions it will remain present. 13819s E It is recommended to use `setuptools < 60.0` for those Python versions. 13819s E For more details, see: 13819s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13819s E 13819s E 13819s E from numpy.distutils.core import setup 13819s E running build_ext 13819s E running build_src 13819s E INFO: build_src 13819s E INFO: building extension "test_array_from_pyobj_ext" sources 13819s E INFO: build_src: building npy-pkg config files 13819s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13819s E !! 13819s E 13819s E ******************************************************************************** 13819s E Please avoid running ``setup.py`` directly. 13819s E Instead, use pypa/build, pypa/installer or other 13819s E standards-based tools. 13819s E 13819s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13819s E ******************************************************************************** 13819s E 13819s E !! 13819s E self.initialize_options() 13819s E INFO: customize UnixCCompiler 13819s E INFO: customize UnixCCompiler using build_ext 13819s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/tmp 13819s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/usr 13819s E creating /tmp/tmppq19o2st/usr/lib 13819s E creating /tmp/tmppq19o2st/usr/lib/python3 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=native' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-O3' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-Werror' 13819s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13819s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13819s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13819s E 7 | #include 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E compilation terminated. 13819s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13819s E INFO: 13819s E ########### EXT COMPILER OPTIMIZATION ########### 13819s E INFO: Platform : 13819s E Architecture: armhf 13819s E Compiler : gcc 13819s E 13819s E CPU baseline : 13819s E Requested : 'min' 13819s E Enabled : none 13819s E Flags : none 13819s E Extra checks: none 13819s E 13819s E CPU dispatch : 13819s E Requested : 'max -xop -fma4' 13819s E Enabled : none 13819s E Generated : none 13819s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13819s 13819s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13819s d = '/tmp/tmpjj8q074z' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s err = None 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s kw = {} 13819s module_name = 'test_array_from_pyobj_ext' 13819s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13819s p = 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13819s _______ ERROR at setup of TestSharedMemory.test_cache_hidden[ULONGLONG] ________ 13819s 13819s def setup_module(): 13819s """ 13819s Build the required testing extension module 13819s 13819s """ 13819s global wrap 13819s 13819s # Check compiler availability first 13819s if not util.has_c_compiler(): 13819s pytest.skip("No C compiler available") 13819s 13819s if wrap is None: 13819s config_code = """ 13819s config.add_extension('test_array_from_pyobj_ext', 13819s sources=['wrapmodule.c', 'fortranobject.c'], 13819s define_macros=[]) 13819s """ 13819s d = os.path.dirname(__file__) 13819s src = [ 13819s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13819s util.getpath("src", "fortranobject.c"), 13819s util.getpath("src", "fortranobject.h"), 13819s ] 13819s > wrap = util.build_module_distutils(src, config_code, 13819s "test_array_from_pyobj_ext") 13819s 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13819s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13819s memo[key] = func(*a, **kw) 13819s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13819s func = 13819s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13819s kw = {} 13819s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s 13819s @_memoize 13819s def build_module_distutils(source_files, config_code, module_name, **kw): 13819s """ 13819s Build a module via distutils and import it. 13819s 13819s """ 13819s d = get_module_dir() 13819s 13819s # Copy files 13819s dst_sources = [] 13819s for fn in source_files: 13819s if not os.path.isfile(fn): 13819s raise RuntimeError("%s is not a file" % fn) 13819s dst = os.path.join(d, os.path.basename(fn)) 13819s shutil.copyfile(fn, dst) 13819s dst_sources.append(dst) 13819s 13819s # Build script 13819s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13819s 13819s code = fr""" 13819s import os 13819s import sys 13819s sys.path = {repr(sys.path)} 13819s 13819s def configuration(parent_name='',top_path=None): 13819s from numpy.distutils.misc_util import Configuration 13819s config = Configuration('', parent_name, top_path) 13819s {config_code} 13819s return config 13819s 13819s if __name__ == "__main__": 13819s from numpy.distutils.core import setup 13819s setup(configuration=configuration) 13819s """ 13819s script = os.path.join(d, get_temp_module_name() + ".py") 13819s dst_sources.append(script) 13819s with open(script, "wb") as f: 13819s f.write(asbytes(code)) 13819s 13819s # Build 13819s cwd = os.getcwd() 13819s try: 13819s os.chdir(d) 13819s cmd = [sys.executable, script, "build_ext", "-i"] 13819s p = subprocess.Popen(cmd, 13819s stdout=subprocess.PIPE, 13819s stderr=subprocess.STDOUT) 13819s out, err = p.communicate() 13819s if p.returncode != 0: 13819s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13819s (cmd[4:], asstr(out))) 13819s E RuntimeError: Running distutils build failed: [] 13819s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13819s E 13819s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13819s E of the deprecation of `distutils` itself. It will be removed for 13819s E Python >= 3.12. For older Python versions it will remain present. 13819s E It is recommended to use `setuptools < 60.0` for those Python versions. 13819s E For more details, see: 13819s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13819s E 13819s E 13819s E from numpy.distutils.core import setup 13819s E running build_ext 13819s E running build_src 13819s E INFO: build_src 13819s E INFO: building extension "test_array_from_pyobj_ext" sources 13819s E INFO: build_src: building npy-pkg config files 13819s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13819s E !! 13819s E 13819s E ******************************************************************************** 13819s E Please avoid running ``setup.py`` directly. 13819s E Instead, use pypa/build, pypa/installer or other 13819s E standards-based tools. 13819s E 13819s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13819s E ******************************************************************************** 13819s E 13819s E !! 13819s E self.initialize_options() 13819s E INFO: customize UnixCCompiler 13819s E INFO: customize UnixCCompiler using build_ext 13819s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/tmp 13819s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/usr 13819s E creating /tmp/tmppq19o2st/usr/lib 13819s E creating /tmp/tmppq19o2st/usr/lib/python3 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=native' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-O3' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-Werror' 13819s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13819s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13819s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13819s E 7 | #include 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E compilation terminated. 13819s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13819s E INFO: 13819s E ########### EXT COMPILER OPTIMIZATION ########### 13819s E INFO: Platform : 13819s E Architecture: armhf 13819s E Compiler : gcc 13819s E 13819s E CPU baseline : 13819s E Requested : 'min' 13819s E Enabled : none 13819s E Flags : none 13819s E Extra checks: none 13819s E 13819s E CPU dispatch : 13819s E Requested : 'max -xop -fma4' 13819s E Enabled : none 13819s E Generated : none 13819s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13819s 13819s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13819s d = '/tmp/tmpjj8q074z' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s err = None 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s kw = {} 13819s module_name = 'test_array_from_pyobj_ext' 13819s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13819s p = 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13819s __________ ERROR at setup of TestSharedMemory.test_hidden[ULONGLONG] ___________ 13819s 13819s def setup_module(): 13819s """ 13819s Build the required testing extension module 13819s 13819s """ 13819s global wrap 13819s 13819s # Check compiler availability first 13819s if not util.has_c_compiler(): 13819s pytest.skip("No C compiler available") 13819s 13819s if wrap is None: 13819s config_code = """ 13819s config.add_extension('test_array_from_pyobj_ext', 13819s sources=['wrapmodule.c', 'fortranobject.c'], 13819s define_macros=[]) 13819s """ 13819s d = os.path.dirname(__file__) 13819s src = [ 13819s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13819s util.getpath("src", "fortranobject.c"), 13819s util.getpath("src", "fortranobject.h"), 13819s ] 13819s > wrap = util.build_module_distutils(src, config_code, 13819s "test_array_from_pyobj_ext") 13819s 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13819s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13819s memo[key] = func(*a, **kw) 13819s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13819s func = 13819s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13819s kw = {} 13819s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s 13819s @_memoize 13819s def build_module_distutils(source_files, config_code, module_name, **kw): 13819s """ 13819s Build a module via distutils and import it. 13819s 13819s """ 13819s d = get_module_dir() 13819s 13819s # Copy files 13819s dst_sources = [] 13819s for fn in source_files: 13819s if not os.path.isfile(fn): 13819s raise RuntimeError("%s is not a file" % fn) 13819s dst = os.path.join(d, os.path.basename(fn)) 13819s shutil.copyfile(fn, dst) 13819s dst_sources.append(dst) 13819s 13819s # Build script 13819s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13819s 13819s code = fr""" 13819s import os 13819s import sys 13819s sys.path = {repr(sys.path)} 13819s 13819s def configuration(parent_name='',top_path=None): 13819s from numpy.distutils.misc_util import Configuration 13819s config = Configuration('', parent_name, top_path) 13819s {config_code} 13819s return config 13819s 13819s if __name__ == "__main__": 13819s from numpy.distutils.core import setup 13819s setup(configuration=configuration) 13819s """ 13819s script = os.path.join(d, get_temp_module_name() + ".py") 13819s dst_sources.append(script) 13819s with open(script, "wb") as f: 13819s f.write(asbytes(code)) 13819s 13819s # Build 13819s cwd = os.getcwd() 13819s try: 13819s os.chdir(d) 13819s cmd = [sys.executable, script, "build_ext", "-i"] 13819s p = subprocess.Popen(cmd, 13819s stdout=subprocess.PIPE, 13819s stderr=subprocess.STDOUT) 13819s out, err = p.communicate() 13819s if p.returncode != 0: 13819s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13819s (cmd[4:], asstr(out))) 13819s E RuntimeError: Running distutils build failed: [] 13819s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13819s E 13819s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13819s E of the deprecation of `distutils` itself. It will be removed for 13819s E Python >= 3.12. For older Python versions it will remain present. 13819s E It is recommended to use `setuptools < 60.0` for those Python versions. 13819s E For more details, see: 13819s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13819s E 13819s E 13819s E from numpy.distutils.core import setup 13819s E running build_ext 13819s E running build_src 13819s E INFO: build_src 13819s E INFO: building extension "test_array_from_pyobj_ext" sources 13819s E INFO: build_src: building npy-pkg config files 13819s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13819s E !! 13819s E 13819s E ******************************************************************************** 13819s E Please avoid running ``setup.py`` directly. 13819s E Instead, use pypa/build, pypa/installer or other 13819s E standards-based tools. 13819s E 13819s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13819s E ******************************************************************************** 13819s E 13819s E !! 13819s E self.initialize_options() 13819s E INFO: customize UnixCCompiler 13819s E INFO: customize UnixCCompiler using build_ext 13819s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/tmp 13819s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/usr 13819s E creating /tmp/tmppq19o2st/usr/lib 13819s E creating /tmp/tmppq19o2st/usr/lib/python3 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=native' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-O3' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-Werror' 13819s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13819s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13819s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13819s E 7 | #include 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E compilation terminated. 13819s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13819s E INFO: 13819s E ########### EXT COMPILER OPTIMIZATION ########### 13819s E INFO: Platform : 13819s E Architecture: armhf 13819s E Compiler : gcc 13819s E 13819s E CPU baseline : 13819s E Requested : 'min' 13819s E Enabled : none 13819s E Flags : none 13819s E Extra checks: none 13819s E 13819s E CPU dispatch : 13819s E Requested : 'max -xop -fma4' 13819s E Enabled : none 13819s E Generated : none 13819s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13819s 13819s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13819s d = '/tmp/tmpjj8q074z' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s err = None 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s kw = {} 13819s module_name = 'test_array_from_pyobj_ext' 13819s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13819s p = 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13819s _______ ERROR at setup of TestSharedMemory.test_optional_none[ULONGLONG] _______ 13819s 13819s def setup_module(): 13819s """ 13819s Build the required testing extension module 13819s 13819s """ 13819s global wrap 13819s 13819s # Check compiler availability first 13819s if not util.has_c_compiler(): 13819s pytest.skip("No C compiler available") 13819s 13819s if wrap is None: 13819s config_code = """ 13819s config.add_extension('test_array_from_pyobj_ext', 13819s sources=['wrapmodule.c', 'fortranobject.c'], 13819s define_macros=[]) 13819s """ 13819s d = os.path.dirname(__file__) 13819s src = [ 13819s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13819s util.getpath("src", "fortranobject.c"), 13819s util.getpath("src", "fortranobject.h"), 13819s ] 13819s > wrap = util.build_module_distutils(src, config_code, 13819s "test_array_from_pyobj_ext") 13819s 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13819s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13819s memo[key] = func(*a, **kw) 13819s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13819s func = 13819s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13819s kw = {} 13819s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13819s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13819s 13819s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13819s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13819s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13819s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13819s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13819s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13819s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13819s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13819s 13819s @_memoize 13819s def build_module_distutils(source_files, config_code, module_name, **kw): 13819s """ 13819s Build a module via distutils and import it. 13819s 13819s """ 13819s d = get_module_dir() 13819s 13819s # Copy files 13819s dst_sources = [] 13819s for fn in source_files: 13819s if not os.path.isfile(fn): 13819s raise RuntimeError("%s is not a file" % fn) 13819s dst = os.path.join(d, os.path.basename(fn)) 13819s shutil.copyfile(fn, dst) 13819s dst_sources.append(dst) 13819s 13819s # Build script 13819s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13819s 13819s code = fr""" 13819s import os 13819s import sys 13819s sys.path = {repr(sys.path)} 13819s 13819s def configuration(parent_name='',top_path=None): 13819s from numpy.distutils.misc_util import Configuration 13819s config = Configuration('', parent_name, top_path) 13819s {config_code} 13819s return config 13819s 13819s if __name__ == "__main__": 13819s from numpy.distutils.core import setup 13819s setup(configuration=configuration) 13819s """ 13819s script = os.path.join(d, get_temp_module_name() + ".py") 13819s dst_sources.append(script) 13819s with open(script, "wb") as f: 13819s f.write(asbytes(code)) 13819s 13819s # Build 13819s cwd = os.getcwd() 13819s try: 13819s os.chdir(d) 13819s cmd = [sys.executable, script, "build_ext", "-i"] 13819s p = subprocess.Popen(cmd, 13819s stdout=subprocess.PIPE, 13819s stderr=subprocess.STDOUT) 13819s out, err = p.communicate() 13819s if p.returncode != 0: 13819s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13819s (cmd[4:], asstr(out))) 13819s E RuntimeError: Running distutils build failed: [] 13819s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13819s E 13819s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13819s E of the deprecation of `distutils` itself. It will be removed for 13819s E Python >= 3.12. For older Python versions it will remain present. 13819s E It is recommended to use `setuptools < 60.0` for those Python versions. 13819s E For more details, see: 13819s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13819s E 13819s E 13819s E from numpy.distutils.core import setup 13819s E running build_ext 13819s E running build_src 13819s E INFO: build_src 13819s E INFO: building extension "test_array_from_pyobj_ext" sources 13819s E INFO: build_src: building npy-pkg config files 13819s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13819s E !! 13819s E 13819s E ******************************************************************************** 13819s E Please avoid running ``setup.py`` directly. 13819s E Instead, use pypa/build, pypa/installer or other 13819s E standards-based tools. 13819s E 13819s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13819s E ******************************************************************************** 13819s E 13819s E !! 13819s E self.initialize_options() 13819s E INFO: customize UnixCCompiler 13819s E INFO: customize UnixCCompiler using build_ext 13819s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/tmp 13819s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E creating /tmp/tmppq19o2st/usr 13819s E creating /tmp/tmppq19o2st/usr/lib 13819s E creating /tmp/tmppq19o2st/usr/lib/python3 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13819s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=native' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-O3' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-Werror' 13819s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13819s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-vfpv4' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13819s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-march=armv8.2-a+fp16' 13819s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/include/python3.12 -c' 13819s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13819s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13819s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13819s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13819s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13819s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13819s E 9 | # include_next 13819s E | ^~~~~~~~~~ 13819s E compilation terminated. 13819s E 13819s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13819s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13819s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13819s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13819s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13819s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13819s E INFO: building 'test_array_from_pyobj_ext' extension 13819s E INFO: compiling C sources 13819s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13819s E 13819s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13819s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13819s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13819s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13819s E 14 | #include 13819s E | ^~~~~~~~~~ 13819s E In file included from fortranobject.c:2: 13820s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13820s E 7 | #include 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E compilation terminated. 13820s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13820s E INFO: 13820s E ########### EXT COMPILER OPTIMIZATION ########### 13820s E INFO: Platform : 13820s E Architecture: armhf 13820s E Compiler : gcc 13820s E 13820s E CPU baseline : 13820s E Requested : 'min' 13820s E Enabled : none 13820s E Flags : none 13820s E Extra checks: none 13820s E 13820s E CPU dispatch : 13820s E Requested : 'max -xop -fma4' 13820s E Enabled : none 13820s E Generated : none 13820s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13820s 13820s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13820s d = '/tmp/tmpjj8q074z' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s err = None 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s kw = {} 13820s module_name = 'test_array_from_pyobj_ext' 13820s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13820s p = 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13820s ____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[ULONGLONG] _____ 13820s 13820s def setup_module(): 13820s """ 13820s Build the required testing extension module 13820s 13820s """ 13820s global wrap 13820s 13820s # Check compiler availability first 13820s if not util.has_c_compiler(): 13820s pytest.skip("No C compiler available") 13820s 13820s if wrap is None: 13820s config_code = """ 13820s config.add_extension('test_array_from_pyobj_ext', 13820s sources=['wrapmodule.c', 'fortranobject.c'], 13820s define_macros=[]) 13820s """ 13820s d = os.path.dirname(__file__) 13820s src = [ 13820s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13820s util.getpath("src", "fortranobject.c"), 13820s util.getpath("src", "fortranobject.h"), 13820s ] 13820s > wrap = util.build_module_distutils(src, config_code, 13820s "test_array_from_pyobj_ext") 13820s 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13820s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13820s memo[key] = func(*a, **kw) 13820s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13820s func = 13820s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13820s kw = {} 13820s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s 13820s @_memoize 13820s def build_module_distutils(source_files, config_code, module_name, **kw): 13820s """ 13820s Build a module via distutils and import it. 13820s 13820s """ 13820s d = get_module_dir() 13820s 13820s # Copy files 13820s dst_sources = [] 13820s for fn in source_files: 13820s if not os.path.isfile(fn): 13820s raise RuntimeError("%s is not a file" % fn) 13820s dst = os.path.join(d, os.path.basename(fn)) 13820s shutil.copyfile(fn, dst) 13820s dst_sources.append(dst) 13820s 13820s # Build script 13820s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13820s 13820s code = fr""" 13820s import os 13820s import sys 13820s sys.path = {repr(sys.path)} 13820s 13820s def configuration(parent_name='',top_path=None): 13820s from numpy.distutils.misc_util import Configuration 13820s config = Configuration('', parent_name, top_path) 13820s {config_code} 13820s return config 13820s 13820s if __name__ == "__main__": 13820s from numpy.distutils.core import setup 13820s setup(configuration=configuration) 13820s """ 13820s script = os.path.join(d, get_temp_module_name() + ".py") 13820s dst_sources.append(script) 13820s with open(script, "wb") as f: 13820s f.write(asbytes(code)) 13820s 13820s # Build 13820s cwd = os.getcwd() 13820s try: 13820s os.chdir(d) 13820s cmd = [sys.executable, script, "build_ext", "-i"] 13820s p = subprocess.Popen(cmd, 13820s stdout=subprocess.PIPE, 13820s stderr=subprocess.STDOUT) 13820s out, err = p.communicate() 13820s if p.returncode != 0: 13820s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13820s (cmd[4:], asstr(out))) 13820s E RuntimeError: Running distutils build failed: [] 13820s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13820s E 13820s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13820s E of the deprecation of `distutils` itself. It will be removed for 13820s E Python >= 3.12. For older Python versions it will remain present. 13820s E It is recommended to use `setuptools < 60.0` for those Python versions. 13820s E For more details, see: 13820s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13820s E 13820s E 13820s E from numpy.distutils.core import setup 13820s E running build_ext 13820s E running build_src 13820s E INFO: build_src 13820s E INFO: building extension "test_array_from_pyobj_ext" sources 13820s E INFO: build_src: building npy-pkg config files 13820s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13820s E !! 13820s E 13820s E ******************************************************************************** 13820s E Please avoid running ``setup.py`` directly. 13820s E Instead, use pypa/build, pypa/installer or other 13820s E standards-based tools. 13820s E 13820s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13820s E ******************************************************************************** 13820s E 13820s E !! 13820s E self.initialize_options() 13820s E INFO: customize UnixCCompiler 13820s E INFO: customize UnixCCompiler using build_ext 13820s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/tmp 13820s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/usr 13820s E creating /tmp/tmppq19o2st/usr/lib 13820s E creating /tmp/tmppq19o2st/usr/lib/python3 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=native' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-O3' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-Werror' 13820s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13820s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-vfpv4' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=armv8.2-a+fp16' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13820s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13820s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13820s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13820s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13820s E INFO: building 'test_array_from_pyobj_ext' extension 13820s E INFO: compiling C sources 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13820s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13820s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13820s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13820s E 14 | #include 13820s E | ^~~~~~~~~~ 13820s E In file included from fortranobject.c:2: 13820s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13820s E 7 | #include 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E compilation terminated. 13820s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13820s E INFO: 13820s E ########### EXT COMPILER OPTIMIZATION ########### 13820s E INFO: Platform : 13820s E Architecture: armhf 13820s E Compiler : gcc 13820s E 13820s E CPU baseline : 13820s E Requested : 'min' 13820s E Enabled : none 13820s E Flags : none 13820s E Extra checks: none 13820s E 13820s E CPU dispatch : 13820s E Requested : 'max -xop -fma4' 13820s E Enabled : none 13820s E Generated : none 13820s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13820s 13820s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13820s d = '/tmp/tmpjj8q074z' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s err = None 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s kw = {} 13820s module_name = 'test_array_from_pyobj_ext' 13820s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13820s p = 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13820s ____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[ULONGLONG] ____ 13820s 13820s def setup_module(): 13820s """ 13820s Build the required testing extension module 13820s 13820s """ 13820s global wrap 13820s 13820s # Check compiler availability first 13820s if not util.has_c_compiler(): 13820s pytest.skip("No C compiler available") 13820s 13820s if wrap is None: 13820s config_code = """ 13820s config.add_extension('test_array_from_pyobj_ext', 13820s sources=['wrapmodule.c', 'fortranobject.c'], 13820s define_macros=[]) 13820s """ 13820s d = os.path.dirname(__file__) 13820s src = [ 13820s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13820s util.getpath("src", "fortranobject.c"), 13820s util.getpath("src", "fortranobject.h"), 13820s ] 13820s > wrap = util.build_module_distutils(src, config_code, 13820s "test_array_from_pyobj_ext") 13820s 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13820s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13820s memo[key] = func(*a, **kw) 13820s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13820s func = 13820s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13820s kw = {} 13820s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s 13820s @_memoize 13820s def build_module_distutils(source_files, config_code, module_name, **kw): 13820s """ 13820s Build a module via distutils and import it. 13820s 13820s """ 13820s d = get_module_dir() 13820s 13820s # Copy files 13820s dst_sources = [] 13820s for fn in source_files: 13820s if not os.path.isfile(fn): 13820s raise RuntimeError("%s is not a file" % fn) 13820s dst = os.path.join(d, os.path.basename(fn)) 13820s shutil.copyfile(fn, dst) 13820s dst_sources.append(dst) 13820s 13820s # Build script 13820s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13820s 13820s code = fr""" 13820s import os 13820s import sys 13820s sys.path = {repr(sys.path)} 13820s 13820s def configuration(parent_name='',top_path=None): 13820s from numpy.distutils.misc_util import Configuration 13820s config = Configuration('', parent_name, top_path) 13820s {config_code} 13820s return config 13820s 13820s if __name__ == "__main__": 13820s from numpy.distutils.core import setup 13820s setup(configuration=configuration) 13820s """ 13820s script = os.path.join(d, get_temp_module_name() + ".py") 13820s dst_sources.append(script) 13820s with open(script, "wb") as f: 13820s f.write(asbytes(code)) 13820s 13820s # Build 13820s cwd = os.getcwd() 13820s try: 13820s os.chdir(d) 13820s cmd = [sys.executable, script, "build_ext", "-i"] 13820s p = subprocess.Popen(cmd, 13820s stdout=subprocess.PIPE, 13820s stderr=subprocess.STDOUT) 13820s out, err = p.communicate() 13820s if p.returncode != 0: 13820s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13820s (cmd[4:], asstr(out))) 13820s E RuntimeError: Running distutils build failed: [] 13820s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13820s E 13820s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13820s E of the deprecation of `distutils` itself. It will be removed for 13820s E Python >= 3.12. For older Python versions it will remain present. 13820s E It is recommended to use `setuptools < 60.0` for those Python versions. 13820s E For more details, see: 13820s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13820s E 13820s E 13820s E from numpy.distutils.core import setup 13820s E running build_ext 13820s E running build_src 13820s E INFO: build_src 13820s E INFO: building extension "test_array_from_pyobj_ext" sources 13820s E INFO: build_src: building npy-pkg config files 13820s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13820s E !! 13820s E 13820s E ******************************************************************************** 13820s E Please avoid running ``setup.py`` directly. 13820s E Instead, use pypa/build, pypa/installer or other 13820s E standards-based tools. 13820s E 13820s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13820s E ******************************************************************************** 13820s E 13820s E !! 13820s E self.initialize_options() 13820s E INFO: customize UnixCCompiler 13820s E INFO: customize UnixCCompiler using build_ext 13820s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/tmp 13820s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/usr 13820s E creating /tmp/tmppq19o2st/usr/lib 13820s E creating /tmp/tmppq19o2st/usr/lib/python3 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=native' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-O3' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-Werror' 13820s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13820s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-vfpv4' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=armv8.2-a+fp16' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13820s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13820s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13820s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13820s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13820s E INFO: building 'test_array_from_pyobj_ext' extension 13820s E INFO: compiling C sources 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13820s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13820s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13820s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13820s E 14 | #include 13820s E | ^~~~~~~~~~ 13820s E In file included from fortranobject.c:2: 13820s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13820s E 7 | #include 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E compilation terminated. 13820s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13820s E INFO: 13820s E ########### EXT COMPILER OPTIMIZATION ########### 13820s E INFO: Platform : 13820s E Architecture: armhf 13820s E Compiler : gcc 13820s E 13820s E CPU baseline : 13820s E Requested : 'min' 13820s E Enabled : none 13820s E Flags : none 13820s E Extra checks: none 13820s E 13820s E CPU dispatch : 13820s E Requested : 'max -xop -fma4' 13820s E Enabled : none 13820s E Generated : none 13820s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13820s 13820s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13820s d = '/tmp/tmpjj8q074z' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s err = None 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s kw = {} 13820s module_name = 'test_array_from_pyobj_ext' 13820s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13820s p = 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13820s __________ ERROR at setup of TestSharedMemory.test_inplace[ULONGLONG] __________ 13820s 13820s def setup_module(): 13820s """ 13820s Build the required testing extension module 13820s 13820s """ 13820s global wrap 13820s 13820s # Check compiler availability first 13820s if not util.has_c_compiler(): 13820s pytest.skip("No C compiler available") 13820s 13820s if wrap is None: 13820s config_code = """ 13820s config.add_extension('test_array_from_pyobj_ext', 13820s sources=['wrapmodule.c', 'fortranobject.c'], 13820s define_macros=[]) 13820s """ 13820s d = os.path.dirname(__file__) 13820s src = [ 13820s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13820s util.getpath("src", "fortranobject.c"), 13820s util.getpath("src", "fortranobject.h"), 13820s ] 13820s > wrap = util.build_module_distutils(src, config_code, 13820s "test_array_from_pyobj_ext") 13820s 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13820s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13820s memo[key] = func(*a, **kw) 13820s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13820s func = 13820s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13820s kw = {} 13820s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s 13820s @_memoize 13820s def build_module_distutils(source_files, config_code, module_name, **kw): 13820s """ 13820s Build a module via distutils and import it. 13820s 13820s """ 13820s d = get_module_dir() 13820s 13820s # Copy files 13820s dst_sources = [] 13820s for fn in source_files: 13820s if not os.path.isfile(fn): 13820s raise RuntimeError("%s is not a file" % fn) 13820s dst = os.path.join(d, os.path.basename(fn)) 13820s shutil.copyfile(fn, dst) 13820s dst_sources.append(dst) 13820s 13820s # Build script 13820s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13820s 13820s code = fr""" 13820s import os 13820s import sys 13820s sys.path = {repr(sys.path)} 13820s 13820s def configuration(parent_name='',top_path=None): 13820s from numpy.distutils.misc_util import Configuration 13820s config = Configuration('', parent_name, top_path) 13820s {config_code} 13820s return config 13820s 13820s if __name__ == "__main__": 13820s from numpy.distutils.core import setup 13820s setup(configuration=configuration) 13820s """ 13820s script = os.path.join(d, get_temp_module_name() + ".py") 13820s dst_sources.append(script) 13820s with open(script, "wb") as f: 13820s f.write(asbytes(code)) 13820s 13820s # Build 13820s cwd = os.getcwd() 13820s try: 13820s os.chdir(d) 13820s cmd = [sys.executable, script, "build_ext", "-i"] 13820s p = subprocess.Popen(cmd, 13820s stdout=subprocess.PIPE, 13820s stderr=subprocess.STDOUT) 13820s out, err = p.communicate() 13820s if p.returncode != 0: 13820s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13820s (cmd[4:], asstr(out))) 13820s E RuntimeError: Running distutils build failed: [] 13820s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13820s E 13820s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13820s E of the deprecation of `distutils` itself. It will be removed for 13820s E Python >= 3.12. For older Python versions it will remain present. 13820s E It is recommended to use `setuptools < 60.0` for those Python versions. 13820s E For more details, see: 13820s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13820s E 13820s E 13820s E from numpy.distutils.core import setup 13820s E running build_ext 13820s E running build_src 13820s E INFO: build_src 13820s E INFO: building extension "test_array_from_pyobj_ext" sources 13820s E INFO: build_src: building npy-pkg config files 13820s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13820s E !! 13820s E 13820s E ******************************************************************************** 13820s E Please avoid running ``setup.py`` directly. 13820s E Instead, use pypa/build, pypa/installer or other 13820s E standards-based tools. 13820s E 13820s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13820s E ******************************************************************************** 13820s E 13820s E !! 13820s E self.initialize_options() 13820s E INFO: customize UnixCCompiler 13820s E INFO: customize UnixCCompiler using build_ext 13820s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/tmp 13820s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/usr 13820s E creating /tmp/tmppq19o2st/usr/lib 13820s E creating /tmp/tmppq19o2st/usr/lib/python3 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=native' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-O3' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-Werror' 13820s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13820s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-vfpv4' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=armv8.2-a+fp16' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13820s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13820s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13820s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13820s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13820s E INFO: building 'test_array_from_pyobj_ext' extension 13820s E INFO: compiling C sources 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13820s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13820s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13820s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13820s E 14 | #include 13820s E | ^~~~~~~~~~ 13820s E In file included from fortranobject.c:2: 13820s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13820s E 7 | #include 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E compilation terminated. 13820s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13820s E INFO: 13820s E ########### EXT COMPILER OPTIMIZATION ########### 13820s E INFO: Platform : 13820s E Architecture: armhf 13820s E Compiler : gcc 13820s E 13820s E CPU baseline : 13820s E Requested : 'min' 13820s E Enabled : none 13820s E Flags : none 13820s E Extra checks: none 13820s E 13820s E CPU dispatch : 13820s E Requested : 'max -xop -fma4' 13820s E Enabled : none 13820s E Generated : none 13820s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13820s 13820s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13820s d = '/tmp/tmpjj8q074z' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s err = None 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s kw = {} 13820s module_name = 'test_array_from_pyobj_ext' 13820s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13820s p = 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13820s ___ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[ULONGLONG] ___ 13820s 13820s def setup_module(): 13820s """ 13820s Build the required testing extension module 13820s 13820s """ 13820s global wrap 13820s 13820s # Check compiler availability first 13820s if not util.has_c_compiler(): 13820s pytest.skip("No C compiler available") 13820s 13820s if wrap is None: 13820s config_code = """ 13820s config.add_extension('test_array_from_pyobj_ext', 13820s sources=['wrapmodule.c', 'fortranobject.c'], 13820s define_macros=[]) 13820s """ 13820s d = os.path.dirname(__file__) 13820s src = [ 13820s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13820s util.getpath("src", "fortranobject.c"), 13820s util.getpath("src", "fortranobject.h"), 13820s ] 13820s > wrap = util.build_module_distutils(src, config_code, 13820s "test_array_from_pyobj_ext") 13820s 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13820s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13820s memo[key] = func(*a, **kw) 13820s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13820s func = 13820s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13820s kw = {} 13820s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s 13820s @_memoize 13820s def build_module_distutils(source_files, config_code, module_name, **kw): 13820s """ 13820s Build a module via distutils and import it. 13820s 13820s """ 13820s d = get_module_dir() 13820s 13820s # Copy files 13820s dst_sources = [] 13820s for fn in source_files: 13820s if not os.path.isfile(fn): 13820s raise RuntimeError("%s is not a file" % fn) 13820s dst = os.path.join(d, os.path.basename(fn)) 13820s shutil.copyfile(fn, dst) 13820s dst_sources.append(dst) 13820s 13820s # Build script 13820s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13820s 13820s code = fr""" 13820s import os 13820s import sys 13820s sys.path = {repr(sys.path)} 13820s 13820s def configuration(parent_name='',top_path=None): 13820s from numpy.distutils.misc_util import Configuration 13820s config = Configuration('', parent_name, top_path) 13820s {config_code} 13820s return config 13820s 13820s if __name__ == "__main__": 13820s from numpy.distutils.core import setup 13820s setup(configuration=configuration) 13820s """ 13820s script = os.path.join(d, get_temp_module_name() + ".py") 13820s dst_sources.append(script) 13820s with open(script, "wb") as f: 13820s f.write(asbytes(code)) 13820s 13820s # Build 13820s cwd = os.getcwd() 13820s try: 13820s os.chdir(d) 13820s cmd = [sys.executable, script, "build_ext", "-i"] 13820s p = subprocess.Popen(cmd, 13820s stdout=subprocess.PIPE, 13820s stderr=subprocess.STDOUT) 13820s out, err = p.communicate() 13820s if p.returncode != 0: 13820s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13820s (cmd[4:], asstr(out))) 13820s E RuntimeError: Running distutils build failed: [] 13820s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13820s E 13820s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13820s E of the deprecation of `distutils` itself. It will be removed for 13820s E Python >= 3.12. For older Python versions it will remain present. 13820s E It is recommended to use `setuptools < 60.0` for those Python versions. 13820s E For more details, see: 13820s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13820s E 13820s E 13820s E from numpy.distutils.core import setup 13820s E running build_ext 13820s E running build_src 13820s E INFO: build_src 13820s E INFO: building extension "test_array_from_pyobj_ext" sources 13820s E INFO: build_src: building npy-pkg config files 13820s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13820s E !! 13820s E 13820s E ******************************************************************************** 13820s E Please avoid running ``setup.py`` directly. 13820s E Instead, use pypa/build, pypa/installer or other 13820s E standards-based tools. 13820s E 13820s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13820s E ******************************************************************************** 13820s E 13820s E !! 13820s E self.initialize_options() 13820s E INFO: customize UnixCCompiler 13820s E INFO: customize UnixCCompiler using build_ext 13820s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/tmp 13820s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/usr 13820s E creating /tmp/tmppq19o2st/usr/lib 13820s E creating /tmp/tmppq19o2st/usr/lib/python3 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=native' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-O3' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-Werror' 13820s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13820s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-vfpv4' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=armv8.2-a+fp16' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13820s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13820s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13820s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13820s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13820s E INFO: building 'test_array_from_pyobj_ext' extension 13820s E INFO: compiling C sources 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13820s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13820s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13820s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13820s E 14 | #include 13820s E | ^~~~~~~~~~ 13820s E In file included from fortranobject.c:2: 13820s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13820s E 7 | #include 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E compilation terminated. 13820s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13820s E INFO: 13820s E ########### EXT COMPILER OPTIMIZATION ########### 13820s E INFO: Platform : 13820s E Architecture: armhf 13820s E Compiler : gcc 13820s E 13820s E CPU baseline : 13820s E Requested : 'min' 13820s E Enabled : none 13820s E Flags : none 13820s E Extra checks: none 13820s E 13820s E CPU dispatch : 13820s E Requested : 'max -xop -fma4' 13820s E Enabled : none 13820s E Generated : none 13820s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13820s 13820s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13820s d = '/tmp/tmpjj8q074z' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s err = None 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s kw = {} 13820s module_name = 'test_array_from_pyobj_ext' 13820s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13820s p = 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13820s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[FLOAT] __________ 13820s 13820s def setup_module(): 13820s """ 13820s Build the required testing extension module 13820s 13820s """ 13820s global wrap 13820s 13820s # Check compiler availability first 13820s if not util.has_c_compiler(): 13820s pytest.skip("No C compiler available") 13820s 13820s if wrap is None: 13820s config_code = """ 13820s config.add_extension('test_array_from_pyobj_ext', 13820s sources=['wrapmodule.c', 'fortranobject.c'], 13820s define_macros=[]) 13820s """ 13820s d = os.path.dirname(__file__) 13820s src = [ 13820s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13820s util.getpath("src", "fortranobject.c"), 13820s util.getpath("src", "fortranobject.h"), 13820s ] 13820s > wrap = util.build_module_distutils(src, config_code, 13820s "test_array_from_pyobj_ext") 13820s 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13820s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13820s memo[key] = func(*a, **kw) 13820s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13820s func = 13820s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13820s kw = {} 13820s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s 13820s @_memoize 13820s def build_module_distutils(source_files, config_code, module_name, **kw): 13820s """ 13820s Build a module via distutils and import it. 13820s 13820s """ 13820s d = get_module_dir() 13820s 13820s # Copy files 13820s dst_sources = [] 13820s for fn in source_files: 13820s if not os.path.isfile(fn): 13820s raise RuntimeError("%s is not a file" % fn) 13820s dst = os.path.join(d, os.path.basename(fn)) 13820s shutil.copyfile(fn, dst) 13820s dst_sources.append(dst) 13820s 13820s # Build script 13820s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13820s 13820s code = fr""" 13820s import os 13820s import sys 13820s sys.path = {repr(sys.path)} 13820s 13820s def configuration(parent_name='',top_path=None): 13820s from numpy.distutils.misc_util import Configuration 13820s config = Configuration('', parent_name, top_path) 13820s {config_code} 13820s return config 13820s 13820s if __name__ == "__main__": 13820s from numpy.distutils.core import setup 13820s setup(configuration=configuration) 13820s """ 13820s script = os.path.join(d, get_temp_module_name() + ".py") 13820s dst_sources.append(script) 13820s with open(script, "wb") as f: 13820s f.write(asbytes(code)) 13820s 13820s # Build 13820s cwd = os.getcwd() 13820s try: 13820s os.chdir(d) 13820s cmd = [sys.executable, script, "build_ext", "-i"] 13820s p = subprocess.Popen(cmd, 13820s stdout=subprocess.PIPE, 13820s stderr=subprocess.STDOUT) 13820s out, err = p.communicate() 13820s if p.returncode != 0: 13820s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13820s (cmd[4:], asstr(out))) 13820s E RuntimeError: Running distutils build failed: [] 13820s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13820s E 13820s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13820s E of the deprecation of `distutils` itself. It will be removed for 13820s E Python >= 3.12. For older Python versions it will remain present. 13820s E It is recommended to use `setuptools < 60.0` for those Python versions. 13820s E For more details, see: 13820s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13820s E 13820s E 13820s E from numpy.distutils.core import setup 13820s E running build_ext 13820s E running build_src 13820s E INFO: build_src 13820s E INFO: building extension "test_array_from_pyobj_ext" sources 13820s E INFO: build_src: building npy-pkg config files 13820s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13820s E !! 13820s E 13820s E ******************************************************************************** 13820s E Please avoid running ``setup.py`` directly. 13820s E Instead, use pypa/build, pypa/installer or other 13820s E standards-based tools. 13820s E 13820s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13820s E ******************************************************************************** 13820s E 13820s E !! 13820s E self.initialize_options() 13820s E INFO: customize UnixCCompiler 13820s E INFO: customize UnixCCompiler using build_ext 13820s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/tmp 13820s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/usr 13820s E creating /tmp/tmppq19o2st/usr/lib 13820s E creating /tmp/tmppq19o2st/usr/lib/python3 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=native' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-O3' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-Werror' 13820s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13820s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-vfpv4' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=armv8.2-a+fp16' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13820s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13820s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13820s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13820s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13820s E INFO: building 'test_array_from_pyobj_ext' extension 13820s E INFO: compiling C sources 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13820s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13820s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13820s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13820s E 14 | #include 13820s E | ^~~~~~~~~~ 13820s E In file included from fortranobject.c:2: 13820s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13820s E 7 | #include 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E compilation terminated. 13820s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13820s E INFO: 13820s E ########### EXT COMPILER OPTIMIZATION ########### 13820s E INFO: Platform : 13820s E Architecture: armhf 13820s E Compiler : gcc 13820s E 13820s E CPU baseline : 13820s E Requested : 'min' 13820s E Enabled : none 13820s E Flags : none 13820s E Extra checks: none 13820s E 13820s E CPU dispatch : 13820s E Requested : 'max -xop -fma4' 13820s E Enabled : none 13820s E Generated : none 13820s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13820s 13820s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13820s d = '/tmp/tmpjj8q074z' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s err = None 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s kw = {} 13820s module_name = 'test_array_from_pyobj_ext' 13820s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13820s p = 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13820s _______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[FLOAT] _______ 13820s 13820s def setup_module(): 13820s """ 13820s Build the required testing extension module 13820s 13820s """ 13820s global wrap 13820s 13820s # Check compiler availability first 13820s if not util.has_c_compiler(): 13820s pytest.skip("No C compiler available") 13820s 13820s if wrap is None: 13820s config_code = """ 13820s config.add_extension('test_array_from_pyobj_ext', 13820s sources=['wrapmodule.c', 'fortranobject.c'], 13820s define_macros=[]) 13820s """ 13820s d = os.path.dirname(__file__) 13820s src = [ 13820s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13820s util.getpath("src", "fortranobject.c"), 13820s util.getpath("src", "fortranobject.h"), 13820s ] 13820s > wrap = util.build_module_distutils(src, config_code, 13820s "test_array_from_pyobj_ext") 13820s 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13820s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13820s memo[key] = func(*a, **kw) 13820s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13820s func = 13820s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13820s kw = {} 13820s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13820s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13820s 13820s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13820s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13820s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13820s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13820s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13820s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13820s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13820s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13820s 13820s @_memoize 13820s def build_module_distutils(source_files, config_code, module_name, **kw): 13820s """ 13820s Build a module via distutils and import it. 13820s 13820s """ 13820s d = get_module_dir() 13820s 13820s # Copy files 13820s dst_sources = [] 13820s for fn in source_files: 13820s if not os.path.isfile(fn): 13820s raise RuntimeError("%s is not a file" % fn) 13820s dst = os.path.join(d, os.path.basename(fn)) 13820s shutil.copyfile(fn, dst) 13820s dst_sources.append(dst) 13820s 13820s # Build script 13820s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13820s 13820s code = fr""" 13820s import os 13820s import sys 13820s sys.path = {repr(sys.path)} 13820s 13820s def configuration(parent_name='',top_path=None): 13820s from numpy.distutils.misc_util import Configuration 13820s config = Configuration('', parent_name, top_path) 13820s {config_code} 13820s return config 13820s 13820s if __name__ == "__main__": 13820s from numpy.distutils.core import setup 13820s setup(configuration=configuration) 13820s """ 13820s script = os.path.join(d, get_temp_module_name() + ".py") 13820s dst_sources.append(script) 13820s with open(script, "wb") as f: 13820s f.write(asbytes(code)) 13820s 13820s # Build 13820s cwd = os.getcwd() 13820s try: 13820s os.chdir(d) 13820s cmd = [sys.executable, script, "build_ext", "-i"] 13820s p = subprocess.Popen(cmd, 13820s stdout=subprocess.PIPE, 13820s stderr=subprocess.STDOUT) 13820s out, err = p.communicate() 13820s if p.returncode != 0: 13820s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13820s (cmd[4:], asstr(out))) 13820s E RuntimeError: Running distutils build failed: [] 13820s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13820s E 13820s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13820s E of the deprecation of `distutils` itself. It will be removed for 13820s E Python >= 3.12. For older Python versions it will remain present. 13820s E It is recommended to use `setuptools < 60.0` for those Python versions. 13820s E For more details, see: 13820s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13820s E 13820s E 13820s E from numpy.distutils.core import setup 13820s E running build_ext 13820s E running build_src 13820s E INFO: build_src 13820s E INFO: building extension "test_array_from_pyobj_ext" sources 13820s E INFO: build_src: building npy-pkg config files 13820s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13820s E !! 13820s E 13820s E ******************************************************************************** 13820s E Please avoid running ``setup.py`` directly. 13820s E Instead, use pypa/build, pypa/installer or other 13820s E standards-based tools. 13820s E 13820s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13820s E ******************************************************************************** 13820s E 13820s E !! 13820s E self.initialize_options() 13820s E INFO: customize UnixCCompiler 13820s E INFO: customize UnixCCompiler using build_ext 13820s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/tmp 13820s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E creating /tmp/tmppq19o2st/usr 13820s E creating /tmp/tmppq19o2st/usr/lib 13820s E creating /tmp/tmppq19o2st/usr/lib/python3 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13820s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=native' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-O3' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-Werror' 13820s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13820s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon -Werror' 13820s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13820s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13820s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13820s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13820s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13820s E 9 | # include_next 13820s E | ^~~~~~~~~~ 13820s E compilation terminated. 13820s E 13820s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-vfpv4' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13820s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13820s E INFO: compile options: '-I/usr/include/python3.12 -c' 13820s E extra options: '-march=armv8.2-a+fp16' 13820s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13820s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13820s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13821s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13821s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13821s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13821s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13821s E INFO: building 'test_array_from_pyobj_ext' extension 13821s E INFO: compiling C sources 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13821s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13821s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13821s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13821s E 14 | #include 13821s E | ^~~~~~~~~~ 13821s E In file included from fortranobject.c:2: 13821s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13821s E 7 | #include 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E compilation terminated. 13821s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13821s E INFO: 13821s E ########### EXT COMPILER OPTIMIZATION ########### 13821s E INFO: Platform : 13821s E Architecture: armhf 13821s E Compiler : gcc 13821s E 13821s E CPU baseline : 13821s E Requested : 'min' 13821s E Enabled : none 13821s E Flags : none 13821s E Extra checks: none 13821s E 13821s E CPU dispatch : 13821s E Requested : 'max -xop -fma4' 13821s E Enabled : none 13821s E Generated : none 13821s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13821s 13821s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13821s d = '/tmp/tmpjj8q074z' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s err = None 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s kw = {} 13821s module_name = 'test_array_from_pyobj_ext' 13821s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13821s p = 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13821s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-2seq-C-w] _______ 13821s 13821s def setup_module(): 13821s """ 13821s Build the required testing extension module 13821s 13821s """ 13821s global wrap 13821s 13821s # Check compiler availability first 13821s if not util.has_c_compiler(): 13821s pytest.skip("No C compiler available") 13821s 13821s if wrap is None: 13821s config_code = """ 13821s config.add_extension('test_array_from_pyobj_ext', 13821s sources=['wrapmodule.c', 'fortranobject.c'], 13821s define_macros=[]) 13821s """ 13821s d = os.path.dirname(__file__) 13821s src = [ 13821s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13821s util.getpath("src", "fortranobject.c"), 13821s util.getpath("src", "fortranobject.h"), 13821s ] 13821s > wrap = util.build_module_distutils(src, config_code, 13821s "test_array_from_pyobj_ext") 13821s 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13821s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13821s memo[key] = func(*a, **kw) 13821s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13821s func = 13821s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13821s kw = {} 13821s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s 13821s @_memoize 13821s def build_module_distutils(source_files, config_code, module_name, **kw): 13821s """ 13821s Build a module via distutils and import it. 13821s 13821s """ 13821s d = get_module_dir() 13821s 13821s # Copy files 13821s dst_sources = [] 13821s for fn in source_files: 13821s if not os.path.isfile(fn): 13821s raise RuntimeError("%s is not a file" % fn) 13821s dst = os.path.join(d, os.path.basename(fn)) 13821s shutil.copyfile(fn, dst) 13821s dst_sources.append(dst) 13821s 13821s # Build script 13821s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13821s 13821s code = fr""" 13821s import os 13821s import sys 13821s sys.path = {repr(sys.path)} 13821s 13821s def configuration(parent_name='',top_path=None): 13821s from numpy.distutils.misc_util import Configuration 13821s config = Configuration('', parent_name, top_path) 13821s {config_code} 13821s return config 13821s 13821s if __name__ == "__main__": 13821s from numpy.distutils.core import setup 13821s setup(configuration=configuration) 13821s """ 13821s script = os.path.join(d, get_temp_module_name() + ".py") 13821s dst_sources.append(script) 13821s with open(script, "wb") as f: 13821s f.write(asbytes(code)) 13821s 13821s # Build 13821s cwd = os.getcwd() 13821s try: 13821s os.chdir(d) 13821s cmd = [sys.executable, script, "build_ext", "-i"] 13821s p = subprocess.Popen(cmd, 13821s stdout=subprocess.PIPE, 13821s stderr=subprocess.STDOUT) 13821s out, err = p.communicate() 13821s if p.returncode != 0: 13821s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13821s (cmd[4:], asstr(out))) 13821s E RuntimeError: Running distutils build failed: [] 13821s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13821s E 13821s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13821s E of the deprecation of `distutils` itself. It will be removed for 13821s E Python >= 3.12. For older Python versions it will remain present. 13821s E It is recommended to use `setuptools < 60.0` for those Python versions. 13821s E For more details, see: 13821s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13821s E 13821s E 13821s E from numpy.distutils.core import setup 13821s E running build_ext 13821s E running build_src 13821s E INFO: build_src 13821s E INFO: building extension "test_array_from_pyobj_ext" sources 13821s E INFO: build_src: building npy-pkg config files 13821s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13821s E !! 13821s E 13821s E ******************************************************************************** 13821s E Please avoid running ``setup.py`` directly. 13821s E Instead, use pypa/build, pypa/installer or other 13821s E standards-based tools. 13821s E 13821s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13821s E ******************************************************************************** 13821s E 13821s E !! 13821s E self.initialize_options() 13821s E INFO: customize UnixCCompiler 13821s E INFO: customize UnixCCompiler using build_ext 13821s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/tmp 13821s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/usr 13821s E creating /tmp/tmppq19o2st/usr/lib 13821s E creating /tmp/tmppq19o2st/usr/lib/python3 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=native' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-O3' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-Werror' 13821s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13821s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-vfpv4' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=armv8.2-a+fp16' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13821s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13821s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13821s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13821s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13821s E INFO: building 'test_array_from_pyobj_ext' extension 13821s E INFO: compiling C sources 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13821s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13821s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13821s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13821s E 14 | #include 13821s E | ^~~~~~~~~~ 13821s E In file included from fortranobject.c:2: 13821s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13821s E 7 | #include 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E compilation terminated. 13821s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13821s E INFO: 13821s E ########### EXT COMPILER OPTIMIZATION ########### 13821s E INFO: Platform : 13821s E Architecture: armhf 13821s E Compiler : gcc 13821s E 13821s E CPU baseline : 13821s E Requested : 'min' 13821s E Enabled : none 13821s E Flags : none 13821s E Extra checks: none 13821s E 13821s E CPU dispatch : 13821s E Requested : 'max -xop -fma4' 13821s E Enabled : none 13821s E Generated : none 13821s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13821s 13821s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13821s d = '/tmp/tmpjj8q074z' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s err = None 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s kw = {} 13821s module_name = 'test_array_from_pyobj_ext' 13821s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13821s p = 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13821s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-2seq-C-ro] ______ 13821s 13821s def setup_module(): 13821s """ 13821s Build the required testing extension module 13821s 13821s """ 13821s global wrap 13821s 13821s # Check compiler availability first 13821s if not util.has_c_compiler(): 13821s pytest.skip("No C compiler available") 13821s 13821s if wrap is None: 13821s config_code = """ 13821s config.add_extension('test_array_from_pyobj_ext', 13821s sources=['wrapmodule.c', 'fortranobject.c'], 13821s define_macros=[]) 13821s """ 13821s d = os.path.dirname(__file__) 13821s src = [ 13821s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13821s util.getpath("src", "fortranobject.c"), 13821s util.getpath("src", "fortranobject.h"), 13821s ] 13821s > wrap = util.build_module_distutils(src, config_code, 13821s "test_array_from_pyobj_ext") 13821s 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13821s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13821s memo[key] = func(*a, **kw) 13821s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13821s func = 13821s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13821s kw = {} 13821s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s 13821s @_memoize 13821s def build_module_distutils(source_files, config_code, module_name, **kw): 13821s """ 13821s Build a module via distutils and import it. 13821s 13821s """ 13821s d = get_module_dir() 13821s 13821s # Copy files 13821s dst_sources = [] 13821s for fn in source_files: 13821s if not os.path.isfile(fn): 13821s raise RuntimeError("%s is not a file" % fn) 13821s dst = os.path.join(d, os.path.basename(fn)) 13821s shutil.copyfile(fn, dst) 13821s dst_sources.append(dst) 13821s 13821s # Build script 13821s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13821s 13821s code = fr""" 13821s import os 13821s import sys 13821s sys.path = {repr(sys.path)} 13821s 13821s def configuration(parent_name='',top_path=None): 13821s from numpy.distutils.misc_util import Configuration 13821s config = Configuration('', parent_name, top_path) 13821s {config_code} 13821s return config 13821s 13821s if __name__ == "__main__": 13821s from numpy.distutils.core import setup 13821s setup(configuration=configuration) 13821s """ 13821s script = os.path.join(d, get_temp_module_name() + ".py") 13821s dst_sources.append(script) 13821s with open(script, "wb") as f: 13821s f.write(asbytes(code)) 13821s 13821s # Build 13821s cwd = os.getcwd() 13821s try: 13821s os.chdir(d) 13821s cmd = [sys.executable, script, "build_ext", "-i"] 13821s p = subprocess.Popen(cmd, 13821s stdout=subprocess.PIPE, 13821s stderr=subprocess.STDOUT) 13821s out, err = p.communicate() 13821s if p.returncode != 0: 13821s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13821s (cmd[4:], asstr(out))) 13821s E RuntimeError: Running distutils build failed: [] 13821s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13821s E 13821s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13821s E of the deprecation of `distutils` itself. It will be removed for 13821s E Python >= 3.12. For older Python versions it will remain present. 13821s E It is recommended to use `setuptools < 60.0` for those Python versions. 13821s E For more details, see: 13821s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13821s E 13821s E 13821s E from numpy.distutils.core import setup 13821s E running build_ext 13821s E running build_src 13821s E INFO: build_src 13821s E INFO: building extension "test_array_from_pyobj_ext" sources 13821s E INFO: build_src: building npy-pkg config files 13821s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13821s E !! 13821s E 13821s E ******************************************************************************** 13821s E Please avoid running ``setup.py`` directly. 13821s E Instead, use pypa/build, pypa/installer or other 13821s E standards-based tools. 13821s E 13821s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13821s E ******************************************************************************** 13821s E 13821s E !! 13821s E self.initialize_options() 13821s E INFO: customize UnixCCompiler 13821s E INFO: customize UnixCCompiler using build_ext 13821s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/tmp 13821s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/usr 13821s E creating /tmp/tmppq19o2st/usr/lib 13821s E creating /tmp/tmppq19o2st/usr/lib/python3 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=native' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-O3' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-Werror' 13821s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13821s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-vfpv4' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=armv8.2-a+fp16' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13821s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13821s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13821s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13821s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13821s E INFO: building 'test_array_from_pyobj_ext' extension 13821s E INFO: compiling C sources 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13821s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13821s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13821s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13821s E 14 | #include 13821s E | ^~~~~~~~~~ 13821s E In file included from fortranobject.c:2: 13821s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13821s E 7 | #include 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E compilation terminated. 13821s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13821s E INFO: 13821s E ########### EXT COMPILER OPTIMIZATION ########### 13821s E INFO: Platform : 13821s E Architecture: armhf 13821s E Compiler : gcc 13821s E 13821s E CPU baseline : 13821s E Requested : 'min' 13821s E Enabled : none 13821s E Flags : none 13821s E Extra checks: none 13821s E 13821s E CPU dispatch : 13821s E Requested : 'max -xop -fma4' 13821s E Enabled : none 13821s E Generated : none 13821s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13821s 13821s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13821s d = '/tmp/tmpjj8q074z' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s err = None 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s kw = {} 13821s module_name = 'test_array_from_pyobj_ext' 13821s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13821s p = 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13821s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-2seq-F-w] _______ 13821s 13821s def setup_module(): 13821s """ 13821s Build the required testing extension module 13821s 13821s """ 13821s global wrap 13821s 13821s # Check compiler availability first 13821s if not util.has_c_compiler(): 13821s pytest.skip("No C compiler available") 13821s 13821s if wrap is None: 13821s config_code = """ 13821s config.add_extension('test_array_from_pyobj_ext', 13821s sources=['wrapmodule.c', 'fortranobject.c'], 13821s define_macros=[]) 13821s """ 13821s d = os.path.dirname(__file__) 13821s src = [ 13821s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13821s util.getpath("src", "fortranobject.c"), 13821s util.getpath("src", "fortranobject.h"), 13821s ] 13821s > wrap = util.build_module_distutils(src, config_code, 13821s "test_array_from_pyobj_ext") 13821s 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13821s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13821s memo[key] = func(*a, **kw) 13821s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13821s func = 13821s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13821s kw = {} 13821s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s 13821s @_memoize 13821s def build_module_distutils(source_files, config_code, module_name, **kw): 13821s """ 13821s Build a module via distutils and import it. 13821s 13821s """ 13821s d = get_module_dir() 13821s 13821s # Copy files 13821s dst_sources = [] 13821s for fn in source_files: 13821s if not os.path.isfile(fn): 13821s raise RuntimeError("%s is not a file" % fn) 13821s dst = os.path.join(d, os.path.basename(fn)) 13821s shutil.copyfile(fn, dst) 13821s dst_sources.append(dst) 13821s 13821s # Build script 13821s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13821s 13821s code = fr""" 13821s import os 13821s import sys 13821s sys.path = {repr(sys.path)} 13821s 13821s def configuration(parent_name='',top_path=None): 13821s from numpy.distutils.misc_util import Configuration 13821s config = Configuration('', parent_name, top_path) 13821s {config_code} 13821s return config 13821s 13821s if __name__ == "__main__": 13821s from numpy.distutils.core import setup 13821s setup(configuration=configuration) 13821s """ 13821s script = os.path.join(d, get_temp_module_name() + ".py") 13821s dst_sources.append(script) 13821s with open(script, "wb") as f: 13821s f.write(asbytes(code)) 13821s 13821s # Build 13821s cwd = os.getcwd() 13821s try: 13821s os.chdir(d) 13821s cmd = [sys.executable, script, "build_ext", "-i"] 13821s p = subprocess.Popen(cmd, 13821s stdout=subprocess.PIPE, 13821s stderr=subprocess.STDOUT) 13821s out, err = p.communicate() 13821s if p.returncode != 0: 13821s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13821s (cmd[4:], asstr(out))) 13821s E RuntimeError: Running distutils build failed: [] 13821s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13821s E 13821s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13821s E of the deprecation of `distutils` itself. It will be removed for 13821s E Python >= 3.12. For older Python versions it will remain present. 13821s E It is recommended to use `setuptools < 60.0` for those Python versions. 13821s E For more details, see: 13821s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13821s E 13821s E 13821s E from numpy.distutils.core import setup 13821s E running build_ext 13821s E running build_src 13821s E INFO: build_src 13821s E INFO: building extension "test_array_from_pyobj_ext" sources 13821s E INFO: build_src: building npy-pkg config files 13821s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13821s E !! 13821s E 13821s E ******************************************************************************** 13821s E Please avoid running ``setup.py`` directly. 13821s E Instead, use pypa/build, pypa/installer or other 13821s E standards-based tools. 13821s E 13821s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13821s E ******************************************************************************** 13821s E 13821s E !! 13821s E self.initialize_options() 13821s E INFO: customize UnixCCompiler 13821s E INFO: customize UnixCCompiler using build_ext 13821s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/tmp 13821s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/usr 13821s E creating /tmp/tmppq19o2st/usr/lib 13821s E creating /tmp/tmppq19o2st/usr/lib/python3 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=native' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-O3' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-Werror' 13821s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13821s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-vfpv4' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=armv8.2-a+fp16' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13821s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13821s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13821s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13821s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13821s E INFO: building 'test_array_from_pyobj_ext' extension 13821s E INFO: compiling C sources 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13821s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13821s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13821s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13821s E 14 | #include 13821s E | ^~~~~~~~~~ 13821s E In file included from fortranobject.c:2: 13821s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13821s E 7 | #include 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E compilation terminated. 13821s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13821s E INFO: 13821s E ########### EXT COMPILER OPTIMIZATION ########### 13821s E INFO: Platform : 13821s E Architecture: armhf 13821s E Compiler : gcc 13821s E 13821s E CPU baseline : 13821s E Requested : 'min' 13821s E Enabled : none 13821s E Flags : none 13821s E Extra checks: none 13821s E 13821s E CPU dispatch : 13821s E Requested : 'max -xop -fma4' 13821s E Enabled : none 13821s E Generated : none 13821s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13821s 13821s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13821s d = '/tmp/tmpjj8q074z' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s err = None 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s kw = {} 13821s module_name = 'test_array_from_pyobj_ext' 13821s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13821s p = 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13821s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-2seq-F-ro] ______ 13821s 13821s def setup_module(): 13821s """ 13821s Build the required testing extension module 13821s 13821s """ 13821s global wrap 13821s 13821s # Check compiler availability first 13821s if not util.has_c_compiler(): 13821s pytest.skip("No C compiler available") 13821s 13821s if wrap is None: 13821s config_code = """ 13821s config.add_extension('test_array_from_pyobj_ext', 13821s sources=['wrapmodule.c', 'fortranobject.c'], 13821s define_macros=[]) 13821s """ 13821s d = os.path.dirname(__file__) 13821s src = [ 13821s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13821s util.getpath("src", "fortranobject.c"), 13821s util.getpath("src", "fortranobject.h"), 13821s ] 13821s > wrap = util.build_module_distutils(src, config_code, 13821s "test_array_from_pyobj_ext") 13821s 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13821s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13821s memo[key] = func(*a, **kw) 13821s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13821s func = 13821s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13821s kw = {} 13821s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s 13821s @_memoize 13821s def build_module_distutils(source_files, config_code, module_name, **kw): 13821s """ 13821s Build a module via distutils and import it. 13821s 13821s """ 13821s d = get_module_dir() 13821s 13821s # Copy files 13821s dst_sources = [] 13821s for fn in source_files: 13821s if not os.path.isfile(fn): 13821s raise RuntimeError("%s is not a file" % fn) 13821s dst = os.path.join(d, os.path.basename(fn)) 13821s shutil.copyfile(fn, dst) 13821s dst_sources.append(dst) 13821s 13821s # Build script 13821s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13821s 13821s code = fr""" 13821s import os 13821s import sys 13821s sys.path = {repr(sys.path)} 13821s 13821s def configuration(parent_name='',top_path=None): 13821s from numpy.distutils.misc_util import Configuration 13821s config = Configuration('', parent_name, top_path) 13821s {config_code} 13821s return config 13821s 13821s if __name__ == "__main__": 13821s from numpy.distutils.core import setup 13821s setup(configuration=configuration) 13821s """ 13821s script = os.path.join(d, get_temp_module_name() + ".py") 13821s dst_sources.append(script) 13821s with open(script, "wb") as f: 13821s f.write(asbytes(code)) 13821s 13821s # Build 13821s cwd = os.getcwd() 13821s try: 13821s os.chdir(d) 13821s cmd = [sys.executable, script, "build_ext", "-i"] 13821s p = subprocess.Popen(cmd, 13821s stdout=subprocess.PIPE, 13821s stderr=subprocess.STDOUT) 13821s out, err = p.communicate() 13821s if p.returncode != 0: 13821s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13821s (cmd[4:], asstr(out))) 13821s E RuntimeError: Running distutils build failed: [] 13821s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13821s E 13821s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13821s E of the deprecation of `distutils` itself. It will be removed for 13821s E Python >= 3.12. For older Python versions it will remain present. 13821s E It is recommended to use `setuptools < 60.0` for those Python versions. 13821s E For more details, see: 13821s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13821s E 13821s E 13821s E from numpy.distutils.core import setup 13821s E running build_ext 13821s E running build_src 13821s E INFO: build_src 13821s E INFO: building extension "test_array_from_pyobj_ext" sources 13821s E INFO: build_src: building npy-pkg config files 13821s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13821s E !! 13821s E 13821s E ******************************************************************************** 13821s E Please avoid running ``setup.py`` directly. 13821s E Instead, use pypa/build, pypa/installer or other 13821s E standards-based tools. 13821s E 13821s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13821s E ******************************************************************************** 13821s E 13821s E !! 13821s E self.initialize_options() 13821s E INFO: customize UnixCCompiler 13821s E INFO: customize UnixCCompiler using build_ext 13821s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/tmp 13821s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/usr 13821s E creating /tmp/tmppq19o2st/usr/lib 13821s E creating /tmp/tmppq19o2st/usr/lib/python3 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=native' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-O3' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-Werror' 13821s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13821s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-vfpv4' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=armv8.2-a+fp16' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13821s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13821s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13821s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13821s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13821s E INFO: building 'test_array_from_pyobj_ext' extension 13821s E INFO: compiling C sources 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13821s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13821s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13821s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13821s E 14 | #include 13821s E | ^~~~~~~~~~ 13821s E In file included from fortranobject.c:2: 13821s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13821s E 7 | #include 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E compilation terminated. 13821s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13821s E INFO: 13821s E ########### EXT COMPILER OPTIMIZATION ########### 13821s E INFO: Platform : 13821s E Architecture: armhf 13821s E Compiler : gcc 13821s E 13821s E CPU baseline : 13821s E Requested : 'min' 13821s E Enabled : none 13821s E Flags : none 13821s E Extra checks: none 13821s E 13821s E CPU dispatch : 13821s E Requested : 'max -xop -fma4' 13821s E Enabled : none 13821s E Generated : none 13821s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13821s 13821s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13821s d = '/tmp/tmpjj8q074z' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s err = None 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s kw = {} 13821s module_name = 'test_array_from_pyobj_ext' 13821s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13821s p = 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13821s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-23seq-C-w] ______ 13821s 13821s def setup_module(): 13821s """ 13821s Build the required testing extension module 13821s 13821s """ 13821s global wrap 13821s 13821s # Check compiler availability first 13821s if not util.has_c_compiler(): 13821s pytest.skip("No C compiler available") 13821s 13821s if wrap is None: 13821s config_code = """ 13821s config.add_extension('test_array_from_pyobj_ext', 13821s sources=['wrapmodule.c', 'fortranobject.c'], 13821s define_macros=[]) 13821s """ 13821s d = os.path.dirname(__file__) 13821s src = [ 13821s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13821s util.getpath("src", "fortranobject.c"), 13821s util.getpath("src", "fortranobject.h"), 13821s ] 13821s > wrap = util.build_module_distutils(src, config_code, 13821s "test_array_from_pyobj_ext") 13821s 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13821s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13821s memo[key] = func(*a, **kw) 13821s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13821s func = 13821s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13821s kw = {} 13821s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s 13821s @_memoize 13821s def build_module_distutils(source_files, config_code, module_name, **kw): 13821s """ 13821s Build a module via distutils and import it. 13821s 13821s """ 13821s d = get_module_dir() 13821s 13821s # Copy files 13821s dst_sources = [] 13821s for fn in source_files: 13821s if not os.path.isfile(fn): 13821s raise RuntimeError("%s is not a file" % fn) 13821s dst = os.path.join(d, os.path.basename(fn)) 13821s shutil.copyfile(fn, dst) 13821s dst_sources.append(dst) 13821s 13821s # Build script 13821s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13821s 13821s code = fr""" 13821s import os 13821s import sys 13821s sys.path = {repr(sys.path)} 13821s 13821s def configuration(parent_name='',top_path=None): 13821s from numpy.distutils.misc_util import Configuration 13821s config = Configuration('', parent_name, top_path) 13821s {config_code} 13821s return config 13821s 13821s if __name__ == "__main__": 13821s from numpy.distutils.core import setup 13821s setup(configuration=configuration) 13821s """ 13821s script = os.path.join(d, get_temp_module_name() + ".py") 13821s dst_sources.append(script) 13821s with open(script, "wb") as f: 13821s f.write(asbytes(code)) 13821s 13821s # Build 13821s cwd = os.getcwd() 13821s try: 13821s os.chdir(d) 13821s cmd = [sys.executable, script, "build_ext", "-i"] 13821s p = subprocess.Popen(cmd, 13821s stdout=subprocess.PIPE, 13821s stderr=subprocess.STDOUT) 13821s out, err = p.communicate() 13821s if p.returncode != 0: 13821s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13821s (cmd[4:], asstr(out))) 13821s E RuntimeError: Running distutils build failed: [] 13821s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13821s E 13821s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13821s E of the deprecation of `distutils` itself. It will be removed for 13821s E Python >= 3.12. For older Python versions it will remain present. 13821s E It is recommended to use `setuptools < 60.0` for those Python versions. 13821s E For more details, see: 13821s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13821s E 13821s E 13821s E from numpy.distutils.core import setup 13821s E running build_ext 13821s E running build_src 13821s E INFO: build_src 13821s E INFO: building extension "test_array_from_pyobj_ext" sources 13821s E INFO: build_src: building npy-pkg config files 13821s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13821s E !! 13821s E 13821s E ******************************************************************************** 13821s E Please avoid running ``setup.py`` directly. 13821s E Instead, use pypa/build, pypa/installer or other 13821s E standards-based tools. 13821s E 13821s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13821s E ******************************************************************************** 13821s E 13821s E !! 13821s E self.initialize_options() 13821s E INFO: customize UnixCCompiler 13821s E INFO: customize UnixCCompiler using build_ext 13821s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/tmp 13821s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/usr 13821s E creating /tmp/tmppq19o2st/usr/lib 13821s E creating /tmp/tmppq19o2st/usr/lib/python3 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=native' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-O3' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-Werror' 13821s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13821s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-vfpv4' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=armv8.2-a+fp16' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13821s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13821s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13821s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13821s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13821s E INFO: building 'test_array_from_pyobj_ext' extension 13821s E INFO: compiling C sources 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13821s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13821s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13821s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13821s E 14 | #include 13821s E | ^~~~~~~~~~ 13821s E In file included from fortranobject.c:2: 13821s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13821s E 7 | #include 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E compilation terminated. 13821s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13821s E INFO: 13821s E ########### EXT COMPILER OPTIMIZATION ########### 13821s E INFO: Platform : 13821s E Architecture: armhf 13821s E Compiler : gcc 13821s E 13821s E CPU baseline : 13821s E Requested : 'min' 13821s E Enabled : none 13821s E Flags : none 13821s E Extra checks: none 13821s E 13821s E CPU dispatch : 13821s E Requested : 'max -xop -fma4' 13821s E Enabled : none 13821s E Generated : none 13821s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13821s 13821s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13821s d = '/tmp/tmpjj8q074z' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s err = None 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s kw = {} 13821s module_name = 'test_array_from_pyobj_ext' 13821s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13821s p = 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13821s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-23seq-C-ro] ______ 13821s 13821s def setup_module(): 13821s """ 13821s Build the required testing extension module 13821s 13821s """ 13821s global wrap 13821s 13821s # Check compiler availability first 13821s if not util.has_c_compiler(): 13821s pytest.skip("No C compiler available") 13821s 13821s if wrap is None: 13821s config_code = """ 13821s config.add_extension('test_array_from_pyobj_ext', 13821s sources=['wrapmodule.c', 'fortranobject.c'], 13821s define_macros=[]) 13821s """ 13821s d = os.path.dirname(__file__) 13821s src = [ 13821s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13821s util.getpath("src", "fortranobject.c"), 13821s util.getpath("src", "fortranobject.h"), 13821s ] 13821s > wrap = util.build_module_distutils(src, config_code, 13821s "test_array_from_pyobj_ext") 13821s 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13821s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13821s memo[key] = func(*a, **kw) 13821s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13821s func = 13821s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13821s kw = {} 13821s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s 13821s @_memoize 13821s def build_module_distutils(source_files, config_code, module_name, **kw): 13821s """ 13821s Build a module via distutils and import it. 13821s 13821s """ 13821s d = get_module_dir() 13821s 13821s # Copy files 13821s dst_sources = [] 13821s for fn in source_files: 13821s if not os.path.isfile(fn): 13821s raise RuntimeError("%s is not a file" % fn) 13821s dst = os.path.join(d, os.path.basename(fn)) 13821s shutil.copyfile(fn, dst) 13821s dst_sources.append(dst) 13821s 13821s # Build script 13821s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13821s 13821s code = fr""" 13821s import os 13821s import sys 13821s sys.path = {repr(sys.path)} 13821s 13821s def configuration(parent_name='',top_path=None): 13821s from numpy.distutils.misc_util import Configuration 13821s config = Configuration('', parent_name, top_path) 13821s {config_code} 13821s return config 13821s 13821s if __name__ == "__main__": 13821s from numpy.distutils.core import setup 13821s setup(configuration=configuration) 13821s """ 13821s script = os.path.join(d, get_temp_module_name() + ".py") 13821s dst_sources.append(script) 13821s with open(script, "wb") as f: 13821s f.write(asbytes(code)) 13821s 13821s # Build 13821s cwd = os.getcwd() 13821s try: 13821s os.chdir(d) 13821s cmd = [sys.executable, script, "build_ext", "-i"] 13821s p = subprocess.Popen(cmd, 13821s stdout=subprocess.PIPE, 13821s stderr=subprocess.STDOUT) 13821s out, err = p.communicate() 13821s if p.returncode != 0: 13821s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13821s (cmd[4:], asstr(out))) 13821s E RuntimeError: Running distutils build failed: [] 13821s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13821s E 13821s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13821s E of the deprecation of `distutils` itself. It will be removed for 13821s E Python >= 3.12. For older Python versions it will remain present. 13821s E It is recommended to use `setuptools < 60.0` for those Python versions. 13821s E For more details, see: 13821s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13821s E 13821s E 13821s E from numpy.distutils.core import setup 13821s E running build_ext 13821s E running build_src 13821s E INFO: build_src 13821s E INFO: building extension "test_array_from_pyobj_ext" sources 13821s E INFO: build_src: building npy-pkg config files 13821s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13821s E !! 13821s E 13821s E ******************************************************************************** 13821s E Please avoid running ``setup.py`` directly. 13821s E Instead, use pypa/build, pypa/installer or other 13821s E standards-based tools. 13821s E 13821s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13821s E ******************************************************************************** 13821s E 13821s E !! 13821s E self.initialize_options() 13821s E INFO: customize UnixCCompiler 13821s E INFO: customize UnixCCompiler using build_ext 13821s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/tmp 13821s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E creating /tmp/tmppq19o2st/usr 13821s E creating /tmp/tmppq19o2st/usr/lib 13821s E creating /tmp/tmppq19o2st/usr/lib/python3 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13821s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=native' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-O3' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-Werror' 13821s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13821s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-vfpv4' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13821s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-march=armv8.2-a+fp16' 13821s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/include/python3.12 -c' 13821s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13821s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13821s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13821s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13821s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13821s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13821s E 9 | # include_next 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E 13821s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13821s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13821s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13821s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13821s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13821s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13821s E INFO: building 'test_array_from_pyobj_ext' extension 13821s E INFO: compiling C sources 13821s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13821s E 13821s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13821s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13821s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13821s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13821s E 14 | #include 13821s E | ^~~~~~~~~~ 13821s E In file included from fortranobject.c:2: 13821s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13821s E 7 | #include 13821s E | ^~~~~~~~~~ 13821s E compilation terminated. 13821s E compilation terminated. 13821s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13821s E INFO: 13821s E ########### EXT COMPILER OPTIMIZATION ########### 13821s E INFO: Platform : 13821s E Architecture: armhf 13821s E Compiler : gcc 13821s E 13821s E CPU baseline : 13821s E Requested : 'min' 13821s E Enabled : none 13821s E Flags : none 13821s E Extra checks: none 13821s E 13821s E CPU dispatch : 13821s E Requested : 'max -xop -fma4' 13821s E Enabled : none 13821s E Generated : none 13821s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13821s 13821s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13821s d = '/tmp/tmpjj8q074z' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s err = None 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s kw = {} 13821s module_name = 'test_array_from_pyobj_ext' 13821s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13821s p = 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13821s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-23seq-F-w] ______ 13821s 13821s def setup_module(): 13821s """ 13821s Build the required testing extension module 13821s 13821s """ 13821s global wrap 13821s 13821s # Check compiler availability first 13821s if not util.has_c_compiler(): 13821s pytest.skip("No C compiler available") 13821s 13821s if wrap is None: 13821s config_code = """ 13821s config.add_extension('test_array_from_pyobj_ext', 13821s sources=['wrapmodule.c', 'fortranobject.c'], 13821s define_macros=[]) 13821s """ 13821s d = os.path.dirname(__file__) 13821s src = [ 13821s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13821s util.getpath("src", "fortranobject.c"), 13821s util.getpath("src", "fortranobject.h"), 13821s ] 13821s > wrap = util.build_module_distutils(src, config_code, 13821s "test_array_from_pyobj_ext") 13821s 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13821s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13821s memo[key] = func(*a, **kw) 13821s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13821s func = 13821s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13821s kw = {} 13821s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13821s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13821s 13821s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13821s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13821s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13821s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13821s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13821s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13821s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13821s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13821s 13821s @_memoize 13821s def build_module_distutils(source_files, config_code, module_name, **kw): 13821s """ 13821s Build a module via distutils and import it. 13821s 13821s """ 13821s d = get_module_dir() 13821s 13821s # Copy files 13821s dst_sources = [] 13821s for fn in source_files: 13821s if not os.path.isfile(fn): 13821s raise RuntimeError("%s is not a file" % fn) 13821s dst = os.path.join(d, os.path.basename(fn)) 13821s shutil.copyfile(fn, dst) 13821s dst_sources.append(dst) 13821s 13821s # Build script 13822s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13822s 13822s code = fr""" 13822s import os 13822s import sys 13822s sys.path = {repr(sys.path)} 13822s 13822s def configuration(parent_name='',top_path=None): 13822s from numpy.distutils.misc_util import Configuration 13822s config = Configuration('', parent_name, top_path) 13822s {config_code} 13822s return config 13822s 13822s if __name__ == "__main__": 13822s from numpy.distutils.core import setup 13822s setup(configuration=configuration) 13822s """ 13822s script = os.path.join(d, get_temp_module_name() + ".py") 13822s dst_sources.append(script) 13822s with open(script, "wb") as f: 13822s f.write(asbytes(code)) 13822s 13822s # Build 13822s cwd = os.getcwd() 13822s try: 13822s os.chdir(d) 13822s cmd = [sys.executable, script, "build_ext", "-i"] 13822s p = subprocess.Popen(cmd, 13822s stdout=subprocess.PIPE, 13822s stderr=subprocess.STDOUT) 13822s out, err = p.communicate() 13822s if p.returncode != 0: 13822s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13822s (cmd[4:], asstr(out))) 13822s E RuntimeError: Running distutils build failed: [] 13822s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13822s E 13822s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13822s E of the deprecation of `distutils` itself. It will be removed for 13822s E Python >= 3.12. For older Python versions it will remain present. 13822s E It is recommended to use `setuptools < 60.0` for those Python versions. 13822s E For more details, see: 13822s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13822s E 13822s E 13822s E from numpy.distutils.core import setup 13822s E running build_ext 13822s E running build_src 13822s E INFO: build_src 13822s E INFO: building extension "test_array_from_pyobj_ext" sources 13822s E INFO: build_src: building npy-pkg config files 13822s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13822s E !! 13822s E 13822s E ******************************************************************************** 13822s E Please avoid running ``setup.py`` directly. 13822s E Instead, use pypa/build, pypa/installer or other 13822s E standards-based tools. 13822s E 13822s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13822s E ******************************************************************************** 13822s E 13822s E !! 13822s E self.initialize_options() 13822s E INFO: customize UnixCCompiler 13822s E INFO: customize UnixCCompiler using build_ext 13822s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E creating /tmp/tmppq19o2st/tmp 13822s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E creating /tmp/tmppq19o2st/usr 13822s E creating /tmp/tmppq19o2st/usr/lib 13822s E creating /tmp/tmppq19o2st/usr/lib/python3 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-march=native' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-O3' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-Werror' 13822s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13822s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-vfpv4' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-march=armv8.2-a+fp16' 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13822s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13822s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13822s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13822s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13822s E INFO: building 'test_array_from_pyobj_ext' extension 13822s E INFO: compiling C sources 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13822s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13822s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13822s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13822s E 14 | #include 13822s E | ^~~~~~~~~~ 13822s E In file included from fortranobject.c:2: 13822s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13822s E 7 | #include 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E compilation terminated. 13822s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13822s E INFO: 13822s E ########### EXT COMPILER OPTIMIZATION ########### 13822s E INFO: Platform : 13822s E Architecture: armhf 13822s E Compiler : gcc 13822s E 13822s E CPU baseline : 13822s E Requested : 'min' 13822s E Enabled : none 13822s E Flags : none 13822s E Extra checks: none 13822s E 13822s E CPU dispatch : 13822s E Requested : 'max -xop -fma4' 13822s E Enabled : none 13822s E Generated : none 13822s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13822s 13822s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13822s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13822s d = '/tmp/tmpjj8q074z' 13822s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13822s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13822s err = None 13822s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13822s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s kw = {} 13822s module_name = 'test_array_from_pyobj_ext' 13822s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13822s p = 13822s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13822s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[FLOAT-23seq-F-ro] ______ 13822s 13822s def setup_module(): 13822s """ 13822s Build the required testing extension module 13822s 13822s """ 13822s global wrap 13822s 13822s # Check compiler availability first 13822s if not util.has_c_compiler(): 13822s pytest.skip("No C compiler available") 13822s 13822s if wrap is None: 13822s config_code = """ 13822s config.add_extension('test_array_from_pyobj_ext', 13822s sources=['wrapmodule.c', 'fortranobject.c'], 13822s define_macros=[]) 13822s """ 13822s d = os.path.dirname(__file__) 13822s src = [ 13822s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13822s util.getpath("src", "fortranobject.c"), 13822s util.getpath("src", "fortranobject.h"), 13822s ] 13822s > wrap = util.build_module_distutils(src, config_code, 13822s "test_array_from_pyobj_ext") 13822s 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13822s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13822s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13822s memo[key] = func(*a, **kw) 13822s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13822s func = 13822s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13822s kw = {} 13822s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13822s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13822s 13822s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13822s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13822s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13822s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13822s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13822s 13822s @_memoize 13822s def build_module_distutils(source_files, config_code, module_name, **kw): 13822s """ 13822s Build a module via distutils and import it. 13822s 13822s """ 13822s d = get_module_dir() 13822s 13822s # Copy files 13822s dst_sources = [] 13822s for fn in source_files: 13822s if not os.path.isfile(fn): 13822s raise RuntimeError("%s is not a file" % fn) 13822s dst = os.path.join(d, os.path.basename(fn)) 13822s shutil.copyfile(fn, dst) 13822s dst_sources.append(dst) 13822s 13822s # Build script 13822s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13822s 13822s code = fr""" 13822s import os 13822s import sys 13822s sys.path = {repr(sys.path)} 13822s 13822s def configuration(parent_name='',top_path=None): 13822s from numpy.distutils.misc_util import Configuration 13822s config = Configuration('', parent_name, top_path) 13822s {config_code} 13822s return config 13822s 13822s if __name__ == "__main__": 13822s from numpy.distutils.core import setup 13822s setup(configuration=configuration) 13822s """ 13822s script = os.path.join(d, get_temp_module_name() + ".py") 13822s dst_sources.append(script) 13822s with open(script, "wb") as f: 13822s f.write(asbytes(code)) 13822s 13822s # Build 13822s cwd = os.getcwd() 13822s try: 13822s os.chdir(d) 13822s cmd = [sys.executable, script, "build_ext", "-i"] 13822s p = subprocess.Popen(cmd, 13822s stdout=subprocess.PIPE, 13822s stderr=subprocess.STDOUT) 13822s out, err = p.communicate() 13822s if p.returncode != 0: 13822s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13822s (cmd[4:], asstr(out))) 13822s E RuntimeError: Running distutils build failed: [] 13822s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13822s E 13822s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13822s E of the deprecation of `distutils` itself. It will be removed for 13822s E Python >= 3.12. For older Python versions it will remain present. 13822s E It is recommended to use `setuptools < 60.0` for those Python versions. 13822s E For more details, see: 13822s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13822s E 13822s E 13822s E from numpy.distutils.core import setup 13822s E running build_ext 13822s E running build_src 13822s E INFO: build_src 13822s E INFO: building extension "test_array_from_pyobj_ext" sources 13822s E INFO: build_src: building npy-pkg config files 13822s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13822s E !! 13822s E 13822s E ******************************************************************************** 13822s E Please avoid running ``setup.py`` directly. 13822s E Instead, use pypa/build, pypa/installer or other 13822s E standards-based tools. 13822s E 13822s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13822s E ******************************************************************************** 13822s E 13822s E !! 13822s E self.initialize_options() 13822s E INFO: customize UnixCCompiler 13822s E INFO: customize UnixCCompiler using build_ext 13822s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E creating /tmp/tmppq19o2st/tmp 13822s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E creating /tmp/tmppq19o2st/usr 13822s E creating /tmp/tmppq19o2st/usr/lib 13822s E creating /tmp/tmppq19o2st/usr/lib/python3 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-march=native' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-O3' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-Werror' 13822s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13822s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-vfpv4' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-march=armv8.2-a+fp16' 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13822s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13822s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13822s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13822s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13822s E INFO: building 'test_array_from_pyobj_ext' extension 13822s E INFO: compiling C sources 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13822s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13822s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13822s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13822s E 14 | #include 13822s E | ^~~~~~~~~~ 13822s E In file included from fortranobject.c:2: 13822s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13822s E 7 | #include 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E compilation terminated. 13822s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13822s E INFO: 13822s E ########### EXT COMPILER OPTIMIZATION ########### 13822s E INFO: Platform : 13822s E Architecture: armhf 13822s E Compiler : gcc 13822s E 13822s E CPU baseline : 13822s E Requested : 'min' 13822s E Enabled : none 13822s E Flags : none 13822s E Extra checks: none 13822s E 13822s E CPU dispatch : 13822s E Requested : 'max -xop -fma4' 13822s E Enabled : none 13822s E Generated : none 13822s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13822s 13822s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13822s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13822s d = '/tmp/tmpjj8q074z' 13822s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13822s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13822s err = None 13822s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13822s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s kw = {} 13822s module_name = 'test_array_from_pyobj_ext' 13822s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13822s p = 13822s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13822s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[FLOAT] ___________ 13822s 13822s def setup_module(): 13822s """ 13822s Build the required testing extension module 13822s 13822s """ 13822s global wrap 13822s 13822s # Check compiler availability first 13822s if not util.has_c_compiler(): 13822s pytest.skip("No C compiler available") 13822s 13822s if wrap is None: 13822s config_code = """ 13822s config.add_extension('test_array_from_pyobj_ext', 13822s sources=['wrapmodule.c', 'fortranobject.c'], 13822s define_macros=[]) 13822s """ 13822s d = os.path.dirname(__file__) 13822s src = [ 13822s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13822s util.getpath("src", "fortranobject.c"), 13822s util.getpath("src", "fortranobject.h"), 13822s ] 13822s > wrap = util.build_module_distutils(src, config_code, 13822s "test_array_from_pyobj_ext") 13822s 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13822s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13822s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13822s memo[key] = func(*a, **kw) 13822s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13822s func = 13822s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13822s kw = {} 13822s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13822s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13822s 13822s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13822s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13822s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13822s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13822s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13822s 13822s @_memoize 13822s def build_module_distutils(source_files, config_code, module_name, **kw): 13822s """ 13822s Build a module via distutils and import it. 13822s 13822s """ 13822s d = get_module_dir() 13822s 13822s # Copy files 13822s dst_sources = [] 13822s for fn in source_files: 13822s if not os.path.isfile(fn): 13822s raise RuntimeError("%s is not a file" % fn) 13822s dst = os.path.join(d, os.path.basename(fn)) 13822s shutil.copyfile(fn, dst) 13822s dst_sources.append(dst) 13822s 13822s # Build script 13822s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13822s 13822s code = fr""" 13822s import os 13822s import sys 13822s sys.path = {repr(sys.path)} 13822s 13822s def configuration(parent_name='',top_path=None): 13822s from numpy.distutils.misc_util import Configuration 13822s config = Configuration('', parent_name, top_path) 13822s {config_code} 13822s return config 13822s 13822s if __name__ == "__main__": 13822s from numpy.distutils.core import setup 13822s setup(configuration=configuration) 13822s """ 13822s script = os.path.join(d, get_temp_module_name() + ".py") 13822s dst_sources.append(script) 13822s with open(script, "wb") as f: 13822s f.write(asbytes(code)) 13822s 13822s # Build 13822s cwd = os.getcwd() 13822s try: 13822s os.chdir(d) 13822s cmd = [sys.executable, script, "build_ext", "-i"] 13822s p = subprocess.Popen(cmd, 13822s stdout=subprocess.PIPE, 13822s stderr=subprocess.STDOUT) 13822s out, err = p.communicate() 13822s if p.returncode != 0: 13822s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13822s (cmd[4:], asstr(out))) 13822s E RuntimeError: Running distutils build failed: [] 13822s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13822s E 13822s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13822s E of the deprecation of `distutils` itself. It will be removed for 13822s E Python >= 3.12. For older Python versions it will remain present. 13822s E It is recommended to use `setuptools < 60.0` for those Python versions. 13822s E For more details, see: 13822s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13822s E 13822s E 13822s E from numpy.distutils.core import setup 13822s E running build_ext 13822s E running build_src 13822s E INFO: build_src 13822s E INFO: building extension "test_array_from_pyobj_ext" sources 13822s E INFO: build_src: building npy-pkg config files 13822s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13822s E !! 13822s E 13822s E ******************************************************************************** 13822s E Please avoid running ``setup.py`` directly. 13822s E Instead, use pypa/build, pypa/installer or other 13822s E standards-based tools. 13822s E 13822s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13822s E ******************************************************************************** 13822s E 13822s E !! 13822s E self.initialize_options() 13822s E INFO: customize UnixCCompiler 13822s E INFO: customize UnixCCompiler using build_ext 13822s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E creating /tmp/tmppq19o2st/tmp 13822s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E creating /tmp/tmppq19o2st/usr 13822s E creating /tmp/tmppq19o2st/usr/lib 13822s E creating /tmp/tmppq19o2st/usr/lib/python3 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-march=native' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-O3' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-Werror' 13822s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13822s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-vfpv4' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-march=armv8.2-a+fp16' 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13822s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13822s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13822s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13822s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13822s E INFO: building 'test_array_from_pyobj_ext' extension 13822s E INFO: compiling C sources 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13822s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13822s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13822s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13822s E 14 | #include 13822s E | ^~~~~~~~~~ 13822s E In file included from fortranobject.c:2: 13822s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13822s E 7 | #include 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E compilation terminated. 13822s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13822s E INFO: 13822s E ########### EXT COMPILER OPTIMIZATION ########### 13822s E INFO: Platform : 13822s E Architecture: armhf 13822s E Compiler : gcc 13822s E 13822s E CPU baseline : 13822s E Requested : 'min' 13822s E Enabled : none 13822s E Flags : none 13822s E Extra checks: none 13822s E 13822s E CPU dispatch : 13822s E Requested : 'max -xop -fma4' 13822s E Enabled : none 13822s E Generated : none 13822s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13822s 13822s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13822s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13822s d = '/tmp/tmpjj8q074z' 13822s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13822s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13822s err = None 13822s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13822s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s kw = {} 13822s module_name = 'test_array_from_pyobj_ext' 13822s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13822s p = 13822s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13822s _________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[FLOAT] _________ 13822s 13822s def setup_module(): 13822s """ 13822s Build the required testing extension module 13822s 13822s """ 13822s global wrap 13822s 13822s # Check compiler availability first 13822s if not util.has_c_compiler(): 13822s pytest.skip("No C compiler available") 13822s 13822s if wrap is None: 13822s config_code = """ 13822s config.add_extension('test_array_from_pyobj_ext', 13822s sources=['wrapmodule.c', 'fortranobject.c'], 13822s define_macros=[]) 13822s """ 13822s d = os.path.dirname(__file__) 13822s src = [ 13822s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13822s util.getpath("src", "fortranobject.c"), 13822s util.getpath("src", "fortranobject.h"), 13822s ] 13822s > wrap = util.build_module_distutils(src, config_code, 13822s "test_array_from_pyobj_ext") 13822s 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13822s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13822s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13822s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13822s memo[key] = func(*a, **kw) 13822s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13822s func = 13822s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13822s kw = {} 13822s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13822s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13822s 13822s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13822s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13822s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13822s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13822s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13822s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13822s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13822s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13822s 13822s @_memoize 13822s def build_module_distutils(source_files, config_code, module_name, **kw): 13822s """ 13822s Build a module via distutils and import it. 13822s 13822s """ 13822s d = get_module_dir() 13822s 13822s # Copy files 13822s dst_sources = [] 13822s for fn in source_files: 13822s if not os.path.isfile(fn): 13822s raise RuntimeError("%s is not a file" % fn) 13822s dst = os.path.join(d, os.path.basename(fn)) 13822s shutil.copyfile(fn, dst) 13822s dst_sources.append(dst) 13822s 13822s # Build script 13822s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13822s 13822s code = fr""" 13822s import os 13822s import sys 13822s sys.path = {repr(sys.path)} 13822s 13822s def configuration(parent_name='',top_path=None): 13822s from numpy.distutils.misc_util import Configuration 13822s config = Configuration('', parent_name, top_path) 13822s {config_code} 13822s return config 13822s 13822s if __name__ == "__main__": 13822s from numpy.distutils.core import setup 13822s setup(configuration=configuration) 13822s """ 13822s script = os.path.join(d, get_temp_module_name() + ".py") 13822s dst_sources.append(script) 13822s with open(script, "wb") as f: 13822s f.write(asbytes(code)) 13822s 13822s # Build 13822s cwd = os.getcwd() 13822s try: 13822s os.chdir(d) 13822s cmd = [sys.executable, script, "build_ext", "-i"] 13822s p = subprocess.Popen(cmd, 13822s stdout=subprocess.PIPE, 13822s stderr=subprocess.STDOUT) 13822s out, err = p.communicate() 13822s if p.returncode != 0: 13822s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13822s (cmd[4:], asstr(out))) 13822s E RuntimeError: Running distutils build failed: [] 13822s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13822s E 13822s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13822s E of the deprecation of `distutils` itself. It will be removed for 13822s E Python >= 3.12. For older Python versions it will remain present. 13822s E It is recommended to use `setuptools < 60.0` for those Python versions. 13822s E For more details, see: 13822s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13822s E 13822s E 13822s E from numpy.distutils.core import setup 13822s E running build_ext 13822s E running build_src 13822s E INFO: build_src 13822s E INFO: building extension "test_array_from_pyobj_ext" sources 13822s E INFO: build_src: building npy-pkg config files 13822s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13822s E !! 13822s E 13822s E ******************************************************************************** 13822s E Please avoid running ``setup.py`` directly. 13822s E Instead, use pypa/build, pypa/installer or other 13822s E standards-based tools. 13822s E 13822s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13822s E ******************************************************************************** 13822s E 13822s E !! 13822s E self.initialize_options() 13822s E INFO: customize UnixCCompiler 13822s E INFO: customize UnixCCompiler using build_ext 13822s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E creating /tmp/tmppq19o2st/tmp 13822s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E creating /tmp/tmppq19o2st/usr 13822s E creating /tmp/tmppq19o2st/usr/lib 13822s E creating /tmp/tmppq19o2st/usr/lib/python3 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13822s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-march=native' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-O3' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-Werror' 13822s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13822s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-vfpv4' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13822s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-march=armv8.2-a+fp16' 13822s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/include/python3.12 -c' 13822s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13822s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13822s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13822s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13822s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13822s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13822s E 9 | # include_next 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E 13822s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13822s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13822s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13822s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13822s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13822s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13822s E INFO: building 'test_array_from_pyobj_ext' extension 13822s E INFO: compiling C sources 13822s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13822s E 13822s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13822s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13822s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13822s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13822s E 14 | #include 13822s E | ^~~~~~~~~~ 13822s E In file included from fortranobject.c:2: 13822s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13822s E 7 | #include 13822s E | ^~~~~~~~~~ 13822s E compilation terminated. 13822s E compilation terminated. 13823s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13823s E INFO: 13823s E ########### EXT COMPILER OPTIMIZATION ########### 13823s E INFO: Platform : 13823s E Architecture: armhf 13823s E Compiler : gcc 13823s E 13823s E CPU baseline : 13823s E Requested : 'min' 13823s E Enabled : none 13823s E Flags : none 13823s E Extra checks: none 13823s E 13823s E CPU dispatch : 13823s E Requested : 'max -xop -fma4' 13823s E Enabled : none 13823s E Generated : none 13823s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13823s 13823s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13823s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13823s d = '/tmp/tmpjj8q074z' 13823s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13823s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13823s err = None 13823s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13823s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s kw = {} 13823s module_name = 'test_array_from_pyobj_ext' 13823s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13823s p = 13823s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13823s _________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[FLOAT] _________ 13823s 13823s def setup_module(): 13823s """ 13823s Build the required testing extension module 13823s 13823s """ 13823s global wrap 13823s 13823s # Check compiler availability first 13823s if not util.has_c_compiler(): 13823s pytest.skip("No C compiler available") 13823s 13823s if wrap is None: 13823s config_code = """ 13823s config.add_extension('test_array_from_pyobj_ext', 13823s sources=['wrapmodule.c', 'fortranobject.c'], 13823s define_macros=[]) 13823s """ 13823s d = os.path.dirname(__file__) 13823s src = [ 13823s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13823s util.getpath("src", "fortranobject.c"), 13823s util.getpath("src", "fortranobject.h"), 13823s ] 13823s > wrap = util.build_module_distutils(src, config_code, 13823s "test_array_from_pyobj_ext") 13823s 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13823s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13823s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13823s memo[key] = func(*a, **kw) 13823s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13823s func = 13823s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13823s kw = {} 13823s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13823s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13823s 13823s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13823s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13823s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13823s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13823s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13823s 13823s @_memoize 13823s def build_module_distutils(source_files, config_code, module_name, **kw): 13823s """ 13823s Build a module via distutils and import it. 13823s 13823s """ 13823s d = get_module_dir() 13823s 13823s # Copy files 13823s dst_sources = [] 13823s for fn in source_files: 13823s if not os.path.isfile(fn): 13823s raise RuntimeError("%s is not a file" % fn) 13823s dst = os.path.join(d, os.path.basename(fn)) 13823s shutil.copyfile(fn, dst) 13823s dst_sources.append(dst) 13823s 13823s # Build script 13823s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13823s 13823s code = fr""" 13823s import os 13823s import sys 13823s sys.path = {repr(sys.path)} 13823s 13823s def configuration(parent_name='',top_path=None): 13823s from numpy.distutils.misc_util import Configuration 13823s config = Configuration('', parent_name, top_path) 13823s {config_code} 13823s return config 13823s 13823s if __name__ == "__main__": 13823s from numpy.distutils.core import setup 13823s setup(configuration=configuration) 13823s """ 13823s script = os.path.join(d, get_temp_module_name() + ".py") 13823s dst_sources.append(script) 13823s with open(script, "wb") as f: 13823s f.write(asbytes(code)) 13823s 13823s # Build 13823s cwd = os.getcwd() 13823s try: 13823s os.chdir(d) 13823s cmd = [sys.executable, script, "build_ext", "-i"] 13823s p = subprocess.Popen(cmd, 13823s stdout=subprocess.PIPE, 13823s stderr=subprocess.STDOUT) 13823s out, err = p.communicate() 13823s if p.returncode != 0: 13823s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13823s (cmd[4:], asstr(out))) 13823s E RuntimeError: Running distutils build failed: [] 13823s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13823s E 13823s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13823s E of the deprecation of `distutils` itself. It will be removed for 13823s E Python >= 3.12. For older Python versions it will remain present. 13823s E It is recommended to use `setuptools < 60.0` for those Python versions. 13823s E For more details, see: 13823s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13823s E 13823s E 13823s E from numpy.distutils.core import setup 13823s E running build_ext 13823s E running build_src 13823s E INFO: build_src 13823s E INFO: building extension "test_array_from_pyobj_ext" sources 13823s E INFO: build_src: building npy-pkg config files 13823s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13823s E !! 13823s E 13823s E ******************************************************************************** 13823s E Please avoid running ``setup.py`` directly. 13823s E Instead, use pypa/build, pypa/installer or other 13823s E standards-based tools. 13823s E 13823s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13823s E ******************************************************************************** 13823s E 13823s E !! 13823s E self.initialize_options() 13823s E INFO: customize UnixCCompiler 13823s E INFO: customize UnixCCompiler using build_ext 13823s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E creating /tmp/tmppq19o2st/tmp 13823s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E creating /tmp/tmppq19o2st/usr 13823s E creating /tmp/tmppq19o2st/usr/lib 13823s E creating /tmp/tmppq19o2st/usr/lib/python3 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-march=native' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-O3' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-Werror' 13823s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13823s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-vfpv4' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-march=armv8.2-a+fp16' 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13823s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13823s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13823s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13823s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13823s E INFO: building 'test_array_from_pyobj_ext' extension 13823s E INFO: compiling C sources 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13823s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13823s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13823s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13823s E 14 | #include 13823s E | ^~~~~~~~~~ 13823s E In file included from fortranobject.c:2: 13823s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13823s E 7 | #include 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E compilation terminated. 13823s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13823s E INFO: 13823s E ########### EXT COMPILER OPTIMIZATION ########### 13823s E INFO: Platform : 13823s E Architecture: armhf 13823s E Compiler : gcc 13823s E 13823s E CPU baseline : 13823s E Requested : 'min' 13823s E Enabled : none 13823s E Flags : none 13823s E Extra checks: none 13823s E 13823s E CPU dispatch : 13823s E Requested : 'max -xop -fma4' 13823s E Enabled : none 13823s E Generated : none 13823s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13823s 13823s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13823s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13823s d = '/tmp/tmpjj8q074z' 13823s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13823s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13823s err = None 13823s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13823s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s kw = {} 13823s module_name = 'test_array_from_pyobj_ext' 13823s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13823s p = 13823s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13823s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[FLOAT] _____ 13823s 13823s def setup_module(): 13823s """ 13823s Build the required testing extension module 13823s 13823s """ 13823s global wrap 13823s 13823s # Check compiler availability first 13823s if not util.has_c_compiler(): 13823s pytest.skip("No C compiler available") 13823s 13823s if wrap is None: 13823s config_code = """ 13823s config.add_extension('test_array_from_pyobj_ext', 13823s sources=['wrapmodule.c', 'fortranobject.c'], 13823s define_macros=[]) 13823s """ 13823s d = os.path.dirname(__file__) 13823s src = [ 13823s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13823s util.getpath("src", "fortranobject.c"), 13823s util.getpath("src", "fortranobject.h"), 13823s ] 13823s > wrap = util.build_module_distutils(src, config_code, 13823s "test_array_from_pyobj_ext") 13823s 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13823s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13823s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13823s memo[key] = func(*a, **kw) 13823s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13823s func = 13823s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13823s kw = {} 13823s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13823s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13823s 13823s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13823s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13823s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13823s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13823s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13823s 13823s @_memoize 13823s def build_module_distutils(source_files, config_code, module_name, **kw): 13823s """ 13823s Build a module via distutils and import it. 13823s 13823s """ 13823s d = get_module_dir() 13823s 13823s # Copy files 13823s dst_sources = [] 13823s for fn in source_files: 13823s if not os.path.isfile(fn): 13823s raise RuntimeError("%s is not a file" % fn) 13823s dst = os.path.join(d, os.path.basename(fn)) 13823s shutil.copyfile(fn, dst) 13823s dst_sources.append(dst) 13823s 13823s # Build script 13823s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13823s 13823s code = fr""" 13823s import os 13823s import sys 13823s sys.path = {repr(sys.path)} 13823s 13823s def configuration(parent_name='',top_path=None): 13823s from numpy.distutils.misc_util import Configuration 13823s config = Configuration('', parent_name, top_path) 13823s {config_code} 13823s return config 13823s 13823s if __name__ == "__main__": 13823s from numpy.distutils.core import setup 13823s setup(configuration=configuration) 13823s """ 13823s script = os.path.join(d, get_temp_module_name() + ".py") 13823s dst_sources.append(script) 13823s with open(script, "wb") as f: 13823s f.write(asbytes(code)) 13823s 13823s # Build 13823s cwd = os.getcwd() 13823s try: 13823s os.chdir(d) 13823s cmd = [sys.executable, script, "build_ext", "-i"] 13823s p = subprocess.Popen(cmd, 13823s stdout=subprocess.PIPE, 13823s stderr=subprocess.STDOUT) 13823s out, err = p.communicate() 13823s if p.returncode != 0: 13823s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13823s (cmd[4:], asstr(out))) 13823s E RuntimeError: Running distutils build failed: [] 13823s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13823s E 13823s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13823s E of the deprecation of `distutils` itself. It will be removed for 13823s E Python >= 3.12. For older Python versions it will remain present. 13823s E It is recommended to use `setuptools < 60.0` for those Python versions. 13823s E For more details, see: 13823s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13823s E 13823s E 13823s E from numpy.distutils.core import setup 13823s E running build_ext 13823s E running build_src 13823s E INFO: build_src 13823s E INFO: building extension "test_array_from_pyobj_ext" sources 13823s E INFO: build_src: building npy-pkg config files 13823s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13823s E !! 13823s E 13823s E ******************************************************************************** 13823s E Please avoid running ``setup.py`` directly. 13823s E Instead, use pypa/build, pypa/installer or other 13823s E standards-based tools. 13823s E 13823s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13823s E ******************************************************************************** 13823s E 13823s E !! 13823s E self.initialize_options() 13823s E INFO: customize UnixCCompiler 13823s E INFO: customize UnixCCompiler using build_ext 13823s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E creating /tmp/tmppq19o2st/tmp 13823s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E creating /tmp/tmppq19o2st/usr 13823s E creating /tmp/tmppq19o2st/usr/lib 13823s E creating /tmp/tmppq19o2st/usr/lib/python3 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-march=native' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-O3' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-Werror' 13823s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13823s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-vfpv4' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-march=armv8.2-a+fp16' 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13823s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13823s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13823s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13823s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13823s E INFO: building 'test_array_from_pyobj_ext' extension 13823s E INFO: compiling C sources 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13823s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13823s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13823s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13823s E 14 | #include 13823s E | ^~~~~~~~~~ 13823s E In file included from fortranobject.c:2: 13823s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13823s E 7 | #include 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E compilation terminated. 13823s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13823s E INFO: 13823s E ########### EXT COMPILER OPTIMIZATION ########### 13823s E INFO: Platform : 13823s E Architecture: armhf 13823s E Compiler : gcc 13823s E 13823s E CPU baseline : 13823s E Requested : 'min' 13823s E Enabled : none 13823s E Flags : none 13823s E Extra checks: none 13823s E 13823s E CPU dispatch : 13823s E Requested : 'max -xop -fma4' 13823s E Enabled : none 13823s E Generated : none 13823s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13823s 13823s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13823s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13823s d = '/tmp/tmpjj8q074z' 13823s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13823s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13823s err = None 13823s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13823s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s kw = {} 13823s module_name = 'test_array_from_pyobj_ext' 13823s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13823s p = 13823s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13823s ________ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[FLOAT] ________ 13823s 13823s def setup_module(): 13823s """ 13823s Build the required testing extension module 13823s 13823s """ 13823s global wrap 13823s 13823s # Check compiler availability first 13823s if not util.has_c_compiler(): 13823s pytest.skip("No C compiler available") 13823s 13823s if wrap is None: 13823s config_code = """ 13823s config.add_extension('test_array_from_pyobj_ext', 13823s sources=['wrapmodule.c', 'fortranobject.c'], 13823s define_macros=[]) 13823s """ 13823s d = os.path.dirname(__file__) 13823s src = [ 13823s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13823s util.getpath("src", "fortranobject.c"), 13823s util.getpath("src", "fortranobject.h"), 13823s ] 13823s > wrap = util.build_module_distutils(src, config_code, 13823s "test_array_from_pyobj_ext") 13823s 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13823s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13823s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13823s memo[key] = func(*a, **kw) 13823s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13823s func = 13823s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13823s kw = {} 13823s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13823s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13823s 13823s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13823s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13823s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13823s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13823s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13823s 13823s @_memoize 13823s def build_module_distutils(source_files, config_code, module_name, **kw): 13823s """ 13823s Build a module via distutils and import it. 13823s 13823s """ 13823s d = get_module_dir() 13823s 13823s # Copy files 13823s dst_sources = [] 13823s for fn in source_files: 13823s if not os.path.isfile(fn): 13823s raise RuntimeError("%s is not a file" % fn) 13823s dst = os.path.join(d, os.path.basename(fn)) 13823s shutil.copyfile(fn, dst) 13823s dst_sources.append(dst) 13823s 13823s # Build script 13823s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13823s 13823s code = fr""" 13823s import os 13823s import sys 13823s sys.path = {repr(sys.path)} 13823s 13823s def configuration(parent_name='',top_path=None): 13823s from numpy.distutils.misc_util import Configuration 13823s config = Configuration('', parent_name, top_path) 13823s {config_code} 13823s return config 13823s 13823s if __name__ == "__main__": 13823s from numpy.distutils.core import setup 13823s setup(configuration=configuration) 13823s """ 13823s script = os.path.join(d, get_temp_module_name() + ".py") 13823s dst_sources.append(script) 13823s with open(script, "wb") as f: 13823s f.write(asbytes(code)) 13823s 13823s # Build 13823s cwd = os.getcwd() 13823s try: 13823s os.chdir(d) 13823s cmd = [sys.executable, script, "build_ext", "-i"] 13823s p = subprocess.Popen(cmd, 13823s stdout=subprocess.PIPE, 13823s stderr=subprocess.STDOUT) 13823s out, err = p.communicate() 13823s if p.returncode != 0: 13823s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13823s (cmd[4:], asstr(out))) 13823s E RuntimeError: Running distutils build failed: [] 13823s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13823s E 13823s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13823s E of the deprecation of `distutils` itself. It will be removed for 13823s E Python >= 3.12. For older Python versions it will remain present. 13823s E It is recommended to use `setuptools < 60.0` for those Python versions. 13823s E For more details, see: 13823s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13823s E 13823s E 13823s E from numpy.distutils.core import setup 13823s E running build_ext 13823s E running build_src 13823s E INFO: build_src 13823s E INFO: building extension "test_array_from_pyobj_ext" sources 13823s E INFO: build_src: building npy-pkg config files 13823s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13823s E !! 13823s E 13823s E ******************************************************************************** 13823s E Please avoid running ``setup.py`` directly. 13823s E Instead, use pypa/build, pypa/installer or other 13823s E standards-based tools. 13823s E 13823s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13823s E ******************************************************************************** 13823s E 13823s E !! 13823s E self.initialize_options() 13823s E INFO: customize UnixCCompiler 13823s E INFO: customize UnixCCompiler using build_ext 13823s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E creating /tmp/tmppq19o2st/tmp 13823s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E creating /tmp/tmppq19o2st/usr 13823s E creating /tmp/tmppq19o2st/usr/lib 13823s E creating /tmp/tmppq19o2st/usr/lib/python3 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13823s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-march=native' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-O3' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-Werror' 13823s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13823s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-vfpv4' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13823s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-march=armv8.2-a+fp16' 13823s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/include/python3.12 -c' 13823s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13823s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13823s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13823s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13823s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13823s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13823s E 9 | # include_next 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E 13823s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13823s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13823s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13823s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13823s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13823s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13823s E INFO: building 'test_array_from_pyobj_ext' extension 13823s E INFO: compiling C sources 13823s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13823s E 13823s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13823s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13823s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13823s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13823s E 14 | #include 13823s E | ^~~~~~~~~~ 13823s E In file included from fortranobject.c:2: 13823s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13823s E 7 | #include 13823s E | ^~~~~~~~~~ 13823s E compilation terminated. 13823s E compilation terminated. 13823s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13823s E INFO: 13823s E ########### EXT COMPILER OPTIMIZATION ########### 13823s E INFO: Platform : 13823s E Architecture: armhf 13823s E Compiler : gcc 13823s E 13823s E CPU baseline : 13823s E Requested : 'min' 13823s E Enabled : none 13823s E Flags : none 13823s E Extra checks: none 13823s E 13823s E CPU dispatch : 13823s E Requested : 'max -xop -fma4' 13823s E Enabled : none 13823s E Generated : none 13823s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13823s 13823s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13823s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13823s d = '/tmp/tmpjj8q074z' 13823s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13823s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13823s err = None 13823s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13823s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s kw = {} 13823s module_name = 'test_array_from_pyobj_ext' 13823s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13823s p = 13823s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13823s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[FLOAT] _______ 13823s 13823s def setup_module(): 13823s """ 13823s Build the required testing extension module 13823s 13823s """ 13823s global wrap 13823s 13823s # Check compiler availability first 13823s if not util.has_c_compiler(): 13823s pytest.skip("No C compiler available") 13823s 13823s if wrap is None: 13823s config_code = """ 13823s config.add_extension('test_array_from_pyobj_ext', 13823s sources=['wrapmodule.c', 'fortranobject.c'], 13823s define_macros=[]) 13823s """ 13823s d = os.path.dirname(__file__) 13823s src = [ 13823s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13823s util.getpath("src", "fortranobject.c"), 13823s util.getpath("src", "fortranobject.h"), 13823s ] 13823s > wrap = util.build_module_distutils(src, config_code, 13823s "test_array_from_pyobj_ext") 13823s 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13823s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13823s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13823s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13823s memo[key] = func(*a, **kw) 13823s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13823s func = 13823s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13823s kw = {} 13823s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13823s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13823s 13823s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13823s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13823s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13823s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13823s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13823s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13823s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13823s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13823s 13823s @_memoize 13823s def build_module_distutils(source_files, config_code, module_name, **kw): 13823s """ 13823s Build a module via distutils and import it. 13823s 13823s """ 13823s d = get_module_dir() 13823s 13823s # Copy files 13823s dst_sources = [] 13823s for fn in source_files: 13823s if not os.path.isfile(fn): 13823s raise RuntimeError("%s is not a file" % fn) 13823s dst = os.path.join(d, os.path.basename(fn)) 13823s shutil.copyfile(fn, dst) 13823s dst_sources.append(dst) 13823s 13823s # Build script 13823s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13823s 13823s code = fr""" 13823s import os 13823s import sys 13823s sys.path = {repr(sys.path)} 13823s 13823s def configuration(parent_name='',top_path=None): 13823s from numpy.distutils.misc_util import Configuration 13823s config = Configuration('', parent_name, top_path) 13823s {config_code} 13823s return config 13823s 13823s if __name__ == "__main__": 13823s from numpy.distutils.core import setup 13823s setup(configuration=configuration) 13823s """ 13823s script = os.path.join(d, get_temp_module_name() + ".py") 13823s dst_sources.append(script) 13823s with open(script, "wb") as f: 13823s f.write(asbytes(code)) 13823s 13823s # Build 13823s cwd = os.getcwd() 13823s try: 13823s os.chdir(d) 13823s cmd = [sys.executable, script, "build_ext", "-i"] 13823s p = subprocess.Popen(cmd, 13823s stdout=subprocess.PIPE, 13823s stderr=subprocess.STDOUT) 13823s out, err = p.communicate() 13823s if p.returncode != 0: 13823s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13823s (cmd[4:], asstr(out))) 13823s E RuntimeError: Running distutils build failed: [] 13823s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13823s E 13823s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13823s E of the deprecation of `distutils` itself. It will be removed for 13823s E Python >= 3.12. For older Python versions it will remain present. 13823s E It is recommended to use `setuptools < 60.0` for those Python versions. 13823s E For more details, see: 13823s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13823s E 13823s E 13823s E from numpy.distutils.core import setup 13823s E running build_ext 13823s E running build_src 13823s E INFO: build_src 13823s E INFO: building extension "test_array_from_pyobj_ext" sources 13823s E INFO: build_src: building npy-pkg config files 13823s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13823s E !! 13823s E 13823s E ******************************************************************************** 13823s E Please avoid running ``setup.py`` directly. 13823s E Instead, use pypa/build, pypa/installer or other 13823s E standards-based tools. 13824s E 13824s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13824s E ******************************************************************************** 13824s E 13824s E !! 13824s E self.initialize_options() 13824s E INFO: customize UnixCCompiler 13824s E INFO: customize UnixCCompiler using build_ext 13824s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/tmp 13824s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/usr 13824s E creating /tmp/tmppq19o2st/usr/lib 13824s E creating /tmp/tmppq19o2st/usr/lib/python3 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=native' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-O3' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-Werror' 13824s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13824s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-vfpv4' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=armv8.2-a+fp16' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13824s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13824s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13824s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13824s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13824s E INFO: building 'test_array_from_pyobj_ext' extension 13824s E INFO: compiling C sources 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13824s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13824s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13824s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13824s E 14 | #include 13824s E | ^~~~~~~~~~ 13824s E In file included from fortranobject.c:2: 13824s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13824s E 7 | #include 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E compilation terminated. 13824s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13824s E INFO: 13824s E ########### EXT COMPILER OPTIMIZATION ########### 13824s E INFO: Platform : 13824s E Architecture: armhf 13824s E Compiler : gcc 13824s E 13824s E CPU baseline : 13824s E Requested : 'min' 13824s E Enabled : none 13824s E Flags : none 13824s E Extra checks: none 13824s E 13824s E CPU dispatch : 13824s E Requested : 'max -xop -fma4' 13824s E Enabled : none 13824s E Generated : none 13824s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13824s 13824s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13824s d = '/tmp/tmpjj8q074z' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s err = None 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s kw = {} 13824s module_name = 'test_array_from_pyobj_ext' 13824s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13824s p = 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13824s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[FLOAT] ______ 13824s 13824s def setup_module(): 13824s """ 13824s Build the required testing extension module 13824s 13824s """ 13824s global wrap 13824s 13824s # Check compiler availability first 13824s if not util.has_c_compiler(): 13824s pytest.skip("No C compiler available") 13824s 13824s if wrap is None: 13824s config_code = """ 13824s config.add_extension('test_array_from_pyobj_ext', 13824s sources=['wrapmodule.c', 'fortranobject.c'], 13824s define_macros=[]) 13824s """ 13824s d = os.path.dirname(__file__) 13824s src = [ 13824s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13824s util.getpath("src", "fortranobject.c"), 13824s util.getpath("src", "fortranobject.h"), 13824s ] 13824s > wrap = util.build_module_distutils(src, config_code, 13824s "test_array_from_pyobj_ext") 13824s 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13824s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13824s memo[key] = func(*a, **kw) 13824s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13824s func = 13824s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13824s kw = {} 13824s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s 13824s @_memoize 13824s def build_module_distutils(source_files, config_code, module_name, **kw): 13824s """ 13824s Build a module via distutils and import it. 13824s 13824s """ 13824s d = get_module_dir() 13824s 13824s # Copy files 13824s dst_sources = [] 13824s for fn in source_files: 13824s if not os.path.isfile(fn): 13824s raise RuntimeError("%s is not a file" % fn) 13824s dst = os.path.join(d, os.path.basename(fn)) 13824s shutil.copyfile(fn, dst) 13824s dst_sources.append(dst) 13824s 13824s # Build script 13824s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13824s 13824s code = fr""" 13824s import os 13824s import sys 13824s sys.path = {repr(sys.path)} 13824s 13824s def configuration(parent_name='',top_path=None): 13824s from numpy.distutils.misc_util import Configuration 13824s config = Configuration('', parent_name, top_path) 13824s {config_code} 13824s return config 13824s 13824s if __name__ == "__main__": 13824s from numpy.distutils.core import setup 13824s setup(configuration=configuration) 13824s """ 13824s script = os.path.join(d, get_temp_module_name() + ".py") 13824s dst_sources.append(script) 13824s with open(script, "wb") as f: 13824s f.write(asbytes(code)) 13824s 13824s # Build 13824s cwd = os.getcwd() 13824s try: 13824s os.chdir(d) 13824s cmd = [sys.executable, script, "build_ext", "-i"] 13824s p = subprocess.Popen(cmd, 13824s stdout=subprocess.PIPE, 13824s stderr=subprocess.STDOUT) 13824s out, err = p.communicate() 13824s if p.returncode != 0: 13824s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13824s (cmd[4:], asstr(out))) 13824s E RuntimeError: Running distutils build failed: [] 13824s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13824s E 13824s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13824s E of the deprecation of `distutils` itself. It will be removed for 13824s E Python >= 3.12. For older Python versions it will remain present. 13824s E It is recommended to use `setuptools < 60.0` for those Python versions. 13824s E For more details, see: 13824s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13824s E 13824s E 13824s E from numpy.distutils.core import setup 13824s E running build_ext 13824s E running build_src 13824s E INFO: build_src 13824s E INFO: building extension "test_array_from_pyobj_ext" sources 13824s E INFO: build_src: building npy-pkg config files 13824s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13824s E !! 13824s E 13824s E ******************************************************************************** 13824s E Please avoid running ``setup.py`` directly. 13824s E Instead, use pypa/build, pypa/installer or other 13824s E standards-based tools. 13824s E 13824s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13824s E ******************************************************************************** 13824s E 13824s E !! 13824s E self.initialize_options() 13824s E INFO: customize UnixCCompiler 13824s E INFO: customize UnixCCompiler using build_ext 13824s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/tmp 13824s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/usr 13824s E creating /tmp/tmppq19o2st/usr/lib 13824s E creating /tmp/tmppq19o2st/usr/lib/python3 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=native' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-O3' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-Werror' 13824s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13824s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-vfpv4' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=armv8.2-a+fp16' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13824s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13824s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13824s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13824s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13824s E INFO: building 'test_array_from_pyobj_ext' extension 13824s E INFO: compiling C sources 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13824s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13824s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13824s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13824s E 14 | #include 13824s E | ^~~~~~~~~~ 13824s E In file included from fortranobject.c:2: 13824s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13824s E 7 | #include 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E compilation terminated. 13824s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13824s E INFO: 13824s E ########### EXT COMPILER OPTIMIZATION ########### 13824s E INFO: Platform : 13824s E Architecture: armhf 13824s E Compiler : gcc 13824s E 13824s E CPU baseline : 13824s E Requested : 'min' 13824s E Enabled : none 13824s E Flags : none 13824s E Extra checks: none 13824s E 13824s E CPU dispatch : 13824s E Requested : 'max -xop -fma4' 13824s E Enabled : none 13824s E Generated : none 13824s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13824s 13824s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13824s d = '/tmp/tmpjj8q074z' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s err = None 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s kw = {} 13824s module_name = 'test_array_from_pyobj_ext' 13824s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13824s p = 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13824s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[FLOAT] ______ 13824s 13824s def setup_module(): 13824s """ 13824s Build the required testing extension module 13824s 13824s """ 13824s global wrap 13824s 13824s # Check compiler availability first 13824s if not util.has_c_compiler(): 13824s pytest.skip("No C compiler available") 13824s 13824s if wrap is None: 13824s config_code = """ 13824s config.add_extension('test_array_from_pyobj_ext', 13824s sources=['wrapmodule.c', 'fortranobject.c'], 13824s define_macros=[]) 13824s """ 13824s d = os.path.dirname(__file__) 13824s src = [ 13824s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13824s util.getpath("src", "fortranobject.c"), 13824s util.getpath("src", "fortranobject.h"), 13824s ] 13824s > wrap = util.build_module_distutils(src, config_code, 13824s "test_array_from_pyobj_ext") 13824s 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13824s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13824s memo[key] = func(*a, **kw) 13824s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13824s func = 13824s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13824s kw = {} 13824s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s 13824s @_memoize 13824s def build_module_distutils(source_files, config_code, module_name, **kw): 13824s """ 13824s Build a module via distutils and import it. 13824s 13824s """ 13824s d = get_module_dir() 13824s 13824s # Copy files 13824s dst_sources = [] 13824s for fn in source_files: 13824s if not os.path.isfile(fn): 13824s raise RuntimeError("%s is not a file" % fn) 13824s dst = os.path.join(d, os.path.basename(fn)) 13824s shutil.copyfile(fn, dst) 13824s dst_sources.append(dst) 13824s 13824s # Build script 13824s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13824s 13824s code = fr""" 13824s import os 13824s import sys 13824s sys.path = {repr(sys.path)} 13824s 13824s def configuration(parent_name='',top_path=None): 13824s from numpy.distutils.misc_util import Configuration 13824s config = Configuration('', parent_name, top_path) 13824s {config_code} 13824s return config 13824s 13824s if __name__ == "__main__": 13824s from numpy.distutils.core import setup 13824s setup(configuration=configuration) 13824s """ 13824s script = os.path.join(d, get_temp_module_name() + ".py") 13824s dst_sources.append(script) 13824s with open(script, "wb") as f: 13824s f.write(asbytes(code)) 13824s 13824s # Build 13824s cwd = os.getcwd() 13824s try: 13824s os.chdir(d) 13824s cmd = [sys.executable, script, "build_ext", "-i"] 13824s p = subprocess.Popen(cmd, 13824s stdout=subprocess.PIPE, 13824s stderr=subprocess.STDOUT) 13824s out, err = p.communicate() 13824s if p.returncode != 0: 13824s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13824s (cmd[4:], asstr(out))) 13824s E RuntimeError: Running distutils build failed: [] 13824s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13824s E 13824s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13824s E of the deprecation of `distutils` itself. It will be removed for 13824s E Python >= 3.12. For older Python versions it will remain present. 13824s E It is recommended to use `setuptools < 60.0` for those Python versions. 13824s E For more details, see: 13824s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13824s E 13824s E 13824s E from numpy.distutils.core import setup 13824s E running build_ext 13824s E running build_src 13824s E INFO: build_src 13824s E INFO: building extension "test_array_from_pyobj_ext" sources 13824s E INFO: build_src: building npy-pkg config files 13824s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13824s E !! 13824s E 13824s E ******************************************************************************** 13824s E Please avoid running ``setup.py`` directly. 13824s E Instead, use pypa/build, pypa/installer or other 13824s E standards-based tools. 13824s E 13824s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13824s E ******************************************************************************** 13824s E 13824s E !! 13824s E self.initialize_options() 13824s E INFO: customize UnixCCompiler 13824s E INFO: customize UnixCCompiler using build_ext 13824s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/tmp 13824s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/usr 13824s E creating /tmp/tmppq19o2st/usr/lib 13824s E creating /tmp/tmppq19o2st/usr/lib/python3 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=native' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-O3' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-Werror' 13824s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13824s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-vfpv4' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=armv8.2-a+fp16' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13824s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13824s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13824s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13824s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13824s E INFO: building 'test_array_from_pyobj_ext' extension 13824s E INFO: compiling C sources 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13824s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13824s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13824s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13824s E 14 | #include 13824s E | ^~~~~~~~~~ 13824s E In file included from fortranobject.c:2: 13824s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13824s E 7 | #include 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E compilation terminated. 13824s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13824s E INFO: 13824s E ########### EXT COMPILER OPTIMIZATION ########### 13824s E INFO: Platform : 13824s E Architecture: armhf 13824s E Compiler : gcc 13824s E 13824s E CPU baseline : 13824s E Requested : 'min' 13824s E Enabled : none 13824s E Flags : none 13824s E Extra checks: none 13824s E 13824s E CPU dispatch : 13824s E Requested : 'max -xop -fma4' 13824s E Enabled : none 13824s E Generated : none 13824s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13824s 13824s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13824s d = '/tmp/tmpjj8q074z' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s err = None 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s kw = {} 13824s module_name = 'test_array_from_pyobj_ext' 13824s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13824s p = 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13824s ___ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[FLOAT] ___ 13824s 13824s def setup_module(): 13824s """ 13824s Build the required testing extension module 13824s 13824s """ 13824s global wrap 13824s 13824s # Check compiler availability first 13824s if not util.has_c_compiler(): 13824s pytest.skip("No C compiler available") 13824s 13824s if wrap is None: 13824s config_code = """ 13824s config.add_extension('test_array_from_pyobj_ext', 13824s sources=['wrapmodule.c', 'fortranobject.c'], 13824s define_macros=[]) 13824s """ 13824s d = os.path.dirname(__file__) 13824s src = [ 13824s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13824s util.getpath("src", "fortranobject.c"), 13824s util.getpath("src", "fortranobject.h"), 13824s ] 13824s > wrap = util.build_module_distutils(src, config_code, 13824s "test_array_from_pyobj_ext") 13824s 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13824s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13824s memo[key] = func(*a, **kw) 13824s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13824s func = 13824s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13824s kw = {} 13824s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s 13824s @_memoize 13824s def build_module_distutils(source_files, config_code, module_name, **kw): 13824s """ 13824s Build a module via distutils and import it. 13824s 13824s """ 13824s d = get_module_dir() 13824s 13824s # Copy files 13824s dst_sources = [] 13824s for fn in source_files: 13824s if not os.path.isfile(fn): 13824s raise RuntimeError("%s is not a file" % fn) 13824s dst = os.path.join(d, os.path.basename(fn)) 13824s shutil.copyfile(fn, dst) 13824s dst_sources.append(dst) 13824s 13824s # Build script 13824s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13824s 13824s code = fr""" 13824s import os 13824s import sys 13824s sys.path = {repr(sys.path)} 13824s 13824s def configuration(parent_name='',top_path=None): 13824s from numpy.distutils.misc_util import Configuration 13824s config = Configuration('', parent_name, top_path) 13824s {config_code} 13824s return config 13824s 13824s if __name__ == "__main__": 13824s from numpy.distutils.core import setup 13824s setup(configuration=configuration) 13824s """ 13824s script = os.path.join(d, get_temp_module_name() + ".py") 13824s dst_sources.append(script) 13824s with open(script, "wb") as f: 13824s f.write(asbytes(code)) 13824s 13824s # Build 13824s cwd = os.getcwd() 13824s try: 13824s os.chdir(d) 13824s cmd = [sys.executable, script, "build_ext", "-i"] 13824s p = subprocess.Popen(cmd, 13824s stdout=subprocess.PIPE, 13824s stderr=subprocess.STDOUT) 13824s out, err = p.communicate() 13824s if p.returncode != 0: 13824s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13824s (cmd[4:], asstr(out))) 13824s E RuntimeError: Running distutils build failed: [] 13824s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13824s E 13824s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13824s E of the deprecation of `distutils` itself. It will be removed for 13824s E Python >= 3.12. For older Python versions it will remain present. 13824s E It is recommended to use `setuptools < 60.0` for those Python versions. 13824s E For more details, see: 13824s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13824s E 13824s E 13824s E from numpy.distutils.core import setup 13824s E running build_ext 13824s E running build_src 13824s E INFO: build_src 13824s E INFO: building extension "test_array_from_pyobj_ext" sources 13824s E INFO: build_src: building npy-pkg config files 13824s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13824s E !! 13824s E 13824s E ******************************************************************************** 13824s E Please avoid running ``setup.py`` directly. 13824s E Instead, use pypa/build, pypa/installer or other 13824s E standards-based tools. 13824s E 13824s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13824s E ******************************************************************************** 13824s E 13824s E !! 13824s E self.initialize_options() 13824s E INFO: customize UnixCCompiler 13824s E INFO: customize UnixCCompiler using build_ext 13824s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/tmp 13824s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/usr 13824s E creating /tmp/tmppq19o2st/usr/lib 13824s E creating /tmp/tmppq19o2st/usr/lib/python3 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=native' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-O3' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-Werror' 13824s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13824s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-vfpv4' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=armv8.2-a+fp16' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13824s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13824s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13824s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13824s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13824s E INFO: building 'test_array_from_pyobj_ext' extension 13824s E INFO: compiling C sources 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13824s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13824s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13824s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13824s E 14 | #include 13824s E | ^~~~~~~~~~ 13824s E In file included from fortranobject.c:2: 13824s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13824s E 7 | #include 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E compilation terminated. 13824s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13824s E INFO: 13824s E ########### EXT COMPILER OPTIMIZATION ########### 13824s E INFO: Platform : 13824s E Architecture: armhf 13824s E Compiler : gcc 13824s E 13824s E CPU baseline : 13824s E Requested : 'min' 13824s E Enabled : none 13824s E Flags : none 13824s E Extra checks: none 13824s E 13824s E CPU dispatch : 13824s E Requested : 'max -xop -fma4' 13824s E Enabled : none 13824s E Generated : none 13824s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13824s 13824s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13824s d = '/tmp/tmpjj8q074z' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s err = None 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s kw = {} 13824s module_name = 'test_array_from_pyobj_ext' 13824s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13824s p = 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13824s ___ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[FLOAT] ___ 13824s 13824s def setup_module(): 13824s """ 13824s Build the required testing extension module 13824s 13824s """ 13824s global wrap 13824s 13824s # Check compiler availability first 13824s if not util.has_c_compiler(): 13824s pytest.skip("No C compiler available") 13824s 13824s if wrap is None: 13824s config_code = """ 13824s config.add_extension('test_array_from_pyobj_ext', 13824s sources=['wrapmodule.c', 'fortranobject.c'], 13824s define_macros=[]) 13824s """ 13824s d = os.path.dirname(__file__) 13824s src = [ 13824s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13824s util.getpath("src", "fortranobject.c"), 13824s util.getpath("src", "fortranobject.h"), 13824s ] 13824s > wrap = util.build_module_distutils(src, config_code, 13824s "test_array_from_pyobj_ext") 13824s 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13824s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13824s memo[key] = func(*a, **kw) 13824s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13824s func = 13824s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13824s kw = {} 13824s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s 13824s @_memoize 13824s def build_module_distutils(source_files, config_code, module_name, **kw): 13824s """ 13824s Build a module via distutils and import it. 13824s 13824s """ 13824s d = get_module_dir() 13824s 13824s # Copy files 13824s dst_sources = [] 13824s for fn in source_files: 13824s if not os.path.isfile(fn): 13824s raise RuntimeError("%s is not a file" % fn) 13824s dst = os.path.join(d, os.path.basename(fn)) 13824s shutil.copyfile(fn, dst) 13824s dst_sources.append(dst) 13824s 13824s # Build script 13824s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13824s 13824s code = fr""" 13824s import os 13824s import sys 13824s sys.path = {repr(sys.path)} 13824s 13824s def configuration(parent_name='',top_path=None): 13824s from numpy.distutils.misc_util import Configuration 13824s config = Configuration('', parent_name, top_path) 13824s {config_code} 13824s return config 13824s 13824s if __name__ == "__main__": 13824s from numpy.distutils.core import setup 13824s setup(configuration=configuration) 13824s """ 13824s script = os.path.join(d, get_temp_module_name() + ".py") 13824s dst_sources.append(script) 13824s with open(script, "wb") as f: 13824s f.write(asbytes(code)) 13824s 13824s # Build 13824s cwd = os.getcwd() 13824s try: 13824s os.chdir(d) 13824s cmd = [sys.executable, script, "build_ext", "-i"] 13824s p = subprocess.Popen(cmd, 13824s stdout=subprocess.PIPE, 13824s stderr=subprocess.STDOUT) 13824s out, err = p.communicate() 13824s if p.returncode != 0: 13824s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13824s (cmd[4:], asstr(out))) 13824s E RuntimeError: Running distutils build failed: [] 13824s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13824s E 13824s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13824s E of the deprecation of `distutils` itself. It will be removed for 13824s E Python >= 3.12. For older Python versions it will remain present. 13824s E It is recommended to use `setuptools < 60.0` for those Python versions. 13824s E For more details, see: 13824s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13824s E 13824s E 13824s E from numpy.distutils.core import setup 13824s E running build_ext 13824s E running build_src 13824s E INFO: build_src 13824s E INFO: building extension "test_array_from_pyobj_ext" sources 13824s E INFO: build_src: building npy-pkg config files 13824s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13824s E !! 13824s E 13824s E ******************************************************************************** 13824s E Please avoid running ``setup.py`` directly. 13824s E Instead, use pypa/build, pypa/installer or other 13824s E standards-based tools. 13824s E 13824s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13824s E ******************************************************************************** 13824s E 13824s E !! 13824s E self.initialize_options() 13824s E INFO: customize UnixCCompiler 13824s E INFO: customize UnixCCompiler using build_ext 13824s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/tmp 13824s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/usr 13824s E creating /tmp/tmppq19o2st/usr/lib 13824s E creating /tmp/tmppq19o2st/usr/lib/python3 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=native' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-O3' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-Werror' 13824s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13824s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-vfpv4' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=armv8.2-a+fp16' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13824s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13824s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13824s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13824s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13824s E INFO: building 'test_array_from_pyobj_ext' extension 13824s E INFO: compiling C sources 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13824s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13824s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13824s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13824s E 14 | #include 13824s E | ^~~~~~~~~~ 13824s E In file included from fortranobject.c:2: 13824s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13824s E 7 | #include 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E compilation terminated. 13824s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13824s E INFO: 13824s E ########### EXT COMPILER OPTIMIZATION ########### 13824s E INFO: Platform : 13824s E Architecture: armhf 13824s E Compiler : gcc 13824s E 13824s E CPU baseline : 13824s E Requested : 'min' 13824s E Enabled : none 13824s E Flags : none 13824s E Extra checks: none 13824s E 13824s E CPU dispatch : 13824s E Requested : 'max -xop -fma4' 13824s E Enabled : none 13824s E Generated : none 13824s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13824s 13824s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13824s d = '/tmp/tmpjj8q074z' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s err = None 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s kw = {} 13824s module_name = 'test_array_from_pyobj_ext' 13824s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13824s p = 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13824s ____ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[FLOAT] ____ 13824s 13824s def setup_module(): 13824s """ 13824s Build the required testing extension module 13824s 13824s """ 13824s global wrap 13824s 13824s # Check compiler availability first 13824s if not util.has_c_compiler(): 13824s pytest.skip("No C compiler available") 13824s 13824s if wrap is None: 13824s config_code = """ 13824s config.add_extension('test_array_from_pyobj_ext', 13824s sources=['wrapmodule.c', 'fortranobject.c'], 13824s define_macros=[]) 13824s """ 13824s d = os.path.dirname(__file__) 13824s src = [ 13824s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13824s util.getpath("src", "fortranobject.c"), 13824s util.getpath("src", "fortranobject.h"), 13824s ] 13824s > wrap = util.build_module_distutils(src, config_code, 13824s "test_array_from_pyobj_ext") 13824s 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13824s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13824s memo[key] = func(*a, **kw) 13824s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13824s func = 13824s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13824s kw = {} 13824s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s 13824s @_memoize 13824s def build_module_distutils(source_files, config_code, module_name, **kw): 13824s """ 13824s Build a module via distutils and import it. 13824s 13824s """ 13824s d = get_module_dir() 13824s 13824s # Copy files 13824s dst_sources = [] 13824s for fn in source_files: 13824s if not os.path.isfile(fn): 13824s raise RuntimeError("%s is not a file" % fn) 13824s dst = os.path.join(d, os.path.basename(fn)) 13824s shutil.copyfile(fn, dst) 13824s dst_sources.append(dst) 13824s 13824s # Build script 13824s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13824s 13824s code = fr""" 13824s import os 13824s import sys 13824s sys.path = {repr(sys.path)} 13824s 13824s def configuration(parent_name='',top_path=None): 13824s from numpy.distutils.misc_util import Configuration 13824s config = Configuration('', parent_name, top_path) 13824s {config_code} 13824s return config 13824s 13824s if __name__ == "__main__": 13824s from numpy.distutils.core import setup 13824s setup(configuration=configuration) 13824s """ 13824s script = os.path.join(d, get_temp_module_name() + ".py") 13824s dst_sources.append(script) 13824s with open(script, "wb") as f: 13824s f.write(asbytes(code)) 13824s 13824s # Build 13824s cwd = os.getcwd() 13824s try: 13824s os.chdir(d) 13824s cmd = [sys.executable, script, "build_ext", "-i"] 13824s p = subprocess.Popen(cmd, 13824s stdout=subprocess.PIPE, 13824s stderr=subprocess.STDOUT) 13824s out, err = p.communicate() 13824s if p.returncode != 0: 13824s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13824s (cmd[4:], asstr(out))) 13824s E RuntimeError: Running distutils build failed: [] 13824s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13824s E 13824s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13824s E of the deprecation of `distutils` itself. It will be removed for 13824s E Python >= 3.12. For older Python versions it will remain present. 13824s E It is recommended to use `setuptools < 60.0` for those Python versions. 13824s E For more details, see: 13824s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13824s E 13824s E 13824s E from numpy.distutils.core import setup 13824s E running build_ext 13824s E running build_src 13824s E INFO: build_src 13824s E INFO: building extension "test_array_from_pyobj_ext" sources 13824s E INFO: build_src: building npy-pkg config files 13824s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13824s E !! 13824s E 13824s E ******************************************************************************** 13824s E Please avoid running ``setup.py`` directly. 13824s E Instead, use pypa/build, pypa/installer or other 13824s E standards-based tools. 13824s E 13824s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13824s E ******************************************************************************** 13824s E 13824s E !! 13824s E self.initialize_options() 13824s E INFO: customize UnixCCompiler 13824s E INFO: customize UnixCCompiler using build_ext 13824s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/tmp 13824s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/usr 13824s E creating /tmp/tmppq19o2st/usr/lib 13824s E creating /tmp/tmppq19o2st/usr/lib/python3 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=native' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-O3' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-Werror' 13824s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13824s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-vfpv4' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=armv8.2-a+fp16' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13824s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13824s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13824s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13824s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13824s E INFO: building 'test_array_from_pyobj_ext' extension 13824s E INFO: compiling C sources 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13824s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13824s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13824s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13824s E 14 | #include 13824s E | ^~~~~~~~~~ 13824s E In file included from fortranobject.c:2: 13824s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13824s E 7 | #include 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E compilation terminated. 13824s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13824s E INFO: 13824s E ########### EXT COMPILER OPTIMIZATION ########### 13824s E INFO: Platform : 13824s E Architecture: armhf 13824s E Compiler : gcc 13824s E 13824s E CPU baseline : 13824s E Requested : 'min' 13824s E Enabled : none 13824s E Flags : none 13824s E Extra checks: none 13824s E 13824s E CPU dispatch : 13824s E Requested : 'max -xop -fma4' 13824s E Enabled : none 13824s E Generated : none 13824s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13824s 13824s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13824s d = '/tmp/tmpjj8q074z' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s err = None 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s kw = {} 13824s module_name = 'test_array_from_pyobj_ext' 13824s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13824s p = 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13824s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[FLOAT] _ 13824s 13824s def setup_module(): 13824s """ 13824s Build the required testing extension module 13824s 13824s """ 13824s global wrap 13824s 13824s # Check compiler availability first 13824s if not util.has_c_compiler(): 13824s pytest.skip("No C compiler available") 13824s 13824s if wrap is None: 13824s config_code = """ 13824s config.add_extension('test_array_from_pyobj_ext', 13824s sources=['wrapmodule.c', 'fortranobject.c'], 13824s define_macros=[]) 13824s """ 13824s d = os.path.dirname(__file__) 13824s src = [ 13824s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13824s util.getpath("src", "fortranobject.c"), 13824s util.getpath("src", "fortranobject.h"), 13824s ] 13824s > wrap = util.build_module_distutils(src, config_code, 13824s "test_array_from_pyobj_ext") 13824s 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13824s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13824s memo[key] = func(*a, **kw) 13824s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13824s func = 13824s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13824s kw = {} 13824s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13824s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13824s 13824s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13824s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13824s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13824s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13824s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13824s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13824s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13824s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13824s 13824s @_memoize 13824s def build_module_distutils(source_files, config_code, module_name, **kw): 13824s """ 13824s Build a module via distutils and import it. 13824s 13824s """ 13824s d = get_module_dir() 13824s 13824s # Copy files 13824s dst_sources = [] 13824s for fn in source_files: 13824s if not os.path.isfile(fn): 13824s raise RuntimeError("%s is not a file" % fn) 13824s dst = os.path.join(d, os.path.basename(fn)) 13824s shutil.copyfile(fn, dst) 13824s dst_sources.append(dst) 13824s 13824s # Build script 13824s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13824s 13824s code = fr""" 13824s import os 13824s import sys 13824s sys.path = {repr(sys.path)} 13824s 13824s def configuration(parent_name='',top_path=None): 13824s from numpy.distutils.misc_util import Configuration 13824s config = Configuration('', parent_name, top_path) 13824s {config_code} 13824s return config 13824s 13824s if __name__ == "__main__": 13824s from numpy.distutils.core import setup 13824s setup(configuration=configuration) 13824s """ 13824s script = os.path.join(d, get_temp_module_name() + ".py") 13824s dst_sources.append(script) 13824s with open(script, "wb") as f: 13824s f.write(asbytes(code)) 13824s 13824s # Build 13824s cwd = os.getcwd() 13824s try: 13824s os.chdir(d) 13824s cmd = [sys.executable, script, "build_ext", "-i"] 13824s p = subprocess.Popen(cmd, 13824s stdout=subprocess.PIPE, 13824s stderr=subprocess.STDOUT) 13824s out, err = p.communicate() 13824s if p.returncode != 0: 13824s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13824s (cmd[4:], asstr(out))) 13824s E RuntimeError: Running distutils build failed: [] 13824s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13824s E 13824s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13824s E of the deprecation of `distutils` itself. It will be removed for 13824s E Python >= 3.12. For older Python versions it will remain present. 13824s E It is recommended to use `setuptools < 60.0` for those Python versions. 13824s E For more details, see: 13824s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13824s E 13824s E 13824s E from numpy.distutils.core import setup 13824s E running build_ext 13824s E running build_src 13824s E INFO: build_src 13824s E INFO: building extension "test_array_from_pyobj_ext" sources 13824s E INFO: build_src: building npy-pkg config files 13824s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13824s E !! 13824s E 13824s E ******************************************************************************** 13824s E Please avoid running ``setup.py`` directly. 13824s E Instead, use pypa/build, pypa/installer or other 13824s E standards-based tools. 13824s E 13824s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13824s E ******************************************************************************** 13824s E 13824s E !! 13824s E self.initialize_options() 13824s E INFO: customize UnixCCompiler 13824s E INFO: customize UnixCCompiler using build_ext 13824s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/tmp 13824s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E creating /tmp/tmppq19o2st/usr 13824s E creating /tmp/tmppq19o2st/usr/lib 13824s E creating /tmp/tmppq19o2st/usr/lib/python3 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13824s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=native' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-O3' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-Werror' 13824s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13824s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon -Werror' 13824s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13824s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13824s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13824s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13824s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13824s E 9 | # include_next 13824s E | ^~~~~~~~~~ 13824s E compilation terminated. 13824s E 13824s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-vfpv4' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13824s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13824s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13824s E 13824s E INFO: compile options: '-I/usr/include/python3.12 -c' 13824s E extra options: '-march=armv8.2-a+fp16' 13824s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13825s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13825s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13825s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13825s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13825s E INFO: building 'test_array_from_pyobj_ext' extension 13825s E INFO: compiling C sources 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13825s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13825s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13825s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13825s E 14 | #include 13825s E | ^~~~~~~~~~ 13825s E In file included from fortranobject.c:2: 13825s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13825s E 7 | #include 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E compilation terminated. 13825s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13825s E INFO: 13825s E ########### EXT COMPILER OPTIMIZATION ########### 13825s E INFO: Platform : 13825s E Architecture: armhf 13825s E Compiler : gcc 13825s E 13825s E CPU baseline : 13825s E Requested : 'min' 13825s E Enabled : none 13825s E Flags : none 13825s E Extra checks: none 13825s E 13825s E CPU dispatch : 13825s E Requested : 'max -xop -fma4' 13825s E Enabled : none 13825s E Generated : none 13825s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13825s 13825s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13825s d = '/tmp/tmpjj8q074z' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s err = None 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s kw = {} 13825s module_name = 'test_array_from_pyobj_ext' 13825s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13825s p = 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13825s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[FLOAT] __________ 13825s 13825s def setup_module(): 13825s """ 13825s Build the required testing extension module 13825s 13825s """ 13825s global wrap 13825s 13825s # Check compiler availability first 13825s if not util.has_c_compiler(): 13825s pytest.skip("No C compiler available") 13825s 13825s if wrap is None: 13825s config_code = """ 13825s config.add_extension('test_array_from_pyobj_ext', 13825s sources=['wrapmodule.c', 'fortranobject.c'], 13825s define_macros=[]) 13825s """ 13825s d = os.path.dirname(__file__) 13825s src = [ 13825s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13825s util.getpath("src", "fortranobject.c"), 13825s util.getpath("src", "fortranobject.h"), 13825s ] 13825s > wrap = util.build_module_distutils(src, config_code, 13825s "test_array_from_pyobj_ext") 13825s 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13825s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13825s memo[key] = func(*a, **kw) 13825s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13825s func = 13825s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13825s kw = {} 13825s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s 13825s @_memoize 13825s def build_module_distutils(source_files, config_code, module_name, **kw): 13825s """ 13825s Build a module via distutils and import it. 13825s 13825s """ 13825s d = get_module_dir() 13825s 13825s # Copy files 13825s dst_sources = [] 13825s for fn in source_files: 13825s if not os.path.isfile(fn): 13825s raise RuntimeError("%s is not a file" % fn) 13825s dst = os.path.join(d, os.path.basename(fn)) 13825s shutil.copyfile(fn, dst) 13825s dst_sources.append(dst) 13825s 13825s # Build script 13825s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13825s 13825s code = fr""" 13825s import os 13825s import sys 13825s sys.path = {repr(sys.path)} 13825s 13825s def configuration(parent_name='',top_path=None): 13825s from numpy.distutils.misc_util import Configuration 13825s config = Configuration('', parent_name, top_path) 13825s {config_code} 13825s return config 13825s 13825s if __name__ == "__main__": 13825s from numpy.distutils.core import setup 13825s setup(configuration=configuration) 13825s """ 13825s script = os.path.join(d, get_temp_module_name() + ".py") 13825s dst_sources.append(script) 13825s with open(script, "wb") as f: 13825s f.write(asbytes(code)) 13825s 13825s # Build 13825s cwd = os.getcwd() 13825s try: 13825s os.chdir(d) 13825s cmd = [sys.executable, script, "build_ext", "-i"] 13825s p = subprocess.Popen(cmd, 13825s stdout=subprocess.PIPE, 13825s stderr=subprocess.STDOUT) 13825s out, err = p.communicate() 13825s if p.returncode != 0: 13825s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13825s (cmd[4:], asstr(out))) 13825s E RuntimeError: Running distutils build failed: [] 13825s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13825s E 13825s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13825s E of the deprecation of `distutils` itself. It will be removed for 13825s E Python >= 3.12. For older Python versions it will remain present. 13825s E It is recommended to use `setuptools < 60.0` for those Python versions. 13825s E For more details, see: 13825s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13825s E 13825s E 13825s E from numpy.distutils.core import setup 13825s E running build_ext 13825s E running build_src 13825s E INFO: build_src 13825s E INFO: building extension "test_array_from_pyobj_ext" sources 13825s E INFO: build_src: building npy-pkg config files 13825s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13825s E !! 13825s E 13825s E ******************************************************************************** 13825s E Please avoid running ``setup.py`` directly. 13825s E Instead, use pypa/build, pypa/installer or other 13825s E standards-based tools. 13825s E 13825s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13825s E ******************************************************************************** 13825s E 13825s E !! 13825s E self.initialize_options() 13825s E INFO: customize UnixCCompiler 13825s E INFO: customize UnixCCompiler using build_ext 13825s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/tmp 13825s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/usr 13825s E creating /tmp/tmppq19o2st/usr/lib 13825s E creating /tmp/tmppq19o2st/usr/lib/python3 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=native' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-O3' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-Werror' 13825s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13825s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-vfpv4' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=armv8.2-a+fp16' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13825s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13825s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13825s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13825s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13825s E INFO: building 'test_array_from_pyobj_ext' extension 13825s E INFO: compiling C sources 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13825s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13825s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13825s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13825s E 14 | #include 13825s E | ^~~~~~~~~~ 13825s E In file included from fortranobject.c:2: 13825s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13825s E 7 | #include 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E compilation terminated. 13825s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13825s E INFO: 13825s E ########### EXT COMPILER OPTIMIZATION ########### 13825s E INFO: Platform : 13825s E Architecture: armhf 13825s E Compiler : gcc 13825s E 13825s E CPU baseline : 13825s E Requested : 'min' 13825s E Enabled : none 13825s E Flags : none 13825s E Extra checks: none 13825s E 13825s E CPU dispatch : 13825s E Requested : 'max -xop -fma4' 13825s E Enabled : none 13825s E Generated : none 13825s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13825s 13825s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13825s d = '/tmp/tmpjj8q074z' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s err = None 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s kw = {} 13825s module_name = 'test_array_from_pyobj_ext' 13825s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13825s p = 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13825s ____________ ERROR at setup of TestSharedMemory.test_hidden[FLOAT] _____________ 13825s 13825s def setup_module(): 13825s """ 13825s Build the required testing extension module 13825s 13825s """ 13825s global wrap 13825s 13825s # Check compiler availability first 13825s if not util.has_c_compiler(): 13825s pytest.skip("No C compiler available") 13825s 13825s if wrap is None: 13825s config_code = """ 13825s config.add_extension('test_array_from_pyobj_ext', 13825s sources=['wrapmodule.c', 'fortranobject.c'], 13825s define_macros=[]) 13825s """ 13825s d = os.path.dirname(__file__) 13825s src = [ 13825s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13825s util.getpath("src", "fortranobject.c"), 13825s util.getpath("src", "fortranobject.h"), 13825s ] 13825s > wrap = util.build_module_distutils(src, config_code, 13825s "test_array_from_pyobj_ext") 13825s 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13825s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13825s memo[key] = func(*a, **kw) 13825s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13825s func = 13825s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13825s kw = {} 13825s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s 13825s @_memoize 13825s def build_module_distutils(source_files, config_code, module_name, **kw): 13825s """ 13825s Build a module via distutils and import it. 13825s 13825s """ 13825s d = get_module_dir() 13825s 13825s # Copy files 13825s dst_sources = [] 13825s for fn in source_files: 13825s if not os.path.isfile(fn): 13825s raise RuntimeError("%s is not a file" % fn) 13825s dst = os.path.join(d, os.path.basename(fn)) 13825s shutil.copyfile(fn, dst) 13825s dst_sources.append(dst) 13825s 13825s # Build script 13825s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13825s 13825s code = fr""" 13825s import os 13825s import sys 13825s sys.path = {repr(sys.path)} 13825s 13825s def configuration(parent_name='',top_path=None): 13825s from numpy.distutils.misc_util import Configuration 13825s config = Configuration('', parent_name, top_path) 13825s {config_code} 13825s return config 13825s 13825s if __name__ == "__main__": 13825s from numpy.distutils.core import setup 13825s setup(configuration=configuration) 13825s """ 13825s script = os.path.join(d, get_temp_module_name() + ".py") 13825s dst_sources.append(script) 13825s with open(script, "wb") as f: 13825s f.write(asbytes(code)) 13825s 13825s # Build 13825s cwd = os.getcwd() 13825s try: 13825s os.chdir(d) 13825s cmd = [sys.executable, script, "build_ext", "-i"] 13825s p = subprocess.Popen(cmd, 13825s stdout=subprocess.PIPE, 13825s stderr=subprocess.STDOUT) 13825s out, err = p.communicate() 13825s if p.returncode != 0: 13825s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13825s (cmd[4:], asstr(out))) 13825s E RuntimeError: Running distutils build failed: [] 13825s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13825s E 13825s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13825s E of the deprecation of `distutils` itself. It will be removed for 13825s E Python >= 3.12. For older Python versions it will remain present. 13825s E It is recommended to use `setuptools < 60.0` for those Python versions. 13825s E For more details, see: 13825s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13825s E 13825s E 13825s E from numpy.distutils.core import setup 13825s E running build_ext 13825s E running build_src 13825s E INFO: build_src 13825s E INFO: building extension "test_array_from_pyobj_ext" sources 13825s E INFO: build_src: building npy-pkg config files 13825s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13825s E !! 13825s E 13825s E ******************************************************************************** 13825s E Please avoid running ``setup.py`` directly. 13825s E Instead, use pypa/build, pypa/installer or other 13825s E standards-based tools. 13825s E 13825s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13825s E ******************************************************************************** 13825s E 13825s E !! 13825s E self.initialize_options() 13825s E INFO: customize UnixCCompiler 13825s E INFO: customize UnixCCompiler using build_ext 13825s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/tmp 13825s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/usr 13825s E creating /tmp/tmppq19o2st/usr/lib 13825s E creating /tmp/tmppq19o2st/usr/lib/python3 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=native' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-O3' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-Werror' 13825s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13825s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-vfpv4' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=armv8.2-a+fp16' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13825s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13825s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13825s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13825s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13825s E INFO: building 'test_array_from_pyobj_ext' extension 13825s E INFO: compiling C sources 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13825s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13825s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13825s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13825s E 14 | #include 13825s E | ^~~~~~~~~~ 13825s E In file included from fortranobject.c:2: 13825s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13825s E 7 | #include 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E compilation terminated. 13825s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13825s E INFO: 13825s E ########### EXT COMPILER OPTIMIZATION ########### 13825s E INFO: Platform : 13825s E Architecture: armhf 13825s E Compiler : gcc 13825s E 13825s E CPU baseline : 13825s E Requested : 'min' 13825s E Enabled : none 13825s E Flags : none 13825s E Extra checks: none 13825s E 13825s E CPU dispatch : 13825s E Requested : 'max -xop -fma4' 13825s E Enabled : none 13825s E Generated : none 13825s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13825s 13825s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13825s d = '/tmp/tmpjj8q074z' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s err = None 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s kw = {} 13825s module_name = 'test_array_from_pyobj_ext' 13825s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13825s p = 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13825s _________ ERROR at setup of TestSharedMemory.test_optional_none[FLOAT] _________ 13825s 13825s def setup_module(): 13825s """ 13825s Build the required testing extension module 13825s 13825s """ 13825s global wrap 13825s 13825s # Check compiler availability first 13825s if not util.has_c_compiler(): 13825s pytest.skip("No C compiler available") 13825s 13825s if wrap is None: 13825s config_code = """ 13825s config.add_extension('test_array_from_pyobj_ext', 13825s sources=['wrapmodule.c', 'fortranobject.c'], 13825s define_macros=[]) 13825s """ 13825s d = os.path.dirname(__file__) 13825s src = [ 13825s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13825s util.getpath("src", "fortranobject.c"), 13825s util.getpath("src", "fortranobject.h"), 13825s ] 13825s > wrap = util.build_module_distutils(src, config_code, 13825s "test_array_from_pyobj_ext") 13825s 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13825s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13825s memo[key] = func(*a, **kw) 13825s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13825s func = 13825s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13825s kw = {} 13825s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s 13825s @_memoize 13825s def build_module_distutils(source_files, config_code, module_name, **kw): 13825s """ 13825s Build a module via distutils and import it. 13825s 13825s """ 13825s d = get_module_dir() 13825s 13825s # Copy files 13825s dst_sources = [] 13825s for fn in source_files: 13825s if not os.path.isfile(fn): 13825s raise RuntimeError("%s is not a file" % fn) 13825s dst = os.path.join(d, os.path.basename(fn)) 13825s shutil.copyfile(fn, dst) 13825s dst_sources.append(dst) 13825s 13825s # Build script 13825s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13825s 13825s code = fr""" 13825s import os 13825s import sys 13825s sys.path = {repr(sys.path)} 13825s 13825s def configuration(parent_name='',top_path=None): 13825s from numpy.distutils.misc_util import Configuration 13825s config = Configuration('', parent_name, top_path) 13825s {config_code} 13825s return config 13825s 13825s if __name__ == "__main__": 13825s from numpy.distutils.core import setup 13825s setup(configuration=configuration) 13825s """ 13825s script = os.path.join(d, get_temp_module_name() + ".py") 13825s dst_sources.append(script) 13825s with open(script, "wb") as f: 13825s f.write(asbytes(code)) 13825s 13825s # Build 13825s cwd = os.getcwd() 13825s try: 13825s os.chdir(d) 13825s cmd = [sys.executable, script, "build_ext", "-i"] 13825s p = subprocess.Popen(cmd, 13825s stdout=subprocess.PIPE, 13825s stderr=subprocess.STDOUT) 13825s out, err = p.communicate() 13825s if p.returncode != 0: 13825s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13825s (cmd[4:], asstr(out))) 13825s E RuntimeError: Running distutils build failed: [] 13825s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13825s E 13825s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13825s E of the deprecation of `distutils` itself. It will be removed for 13825s E Python >= 3.12. For older Python versions it will remain present. 13825s E It is recommended to use `setuptools < 60.0` for those Python versions. 13825s E For more details, see: 13825s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13825s E 13825s E 13825s E from numpy.distutils.core import setup 13825s E running build_ext 13825s E running build_src 13825s E INFO: build_src 13825s E INFO: building extension "test_array_from_pyobj_ext" sources 13825s E INFO: build_src: building npy-pkg config files 13825s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13825s E !! 13825s E 13825s E ******************************************************************************** 13825s E Please avoid running ``setup.py`` directly. 13825s E Instead, use pypa/build, pypa/installer or other 13825s E standards-based tools. 13825s E 13825s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13825s E ******************************************************************************** 13825s E 13825s E !! 13825s E self.initialize_options() 13825s E INFO: customize UnixCCompiler 13825s E INFO: customize UnixCCompiler using build_ext 13825s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/tmp 13825s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/usr 13825s E creating /tmp/tmppq19o2st/usr/lib 13825s E creating /tmp/tmppq19o2st/usr/lib/python3 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=native' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-O3' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-Werror' 13825s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13825s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-vfpv4' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=armv8.2-a+fp16' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13825s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13825s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13825s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13825s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13825s E INFO: building 'test_array_from_pyobj_ext' extension 13825s E INFO: compiling C sources 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13825s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13825s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13825s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13825s E 14 | #include 13825s E | ^~~~~~~~~~ 13825s E In file included from fortranobject.c:2: 13825s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13825s E 7 | #include 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E compilation terminated. 13825s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13825s E INFO: 13825s E ########### EXT COMPILER OPTIMIZATION ########### 13825s E INFO: Platform : 13825s E Architecture: armhf 13825s E Compiler : gcc 13825s E 13825s E CPU baseline : 13825s E Requested : 'min' 13825s E Enabled : none 13825s E Flags : none 13825s E Extra checks: none 13825s E 13825s E CPU dispatch : 13825s E Requested : 'max -xop -fma4' 13825s E Enabled : none 13825s E Generated : none 13825s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13825s 13825s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13825s d = '/tmp/tmpjj8q074z' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s err = None 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s kw = {} 13825s module_name = 'test_array_from_pyobj_ext' 13825s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13825s p = 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13825s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[FLOAT] _______ 13825s 13825s def setup_module(): 13825s """ 13825s Build the required testing extension module 13825s 13825s """ 13825s global wrap 13825s 13825s # Check compiler availability first 13825s if not util.has_c_compiler(): 13825s pytest.skip("No C compiler available") 13825s 13825s if wrap is None: 13825s config_code = """ 13825s config.add_extension('test_array_from_pyobj_ext', 13825s sources=['wrapmodule.c', 'fortranobject.c'], 13825s define_macros=[]) 13825s """ 13825s d = os.path.dirname(__file__) 13825s src = [ 13825s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13825s util.getpath("src", "fortranobject.c"), 13825s util.getpath("src", "fortranobject.h"), 13825s ] 13825s > wrap = util.build_module_distutils(src, config_code, 13825s "test_array_from_pyobj_ext") 13825s 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13825s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13825s memo[key] = func(*a, **kw) 13825s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13825s func = 13825s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13825s kw = {} 13825s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s 13825s @_memoize 13825s def build_module_distutils(source_files, config_code, module_name, **kw): 13825s """ 13825s Build a module via distutils and import it. 13825s 13825s """ 13825s d = get_module_dir() 13825s 13825s # Copy files 13825s dst_sources = [] 13825s for fn in source_files: 13825s if not os.path.isfile(fn): 13825s raise RuntimeError("%s is not a file" % fn) 13825s dst = os.path.join(d, os.path.basename(fn)) 13825s shutil.copyfile(fn, dst) 13825s dst_sources.append(dst) 13825s 13825s # Build script 13825s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13825s 13825s code = fr""" 13825s import os 13825s import sys 13825s sys.path = {repr(sys.path)} 13825s 13825s def configuration(parent_name='',top_path=None): 13825s from numpy.distutils.misc_util import Configuration 13825s config = Configuration('', parent_name, top_path) 13825s {config_code} 13825s return config 13825s 13825s if __name__ == "__main__": 13825s from numpy.distutils.core import setup 13825s setup(configuration=configuration) 13825s """ 13825s script = os.path.join(d, get_temp_module_name() + ".py") 13825s dst_sources.append(script) 13825s with open(script, "wb") as f: 13825s f.write(asbytes(code)) 13825s 13825s # Build 13825s cwd = os.getcwd() 13825s try: 13825s os.chdir(d) 13825s cmd = [sys.executable, script, "build_ext", "-i"] 13825s p = subprocess.Popen(cmd, 13825s stdout=subprocess.PIPE, 13825s stderr=subprocess.STDOUT) 13825s out, err = p.communicate() 13825s if p.returncode != 0: 13825s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13825s (cmd[4:], asstr(out))) 13825s E RuntimeError: Running distutils build failed: [] 13825s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13825s E 13825s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13825s E of the deprecation of `distutils` itself. It will be removed for 13825s E Python >= 3.12. For older Python versions it will remain present. 13825s E It is recommended to use `setuptools < 60.0` for those Python versions. 13825s E For more details, see: 13825s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13825s E 13825s E 13825s E from numpy.distutils.core import setup 13825s E running build_ext 13825s E running build_src 13825s E INFO: build_src 13825s E INFO: building extension "test_array_from_pyobj_ext" sources 13825s E INFO: build_src: building npy-pkg config files 13825s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13825s E !! 13825s E 13825s E ******************************************************************************** 13825s E Please avoid running ``setup.py`` directly. 13825s E Instead, use pypa/build, pypa/installer or other 13825s E standards-based tools. 13825s E 13825s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13825s E ******************************************************************************** 13825s E 13825s E !! 13825s E self.initialize_options() 13825s E INFO: customize UnixCCompiler 13825s E INFO: customize UnixCCompiler using build_ext 13825s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/tmp 13825s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/usr 13825s E creating /tmp/tmppq19o2st/usr/lib 13825s E creating /tmp/tmppq19o2st/usr/lib/python3 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=native' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-O3' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-Werror' 13825s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13825s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-vfpv4' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=armv8.2-a+fp16' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13825s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13825s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13825s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13825s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13825s E INFO: building 'test_array_from_pyobj_ext' extension 13825s E INFO: compiling C sources 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13825s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13825s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13825s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13825s E 14 | #include 13825s E | ^~~~~~~~~~ 13825s E In file included from fortranobject.c:2: 13825s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13825s E 7 | #include 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E compilation terminated. 13825s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13825s E INFO: 13825s E ########### EXT COMPILER OPTIMIZATION ########### 13825s E INFO: Platform : 13825s E Architecture: armhf 13825s E Compiler : gcc 13825s E 13825s E CPU baseline : 13825s E Requested : 'min' 13825s E Enabled : none 13825s E Flags : none 13825s E Extra checks: none 13825s E 13825s E CPU dispatch : 13825s E Requested : 'max -xop -fma4' 13825s E Enabled : none 13825s E Generated : none 13825s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13825s 13825s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13825s d = '/tmp/tmpjj8q074z' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s err = None 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s kw = {} 13825s module_name = 'test_array_from_pyobj_ext' 13825s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13825s p = 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13825s ______ ERROR at setup of TestSharedMemory.test_optional_from_23seq[FLOAT] ______ 13825s 13825s def setup_module(): 13825s """ 13825s Build the required testing extension module 13825s 13825s """ 13825s global wrap 13825s 13825s # Check compiler availability first 13825s if not util.has_c_compiler(): 13825s pytest.skip("No C compiler available") 13825s 13825s if wrap is None: 13825s config_code = """ 13825s config.add_extension('test_array_from_pyobj_ext', 13825s sources=['wrapmodule.c', 'fortranobject.c'], 13825s define_macros=[]) 13825s """ 13825s d = os.path.dirname(__file__) 13825s src = [ 13825s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13825s util.getpath("src", "fortranobject.c"), 13825s util.getpath("src", "fortranobject.h"), 13825s ] 13825s > wrap = util.build_module_distutils(src, config_code, 13825s "test_array_from_pyobj_ext") 13825s 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13825s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13825s memo[key] = func(*a, **kw) 13825s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13825s func = 13825s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13825s kw = {} 13825s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s 13825s @_memoize 13825s def build_module_distutils(source_files, config_code, module_name, **kw): 13825s """ 13825s Build a module via distutils and import it. 13825s 13825s """ 13825s d = get_module_dir() 13825s 13825s # Copy files 13825s dst_sources = [] 13825s for fn in source_files: 13825s if not os.path.isfile(fn): 13825s raise RuntimeError("%s is not a file" % fn) 13825s dst = os.path.join(d, os.path.basename(fn)) 13825s shutil.copyfile(fn, dst) 13825s dst_sources.append(dst) 13825s 13825s # Build script 13825s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13825s 13825s code = fr""" 13825s import os 13825s import sys 13825s sys.path = {repr(sys.path)} 13825s 13825s def configuration(parent_name='',top_path=None): 13825s from numpy.distutils.misc_util import Configuration 13825s config = Configuration('', parent_name, top_path) 13825s {config_code} 13825s return config 13825s 13825s if __name__ == "__main__": 13825s from numpy.distutils.core import setup 13825s setup(configuration=configuration) 13825s """ 13825s script = os.path.join(d, get_temp_module_name() + ".py") 13825s dst_sources.append(script) 13825s with open(script, "wb") as f: 13825s f.write(asbytes(code)) 13825s 13825s # Build 13825s cwd = os.getcwd() 13825s try: 13825s os.chdir(d) 13825s cmd = [sys.executable, script, "build_ext", "-i"] 13825s p = subprocess.Popen(cmd, 13825s stdout=subprocess.PIPE, 13825s stderr=subprocess.STDOUT) 13825s out, err = p.communicate() 13825s if p.returncode != 0: 13825s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13825s (cmd[4:], asstr(out))) 13825s E RuntimeError: Running distutils build failed: [] 13825s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13825s E 13825s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13825s E of the deprecation of `distutils` itself. It will be removed for 13825s E Python >= 3.12. For older Python versions it will remain present. 13825s E It is recommended to use `setuptools < 60.0` for those Python versions. 13825s E For more details, see: 13825s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13825s E 13825s E 13825s E from numpy.distutils.core import setup 13825s E running build_ext 13825s E running build_src 13825s E INFO: build_src 13825s E INFO: building extension "test_array_from_pyobj_ext" sources 13825s E INFO: build_src: building npy-pkg config files 13825s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13825s E !! 13825s E 13825s E ******************************************************************************** 13825s E Please avoid running ``setup.py`` directly. 13825s E Instead, use pypa/build, pypa/installer or other 13825s E standards-based tools. 13825s E 13825s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13825s E ******************************************************************************** 13825s E 13825s E !! 13825s E self.initialize_options() 13825s E INFO: customize UnixCCompiler 13825s E INFO: customize UnixCCompiler using build_ext 13825s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/tmp 13825s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/usr 13825s E creating /tmp/tmppq19o2st/usr/lib 13825s E creating /tmp/tmppq19o2st/usr/lib/python3 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=native' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-O3' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-Werror' 13825s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13825s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-vfpv4' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=armv8.2-a+fp16' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13825s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13825s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13825s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13825s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13825s E INFO: building 'test_array_from_pyobj_ext' extension 13825s E INFO: compiling C sources 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13825s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13825s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13825s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13825s E 14 | #include 13825s E | ^~~~~~~~~~ 13825s E In file included from fortranobject.c:2: 13825s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13825s E 7 | #include 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E compilation terminated. 13825s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13825s E INFO: 13825s E ########### EXT COMPILER OPTIMIZATION ########### 13825s E INFO: Platform : 13825s E Architecture: armhf 13825s E Compiler : gcc 13825s E 13825s E CPU baseline : 13825s E Requested : 'min' 13825s E Enabled : none 13825s E Flags : none 13825s E Extra checks: none 13825s E 13825s E CPU dispatch : 13825s E Requested : 'max -xop -fma4' 13825s E Enabled : none 13825s E Generated : none 13825s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13825s 13825s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13825s d = '/tmp/tmpjj8q074z' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s err = None 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s kw = {} 13825s module_name = 'test_array_from_pyobj_ext' 13825s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13825s p = 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13825s ____________ ERROR at setup of TestSharedMemory.test_inplace[FLOAT] ____________ 13825s 13825s def setup_module(): 13825s """ 13825s Build the required testing extension module 13825s 13825s """ 13825s global wrap 13825s 13825s # Check compiler availability first 13825s if not util.has_c_compiler(): 13825s pytest.skip("No C compiler available") 13825s 13825s if wrap is None: 13825s config_code = """ 13825s config.add_extension('test_array_from_pyobj_ext', 13825s sources=['wrapmodule.c', 'fortranobject.c'], 13825s define_macros=[]) 13825s """ 13825s d = os.path.dirname(__file__) 13825s src = [ 13825s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13825s util.getpath("src", "fortranobject.c"), 13825s util.getpath("src", "fortranobject.h"), 13825s ] 13825s > wrap = util.build_module_distutils(src, config_code, 13825s "test_array_from_pyobj_ext") 13825s 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13825s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13825s memo[key] = func(*a, **kw) 13825s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13825s func = 13825s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13825s kw = {} 13825s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s 13825s @_memoize 13825s def build_module_distutils(source_files, config_code, module_name, **kw): 13825s """ 13825s Build a module via distutils and import it. 13825s 13825s """ 13825s d = get_module_dir() 13825s 13825s # Copy files 13825s dst_sources = [] 13825s for fn in source_files: 13825s if not os.path.isfile(fn): 13825s raise RuntimeError("%s is not a file" % fn) 13825s dst = os.path.join(d, os.path.basename(fn)) 13825s shutil.copyfile(fn, dst) 13825s dst_sources.append(dst) 13825s 13825s # Build script 13825s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13825s 13825s code = fr""" 13825s import os 13825s import sys 13825s sys.path = {repr(sys.path)} 13825s 13825s def configuration(parent_name='',top_path=None): 13825s from numpy.distutils.misc_util import Configuration 13825s config = Configuration('', parent_name, top_path) 13825s {config_code} 13825s return config 13825s 13825s if __name__ == "__main__": 13825s from numpy.distutils.core import setup 13825s setup(configuration=configuration) 13825s """ 13825s script = os.path.join(d, get_temp_module_name() + ".py") 13825s dst_sources.append(script) 13825s with open(script, "wb") as f: 13825s f.write(asbytes(code)) 13825s 13825s # Build 13825s cwd = os.getcwd() 13825s try: 13825s os.chdir(d) 13825s cmd = [sys.executable, script, "build_ext", "-i"] 13825s p = subprocess.Popen(cmd, 13825s stdout=subprocess.PIPE, 13825s stderr=subprocess.STDOUT) 13825s out, err = p.communicate() 13825s if p.returncode != 0: 13825s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13825s (cmd[4:], asstr(out))) 13825s E RuntimeError: Running distutils build failed: [] 13825s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13825s E 13825s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13825s E of the deprecation of `distutils` itself. It will be removed for 13825s E Python >= 3.12. For older Python versions it will remain present. 13825s E It is recommended to use `setuptools < 60.0` for those Python versions. 13825s E For more details, see: 13825s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13825s E 13825s E 13825s E from numpy.distutils.core import setup 13825s E running build_ext 13825s E running build_src 13825s E INFO: build_src 13825s E INFO: building extension "test_array_from_pyobj_ext" sources 13825s E INFO: build_src: building npy-pkg config files 13825s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13825s E !! 13825s E 13825s E ******************************************************************************** 13825s E Please avoid running ``setup.py`` directly. 13825s E Instead, use pypa/build, pypa/installer or other 13825s E standards-based tools. 13825s E 13825s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13825s E ******************************************************************************** 13825s E 13825s E !! 13825s E self.initialize_options() 13825s E INFO: customize UnixCCompiler 13825s E INFO: customize UnixCCompiler using build_ext 13825s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/tmp 13825s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/usr 13825s E creating /tmp/tmppq19o2st/usr/lib 13825s E creating /tmp/tmppq19o2st/usr/lib/python3 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=native' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-O3' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-Werror' 13825s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13825s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-vfpv4' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=armv8.2-a+fp16' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13825s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13825s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13825s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13825s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13825s E INFO: building 'test_array_from_pyobj_ext' extension 13825s E INFO: compiling C sources 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13825s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13825s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13825s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13825s E 14 | #include 13825s E | ^~~~~~~~~~ 13825s E In file included from fortranobject.c:2: 13825s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13825s E 7 | #include 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E compilation terminated. 13825s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13825s E INFO: 13825s E ########### EXT COMPILER OPTIMIZATION ########### 13825s E INFO: Platform : 13825s E Architecture: armhf 13825s E Compiler : gcc 13825s E 13825s E CPU baseline : 13825s E Requested : 'min' 13825s E Enabled : none 13825s E Flags : none 13825s E Extra checks: none 13825s E 13825s E CPU dispatch : 13825s E Requested : 'max -xop -fma4' 13825s E Enabled : none 13825s E Generated : none 13825s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13825s 13825s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13825s d = '/tmp/tmpjj8q074z' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s err = None 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s kw = {} 13825s module_name = 'test_array_from_pyobj_ext' 13825s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13825s p = 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13825s _____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[FLOAT] _____ 13825s 13825s def setup_module(): 13825s """ 13825s Build the required testing extension module 13825s 13825s """ 13825s global wrap 13825s 13825s # Check compiler availability first 13825s if not util.has_c_compiler(): 13825s pytest.skip("No C compiler available") 13825s 13825s if wrap is None: 13825s config_code = """ 13825s config.add_extension('test_array_from_pyobj_ext', 13825s sources=['wrapmodule.c', 'fortranobject.c'], 13825s define_macros=[]) 13825s """ 13825s d = os.path.dirname(__file__) 13825s src = [ 13825s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13825s util.getpath("src", "fortranobject.c"), 13825s util.getpath("src", "fortranobject.h"), 13825s ] 13825s > wrap = util.build_module_distutils(src, config_code, 13825s "test_array_from_pyobj_ext") 13825s 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13825s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13825s memo[key] = func(*a, **kw) 13825s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13825s func = 13825s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13825s kw = {} 13825s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s 13825s @_memoize 13825s def build_module_distutils(source_files, config_code, module_name, **kw): 13825s """ 13825s Build a module via distutils and import it. 13825s 13825s """ 13825s d = get_module_dir() 13825s 13825s # Copy files 13825s dst_sources = [] 13825s for fn in source_files: 13825s if not os.path.isfile(fn): 13825s raise RuntimeError("%s is not a file" % fn) 13825s dst = os.path.join(d, os.path.basename(fn)) 13825s shutil.copyfile(fn, dst) 13825s dst_sources.append(dst) 13825s 13825s # Build script 13825s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13825s 13825s code = fr""" 13825s import os 13825s import sys 13825s sys.path = {repr(sys.path)} 13825s 13825s def configuration(parent_name='',top_path=None): 13825s from numpy.distutils.misc_util import Configuration 13825s config = Configuration('', parent_name, top_path) 13825s {config_code} 13825s return config 13825s 13825s if __name__ == "__main__": 13825s from numpy.distutils.core import setup 13825s setup(configuration=configuration) 13825s """ 13825s script = os.path.join(d, get_temp_module_name() + ".py") 13825s dst_sources.append(script) 13825s with open(script, "wb") as f: 13825s f.write(asbytes(code)) 13825s 13825s # Build 13825s cwd = os.getcwd() 13825s try: 13825s os.chdir(d) 13825s cmd = [sys.executable, script, "build_ext", "-i"] 13825s p = subprocess.Popen(cmd, 13825s stdout=subprocess.PIPE, 13825s stderr=subprocess.STDOUT) 13825s out, err = p.communicate() 13825s if p.returncode != 0: 13825s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13825s (cmd[4:], asstr(out))) 13825s E RuntimeError: Running distutils build failed: [] 13825s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13825s E 13825s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13825s E of the deprecation of `distutils` itself. It will be removed for 13825s E Python >= 3.12. For older Python versions it will remain present. 13825s E It is recommended to use `setuptools < 60.0` for those Python versions. 13825s E For more details, see: 13825s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13825s E 13825s E 13825s E from numpy.distutils.core import setup 13825s E running build_ext 13825s E running build_src 13825s E INFO: build_src 13825s E INFO: building extension "test_array_from_pyobj_ext" sources 13825s E INFO: build_src: building npy-pkg config files 13825s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13825s E !! 13825s E 13825s E ******************************************************************************** 13825s E Please avoid running ``setup.py`` directly. 13825s E Instead, use pypa/build, pypa/installer or other 13825s E standards-based tools. 13825s E 13825s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13825s E ******************************************************************************** 13825s E 13825s E !! 13825s E self.initialize_options() 13825s E INFO: customize UnixCCompiler 13825s E INFO: customize UnixCCompiler using build_ext 13825s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/tmp 13825s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/usr 13825s E creating /tmp/tmppq19o2st/usr/lib 13825s E creating /tmp/tmppq19o2st/usr/lib/python3 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=native' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-O3' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-Werror' 13825s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13825s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-vfpv4' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=armv8.2-a+fp16' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13825s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13825s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13825s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13825s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13825s E INFO: building 'test_array_from_pyobj_ext' extension 13825s E INFO: compiling C sources 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13825s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13825s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13825s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13825s E 14 | #include 13825s E | ^~~~~~~~~~ 13825s E In file included from fortranobject.c:2: 13825s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13825s E 7 | #include 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E compilation terminated. 13825s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13825s E INFO: 13825s E ########### EXT COMPILER OPTIMIZATION ########### 13825s E INFO: Platform : 13825s E Architecture: armhf 13825s E Compiler : gcc 13825s E 13825s E CPU baseline : 13825s E Requested : 'min' 13825s E Enabled : none 13825s E Flags : none 13825s E Extra checks: none 13825s E 13825s E CPU dispatch : 13825s E Requested : 'max -xop -fma4' 13825s E Enabled : none 13825s E Generated : none 13825s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13825s 13825s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13825s d = '/tmp/tmpjj8q074z' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s err = None 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s kw = {} 13825s module_name = 'test_array_from_pyobj_ext' 13825s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13825s p = 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13825s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[DOUBLE] _________ 13825s 13825s def setup_module(): 13825s """ 13825s Build the required testing extension module 13825s 13825s """ 13825s global wrap 13825s 13825s # Check compiler availability first 13825s if not util.has_c_compiler(): 13825s pytest.skip("No C compiler available") 13825s 13825s if wrap is None: 13825s config_code = """ 13825s config.add_extension('test_array_from_pyobj_ext', 13825s sources=['wrapmodule.c', 'fortranobject.c'], 13825s define_macros=[]) 13825s """ 13825s d = os.path.dirname(__file__) 13825s src = [ 13825s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13825s util.getpath("src", "fortranobject.c"), 13825s util.getpath("src", "fortranobject.h"), 13825s ] 13825s > wrap = util.build_module_distutils(src, config_code, 13825s "test_array_from_pyobj_ext") 13825s 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13825s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13825s memo[key] = func(*a, **kw) 13825s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13825s func = 13825s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13825s kw = {} 13825s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13825s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13825s 13825s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13825s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13825s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13825s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13825s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13825s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13825s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13825s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13825s 13825s @_memoize 13825s def build_module_distutils(source_files, config_code, module_name, **kw): 13825s """ 13825s Build a module via distutils and import it. 13825s 13825s """ 13825s d = get_module_dir() 13825s 13825s # Copy files 13825s dst_sources = [] 13825s for fn in source_files: 13825s if not os.path.isfile(fn): 13825s raise RuntimeError("%s is not a file" % fn) 13825s dst = os.path.join(d, os.path.basename(fn)) 13825s shutil.copyfile(fn, dst) 13825s dst_sources.append(dst) 13825s 13825s # Build script 13825s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13825s 13825s code = fr""" 13825s import os 13825s import sys 13825s sys.path = {repr(sys.path)} 13825s 13825s def configuration(parent_name='',top_path=None): 13825s from numpy.distutils.misc_util import Configuration 13825s config = Configuration('', parent_name, top_path) 13825s {config_code} 13825s return config 13825s 13825s if __name__ == "__main__": 13825s from numpy.distutils.core import setup 13825s setup(configuration=configuration) 13825s """ 13825s script = os.path.join(d, get_temp_module_name() + ".py") 13825s dst_sources.append(script) 13825s with open(script, "wb") as f: 13825s f.write(asbytes(code)) 13825s 13825s # Build 13825s cwd = os.getcwd() 13825s try: 13825s os.chdir(d) 13825s cmd = [sys.executable, script, "build_ext", "-i"] 13825s p = subprocess.Popen(cmd, 13825s stdout=subprocess.PIPE, 13825s stderr=subprocess.STDOUT) 13825s out, err = p.communicate() 13825s if p.returncode != 0: 13825s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13825s (cmd[4:], asstr(out))) 13825s E RuntimeError: Running distutils build failed: [] 13825s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13825s E 13825s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13825s E of the deprecation of `distutils` itself. It will be removed for 13825s E Python >= 3.12. For older Python versions it will remain present. 13825s E It is recommended to use `setuptools < 60.0` for those Python versions. 13825s E For more details, see: 13825s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13825s E 13825s E 13825s E from numpy.distutils.core import setup 13825s E running build_ext 13825s E running build_src 13825s E INFO: build_src 13825s E INFO: building extension "test_array_from_pyobj_ext" sources 13825s E INFO: build_src: building npy-pkg config files 13825s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13825s E !! 13825s E 13825s E ******************************************************************************** 13825s E Please avoid running ``setup.py`` directly. 13825s E Instead, use pypa/build, pypa/installer or other 13825s E standards-based tools. 13825s E 13825s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13825s E ******************************************************************************** 13825s E 13825s E !! 13825s E self.initialize_options() 13825s E INFO: customize UnixCCompiler 13825s E INFO: customize UnixCCompiler using build_ext 13825s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/tmp 13825s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E creating /tmp/tmppq19o2st/usr 13825s E creating /tmp/tmppq19o2st/usr/lib 13825s E creating /tmp/tmppq19o2st/usr/lib/python3 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13825s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=native' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-O3' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-Werror' 13825s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13825s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon -Werror' 13825s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13825s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13825s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13825s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13825s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13825s E 9 | # include_next 13825s E | ^~~~~~~~~~ 13825s E compilation terminated. 13825s E 13825s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-vfpv4' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13825s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13825s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13825s E 13825s E INFO: compile options: '-I/usr/include/python3.12 -c' 13825s E extra options: '-march=armv8.2-a+fp16' 13825s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13826s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13826s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13826s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13826s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13826s E INFO: building 'test_array_from_pyobj_ext' extension 13826s E INFO: compiling C sources 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13826s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13826s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13826s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13826s E 14 | #include 13826s E | ^~~~~~~~~~ 13826s E In file included from fortranobject.c:2: 13826s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13826s E 7 | #include 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E compilation terminated. 13826s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13826s E INFO: 13826s E ########### EXT COMPILER OPTIMIZATION ########### 13826s E INFO: Platform : 13826s E Architecture: armhf 13826s E Compiler : gcc 13826s E 13826s E CPU baseline : 13826s E Requested : 'min' 13826s E Enabled : none 13826s E Flags : none 13826s E Extra checks: none 13826s E 13826s E CPU dispatch : 13826s E Requested : 'max -xop -fma4' 13826s E Enabled : none 13826s E Generated : none 13826s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13826s 13826s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13826s d = '/tmp/tmpjj8q074z' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s err = None 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s kw = {} 13826s module_name = 'test_array_from_pyobj_ext' 13826s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13826s p = 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13826s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[DOUBLE] _______ 13826s 13826s def setup_module(): 13826s """ 13826s Build the required testing extension module 13826s 13826s """ 13826s global wrap 13826s 13826s # Check compiler availability first 13826s if not util.has_c_compiler(): 13826s pytest.skip("No C compiler available") 13826s 13826s if wrap is None: 13826s config_code = """ 13826s config.add_extension('test_array_from_pyobj_ext', 13826s sources=['wrapmodule.c', 'fortranobject.c'], 13826s define_macros=[]) 13826s """ 13826s d = os.path.dirname(__file__) 13826s src = [ 13826s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13826s util.getpath("src", "fortranobject.c"), 13826s util.getpath("src", "fortranobject.h"), 13826s ] 13826s > wrap = util.build_module_distutils(src, config_code, 13826s "test_array_from_pyobj_ext") 13826s 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13826s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13826s memo[key] = func(*a, **kw) 13826s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13826s func = 13826s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13826s kw = {} 13826s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s 13826s @_memoize 13826s def build_module_distutils(source_files, config_code, module_name, **kw): 13826s """ 13826s Build a module via distutils and import it. 13826s 13826s """ 13826s d = get_module_dir() 13826s 13826s # Copy files 13826s dst_sources = [] 13826s for fn in source_files: 13826s if not os.path.isfile(fn): 13826s raise RuntimeError("%s is not a file" % fn) 13826s dst = os.path.join(d, os.path.basename(fn)) 13826s shutil.copyfile(fn, dst) 13826s dst_sources.append(dst) 13826s 13826s # Build script 13826s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13826s 13826s code = fr""" 13826s import os 13826s import sys 13826s sys.path = {repr(sys.path)} 13826s 13826s def configuration(parent_name='',top_path=None): 13826s from numpy.distutils.misc_util import Configuration 13826s config = Configuration('', parent_name, top_path) 13826s {config_code} 13826s return config 13826s 13826s if __name__ == "__main__": 13826s from numpy.distutils.core import setup 13826s setup(configuration=configuration) 13826s """ 13826s script = os.path.join(d, get_temp_module_name() + ".py") 13826s dst_sources.append(script) 13826s with open(script, "wb") as f: 13826s f.write(asbytes(code)) 13826s 13826s # Build 13826s cwd = os.getcwd() 13826s try: 13826s os.chdir(d) 13826s cmd = [sys.executable, script, "build_ext", "-i"] 13826s p = subprocess.Popen(cmd, 13826s stdout=subprocess.PIPE, 13826s stderr=subprocess.STDOUT) 13826s out, err = p.communicate() 13826s if p.returncode != 0: 13826s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13826s (cmd[4:], asstr(out))) 13826s E RuntimeError: Running distutils build failed: [] 13826s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13826s E 13826s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13826s E of the deprecation of `distutils` itself. It will be removed for 13826s E Python >= 3.12. For older Python versions it will remain present. 13826s E It is recommended to use `setuptools < 60.0` for those Python versions. 13826s E For more details, see: 13826s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13826s E 13826s E 13826s E from numpy.distutils.core import setup 13826s E running build_ext 13826s E running build_src 13826s E INFO: build_src 13826s E INFO: building extension "test_array_from_pyobj_ext" sources 13826s E INFO: build_src: building npy-pkg config files 13826s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13826s E !! 13826s E 13826s E ******************************************************************************** 13826s E Please avoid running ``setup.py`` directly. 13826s E Instead, use pypa/build, pypa/installer or other 13826s E standards-based tools. 13826s E 13826s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13826s E ******************************************************************************** 13826s E 13826s E !! 13826s E self.initialize_options() 13826s E INFO: customize UnixCCompiler 13826s E INFO: customize UnixCCompiler using build_ext 13826s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/tmp 13826s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/usr 13826s E creating /tmp/tmppq19o2st/usr/lib 13826s E creating /tmp/tmppq19o2st/usr/lib/python3 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=native' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-O3' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-Werror' 13826s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13826s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-vfpv4' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=armv8.2-a+fp16' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13826s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13826s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13826s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13826s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13826s E INFO: building 'test_array_from_pyobj_ext' extension 13826s E INFO: compiling C sources 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13826s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13826s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13826s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13826s E 14 | #include 13826s E | ^~~~~~~~~~ 13826s E In file included from fortranobject.c:2: 13826s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13826s E 7 | #include 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E compilation terminated. 13826s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13826s E INFO: 13826s E ########### EXT COMPILER OPTIMIZATION ########### 13826s E INFO: Platform : 13826s E Architecture: armhf 13826s E Compiler : gcc 13826s E 13826s E CPU baseline : 13826s E Requested : 'min' 13826s E Enabled : none 13826s E Flags : none 13826s E Extra checks: none 13826s E 13826s E CPU dispatch : 13826s E Requested : 'max -xop -fma4' 13826s E Enabled : none 13826s E Generated : none 13826s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13826s 13826s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13826s d = '/tmp/tmpjj8q074z' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s err = None 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s kw = {} 13826s module_name = 'test_array_from_pyobj_ext' 13826s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13826s p = 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13826s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-2seq-C-w] ______ 13826s 13826s def setup_module(): 13826s """ 13826s Build the required testing extension module 13826s 13826s """ 13826s global wrap 13826s 13826s # Check compiler availability first 13826s if not util.has_c_compiler(): 13826s pytest.skip("No C compiler available") 13826s 13826s if wrap is None: 13826s config_code = """ 13826s config.add_extension('test_array_from_pyobj_ext', 13826s sources=['wrapmodule.c', 'fortranobject.c'], 13826s define_macros=[]) 13826s """ 13826s d = os.path.dirname(__file__) 13826s src = [ 13826s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13826s util.getpath("src", "fortranobject.c"), 13826s util.getpath("src", "fortranobject.h"), 13826s ] 13826s > wrap = util.build_module_distutils(src, config_code, 13826s "test_array_from_pyobj_ext") 13826s 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13826s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13826s memo[key] = func(*a, **kw) 13826s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13826s func = 13826s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13826s kw = {} 13826s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s 13826s @_memoize 13826s def build_module_distutils(source_files, config_code, module_name, **kw): 13826s """ 13826s Build a module via distutils and import it. 13826s 13826s """ 13826s d = get_module_dir() 13826s 13826s # Copy files 13826s dst_sources = [] 13826s for fn in source_files: 13826s if not os.path.isfile(fn): 13826s raise RuntimeError("%s is not a file" % fn) 13826s dst = os.path.join(d, os.path.basename(fn)) 13826s shutil.copyfile(fn, dst) 13826s dst_sources.append(dst) 13826s 13826s # Build script 13826s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13826s 13826s code = fr""" 13826s import os 13826s import sys 13826s sys.path = {repr(sys.path)} 13826s 13826s def configuration(parent_name='',top_path=None): 13826s from numpy.distutils.misc_util import Configuration 13826s config = Configuration('', parent_name, top_path) 13826s {config_code} 13826s return config 13826s 13826s if __name__ == "__main__": 13826s from numpy.distutils.core import setup 13826s setup(configuration=configuration) 13826s """ 13826s script = os.path.join(d, get_temp_module_name() + ".py") 13826s dst_sources.append(script) 13826s with open(script, "wb") as f: 13826s f.write(asbytes(code)) 13826s 13826s # Build 13826s cwd = os.getcwd() 13826s try: 13826s os.chdir(d) 13826s cmd = [sys.executable, script, "build_ext", "-i"] 13826s p = subprocess.Popen(cmd, 13826s stdout=subprocess.PIPE, 13826s stderr=subprocess.STDOUT) 13826s out, err = p.communicate() 13826s if p.returncode != 0: 13826s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13826s (cmd[4:], asstr(out))) 13826s E RuntimeError: Running distutils build failed: [] 13826s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13826s E 13826s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13826s E of the deprecation of `distutils` itself. It will be removed for 13826s E Python >= 3.12. For older Python versions it will remain present. 13826s E It is recommended to use `setuptools < 60.0` for those Python versions. 13826s E For more details, see: 13826s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13826s E 13826s E 13826s E from numpy.distutils.core import setup 13826s E running build_ext 13826s E running build_src 13826s E INFO: build_src 13826s E INFO: building extension "test_array_from_pyobj_ext" sources 13826s E INFO: build_src: building npy-pkg config files 13826s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13826s E !! 13826s E 13826s E ******************************************************************************** 13826s E Please avoid running ``setup.py`` directly. 13826s E Instead, use pypa/build, pypa/installer or other 13826s E standards-based tools. 13826s E 13826s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13826s E ******************************************************************************** 13826s E 13826s E !! 13826s E self.initialize_options() 13826s E INFO: customize UnixCCompiler 13826s E INFO: customize UnixCCompiler using build_ext 13826s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/tmp 13826s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/usr 13826s E creating /tmp/tmppq19o2st/usr/lib 13826s E creating /tmp/tmppq19o2st/usr/lib/python3 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=native' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-O3' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-Werror' 13826s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13826s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-vfpv4' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=armv8.2-a+fp16' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13826s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13826s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13826s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13826s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13826s E INFO: building 'test_array_from_pyobj_ext' extension 13826s E INFO: compiling C sources 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13826s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13826s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13826s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13826s E 14 | #include 13826s E | ^~~~~~~~~~ 13826s E In file included from fortranobject.c:2: 13826s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13826s E 7 | #include 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E compilation terminated. 13826s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13826s E INFO: 13826s E ########### EXT COMPILER OPTIMIZATION ########### 13826s E INFO: Platform : 13826s E Architecture: armhf 13826s E Compiler : gcc 13826s E 13826s E CPU baseline : 13826s E Requested : 'min' 13826s E Enabled : none 13826s E Flags : none 13826s E Extra checks: none 13826s E 13826s E CPU dispatch : 13826s E Requested : 'max -xop -fma4' 13826s E Enabled : none 13826s E Generated : none 13826s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13826s 13826s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13826s d = '/tmp/tmpjj8q074z' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s err = None 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s kw = {} 13826s module_name = 'test_array_from_pyobj_ext' 13826s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13826s p = 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13826s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-2seq-C-ro] ______ 13826s 13826s def setup_module(): 13826s """ 13826s Build the required testing extension module 13826s 13826s """ 13826s global wrap 13826s 13826s # Check compiler availability first 13826s if not util.has_c_compiler(): 13826s pytest.skip("No C compiler available") 13826s 13826s if wrap is None: 13826s config_code = """ 13826s config.add_extension('test_array_from_pyobj_ext', 13826s sources=['wrapmodule.c', 'fortranobject.c'], 13826s define_macros=[]) 13826s """ 13826s d = os.path.dirname(__file__) 13826s src = [ 13826s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13826s util.getpath("src", "fortranobject.c"), 13826s util.getpath("src", "fortranobject.h"), 13826s ] 13826s > wrap = util.build_module_distutils(src, config_code, 13826s "test_array_from_pyobj_ext") 13826s 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13826s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13826s memo[key] = func(*a, **kw) 13826s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13826s func = 13826s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13826s kw = {} 13826s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s 13826s @_memoize 13826s def build_module_distutils(source_files, config_code, module_name, **kw): 13826s """ 13826s Build a module via distutils and import it. 13826s 13826s """ 13826s d = get_module_dir() 13826s 13826s # Copy files 13826s dst_sources = [] 13826s for fn in source_files: 13826s if not os.path.isfile(fn): 13826s raise RuntimeError("%s is not a file" % fn) 13826s dst = os.path.join(d, os.path.basename(fn)) 13826s shutil.copyfile(fn, dst) 13826s dst_sources.append(dst) 13826s 13826s # Build script 13826s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13826s 13826s code = fr""" 13826s import os 13826s import sys 13826s sys.path = {repr(sys.path)} 13826s 13826s def configuration(parent_name='',top_path=None): 13826s from numpy.distutils.misc_util import Configuration 13826s config = Configuration('', parent_name, top_path) 13826s {config_code} 13826s return config 13826s 13826s if __name__ == "__main__": 13826s from numpy.distutils.core import setup 13826s setup(configuration=configuration) 13826s """ 13826s script = os.path.join(d, get_temp_module_name() + ".py") 13826s dst_sources.append(script) 13826s with open(script, "wb") as f: 13826s f.write(asbytes(code)) 13826s 13826s # Build 13826s cwd = os.getcwd() 13826s try: 13826s os.chdir(d) 13826s cmd = [sys.executable, script, "build_ext", "-i"] 13826s p = subprocess.Popen(cmd, 13826s stdout=subprocess.PIPE, 13826s stderr=subprocess.STDOUT) 13826s out, err = p.communicate() 13826s if p.returncode != 0: 13826s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13826s (cmd[4:], asstr(out))) 13826s E RuntimeError: Running distutils build failed: [] 13826s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13826s E 13826s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13826s E of the deprecation of `distutils` itself. It will be removed for 13826s E Python >= 3.12. For older Python versions it will remain present. 13826s E It is recommended to use `setuptools < 60.0` for those Python versions. 13826s E For more details, see: 13826s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13826s E 13826s E 13826s E from numpy.distutils.core import setup 13826s E running build_ext 13826s E running build_src 13826s E INFO: build_src 13826s E INFO: building extension "test_array_from_pyobj_ext" sources 13826s E INFO: build_src: building npy-pkg config files 13826s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13826s E !! 13826s E 13826s E ******************************************************************************** 13826s E Please avoid running ``setup.py`` directly. 13826s E Instead, use pypa/build, pypa/installer or other 13826s E standards-based tools. 13826s E 13826s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13826s E ******************************************************************************** 13826s E 13826s E !! 13826s E self.initialize_options() 13826s E INFO: customize UnixCCompiler 13826s E INFO: customize UnixCCompiler using build_ext 13826s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/tmp 13826s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/usr 13826s E creating /tmp/tmppq19o2st/usr/lib 13826s E creating /tmp/tmppq19o2st/usr/lib/python3 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=native' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-O3' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-Werror' 13826s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13826s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-vfpv4' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=armv8.2-a+fp16' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13826s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13826s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13826s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13826s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13826s E INFO: building 'test_array_from_pyobj_ext' extension 13826s E INFO: compiling C sources 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13826s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13826s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13826s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13826s E 14 | #include 13826s E | ^~~~~~~~~~ 13826s E In file included from fortranobject.c:2: 13826s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13826s E 7 | #include 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E compilation terminated. 13826s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13826s E INFO: 13826s E ########### EXT COMPILER OPTIMIZATION ########### 13826s E INFO: Platform : 13826s E Architecture: armhf 13826s E Compiler : gcc 13826s E 13826s E CPU baseline : 13826s E Requested : 'min' 13826s E Enabled : none 13826s E Flags : none 13826s E Extra checks: none 13826s E 13826s E CPU dispatch : 13826s E Requested : 'max -xop -fma4' 13826s E Enabled : none 13826s E Generated : none 13826s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13826s 13826s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13826s d = '/tmp/tmpjj8q074z' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s err = None 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s kw = {} 13826s module_name = 'test_array_from_pyobj_ext' 13826s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13826s p = 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13826s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-2seq-F-w] ______ 13826s 13826s def setup_module(): 13826s """ 13826s Build the required testing extension module 13826s 13826s """ 13826s global wrap 13826s 13826s # Check compiler availability first 13826s if not util.has_c_compiler(): 13826s pytest.skip("No C compiler available") 13826s 13826s if wrap is None: 13826s config_code = """ 13826s config.add_extension('test_array_from_pyobj_ext', 13826s sources=['wrapmodule.c', 'fortranobject.c'], 13826s define_macros=[]) 13826s """ 13826s d = os.path.dirname(__file__) 13826s src = [ 13826s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13826s util.getpath("src", "fortranobject.c"), 13826s util.getpath("src", "fortranobject.h"), 13826s ] 13826s > wrap = util.build_module_distutils(src, config_code, 13826s "test_array_from_pyobj_ext") 13826s 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13826s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13826s memo[key] = func(*a, **kw) 13826s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13826s func = 13826s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13826s kw = {} 13826s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s 13826s @_memoize 13826s def build_module_distutils(source_files, config_code, module_name, **kw): 13826s """ 13826s Build a module via distutils and import it. 13826s 13826s """ 13826s d = get_module_dir() 13826s 13826s # Copy files 13826s dst_sources = [] 13826s for fn in source_files: 13826s if not os.path.isfile(fn): 13826s raise RuntimeError("%s is not a file" % fn) 13826s dst = os.path.join(d, os.path.basename(fn)) 13826s shutil.copyfile(fn, dst) 13826s dst_sources.append(dst) 13826s 13826s # Build script 13826s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13826s 13826s code = fr""" 13826s import os 13826s import sys 13826s sys.path = {repr(sys.path)} 13826s 13826s def configuration(parent_name='',top_path=None): 13826s from numpy.distutils.misc_util import Configuration 13826s config = Configuration('', parent_name, top_path) 13826s {config_code} 13826s return config 13826s 13826s if __name__ == "__main__": 13826s from numpy.distutils.core import setup 13826s setup(configuration=configuration) 13826s """ 13826s script = os.path.join(d, get_temp_module_name() + ".py") 13826s dst_sources.append(script) 13826s with open(script, "wb") as f: 13826s f.write(asbytes(code)) 13826s 13826s # Build 13826s cwd = os.getcwd() 13826s try: 13826s os.chdir(d) 13826s cmd = [sys.executable, script, "build_ext", "-i"] 13826s p = subprocess.Popen(cmd, 13826s stdout=subprocess.PIPE, 13826s stderr=subprocess.STDOUT) 13826s out, err = p.communicate() 13826s if p.returncode != 0: 13826s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13826s (cmd[4:], asstr(out))) 13826s E RuntimeError: Running distutils build failed: [] 13826s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13826s E 13826s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13826s E of the deprecation of `distutils` itself. It will be removed for 13826s E Python >= 3.12. For older Python versions it will remain present. 13826s E It is recommended to use `setuptools < 60.0` for those Python versions. 13826s E For more details, see: 13826s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13826s E 13826s E 13826s E from numpy.distutils.core import setup 13826s E running build_ext 13826s E running build_src 13826s E INFO: build_src 13826s E INFO: building extension "test_array_from_pyobj_ext" sources 13826s E INFO: build_src: building npy-pkg config files 13826s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13826s E !! 13826s E 13826s E ******************************************************************************** 13826s E Please avoid running ``setup.py`` directly. 13826s E Instead, use pypa/build, pypa/installer or other 13826s E standards-based tools. 13826s E 13826s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13826s E ******************************************************************************** 13826s E 13826s E !! 13826s E self.initialize_options() 13826s E INFO: customize UnixCCompiler 13826s E INFO: customize UnixCCompiler using build_ext 13826s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/tmp 13826s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/usr 13826s E creating /tmp/tmppq19o2st/usr/lib 13826s E creating /tmp/tmppq19o2st/usr/lib/python3 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=native' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-O3' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-Werror' 13826s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13826s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-vfpv4' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=armv8.2-a+fp16' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13826s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13826s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13826s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13826s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13826s E INFO: building 'test_array_from_pyobj_ext' extension 13826s E INFO: compiling C sources 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13826s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13826s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13826s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13826s E 14 | #include 13826s E | ^~~~~~~~~~ 13826s E In file included from fortranobject.c:2: 13826s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13826s E 7 | #include 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E compilation terminated. 13826s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13826s E INFO: 13826s E ########### EXT COMPILER OPTIMIZATION ########### 13826s E INFO: Platform : 13826s E Architecture: armhf 13826s E Compiler : gcc 13826s E 13826s E CPU baseline : 13826s E Requested : 'min' 13826s E Enabled : none 13826s E Flags : none 13826s E Extra checks: none 13826s E 13826s E CPU dispatch : 13826s E Requested : 'max -xop -fma4' 13826s E Enabled : none 13826s E Generated : none 13826s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13826s 13826s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13826s d = '/tmp/tmpjj8q074z' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s err = None 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s kw = {} 13826s module_name = 'test_array_from_pyobj_ext' 13826s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13826s p = 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13826s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-2seq-F-ro] ______ 13826s 13826s def setup_module(): 13826s """ 13826s Build the required testing extension module 13826s 13826s """ 13826s global wrap 13826s 13826s # Check compiler availability first 13826s if not util.has_c_compiler(): 13826s pytest.skip("No C compiler available") 13826s 13826s if wrap is None: 13826s config_code = """ 13826s config.add_extension('test_array_from_pyobj_ext', 13826s sources=['wrapmodule.c', 'fortranobject.c'], 13826s define_macros=[]) 13826s """ 13826s d = os.path.dirname(__file__) 13826s src = [ 13826s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13826s util.getpath("src", "fortranobject.c"), 13826s util.getpath("src", "fortranobject.h"), 13826s ] 13826s > wrap = util.build_module_distutils(src, config_code, 13826s "test_array_from_pyobj_ext") 13826s 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13826s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13826s memo[key] = func(*a, **kw) 13826s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13826s func = 13826s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13826s kw = {} 13826s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s 13826s @_memoize 13826s def build_module_distutils(source_files, config_code, module_name, **kw): 13826s """ 13826s Build a module via distutils and import it. 13826s 13826s """ 13826s d = get_module_dir() 13826s 13826s # Copy files 13826s dst_sources = [] 13826s for fn in source_files: 13826s if not os.path.isfile(fn): 13826s raise RuntimeError("%s is not a file" % fn) 13826s dst = os.path.join(d, os.path.basename(fn)) 13826s shutil.copyfile(fn, dst) 13826s dst_sources.append(dst) 13826s 13826s # Build script 13826s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13826s 13826s code = fr""" 13826s import os 13826s import sys 13826s sys.path = {repr(sys.path)} 13826s 13826s def configuration(parent_name='',top_path=None): 13826s from numpy.distutils.misc_util import Configuration 13826s config = Configuration('', parent_name, top_path) 13826s {config_code} 13826s return config 13826s 13826s if __name__ == "__main__": 13826s from numpy.distutils.core import setup 13826s setup(configuration=configuration) 13826s """ 13826s script = os.path.join(d, get_temp_module_name() + ".py") 13826s dst_sources.append(script) 13826s with open(script, "wb") as f: 13826s f.write(asbytes(code)) 13826s 13826s # Build 13826s cwd = os.getcwd() 13826s try: 13826s os.chdir(d) 13826s cmd = [sys.executable, script, "build_ext", "-i"] 13826s p = subprocess.Popen(cmd, 13826s stdout=subprocess.PIPE, 13826s stderr=subprocess.STDOUT) 13826s out, err = p.communicate() 13826s if p.returncode != 0: 13826s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13826s (cmd[4:], asstr(out))) 13826s E RuntimeError: Running distutils build failed: [] 13826s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13826s E 13826s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13826s E of the deprecation of `distutils` itself. It will be removed for 13826s E Python >= 3.12. For older Python versions it will remain present. 13826s E It is recommended to use `setuptools < 60.0` for those Python versions. 13826s E For more details, see: 13826s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13826s E 13826s E 13826s E from numpy.distutils.core import setup 13826s E running build_ext 13826s E running build_src 13826s E INFO: build_src 13826s E INFO: building extension "test_array_from_pyobj_ext" sources 13826s E INFO: build_src: building npy-pkg config files 13826s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13826s E !! 13826s E 13826s E ******************************************************************************** 13826s E Please avoid running ``setup.py`` directly. 13826s E Instead, use pypa/build, pypa/installer or other 13826s E standards-based tools. 13826s E 13826s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13826s E ******************************************************************************** 13826s E 13826s E !! 13826s E self.initialize_options() 13826s E INFO: customize UnixCCompiler 13826s E INFO: customize UnixCCompiler using build_ext 13826s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/tmp 13826s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/usr 13826s E creating /tmp/tmppq19o2st/usr/lib 13826s E creating /tmp/tmppq19o2st/usr/lib/python3 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=native' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-O3' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-Werror' 13826s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13826s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-vfpv4' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=armv8.2-a+fp16' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13826s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13826s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13826s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13826s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13826s E INFO: building 'test_array_from_pyobj_ext' extension 13826s E INFO: compiling C sources 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13826s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13826s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13826s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13826s E 14 | #include 13826s E | ^~~~~~~~~~ 13826s E In file included from fortranobject.c:2: 13826s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13826s E 7 | #include 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E compilation terminated. 13826s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13826s E INFO: 13826s E ########### EXT COMPILER OPTIMIZATION ########### 13826s E INFO: Platform : 13826s E Architecture: armhf 13826s E Compiler : gcc 13826s E 13826s E CPU baseline : 13826s E Requested : 'min' 13826s E Enabled : none 13826s E Flags : none 13826s E Extra checks: none 13826s E 13826s E CPU dispatch : 13826s E Requested : 'max -xop -fma4' 13826s E Enabled : none 13826s E Generated : none 13826s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13826s 13826s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13826s d = '/tmp/tmpjj8q074z' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s err = None 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s kw = {} 13826s module_name = 'test_array_from_pyobj_ext' 13826s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13826s p = 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13826s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-23seq-C-w] ______ 13826s 13826s def setup_module(): 13826s """ 13826s Build the required testing extension module 13826s 13826s """ 13826s global wrap 13826s 13826s # Check compiler availability first 13826s if not util.has_c_compiler(): 13826s pytest.skip("No C compiler available") 13826s 13826s if wrap is None: 13826s config_code = """ 13826s config.add_extension('test_array_from_pyobj_ext', 13826s sources=['wrapmodule.c', 'fortranobject.c'], 13826s define_macros=[]) 13826s """ 13826s d = os.path.dirname(__file__) 13826s src = [ 13826s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13826s util.getpath("src", "fortranobject.c"), 13826s util.getpath("src", "fortranobject.h"), 13826s ] 13826s > wrap = util.build_module_distutils(src, config_code, 13826s "test_array_from_pyobj_ext") 13826s 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13826s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13826s memo[key] = func(*a, **kw) 13826s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13826s func = 13826s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13826s kw = {} 13826s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s 13826s @_memoize 13826s def build_module_distutils(source_files, config_code, module_name, **kw): 13826s """ 13826s Build a module via distutils and import it. 13826s 13826s """ 13826s d = get_module_dir() 13826s 13826s # Copy files 13826s dst_sources = [] 13826s for fn in source_files: 13826s if not os.path.isfile(fn): 13826s raise RuntimeError("%s is not a file" % fn) 13826s dst = os.path.join(d, os.path.basename(fn)) 13826s shutil.copyfile(fn, dst) 13826s dst_sources.append(dst) 13826s 13826s # Build script 13826s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13826s 13826s code = fr""" 13826s import os 13826s import sys 13826s sys.path = {repr(sys.path)} 13826s 13826s def configuration(parent_name='',top_path=None): 13826s from numpy.distutils.misc_util import Configuration 13826s config = Configuration('', parent_name, top_path) 13826s {config_code} 13826s return config 13826s 13826s if __name__ == "__main__": 13826s from numpy.distutils.core import setup 13826s setup(configuration=configuration) 13826s """ 13826s script = os.path.join(d, get_temp_module_name() + ".py") 13826s dst_sources.append(script) 13826s with open(script, "wb") as f: 13826s f.write(asbytes(code)) 13826s 13826s # Build 13826s cwd = os.getcwd() 13826s try: 13826s os.chdir(d) 13826s cmd = [sys.executable, script, "build_ext", "-i"] 13826s p = subprocess.Popen(cmd, 13826s stdout=subprocess.PIPE, 13826s stderr=subprocess.STDOUT) 13826s out, err = p.communicate() 13826s if p.returncode != 0: 13826s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13826s (cmd[4:], asstr(out))) 13826s E RuntimeError: Running distutils build failed: [] 13826s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13826s E 13826s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13826s E of the deprecation of `distutils` itself. It will be removed for 13826s E Python >= 3.12. For older Python versions it will remain present. 13826s E It is recommended to use `setuptools < 60.0` for those Python versions. 13826s E For more details, see: 13826s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13826s E 13826s E 13826s E from numpy.distutils.core import setup 13826s E running build_ext 13826s E running build_src 13826s E INFO: build_src 13826s E INFO: building extension "test_array_from_pyobj_ext" sources 13826s E INFO: build_src: building npy-pkg config files 13826s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13826s E !! 13826s E 13826s E ******************************************************************************** 13826s E Please avoid running ``setup.py`` directly. 13826s E Instead, use pypa/build, pypa/installer or other 13826s E standards-based tools. 13826s E 13826s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13826s E ******************************************************************************** 13826s E 13826s E !! 13826s E self.initialize_options() 13826s E INFO: customize UnixCCompiler 13826s E INFO: customize UnixCCompiler using build_ext 13826s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/tmp 13826s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/usr 13826s E creating /tmp/tmppq19o2st/usr/lib 13826s E creating /tmp/tmppq19o2st/usr/lib/python3 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=native' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-O3' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-Werror' 13826s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13826s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-vfpv4' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=armv8.2-a+fp16' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13826s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13826s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13826s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13826s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13826s E INFO: building 'test_array_from_pyobj_ext' extension 13826s E INFO: compiling C sources 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13826s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13826s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13826s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13826s E 14 | #include 13826s E | ^~~~~~~~~~ 13826s E In file included from fortranobject.c:2: 13826s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13826s E 7 | #include 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E compilation terminated. 13826s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13826s E INFO: 13826s E ########### EXT COMPILER OPTIMIZATION ########### 13826s E INFO: Platform : 13826s E Architecture: armhf 13826s E Compiler : gcc 13826s E 13826s E CPU baseline : 13826s E Requested : 'min' 13826s E Enabled : none 13826s E Flags : none 13826s E Extra checks: none 13826s E 13826s E CPU dispatch : 13826s E Requested : 'max -xop -fma4' 13826s E Enabled : none 13826s E Generated : none 13826s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13826s 13826s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13826s d = '/tmp/tmpjj8q074z' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s err = None 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s kw = {} 13826s module_name = 'test_array_from_pyobj_ext' 13826s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13826s p = 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13826s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-23seq-C-ro] _____ 13826s 13826s def setup_module(): 13826s """ 13826s Build the required testing extension module 13826s 13826s """ 13826s global wrap 13826s 13826s # Check compiler availability first 13826s if not util.has_c_compiler(): 13826s pytest.skip("No C compiler available") 13826s 13826s if wrap is None: 13826s config_code = """ 13826s config.add_extension('test_array_from_pyobj_ext', 13826s sources=['wrapmodule.c', 'fortranobject.c'], 13826s define_macros=[]) 13826s """ 13826s d = os.path.dirname(__file__) 13826s src = [ 13826s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13826s util.getpath("src", "fortranobject.c"), 13826s util.getpath("src", "fortranobject.h"), 13826s ] 13826s > wrap = util.build_module_distutils(src, config_code, 13826s "test_array_from_pyobj_ext") 13826s 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13826s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13826s memo[key] = func(*a, **kw) 13826s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13826s func = 13826s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13826s kw = {} 13826s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s 13826s @_memoize 13826s def build_module_distutils(source_files, config_code, module_name, **kw): 13826s """ 13826s Build a module via distutils and import it. 13826s 13826s """ 13826s d = get_module_dir() 13826s 13826s # Copy files 13826s dst_sources = [] 13826s for fn in source_files: 13826s if not os.path.isfile(fn): 13826s raise RuntimeError("%s is not a file" % fn) 13826s dst = os.path.join(d, os.path.basename(fn)) 13826s shutil.copyfile(fn, dst) 13826s dst_sources.append(dst) 13826s 13826s # Build script 13826s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13826s 13826s code = fr""" 13826s import os 13826s import sys 13826s sys.path = {repr(sys.path)} 13826s 13826s def configuration(parent_name='',top_path=None): 13826s from numpy.distutils.misc_util import Configuration 13826s config = Configuration('', parent_name, top_path) 13826s {config_code} 13826s return config 13826s 13826s if __name__ == "__main__": 13826s from numpy.distutils.core import setup 13826s setup(configuration=configuration) 13826s """ 13826s script = os.path.join(d, get_temp_module_name() + ".py") 13826s dst_sources.append(script) 13826s with open(script, "wb") as f: 13826s f.write(asbytes(code)) 13826s 13826s # Build 13826s cwd = os.getcwd() 13826s try: 13826s os.chdir(d) 13826s cmd = [sys.executable, script, "build_ext", "-i"] 13826s p = subprocess.Popen(cmd, 13826s stdout=subprocess.PIPE, 13826s stderr=subprocess.STDOUT) 13826s out, err = p.communicate() 13826s if p.returncode != 0: 13826s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13826s (cmd[4:], asstr(out))) 13826s E RuntimeError: Running distutils build failed: [] 13826s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13826s E 13826s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13826s E of the deprecation of `distutils` itself. It will be removed for 13826s E Python >= 3.12. For older Python versions it will remain present. 13826s E It is recommended to use `setuptools < 60.0` for those Python versions. 13826s E For more details, see: 13826s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13826s E 13826s E 13826s E from numpy.distutils.core import setup 13826s E running build_ext 13826s E running build_src 13826s E INFO: build_src 13826s E INFO: building extension "test_array_from_pyobj_ext" sources 13826s E INFO: build_src: building npy-pkg config files 13826s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13826s E !! 13826s E 13826s E ******************************************************************************** 13826s E Please avoid running ``setup.py`` directly. 13826s E Instead, use pypa/build, pypa/installer or other 13826s E standards-based tools. 13826s E 13826s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13826s E ******************************************************************************** 13826s E 13826s E !! 13826s E self.initialize_options() 13826s E INFO: customize UnixCCompiler 13826s E INFO: customize UnixCCompiler using build_ext 13826s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/tmp 13826s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/usr 13826s E creating /tmp/tmppq19o2st/usr/lib 13826s E creating /tmp/tmppq19o2st/usr/lib/python3 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=native' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-O3' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-Werror' 13826s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13826s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-vfpv4' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=armv8.2-a+fp16' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13826s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13826s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13826s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13826s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13826s E INFO: building 'test_array_from_pyobj_ext' extension 13826s E INFO: compiling C sources 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13826s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13826s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13826s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13826s E 14 | #include 13826s E | ^~~~~~~~~~ 13826s E In file included from fortranobject.c:2: 13826s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13826s E 7 | #include 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E compilation terminated. 13826s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13826s E INFO: 13826s E ########### EXT COMPILER OPTIMIZATION ########### 13826s E INFO: Platform : 13826s E Architecture: armhf 13826s E Compiler : gcc 13826s E 13826s E CPU baseline : 13826s E Requested : 'min' 13826s E Enabled : none 13826s E Flags : none 13826s E Extra checks: none 13826s E 13826s E CPU dispatch : 13826s E Requested : 'max -xop -fma4' 13826s E Enabled : none 13826s E Generated : none 13826s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13826s 13826s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13826s d = '/tmp/tmpjj8q074z' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s err = None 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s kw = {} 13826s module_name = 'test_array_from_pyobj_ext' 13826s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13826s p = 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13826s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-23seq-F-w] ______ 13826s 13826s def setup_module(): 13826s """ 13826s Build the required testing extension module 13826s 13826s """ 13826s global wrap 13826s 13826s # Check compiler availability first 13826s if not util.has_c_compiler(): 13826s pytest.skip("No C compiler available") 13826s 13826s if wrap is None: 13826s config_code = """ 13826s config.add_extension('test_array_from_pyobj_ext', 13826s sources=['wrapmodule.c', 'fortranobject.c'], 13826s define_macros=[]) 13826s """ 13826s d = os.path.dirname(__file__) 13826s src = [ 13826s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13826s util.getpath("src", "fortranobject.c"), 13826s util.getpath("src", "fortranobject.h"), 13826s ] 13826s > wrap = util.build_module_distutils(src, config_code, 13826s "test_array_from_pyobj_ext") 13826s 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13826s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13826s memo[key] = func(*a, **kw) 13826s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13826s func = 13826s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13826s kw = {} 13826s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13826s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13826s 13826s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13826s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13826s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13826s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13826s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13826s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13826s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13826s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13826s 13826s @_memoize 13826s def build_module_distutils(source_files, config_code, module_name, **kw): 13826s """ 13826s Build a module via distutils and import it. 13826s 13826s """ 13826s d = get_module_dir() 13826s 13826s # Copy files 13826s dst_sources = [] 13826s for fn in source_files: 13826s if not os.path.isfile(fn): 13826s raise RuntimeError("%s is not a file" % fn) 13826s dst = os.path.join(d, os.path.basename(fn)) 13826s shutil.copyfile(fn, dst) 13826s dst_sources.append(dst) 13826s 13826s # Build script 13826s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13826s 13826s code = fr""" 13826s import os 13826s import sys 13826s sys.path = {repr(sys.path)} 13826s 13826s def configuration(parent_name='',top_path=None): 13826s from numpy.distutils.misc_util import Configuration 13826s config = Configuration('', parent_name, top_path) 13826s {config_code} 13826s return config 13826s 13826s if __name__ == "__main__": 13826s from numpy.distutils.core import setup 13826s setup(configuration=configuration) 13826s """ 13826s script = os.path.join(d, get_temp_module_name() + ".py") 13826s dst_sources.append(script) 13826s with open(script, "wb") as f: 13826s f.write(asbytes(code)) 13826s 13826s # Build 13826s cwd = os.getcwd() 13826s try: 13826s os.chdir(d) 13826s cmd = [sys.executable, script, "build_ext", "-i"] 13826s p = subprocess.Popen(cmd, 13826s stdout=subprocess.PIPE, 13826s stderr=subprocess.STDOUT) 13826s out, err = p.communicate() 13826s if p.returncode != 0: 13826s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13826s (cmd[4:], asstr(out))) 13826s E RuntimeError: Running distutils build failed: [] 13826s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13826s E 13826s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13826s E of the deprecation of `distutils` itself. It will be removed for 13826s E Python >= 3.12. For older Python versions it will remain present. 13826s E It is recommended to use `setuptools < 60.0` for those Python versions. 13826s E For more details, see: 13826s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13826s E 13826s E 13826s E from numpy.distutils.core import setup 13826s E running build_ext 13826s E running build_src 13826s E INFO: build_src 13826s E INFO: building extension "test_array_from_pyobj_ext" sources 13826s E INFO: build_src: building npy-pkg config files 13826s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13826s E !! 13826s E 13826s E ******************************************************************************** 13826s E Please avoid running ``setup.py`` directly. 13826s E Instead, use pypa/build, pypa/installer or other 13826s E standards-based tools. 13826s E 13826s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13826s E ******************************************************************************** 13826s E 13826s E !! 13826s E self.initialize_options() 13826s E INFO: customize UnixCCompiler 13826s E INFO: customize UnixCCompiler using build_ext 13826s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/tmp 13826s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E creating /tmp/tmppq19o2st/usr 13826s E creating /tmp/tmppq19o2st/usr/lib 13826s E creating /tmp/tmppq19o2st/usr/lib/python3 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13826s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=native' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-O3' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-Werror' 13826s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13826s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon -Werror' 13826s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13826s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13826s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13826s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13826s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13826s E 9 | # include_next 13826s E | ^~~~~~~~~~ 13826s E compilation terminated. 13826s E 13826s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-vfpv4' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13826s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13826s E INFO: compile options: '-I/usr/include/python3.12 -c' 13826s E extra options: '-march=armv8.2-a+fp16' 13826s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13826s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13826s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[DOUBLE-23seq-F-ro] _____ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[DOUBLE] __________ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[DOUBLE] _________ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[DOUBLE] _________ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[DOUBLE] ____ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[DOUBLE] ________ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[DOUBLE] ______ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[DOUBLE] _____ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s err = None 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s kw = {} 13827s module_name = 'test_array_from_pyobj_ext' 13827s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13827s p = 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13827s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[DOUBLE] _____ 13827s 13827s def setup_module(): 13827s """ 13827s Build the required testing extension module 13827s 13827s """ 13827s global wrap 13827s 13827s # Check compiler availability first 13827s if not util.has_c_compiler(): 13827s pytest.skip("No C compiler available") 13827s 13827s if wrap is None: 13827s config_code = """ 13827s config.add_extension('test_array_from_pyobj_ext', 13827s sources=['wrapmodule.c', 'fortranobject.c'], 13827s define_macros=[]) 13827s """ 13827s d = os.path.dirname(__file__) 13827s src = [ 13827s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13827s util.getpath("src", "fortranobject.c"), 13827s util.getpath("src", "fortranobject.h"), 13827s ] 13827s > wrap = util.build_module_distutils(src, config_code, 13827s "test_array_from_pyobj_ext") 13827s 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13827s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13827s memo[key] = func(*a, **kw) 13827s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13827s func = 13827s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13827s kw = {} 13827s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13827s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13827s 13827s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13827s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13827s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13827s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13827s 13827s @_memoize 13827s def build_module_distutils(source_files, config_code, module_name, **kw): 13827s """ 13827s Build a module via distutils and import it. 13827s 13827s """ 13827s d = get_module_dir() 13827s 13827s # Copy files 13827s dst_sources = [] 13827s for fn in source_files: 13827s if not os.path.isfile(fn): 13827s raise RuntimeError("%s is not a file" % fn) 13827s dst = os.path.join(d, os.path.basename(fn)) 13827s shutil.copyfile(fn, dst) 13827s dst_sources.append(dst) 13827s 13827s # Build script 13827s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13827s 13827s code = fr""" 13827s import os 13827s import sys 13827s sys.path = {repr(sys.path)} 13827s 13827s def configuration(parent_name='',top_path=None): 13827s from numpy.distutils.misc_util import Configuration 13827s config = Configuration('', parent_name, top_path) 13827s {config_code} 13827s return config 13827s 13827s if __name__ == "__main__": 13827s from numpy.distutils.core import setup 13827s setup(configuration=configuration) 13827s """ 13827s script = os.path.join(d, get_temp_module_name() + ".py") 13827s dst_sources.append(script) 13827s with open(script, "wb") as f: 13827s f.write(asbytes(code)) 13827s 13827s # Build 13827s cwd = os.getcwd() 13827s try: 13827s os.chdir(d) 13827s cmd = [sys.executable, script, "build_ext", "-i"] 13827s p = subprocess.Popen(cmd, 13827s stdout=subprocess.PIPE, 13827s stderr=subprocess.STDOUT) 13827s out, err = p.communicate() 13827s if p.returncode != 0: 13827s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13827s (cmd[4:], asstr(out))) 13827s E RuntimeError: Running distutils build failed: [] 13827s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13827s E 13827s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13827s E of the deprecation of `distutils` itself. It will be removed for 13827s E Python >= 3.12. For older Python versions it will remain present. 13827s E It is recommended to use `setuptools < 60.0` for those Python versions. 13827s E For more details, see: 13827s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13827s E 13827s E 13827s E from numpy.distutils.core import setup 13827s E running build_ext 13827s E running build_src 13827s E INFO: build_src 13827s E INFO: building extension "test_array_from_pyobj_ext" sources 13827s E INFO: build_src: building npy-pkg config files 13827s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13827s E !! 13827s E 13827s E ******************************************************************************** 13827s E Please avoid running ``setup.py`` directly. 13827s E Instead, use pypa/build, pypa/installer or other 13827s E standards-based tools. 13827s E 13827s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13827s E ******************************************************************************** 13827s E 13827s E !! 13827s E self.initialize_options() 13827s E INFO: customize UnixCCompiler 13827s E INFO: customize UnixCCompiler using build_ext 13827s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/tmp 13827s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E creating /tmp/tmppq19o2st/usr 13827s E creating /tmp/tmppq19o2st/usr/lib 13827s E creating /tmp/tmppq19o2st/usr/lib/python3 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13827s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=native' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-O3' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-Werror' 13827s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13827s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-vfpv4' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13827s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-march=armv8.2-a+fp16' 13827s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/include/python3.12 -c' 13827s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13827s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13827s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13827s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13827s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13827s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13827s E 9 | # include_next 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E 13827s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13827s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13827s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13827s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13827s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13827s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13827s E INFO: building 'test_array_from_pyobj_ext' extension 13827s E INFO: compiling C sources 13827s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13827s E 13827s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13827s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13827s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13827s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13827s E 14 | #include 13827s E | ^~~~~~~~~~ 13827s E In file included from fortranobject.c:2: 13827s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13827s E 7 | #include 13827s E | ^~~~~~~~~~ 13827s E compilation terminated. 13827s E compilation terminated. 13827s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13827s E INFO: 13827s E ########### EXT COMPILER OPTIMIZATION ########### 13827s E INFO: Platform : 13827s E Architecture: armhf 13827s E Compiler : gcc 13827s E 13827s E CPU baseline : 13827s E Requested : 'min' 13827s E Enabled : none 13827s E Flags : none 13827s E Extra checks: none 13827s E 13827s E CPU dispatch : 13827s E Requested : 'max -xop -fma4' 13827s E Enabled : none 13827s E Generated : none 13827s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13827s 13827s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13827s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13827s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13827s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13827s d = '/tmp/tmpjj8q074z' 13827s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s err = None 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s kw = {} 13828s module_name = 'test_array_from_pyobj_ext' 13828s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13828s p = 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13828s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[DOUBLE] ___ 13828s 13828s def setup_module(): 13828s """ 13828s Build the required testing extension module 13828s 13828s """ 13828s global wrap 13828s 13828s # Check compiler availability first 13828s if not util.has_c_compiler(): 13828s pytest.skip("No C compiler available") 13828s 13828s if wrap is None: 13828s config_code = """ 13828s config.add_extension('test_array_from_pyobj_ext', 13828s sources=['wrapmodule.c', 'fortranobject.c'], 13828s define_macros=[]) 13828s """ 13828s d = os.path.dirname(__file__) 13828s src = [ 13828s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13828s util.getpath("src", "fortranobject.c"), 13828s util.getpath("src", "fortranobject.h"), 13828s ] 13828s > wrap = util.build_module_distutils(src, config_code, 13828s "test_array_from_pyobj_ext") 13828s 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13828s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13828s memo[key] = func(*a, **kw) 13828s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13828s func = 13828s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13828s kw = {} 13828s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s 13828s @_memoize 13828s def build_module_distutils(source_files, config_code, module_name, **kw): 13828s """ 13828s Build a module via distutils and import it. 13828s 13828s """ 13828s d = get_module_dir() 13828s 13828s # Copy files 13828s dst_sources = [] 13828s for fn in source_files: 13828s if not os.path.isfile(fn): 13828s raise RuntimeError("%s is not a file" % fn) 13828s dst = os.path.join(d, os.path.basename(fn)) 13828s shutil.copyfile(fn, dst) 13828s dst_sources.append(dst) 13828s 13828s # Build script 13828s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13828s 13828s code = fr""" 13828s import os 13828s import sys 13828s sys.path = {repr(sys.path)} 13828s 13828s def configuration(parent_name='',top_path=None): 13828s from numpy.distutils.misc_util import Configuration 13828s config = Configuration('', parent_name, top_path) 13828s {config_code} 13828s return config 13828s 13828s if __name__ == "__main__": 13828s from numpy.distutils.core import setup 13828s setup(configuration=configuration) 13828s """ 13828s script = os.path.join(d, get_temp_module_name() + ".py") 13828s dst_sources.append(script) 13828s with open(script, "wb") as f: 13828s f.write(asbytes(code)) 13828s 13828s # Build 13828s cwd = os.getcwd() 13828s try: 13828s os.chdir(d) 13828s cmd = [sys.executable, script, "build_ext", "-i"] 13828s p = subprocess.Popen(cmd, 13828s stdout=subprocess.PIPE, 13828s stderr=subprocess.STDOUT) 13828s out, err = p.communicate() 13828s if p.returncode != 0: 13828s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13828s (cmd[4:], asstr(out))) 13828s E RuntimeError: Running distutils build failed: [] 13828s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13828s E 13828s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13828s E of the deprecation of `distutils` itself. It will be removed for 13828s E Python >= 3.12. For older Python versions it will remain present. 13828s E It is recommended to use `setuptools < 60.0` for those Python versions. 13828s E For more details, see: 13828s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13828s E 13828s E 13828s E from numpy.distutils.core import setup 13828s E running build_ext 13828s E running build_src 13828s E INFO: build_src 13828s E INFO: building extension "test_array_from_pyobj_ext" sources 13828s E INFO: build_src: building npy-pkg config files 13828s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13828s E !! 13828s E 13828s E ******************************************************************************** 13828s E Please avoid running ``setup.py`` directly. 13828s E Instead, use pypa/build, pypa/installer or other 13828s E standards-based tools. 13828s E 13828s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13828s E ******************************************************************************** 13828s E 13828s E !! 13828s E self.initialize_options() 13828s E INFO: customize UnixCCompiler 13828s E INFO: customize UnixCCompiler using build_ext 13828s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/tmp 13828s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/usr 13828s E creating /tmp/tmppq19o2st/usr/lib 13828s E creating /tmp/tmppq19o2st/usr/lib/python3 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=native' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-O3' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-Werror' 13828s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13828s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-vfpv4' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=armv8.2-a+fp16' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13828s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13828s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13828s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13828s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13828s E INFO: building 'test_array_from_pyobj_ext' extension 13828s E INFO: compiling C sources 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13828s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13828s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13828s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13828s E 14 | #include 13828s E | ^~~~~~~~~~ 13828s E In file included from fortranobject.c:2: 13828s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13828s E 7 | #include 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E compilation terminated. 13828s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13828s E INFO: 13828s E ########### EXT COMPILER OPTIMIZATION ########### 13828s E INFO: Platform : 13828s E Architecture: armhf 13828s E Compiler : gcc 13828s E 13828s E CPU baseline : 13828s E Requested : 'min' 13828s E Enabled : none 13828s E Flags : none 13828s E Extra checks: none 13828s E 13828s E CPU dispatch : 13828s E Requested : 'max -xop -fma4' 13828s E Enabled : none 13828s E Generated : none 13828s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13828s 13828s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13828s d = '/tmp/tmpjj8q074z' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s err = None 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s kw = {} 13828s module_name = 'test_array_from_pyobj_ext' 13828s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13828s p = 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13828s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[DOUBLE] ___ 13828s 13828s def setup_module(): 13828s """ 13828s Build the required testing extension module 13828s 13828s """ 13828s global wrap 13828s 13828s # Check compiler availability first 13828s if not util.has_c_compiler(): 13828s pytest.skip("No C compiler available") 13828s 13828s if wrap is None: 13828s config_code = """ 13828s config.add_extension('test_array_from_pyobj_ext', 13828s sources=['wrapmodule.c', 'fortranobject.c'], 13828s define_macros=[]) 13828s """ 13828s d = os.path.dirname(__file__) 13828s src = [ 13828s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13828s util.getpath("src", "fortranobject.c"), 13828s util.getpath("src", "fortranobject.h"), 13828s ] 13828s > wrap = util.build_module_distutils(src, config_code, 13828s "test_array_from_pyobj_ext") 13828s 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13828s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13828s memo[key] = func(*a, **kw) 13828s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13828s func = 13828s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13828s kw = {} 13828s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s 13828s @_memoize 13828s def build_module_distutils(source_files, config_code, module_name, **kw): 13828s """ 13828s Build a module via distutils and import it. 13828s 13828s """ 13828s d = get_module_dir() 13828s 13828s # Copy files 13828s dst_sources = [] 13828s for fn in source_files: 13828s if not os.path.isfile(fn): 13828s raise RuntimeError("%s is not a file" % fn) 13828s dst = os.path.join(d, os.path.basename(fn)) 13828s shutil.copyfile(fn, dst) 13828s dst_sources.append(dst) 13828s 13828s # Build script 13828s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13828s 13828s code = fr""" 13828s import os 13828s import sys 13828s sys.path = {repr(sys.path)} 13828s 13828s def configuration(parent_name='',top_path=None): 13828s from numpy.distutils.misc_util import Configuration 13828s config = Configuration('', parent_name, top_path) 13828s {config_code} 13828s return config 13828s 13828s if __name__ == "__main__": 13828s from numpy.distutils.core import setup 13828s setup(configuration=configuration) 13828s """ 13828s script = os.path.join(d, get_temp_module_name() + ".py") 13828s dst_sources.append(script) 13828s with open(script, "wb") as f: 13828s f.write(asbytes(code)) 13828s 13828s # Build 13828s cwd = os.getcwd() 13828s try: 13828s os.chdir(d) 13828s cmd = [sys.executable, script, "build_ext", "-i"] 13828s p = subprocess.Popen(cmd, 13828s stdout=subprocess.PIPE, 13828s stderr=subprocess.STDOUT) 13828s out, err = p.communicate() 13828s if p.returncode != 0: 13828s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13828s (cmd[4:], asstr(out))) 13828s E RuntimeError: Running distutils build failed: [] 13828s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13828s E 13828s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13828s E of the deprecation of `distutils` itself. It will be removed for 13828s E Python >= 3.12. For older Python versions it will remain present. 13828s E It is recommended to use `setuptools < 60.0` for those Python versions. 13828s E For more details, see: 13828s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13828s E 13828s E 13828s E from numpy.distutils.core import setup 13828s E running build_ext 13828s E running build_src 13828s E INFO: build_src 13828s E INFO: building extension "test_array_from_pyobj_ext" sources 13828s E INFO: build_src: building npy-pkg config files 13828s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13828s E !! 13828s E 13828s E ******************************************************************************** 13828s E Please avoid running ``setup.py`` directly. 13828s E Instead, use pypa/build, pypa/installer or other 13828s E standards-based tools. 13828s E 13828s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13828s E ******************************************************************************** 13828s E 13828s E !! 13828s E self.initialize_options() 13828s E INFO: customize UnixCCompiler 13828s E INFO: customize UnixCCompiler using build_ext 13828s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/tmp 13828s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/usr 13828s E creating /tmp/tmppq19o2st/usr/lib 13828s E creating /tmp/tmppq19o2st/usr/lib/python3 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=native' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-O3' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-Werror' 13828s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13828s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-vfpv4' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=armv8.2-a+fp16' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13828s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13828s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13828s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13828s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13828s E INFO: building 'test_array_from_pyobj_ext' extension 13828s E INFO: compiling C sources 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13828s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13828s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13828s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13828s E 14 | #include 13828s E | ^~~~~~~~~~ 13828s E In file included from fortranobject.c:2: 13828s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13828s E 7 | #include 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E compilation terminated. 13828s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13828s E INFO: 13828s E ########### EXT COMPILER OPTIMIZATION ########### 13828s E INFO: Platform : 13828s E Architecture: armhf 13828s E Compiler : gcc 13828s E 13828s E CPU baseline : 13828s E Requested : 'min' 13828s E Enabled : none 13828s E Flags : none 13828s E Extra checks: none 13828s E 13828s E CPU dispatch : 13828s E Requested : 'max -xop -fma4' 13828s E Enabled : none 13828s E Generated : none 13828s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13828s 13828s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13828s d = '/tmp/tmpjj8q074z' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s err = None 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s kw = {} 13828s module_name = 'test_array_from_pyobj_ext' 13828s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13828s p = 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13828s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[DOUBLE] ____ 13828s 13828s def setup_module(): 13828s """ 13828s Build the required testing extension module 13828s 13828s """ 13828s global wrap 13828s 13828s # Check compiler availability first 13828s if not util.has_c_compiler(): 13828s pytest.skip("No C compiler available") 13828s 13828s if wrap is None: 13828s config_code = """ 13828s config.add_extension('test_array_from_pyobj_ext', 13828s sources=['wrapmodule.c', 'fortranobject.c'], 13828s define_macros=[]) 13828s """ 13828s d = os.path.dirname(__file__) 13828s src = [ 13828s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13828s util.getpath("src", "fortranobject.c"), 13828s util.getpath("src", "fortranobject.h"), 13828s ] 13828s > wrap = util.build_module_distutils(src, config_code, 13828s "test_array_from_pyobj_ext") 13828s 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13828s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13828s memo[key] = func(*a, **kw) 13828s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13828s func = 13828s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13828s kw = {} 13828s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s 13828s @_memoize 13828s def build_module_distutils(source_files, config_code, module_name, **kw): 13828s """ 13828s Build a module via distutils and import it. 13828s 13828s """ 13828s d = get_module_dir() 13828s 13828s # Copy files 13828s dst_sources = [] 13828s for fn in source_files: 13828s if not os.path.isfile(fn): 13828s raise RuntimeError("%s is not a file" % fn) 13828s dst = os.path.join(d, os.path.basename(fn)) 13828s shutil.copyfile(fn, dst) 13828s dst_sources.append(dst) 13828s 13828s # Build script 13828s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13828s 13828s code = fr""" 13828s import os 13828s import sys 13828s sys.path = {repr(sys.path)} 13828s 13828s def configuration(parent_name='',top_path=None): 13828s from numpy.distutils.misc_util import Configuration 13828s config = Configuration('', parent_name, top_path) 13828s {config_code} 13828s return config 13828s 13828s if __name__ == "__main__": 13828s from numpy.distutils.core import setup 13828s setup(configuration=configuration) 13828s """ 13828s script = os.path.join(d, get_temp_module_name() + ".py") 13828s dst_sources.append(script) 13828s with open(script, "wb") as f: 13828s f.write(asbytes(code)) 13828s 13828s # Build 13828s cwd = os.getcwd() 13828s try: 13828s os.chdir(d) 13828s cmd = [sys.executable, script, "build_ext", "-i"] 13828s p = subprocess.Popen(cmd, 13828s stdout=subprocess.PIPE, 13828s stderr=subprocess.STDOUT) 13828s out, err = p.communicate() 13828s if p.returncode != 0: 13828s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13828s (cmd[4:], asstr(out))) 13828s E RuntimeError: Running distutils build failed: [] 13828s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13828s E 13828s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13828s E of the deprecation of `distutils` itself. It will be removed for 13828s E Python >= 3.12. For older Python versions it will remain present. 13828s E It is recommended to use `setuptools < 60.0` for those Python versions. 13828s E For more details, see: 13828s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13828s E 13828s E 13828s E from numpy.distutils.core import setup 13828s E running build_ext 13828s E running build_src 13828s E INFO: build_src 13828s E INFO: building extension "test_array_from_pyobj_ext" sources 13828s E INFO: build_src: building npy-pkg config files 13828s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13828s E !! 13828s E 13828s E ******************************************************************************** 13828s E Please avoid running ``setup.py`` directly. 13828s E Instead, use pypa/build, pypa/installer or other 13828s E standards-based tools. 13828s E 13828s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13828s E ******************************************************************************** 13828s E 13828s E !! 13828s E self.initialize_options() 13828s E INFO: customize UnixCCompiler 13828s E INFO: customize UnixCCompiler using build_ext 13828s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/tmp 13828s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/usr 13828s E creating /tmp/tmppq19o2st/usr/lib 13828s E creating /tmp/tmppq19o2st/usr/lib/python3 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=native' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-O3' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-Werror' 13828s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13828s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-vfpv4' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=armv8.2-a+fp16' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13828s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13828s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13828s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13828s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13828s E INFO: building 'test_array_from_pyobj_ext' extension 13828s E INFO: compiling C sources 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13828s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13828s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13828s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13828s E 14 | #include 13828s E | ^~~~~~~~~~ 13828s E In file included from fortranobject.c:2: 13828s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13828s E 7 | #include 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E compilation terminated. 13828s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13828s E INFO: 13828s E ########### EXT COMPILER OPTIMIZATION ########### 13828s E INFO: Platform : 13828s E Architecture: armhf 13828s E Compiler : gcc 13828s E 13828s E CPU baseline : 13828s E Requested : 'min' 13828s E Enabled : none 13828s E Flags : none 13828s E Extra checks: none 13828s E 13828s E CPU dispatch : 13828s E Requested : 'max -xop -fma4' 13828s E Enabled : none 13828s E Generated : none 13828s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13828s 13828s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13828s d = '/tmp/tmpjj8q074z' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s err = None 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s kw = {} 13828s module_name = 'test_array_from_pyobj_ext' 13828s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13828s p = 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13828s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[DOUBLE] _ 13828s 13828s def setup_module(): 13828s """ 13828s Build the required testing extension module 13828s 13828s """ 13828s global wrap 13828s 13828s # Check compiler availability first 13828s if not util.has_c_compiler(): 13828s pytest.skip("No C compiler available") 13828s 13828s if wrap is None: 13828s config_code = """ 13828s config.add_extension('test_array_from_pyobj_ext', 13828s sources=['wrapmodule.c', 'fortranobject.c'], 13828s define_macros=[]) 13828s """ 13828s d = os.path.dirname(__file__) 13828s src = [ 13828s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13828s util.getpath("src", "fortranobject.c"), 13828s util.getpath("src", "fortranobject.h"), 13828s ] 13828s > wrap = util.build_module_distutils(src, config_code, 13828s "test_array_from_pyobj_ext") 13828s 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13828s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13828s memo[key] = func(*a, **kw) 13828s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13828s func = 13828s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13828s kw = {} 13828s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s 13828s @_memoize 13828s def build_module_distutils(source_files, config_code, module_name, **kw): 13828s """ 13828s Build a module via distutils and import it. 13828s 13828s """ 13828s d = get_module_dir() 13828s 13828s # Copy files 13828s dst_sources = [] 13828s for fn in source_files: 13828s if not os.path.isfile(fn): 13828s raise RuntimeError("%s is not a file" % fn) 13828s dst = os.path.join(d, os.path.basename(fn)) 13828s shutil.copyfile(fn, dst) 13828s dst_sources.append(dst) 13828s 13828s # Build script 13828s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13828s 13828s code = fr""" 13828s import os 13828s import sys 13828s sys.path = {repr(sys.path)} 13828s 13828s def configuration(parent_name='',top_path=None): 13828s from numpy.distutils.misc_util import Configuration 13828s config = Configuration('', parent_name, top_path) 13828s {config_code} 13828s return config 13828s 13828s if __name__ == "__main__": 13828s from numpy.distutils.core import setup 13828s setup(configuration=configuration) 13828s """ 13828s script = os.path.join(d, get_temp_module_name() + ".py") 13828s dst_sources.append(script) 13828s with open(script, "wb") as f: 13828s f.write(asbytes(code)) 13828s 13828s # Build 13828s cwd = os.getcwd() 13828s try: 13828s os.chdir(d) 13828s cmd = [sys.executable, script, "build_ext", "-i"] 13828s p = subprocess.Popen(cmd, 13828s stdout=subprocess.PIPE, 13828s stderr=subprocess.STDOUT) 13828s out, err = p.communicate() 13828s if p.returncode != 0: 13828s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13828s (cmd[4:], asstr(out))) 13828s E RuntimeError: Running distutils build failed: [] 13828s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13828s E 13828s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13828s E of the deprecation of `distutils` itself. It will be removed for 13828s E Python >= 3.12. For older Python versions it will remain present. 13828s E It is recommended to use `setuptools < 60.0` for those Python versions. 13828s E For more details, see: 13828s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13828s E 13828s E 13828s E from numpy.distutils.core import setup 13828s E running build_ext 13828s E running build_src 13828s E INFO: build_src 13828s E INFO: building extension "test_array_from_pyobj_ext" sources 13828s E INFO: build_src: building npy-pkg config files 13828s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13828s E !! 13828s E 13828s E ******************************************************************************** 13828s E Please avoid running ``setup.py`` directly. 13828s E Instead, use pypa/build, pypa/installer or other 13828s E standards-based tools. 13828s E 13828s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13828s E ******************************************************************************** 13828s E 13828s E !! 13828s E self.initialize_options() 13828s E INFO: customize UnixCCompiler 13828s E INFO: customize UnixCCompiler using build_ext 13828s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/tmp 13828s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/usr 13828s E creating /tmp/tmppq19o2st/usr/lib 13828s E creating /tmp/tmppq19o2st/usr/lib/python3 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=native' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-O3' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-Werror' 13828s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13828s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-vfpv4' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=armv8.2-a+fp16' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13828s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13828s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13828s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13828s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13828s E INFO: building 'test_array_from_pyobj_ext' extension 13828s E INFO: compiling C sources 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13828s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13828s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13828s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13828s E 14 | #include 13828s E | ^~~~~~~~~~ 13828s E In file included from fortranobject.c:2: 13828s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13828s E 7 | #include 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E compilation terminated. 13828s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13828s E INFO: 13828s E ########### EXT COMPILER OPTIMIZATION ########### 13828s E INFO: Platform : 13828s E Architecture: armhf 13828s E Compiler : gcc 13828s E 13828s E CPU baseline : 13828s E Requested : 'min' 13828s E Enabled : none 13828s E Flags : none 13828s E Extra checks: none 13828s E 13828s E CPU dispatch : 13828s E Requested : 'max -xop -fma4' 13828s E Enabled : none 13828s E Generated : none 13828s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13828s 13828s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13828s d = '/tmp/tmpjj8q074z' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s err = None 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s kw = {} 13828s module_name = 'test_array_from_pyobj_ext' 13828s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13828s p = 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13828s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[DOUBLE] _________ 13828s 13828s def setup_module(): 13828s """ 13828s Build the required testing extension module 13828s 13828s """ 13828s global wrap 13828s 13828s # Check compiler availability first 13828s if not util.has_c_compiler(): 13828s pytest.skip("No C compiler available") 13828s 13828s if wrap is None: 13828s config_code = """ 13828s config.add_extension('test_array_from_pyobj_ext', 13828s sources=['wrapmodule.c', 'fortranobject.c'], 13828s define_macros=[]) 13828s """ 13828s d = os.path.dirname(__file__) 13828s src = [ 13828s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13828s util.getpath("src", "fortranobject.c"), 13828s util.getpath("src", "fortranobject.h"), 13828s ] 13828s > wrap = util.build_module_distutils(src, config_code, 13828s "test_array_from_pyobj_ext") 13828s 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13828s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13828s memo[key] = func(*a, **kw) 13828s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13828s func = 13828s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13828s kw = {} 13828s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s 13828s @_memoize 13828s def build_module_distutils(source_files, config_code, module_name, **kw): 13828s """ 13828s Build a module via distutils and import it. 13828s 13828s """ 13828s d = get_module_dir() 13828s 13828s # Copy files 13828s dst_sources = [] 13828s for fn in source_files: 13828s if not os.path.isfile(fn): 13828s raise RuntimeError("%s is not a file" % fn) 13828s dst = os.path.join(d, os.path.basename(fn)) 13828s shutil.copyfile(fn, dst) 13828s dst_sources.append(dst) 13828s 13828s # Build script 13828s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13828s 13828s code = fr""" 13828s import os 13828s import sys 13828s sys.path = {repr(sys.path)} 13828s 13828s def configuration(parent_name='',top_path=None): 13828s from numpy.distutils.misc_util import Configuration 13828s config = Configuration('', parent_name, top_path) 13828s {config_code} 13828s return config 13828s 13828s if __name__ == "__main__": 13828s from numpy.distutils.core import setup 13828s setup(configuration=configuration) 13828s """ 13828s script = os.path.join(d, get_temp_module_name() + ".py") 13828s dst_sources.append(script) 13828s with open(script, "wb") as f: 13828s f.write(asbytes(code)) 13828s 13828s # Build 13828s cwd = os.getcwd() 13828s try: 13828s os.chdir(d) 13828s cmd = [sys.executable, script, "build_ext", "-i"] 13828s p = subprocess.Popen(cmd, 13828s stdout=subprocess.PIPE, 13828s stderr=subprocess.STDOUT) 13828s out, err = p.communicate() 13828s if p.returncode != 0: 13828s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13828s (cmd[4:], asstr(out))) 13828s E RuntimeError: Running distutils build failed: [] 13828s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13828s E 13828s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13828s E of the deprecation of `distutils` itself. It will be removed for 13828s E Python >= 3.12. For older Python versions it will remain present. 13828s E It is recommended to use `setuptools < 60.0` for those Python versions. 13828s E For more details, see: 13828s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13828s E 13828s E 13828s E from numpy.distutils.core import setup 13828s E running build_ext 13828s E running build_src 13828s E INFO: build_src 13828s E INFO: building extension "test_array_from_pyobj_ext" sources 13828s E INFO: build_src: building npy-pkg config files 13828s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13828s E !! 13828s E 13828s E ******************************************************************************** 13828s E Please avoid running ``setup.py`` directly. 13828s E Instead, use pypa/build, pypa/installer or other 13828s E standards-based tools. 13828s E 13828s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13828s E ******************************************************************************** 13828s E 13828s E !! 13828s E self.initialize_options() 13828s E INFO: customize UnixCCompiler 13828s E INFO: customize UnixCCompiler using build_ext 13828s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/tmp 13828s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/usr 13828s E creating /tmp/tmppq19o2st/usr/lib 13828s E creating /tmp/tmppq19o2st/usr/lib/python3 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=native' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-O3' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-Werror' 13828s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13828s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-vfpv4' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=armv8.2-a+fp16' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13828s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13828s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13828s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13828s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13828s E INFO: building 'test_array_from_pyobj_ext' extension 13828s E INFO: compiling C sources 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13828s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13828s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13828s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13828s E 14 | #include 13828s E | ^~~~~~~~~~ 13828s E In file included from fortranobject.c:2: 13828s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13828s E 7 | #include 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E compilation terminated. 13828s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13828s E INFO: 13828s E ########### EXT COMPILER OPTIMIZATION ########### 13828s E INFO: Platform : 13828s E Architecture: armhf 13828s E Compiler : gcc 13828s E 13828s E CPU baseline : 13828s E Requested : 'min' 13828s E Enabled : none 13828s E Flags : none 13828s E Extra checks: none 13828s E 13828s E CPU dispatch : 13828s E Requested : 'max -xop -fma4' 13828s E Enabled : none 13828s E Generated : none 13828s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13828s 13828s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13828s d = '/tmp/tmpjj8q074z' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s err = None 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s kw = {} 13828s module_name = 'test_array_from_pyobj_ext' 13828s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13828s p = 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13828s ____________ ERROR at setup of TestSharedMemory.test_hidden[DOUBLE] ____________ 13828s 13828s def setup_module(): 13828s """ 13828s Build the required testing extension module 13828s 13828s """ 13828s global wrap 13828s 13828s # Check compiler availability first 13828s if not util.has_c_compiler(): 13828s pytest.skip("No C compiler available") 13828s 13828s if wrap is None: 13828s config_code = """ 13828s config.add_extension('test_array_from_pyobj_ext', 13828s sources=['wrapmodule.c', 'fortranobject.c'], 13828s define_macros=[]) 13828s """ 13828s d = os.path.dirname(__file__) 13828s src = [ 13828s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13828s util.getpath("src", "fortranobject.c"), 13828s util.getpath("src", "fortranobject.h"), 13828s ] 13828s > wrap = util.build_module_distutils(src, config_code, 13828s "test_array_from_pyobj_ext") 13828s 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13828s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13828s memo[key] = func(*a, **kw) 13828s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13828s func = 13828s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13828s kw = {} 13828s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s 13828s @_memoize 13828s def build_module_distutils(source_files, config_code, module_name, **kw): 13828s """ 13828s Build a module via distutils and import it. 13828s 13828s """ 13828s d = get_module_dir() 13828s 13828s # Copy files 13828s dst_sources = [] 13828s for fn in source_files: 13828s if not os.path.isfile(fn): 13828s raise RuntimeError("%s is not a file" % fn) 13828s dst = os.path.join(d, os.path.basename(fn)) 13828s shutil.copyfile(fn, dst) 13828s dst_sources.append(dst) 13828s 13828s # Build script 13828s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13828s 13828s code = fr""" 13828s import os 13828s import sys 13828s sys.path = {repr(sys.path)} 13828s 13828s def configuration(parent_name='',top_path=None): 13828s from numpy.distutils.misc_util import Configuration 13828s config = Configuration('', parent_name, top_path) 13828s {config_code} 13828s return config 13828s 13828s if __name__ == "__main__": 13828s from numpy.distutils.core import setup 13828s setup(configuration=configuration) 13828s """ 13828s script = os.path.join(d, get_temp_module_name() + ".py") 13828s dst_sources.append(script) 13828s with open(script, "wb") as f: 13828s f.write(asbytes(code)) 13828s 13828s # Build 13828s cwd = os.getcwd() 13828s try: 13828s os.chdir(d) 13828s cmd = [sys.executable, script, "build_ext", "-i"] 13828s p = subprocess.Popen(cmd, 13828s stdout=subprocess.PIPE, 13828s stderr=subprocess.STDOUT) 13828s out, err = p.communicate() 13828s if p.returncode != 0: 13828s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13828s (cmd[4:], asstr(out))) 13828s E RuntimeError: Running distutils build failed: [] 13828s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13828s E 13828s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13828s E of the deprecation of `distutils` itself. It will be removed for 13828s E Python >= 3.12. For older Python versions it will remain present. 13828s E It is recommended to use `setuptools < 60.0` for those Python versions. 13828s E For more details, see: 13828s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13828s E 13828s E 13828s E from numpy.distutils.core import setup 13828s E running build_ext 13828s E running build_src 13828s E INFO: build_src 13828s E INFO: building extension "test_array_from_pyobj_ext" sources 13828s E INFO: build_src: building npy-pkg config files 13828s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13828s E !! 13828s E 13828s E ******************************************************************************** 13828s E Please avoid running ``setup.py`` directly. 13828s E Instead, use pypa/build, pypa/installer or other 13828s E standards-based tools. 13828s E 13828s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13828s E ******************************************************************************** 13828s E 13828s E !! 13828s E self.initialize_options() 13828s E INFO: customize UnixCCompiler 13828s E INFO: customize UnixCCompiler using build_ext 13828s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/tmp 13828s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/usr 13828s E creating /tmp/tmppq19o2st/usr/lib 13828s E creating /tmp/tmppq19o2st/usr/lib/python3 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=native' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-O3' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-Werror' 13828s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13828s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-vfpv4' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=armv8.2-a+fp16' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13828s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13828s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13828s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13828s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13828s E INFO: building 'test_array_from_pyobj_ext' extension 13828s E INFO: compiling C sources 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13828s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13828s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13828s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13828s E 14 | #include 13828s E | ^~~~~~~~~~ 13828s E In file included from fortranobject.c:2: 13828s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13828s E 7 | #include 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E compilation terminated. 13828s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13828s E INFO: 13828s E ########### EXT COMPILER OPTIMIZATION ########### 13828s E INFO: Platform : 13828s E Architecture: armhf 13828s E Compiler : gcc 13828s E 13828s E CPU baseline : 13828s E Requested : 'min' 13828s E Enabled : none 13828s E Flags : none 13828s E Extra checks: none 13828s E 13828s E CPU dispatch : 13828s E Requested : 'max -xop -fma4' 13828s E Enabled : none 13828s E Generated : none 13828s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13828s 13828s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13828s d = '/tmp/tmpjj8q074z' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s err = None 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s kw = {} 13828s module_name = 'test_array_from_pyobj_ext' 13828s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13828s p = 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13828s ________ ERROR at setup of TestSharedMemory.test_optional_none[DOUBLE] _________ 13828s 13828s def setup_module(): 13828s """ 13828s Build the required testing extension module 13828s 13828s """ 13828s global wrap 13828s 13828s # Check compiler availability first 13828s if not util.has_c_compiler(): 13828s pytest.skip("No C compiler available") 13828s 13828s if wrap is None: 13828s config_code = """ 13828s config.add_extension('test_array_from_pyobj_ext', 13828s sources=['wrapmodule.c', 'fortranobject.c'], 13828s define_macros=[]) 13828s """ 13828s d = os.path.dirname(__file__) 13828s src = [ 13828s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13828s util.getpath("src", "fortranobject.c"), 13828s util.getpath("src", "fortranobject.h"), 13828s ] 13828s > wrap = util.build_module_distutils(src, config_code, 13828s "test_array_from_pyobj_ext") 13828s 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13828s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13828s memo[key] = func(*a, **kw) 13828s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13828s func = 13828s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13828s kw = {} 13828s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s 13828s @_memoize 13828s def build_module_distutils(source_files, config_code, module_name, **kw): 13828s """ 13828s Build a module via distutils and import it. 13828s 13828s """ 13828s d = get_module_dir() 13828s 13828s # Copy files 13828s dst_sources = [] 13828s for fn in source_files: 13828s if not os.path.isfile(fn): 13828s raise RuntimeError("%s is not a file" % fn) 13828s dst = os.path.join(d, os.path.basename(fn)) 13828s shutil.copyfile(fn, dst) 13828s dst_sources.append(dst) 13828s 13828s # Build script 13828s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13828s 13828s code = fr""" 13828s import os 13828s import sys 13828s sys.path = {repr(sys.path)} 13828s 13828s def configuration(parent_name='',top_path=None): 13828s from numpy.distutils.misc_util import Configuration 13828s config = Configuration('', parent_name, top_path) 13828s {config_code} 13828s return config 13828s 13828s if __name__ == "__main__": 13828s from numpy.distutils.core import setup 13828s setup(configuration=configuration) 13828s """ 13828s script = os.path.join(d, get_temp_module_name() + ".py") 13828s dst_sources.append(script) 13828s with open(script, "wb") as f: 13828s f.write(asbytes(code)) 13828s 13828s # Build 13828s cwd = os.getcwd() 13828s try: 13828s os.chdir(d) 13828s cmd = [sys.executable, script, "build_ext", "-i"] 13828s p = subprocess.Popen(cmd, 13828s stdout=subprocess.PIPE, 13828s stderr=subprocess.STDOUT) 13828s out, err = p.communicate() 13828s if p.returncode != 0: 13828s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13828s (cmd[4:], asstr(out))) 13828s E RuntimeError: Running distutils build failed: [] 13828s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13828s E 13828s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13828s E of the deprecation of `distutils` itself. It will be removed for 13828s E Python >= 3.12. For older Python versions it will remain present. 13828s E It is recommended to use `setuptools < 60.0` for those Python versions. 13828s E For more details, see: 13828s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13828s E 13828s E 13828s E from numpy.distutils.core import setup 13828s E running build_ext 13828s E running build_src 13828s E INFO: build_src 13828s E INFO: building extension "test_array_from_pyobj_ext" sources 13828s E INFO: build_src: building npy-pkg config files 13828s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13828s E !! 13828s E 13828s E ******************************************************************************** 13828s E Please avoid running ``setup.py`` directly. 13828s E Instead, use pypa/build, pypa/installer or other 13828s E standards-based tools. 13828s E 13828s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13828s E ******************************************************************************** 13828s E 13828s E !! 13828s E self.initialize_options() 13828s E INFO: customize UnixCCompiler 13828s E INFO: customize UnixCCompiler using build_ext 13828s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/tmp 13828s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/usr 13828s E creating /tmp/tmppq19o2st/usr/lib 13828s E creating /tmp/tmppq19o2st/usr/lib/python3 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=native' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-O3' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-Werror' 13828s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13828s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-vfpv4' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=armv8.2-a+fp16' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13828s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13828s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13828s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13828s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13828s E INFO: building 'test_array_from_pyobj_ext' extension 13828s E INFO: compiling C sources 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13828s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13828s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13828s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13828s E 14 | #include 13828s E | ^~~~~~~~~~ 13828s E In file included from fortranobject.c:2: 13828s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13828s E 7 | #include 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E compilation terminated. 13828s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13828s E INFO: 13828s E ########### EXT COMPILER OPTIMIZATION ########### 13828s E INFO: Platform : 13828s E Architecture: armhf 13828s E Compiler : gcc 13828s E 13828s E CPU baseline : 13828s E Requested : 'min' 13828s E Enabled : none 13828s E Flags : none 13828s E Extra checks: none 13828s E 13828s E CPU dispatch : 13828s E Requested : 'max -xop -fma4' 13828s E Enabled : none 13828s E Generated : none 13828s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13828s 13828s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13828s d = '/tmp/tmpjj8q074z' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s err = None 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s kw = {} 13828s module_name = 'test_array_from_pyobj_ext' 13828s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13828s p = 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13828s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[DOUBLE] ______ 13828s 13828s def setup_module(): 13828s """ 13828s Build the required testing extension module 13828s 13828s """ 13828s global wrap 13828s 13828s # Check compiler availability first 13828s if not util.has_c_compiler(): 13828s pytest.skip("No C compiler available") 13828s 13828s if wrap is None: 13828s config_code = """ 13828s config.add_extension('test_array_from_pyobj_ext', 13828s sources=['wrapmodule.c', 'fortranobject.c'], 13828s define_macros=[]) 13828s """ 13828s d = os.path.dirname(__file__) 13828s src = [ 13828s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13828s util.getpath("src", "fortranobject.c"), 13828s util.getpath("src", "fortranobject.h"), 13828s ] 13828s > wrap = util.build_module_distutils(src, config_code, 13828s "test_array_from_pyobj_ext") 13828s 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13828s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13828s memo[key] = func(*a, **kw) 13828s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13828s func = 13828s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13828s kw = {} 13828s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13828s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13828s 13828s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13828s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13828s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13828s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13828s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13828s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13828s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13828s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13828s 13828s @_memoize 13828s def build_module_distutils(source_files, config_code, module_name, **kw): 13828s """ 13828s Build a module via distutils and import it. 13828s 13828s """ 13828s d = get_module_dir() 13828s 13828s # Copy files 13828s dst_sources = [] 13828s for fn in source_files: 13828s if not os.path.isfile(fn): 13828s raise RuntimeError("%s is not a file" % fn) 13828s dst = os.path.join(d, os.path.basename(fn)) 13828s shutil.copyfile(fn, dst) 13828s dst_sources.append(dst) 13828s 13828s # Build script 13828s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13828s 13828s code = fr""" 13828s import os 13828s import sys 13828s sys.path = {repr(sys.path)} 13828s 13828s def configuration(parent_name='',top_path=None): 13828s from numpy.distutils.misc_util import Configuration 13828s config = Configuration('', parent_name, top_path) 13828s {config_code} 13828s return config 13828s 13828s if __name__ == "__main__": 13828s from numpy.distutils.core import setup 13828s setup(configuration=configuration) 13828s """ 13828s script = os.path.join(d, get_temp_module_name() + ".py") 13828s dst_sources.append(script) 13828s with open(script, "wb") as f: 13828s f.write(asbytes(code)) 13828s 13828s # Build 13828s cwd = os.getcwd() 13828s try: 13828s os.chdir(d) 13828s cmd = [sys.executable, script, "build_ext", "-i"] 13828s p = subprocess.Popen(cmd, 13828s stdout=subprocess.PIPE, 13828s stderr=subprocess.STDOUT) 13828s out, err = p.communicate() 13828s if p.returncode != 0: 13828s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13828s (cmd[4:], asstr(out))) 13828s E RuntimeError: Running distutils build failed: [] 13828s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13828s E 13828s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13828s E of the deprecation of `distutils` itself. It will be removed for 13828s E Python >= 3.12. For older Python versions it will remain present. 13828s E It is recommended to use `setuptools < 60.0` for those Python versions. 13828s E For more details, see: 13828s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13828s E 13828s E 13828s E from numpy.distutils.core import setup 13828s E running build_ext 13828s E running build_src 13828s E INFO: build_src 13828s E INFO: building extension "test_array_from_pyobj_ext" sources 13828s E INFO: build_src: building npy-pkg config files 13828s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13828s E !! 13828s E 13828s E ******************************************************************************** 13828s E Please avoid running ``setup.py`` directly. 13828s E Instead, use pypa/build, pypa/installer or other 13828s E standards-based tools. 13828s E 13828s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13828s E ******************************************************************************** 13828s E 13828s E !! 13828s E self.initialize_options() 13828s E INFO: customize UnixCCompiler 13828s E INFO: customize UnixCCompiler using build_ext 13828s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/tmp 13828s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E creating /tmp/tmppq19o2st/usr 13828s E creating /tmp/tmppq19o2st/usr/lib 13828s E creating /tmp/tmppq19o2st/usr/lib/python3 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13828s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=native' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-O3' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-Werror' 13828s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13828s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-vfpv4' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13828s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-march=armv8.2-a+fp16' 13828s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13828s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13828s E 13828s E INFO: compile options: '-I/usr/include/python3.12 -c' 13828s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13828s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13828s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13828s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13828s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13828s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13828s E 9 | # include_next 13828s E | ^~~~~~~~~~ 13828s E compilation terminated. 13828s E 13828s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13828s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13829s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13829s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13829s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13829s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13829s E INFO: building 'test_array_from_pyobj_ext' extension 13829s E INFO: compiling C sources 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13829s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13829s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13829s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13829s E 14 | #include 13829s E | ^~~~~~~~~~ 13829s E In file included from fortranobject.c:2: 13829s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13829s E 7 | #include 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E compilation terminated. 13829s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13829s E INFO: 13829s E ########### EXT COMPILER OPTIMIZATION ########### 13829s E INFO: Platform : 13829s E Architecture: armhf 13829s E Compiler : gcc 13829s E 13829s E CPU baseline : 13829s E Requested : 'min' 13829s E Enabled : none 13829s E Flags : none 13829s E Extra checks: none 13829s E 13829s E CPU dispatch : 13829s E Requested : 'max -xop -fma4' 13829s E Enabled : none 13829s E Generated : none 13829s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13829s 13829s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13829s d = '/tmp/tmpjj8q074z' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s err = None 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s kw = {} 13829s module_name = 'test_array_from_pyobj_ext' 13829s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13829s p = 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13829s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[DOUBLE] ______ 13829s 13829s def setup_module(): 13829s """ 13829s Build the required testing extension module 13829s 13829s """ 13829s global wrap 13829s 13829s # Check compiler availability first 13829s if not util.has_c_compiler(): 13829s pytest.skip("No C compiler available") 13829s 13829s if wrap is None: 13829s config_code = """ 13829s config.add_extension('test_array_from_pyobj_ext', 13829s sources=['wrapmodule.c', 'fortranobject.c'], 13829s define_macros=[]) 13829s """ 13829s d = os.path.dirname(__file__) 13829s src = [ 13829s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13829s util.getpath("src", "fortranobject.c"), 13829s util.getpath("src", "fortranobject.h"), 13829s ] 13829s > wrap = util.build_module_distutils(src, config_code, 13829s "test_array_from_pyobj_ext") 13829s 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13829s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13829s memo[key] = func(*a, **kw) 13829s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13829s func = 13829s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13829s kw = {} 13829s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s 13829s @_memoize 13829s def build_module_distutils(source_files, config_code, module_name, **kw): 13829s """ 13829s Build a module via distutils and import it. 13829s 13829s """ 13829s d = get_module_dir() 13829s 13829s # Copy files 13829s dst_sources = [] 13829s for fn in source_files: 13829s if not os.path.isfile(fn): 13829s raise RuntimeError("%s is not a file" % fn) 13829s dst = os.path.join(d, os.path.basename(fn)) 13829s shutil.copyfile(fn, dst) 13829s dst_sources.append(dst) 13829s 13829s # Build script 13829s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13829s 13829s code = fr""" 13829s import os 13829s import sys 13829s sys.path = {repr(sys.path)} 13829s 13829s def configuration(parent_name='',top_path=None): 13829s from numpy.distutils.misc_util import Configuration 13829s config = Configuration('', parent_name, top_path) 13829s {config_code} 13829s return config 13829s 13829s if __name__ == "__main__": 13829s from numpy.distutils.core import setup 13829s setup(configuration=configuration) 13829s """ 13829s script = os.path.join(d, get_temp_module_name() + ".py") 13829s dst_sources.append(script) 13829s with open(script, "wb") as f: 13829s f.write(asbytes(code)) 13829s 13829s # Build 13829s cwd = os.getcwd() 13829s try: 13829s os.chdir(d) 13829s cmd = [sys.executable, script, "build_ext", "-i"] 13829s p = subprocess.Popen(cmd, 13829s stdout=subprocess.PIPE, 13829s stderr=subprocess.STDOUT) 13829s out, err = p.communicate() 13829s if p.returncode != 0: 13829s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13829s (cmd[4:], asstr(out))) 13829s E RuntimeError: Running distutils build failed: [] 13829s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13829s E 13829s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13829s E of the deprecation of `distutils` itself. It will be removed for 13829s E Python >= 3.12. For older Python versions it will remain present. 13829s E It is recommended to use `setuptools < 60.0` for those Python versions. 13829s E For more details, see: 13829s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13829s E 13829s E 13829s E from numpy.distutils.core import setup 13829s E running build_ext 13829s E running build_src 13829s E INFO: build_src 13829s E INFO: building extension "test_array_from_pyobj_ext" sources 13829s E INFO: build_src: building npy-pkg config files 13829s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13829s E !! 13829s E 13829s E ******************************************************************************** 13829s E Please avoid running ``setup.py`` directly. 13829s E Instead, use pypa/build, pypa/installer or other 13829s E standards-based tools. 13829s E 13829s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13829s E ******************************************************************************** 13829s E 13829s E !! 13829s E self.initialize_options() 13829s E INFO: customize UnixCCompiler 13829s E INFO: customize UnixCCompiler using build_ext 13829s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/tmp 13829s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/usr 13829s E creating /tmp/tmppq19o2st/usr/lib 13829s E creating /tmp/tmppq19o2st/usr/lib/python3 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=native' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-O3' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-Werror' 13829s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13829s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-vfpv4' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=armv8.2-a+fp16' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13829s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13829s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13829s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13829s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13829s E INFO: building 'test_array_from_pyobj_ext' extension 13829s E INFO: compiling C sources 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13829s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13829s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13829s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13829s E 14 | #include 13829s E | ^~~~~~~~~~ 13829s E In file included from fortranobject.c:2: 13829s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13829s E 7 | #include 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E compilation terminated. 13829s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13829s E INFO: 13829s E ########### EXT COMPILER OPTIMIZATION ########### 13829s E INFO: Platform : 13829s E Architecture: armhf 13829s E Compiler : gcc 13829s E 13829s E CPU baseline : 13829s E Requested : 'min' 13829s E Enabled : none 13829s E Flags : none 13829s E Extra checks: none 13829s E 13829s E CPU dispatch : 13829s E Requested : 'max -xop -fma4' 13829s E Enabled : none 13829s E Generated : none 13829s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13829s 13829s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13829s d = '/tmp/tmpjj8q074z' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s err = None 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s kw = {} 13829s module_name = 'test_array_from_pyobj_ext' 13829s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13829s p = 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13829s ___________ ERROR at setup of TestSharedMemory.test_inplace[DOUBLE] ____________ 13829s 13829s def setup_module(): 13829s """ 13829s Build the required testing extension module 13829s 13829s """ 13829s global wrap 13829s 13829s # Check compiler availability first 13829s if not util.has_c_compiler(): 13829s pytest.skip("No C compiler available") 13829s 13829s if wrap is None: 13829s config_code = """ 13829s config.add_extension('test_array_from_pyobj_ext', 13829s sources=['wrapmodule.c', 'fortranobject.c'], 13829s define_macros=[]) 13829s """ 13829s d = os.path.dirname(__file__) 13829s src = [ 13829s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13829s util.getpath("src", "fortranobject.c"), 13829s util.getpath("src", "fortranobject.h"), 13829s ] 13829s > wrap = util.build_module_distutils(src, config_code, 13829s "test_array_from_pyobj_ext") 13829s 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13829s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13829s memo[key] = func(*a, **kw) 13829s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13829s func = 13829s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13829s kw = {} 13829s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s 13829s @_memoize 13829s def build_module_distutils(source_files, config_code, module_name, **kw): 13829s """ 13829s Build a module via distutils and import it. 13829s 13829s """ 13829s d = get_module_dir() 13829s 13829s # Copy files 13829s dst_sources = [] 13829s for fn in source_files: 13829s if not os.path.isfile(fn): 13829s raise RuntimeError("%s is not a file" % fn) 13829s dst = os.path.join(d, os.path.basename(fn)) 13829s shutil.copyfile(fn, dst) 13829s dst_sources.append(dst) 13829s 13829s # Build script 13829s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13829s 13829s code = fr""" 13829s import os 13829s import sys 13829s sys.path = {repr(sys.path)} 13829s 13829s def configuration(parent_name='',top_path=None): 13829s from numpy.distutils.misc_util import Configuration 13829s config = Configuration('', parent_name, top_path) 13829s {config_code} 13829s return config 13829s 13829s if __name__ == "__main__": 13829s from numpy.distutils.core import setup 13829s setup(configuration=configuration) 13829s """ 13829s script = os.path.join(d, get_temp_module_name() + ".py") 13829s dst_sources.append(script) 13829s with open(script, "wb") as f: 13829s f.write(asbytes(code)) 13829s 13829s # Build 13829s cwd = os.getcwd() 13829s try: 13829s os.chdir(d) 13829s cmd = [sys.executable, script, "build_ext", "-i"] 13829s p = subprocess.Popen(cmd, 13829s stdout=subprocess.PIPE, 13829s stderr=subprocess.STDOUT) 13829s out, err = p.communicate() 13829s if p.returncode != 0: 13829s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13829s (cmd[4:], asstr(out))) 13829s E RuntimeError: Running distutils build failed: [] 13829s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13829s E 13829s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13829s E of the deprecation of `distutils` itself. It will be removed for 13829s E Python >= 3.12. For older Python versions it will remain present. 13829s E It is recommended to use `setuptools < 60.0` for those Python versions. 13829s E For more details, see: 13829s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13829s E 13829s E 13829s E from numpy.distutils.core import setup 13829s E running build_ext 13829s E running build_src 13829s E INFO: build_src 13829s E INFO: building extension "test_array_from_pyobj_ext" sources 13829s E INFO: build_src: building npy-pkg config files 13829s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13829s E !! 13829s E 13829s E ******************************************************************************** 13829s E Please avoid running ``setup.py`` directly. 13829s E Instead, use pypa/build, pypa/installer or other 13829s E standards-based tools. 13829s E 13829s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13829s E ******************************************************************************** 13829s E 13829s E !! 13829s E self.initialize_options() 13829s E INFO: customize UnixCCompiler 13829s E INFO: customize UnixCCompiler using build_ext 13829s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/tmp 13829s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/usr 13829s E creating /tmp/tmppq19o2st/usr/lib 13829s E creating /tmp/tmppq19o2st/usr/lib/python3 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=native' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-O3' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-Werror' 13829s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13829s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-vfpv4' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=armv8.2-a+fp16' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13829s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13829s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13829s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13829s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13829s E INFO: building 'test_array_from_pyobj_ext' extension 13829s E INFO: compiling C sources 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13829s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13829s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13829s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13829s E 14 | #include 13829s E | ^~~~~~~~~~ 13829s E In file included from fortranobject.c:2: 13829s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13829s E 7 | #include 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E compilation terminated. 13829s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13829s E INFO: 13829s E ########### EXT COMPILER OPTIMIZATION ########### 13829s E INFO: Platform : 13829s E Architecture: armhf 13829s E Compiler : gcc 13829s E 13829s E CPU baseline : 13829s E Requested : 'min' 13829s E Enabled : none 13829s E Flags : none 13829s E Extra checks: none 13829s E 13829s E CPU dispatch : 13829s E Requested : 'max -xop -fma4' 13829s E Enabled : none 13829s E Generated : none 13829s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13829s 13829s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13829s d = '/tmp/tmpjj8q074z' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s err = None 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s kw = {} 13829s module_name = 'test_array_from_pyobj_ext' 13829s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13829s p = 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13829s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[DOUBLE] _____ 13829s 13829s def setup_module(): 13829s """ 13829s Build the required testing extension module 13829s 13829s """ 13829s global wrap 13829s 13829s # Check compiler availability first 13829s if not util.has_c_compiler(): 13829s pytest.skip("No C compiler available") 13829s 13829s if wrap is None: 13829s config_code = """ 13829s config.add_extension('test_array_from_pyobj_ext', 13829s sources=['wrapmodule.c', 'fortranobject.c'], 13829s define_macros=[]) 13829s """ 13829s d = os.path.dirname(__file__) 13829s src = [ 13829s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13829s util.getpath("src", "fortranobject.c"), 13829s util.getpath("src", "fortranobject.h"), 13829s ] 13829s > wrap = util.build_module_distutils(src, config_code, 13829s "test_array_from_pyobj_ext") 13829s 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13829s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13829s memo[key] = func(*a, **kw) 13829s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13829s func = 13829s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13829s kw = {} 13829s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s 13829s @_memoize 13829s def build_module_distutils(source_files, config_code, module_name, **kw): 13829s """ 13829s Build a module via distutils and import it. 13829s 13829s """ 13829s d = get_module_dir() 13829s 13829s # Copy files 13829s dst_sources = [] 13829s for fn in source_files: 13829s if not os.path.isfile(fn): 13829s raise RuntimeError("%s is not a file" % fn) 13829s dst = os.path.join(d, os.path.basename(fn)) 13829s shutil.copyfile(fn, dst) 13829s dst_sources.append(dst) 13829s 13829s # Build script 13829s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13829s 13829s code = fr""" 13829s import os 13829s import sys 13829s sys.path = {repr(sys.path)} 13829s 13829s def configuration(parent_name='',top_path=None): 13829s from numpy.distutils.misc_util import Configuration 13829s config = Configuration('', parent_name, top_path) 13829s {config_code} 13829s return config 13829s 13829s if __name__ == "__main__": 13829s from numpy.distutils.core import setup 13829s setup(configuration=configuration) 13829s """ 13829s script = os.path.join(d, get_temp_module_name() + ".py") 13829s dst_sources.append(script) 13829s with open(script, "wb") as f: 13829s f.write(asbytes(code)) 13829s 13829s # Build 13829s cwd = os.getcwd() 13829s try: 13829s os.chdir(d) 13829s cmd = [sys.executable, script, "build_ext", "-i"] 13829s p = subprocess.Popen(cmd, 13829s stdout=subprocess.PIPE, 13829s stderr=subprocess.STDOUT) 13829s out, err = p.communicate() 13829s if p.returncode != 0: 13829s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13829s (cmd[4:], asstr(out))) 13829s E RuntimeError: Running distutils build failed: [] 13829s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13829s E 13829s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13829s E of the deprecation of `distutils` itself. It will be removed for 13829s E Python >= 3.12. For older Python versions it will remain present. 13829s E It is recommended to use `setuptools < 60.0` for those Python versions. 13829s E For more details, see: 13829s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13829s E 13829s E 13829s E from numpy.distutils.core import setup 13829s E running build_ext 13829s E running build_src 13829s E INFO: build_src 13829s E INFO: building extension "test_array_from_pyobj_ext" sources 13829s E INFO: build_src: building npy-pkg config files 13829s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13829s E !! 13829s E 13829s E ******************************************************************************** 13829s E Please avoid running ``setup.py`` directly. 13829s E Instead, use pypa/build, pypa/installer or other 13829s E standards-based tools. 13829s E 13829s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13829s E ******************************************************************************** 13829s E 13829s E !! 13829s E self.initialize_options() 13829s E INFO: customize UnixCCompiler 13829s E INFO: customize UnixCCompiler using build_ext 13829s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/tmp 13829s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/usr 13829s E creating /tmp/tmppq19o2st/usr/lib 13829s E creating /tmp/tmppq19o2st/usr/lib/python3 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=native' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-O3' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-Werror' 13829s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13829s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-vfpv4' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=armv8.2-a+fp16' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13829s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13829s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13829s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13829s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13829s E INFO: building 'test_array_from_pyobj_ext' extension 13829s E INFO: compiling C sources 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13829s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13829s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13829s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13829s E 14 | #include 13829s E | ^~~~~~~~~~ 13829s E In file included from fortranobject.c:2: 13829s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13829s E 7 | #include 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E compilation terminated. 13829s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13829s E INFO: 13829s E ########### EXT COMPILER OPTIMIZATION ########### 13829s E INFO: Platform : 13829s E Architecture: armhf 13829s E Compiler : gcc 13829s E 13829s E CPU baseline : 13829s E Requested : 'min' 13829s E Enabled : none 13829s E Flags : none 13829s E Extra checks: none 13829s E 13829s E CPU dispatch : 13829s E Requested : 'max -xop -fma4' 13829s E Enabled : none 13829s E Generated : none 13829s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13829s 13829s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13829s d = '/tmp/tmpjj8q074z' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s err = None 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s kw = {} 13829s module_name = 'test_array_from_pyobj_ext' 13829s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13829s p = 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13829s _________ ERROR at setup of TestSharedMemory.test_in_from_2seq[CFLOAT] _________ 13829s 13829s def setup_module(): 13829s """ 13829s Build the required testing extension module 13829s 13829s """ 13829s global wrap 13829s 13829s # Check compiler availability first 13829s if not util.has_c_compiler(): 13829s pytest.skip("No C compiler available") 13829s 13829s if wrap is None: 13829s config_code = """ 13829s config.add_extension('test_array_from_pyobj_ext', 13829s sources=['wrapmodule.c', 'fortranobject.c'], 13829s define_macros=[]) 13829s """ 13829s d = os.path.dirname(__file__) 13829s src = [ 13829s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13829s util.getpath("src", "fortranobject.c"), 13829s util.getpath("src", "fortranobject.h"), 13829s ] 13829s > wrap = util.build_module_distutils(src, config_code, 13829s "test_array_from_pyobj_ext") 13829s 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13829s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13829s memo[key] = func(*a, **kw) 13829s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13829s func = 13829s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13829s kw = {} 13829s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s 13829s @_memoize 13829s def build_module_distutils(source_files, config_code, module_name, **kw): 13829s """ 13829s Build a module via distutils and import it. 13829s 13829s """ 13829s d = get_module_dir() 13829s 13829s # Copy files 13829s dst_sources = [] 13829s for fn in source_files: 13829s if not os.path.isfile(fn): 13829s raise RuntimeError("%s is not a file" % fn) 13829s dst = os.path.join(d, os.path.basename(fn)) 13829s shutil.copyfile(fn, dst) 13829s dst_sources.append(dst) 13829s 13829s # Build script 13829s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13829s 13829s code = fr""" 13829s import os 13829s import sys 13829s sys.path = {repr(sys.path)} 13829s 13829s def configuration(parent_name='',top_path=None): 13829s from numpy.distutils.misc_util import Configuration 13829s config = Configuration('', parent_name, top_path) 13829s {config_code} 13829s return config 13829s 13829s if __name__ == "__main__": 13829s from numpy.distutils.core import setup 13829s setup(configuration=configuration) 13829s """ 13829s script = os.path.join(d, get_temp_module_name() + ".py") 13829s dst_sources.append(script) 13829s with open(script, "wb") as f: 13829s f.write(asbytes(code)) 13829s 13829s # Build 13829s cwd = os.getcwd() 13829s try: 13829s os.chdir(d) 13829s cmd = [sys.executable, script, "build_ext", "-i"] 13829s p = subprocess.Popen(cmd, 13829s stdout=subprocess.PIPE, 13829s stderr=subprocess.STDOUT) 13829s out, err = p.communicate() 13829s if p.returncode != 0: 13829s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13829s (cmd[4:], asstr(out))) 13829s E RuntimeError: Running distutils build failed: [] 13829s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13829s E 13829s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13829s E of the deprecation of `distutils` itself. It will be removed for 13829s E Python >= 3.12. For older Python versions it will remain present. 13829s E It is recommended to use `setuptools < 60.0` for those Python versions. 13829s E For more details, see: 13829s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13829s E 13829s E 13829s E from numpy.distutils.core import setup 13829s E running build_ext 13829s E running build_src 13829s E INFO: build_src 13829s E INFO: building extension "test_array_from_pyobj_ext" sources 13829s E INFO: build_src: building npy-pkg config files 13829s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13829s E !! 13829s E 13829s E ******************************************************************************** 13829s E Please avoid running ``setup.py`` directly. 13829s E Instead, use pypa/build, pypa/installer or other 13829s E standards-based tools. 13829s E 13829s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13829s E ******************************************************************************** 13829s E 13829s E !! 13829s E self.initialize_options() 13829s E INFO: customize UnixCCompiler 13829s E INFO: customize UnixCCompiler using build_ext 13829s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/tmp 13829s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/usr 13829s E creating /tmp/tmppq19o2st/usr/lib 13829s E creating /tmp/tmppq19o2st/usr/lib/python3 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=native' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-O3' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-Werror' 13829s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13829s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-vfpv4' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=armv8.2-a+fp16' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13829s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13829s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13829s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13829s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13829s E INFO: building 'test_array_from_pyobj_ext' extension 13829s E INFO: compiling C sources 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13829s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13829s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13829s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13829s E 14 | #include 13829s E | ^~~~~~~~~~ 13829s E In file included from fortranobject.c:2: 13829s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13829s E 7 | #include 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E compilation terminated. 13829s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13829s E INFO: 13829s E ########### EXT COMPILER OPTIMIZATION ########### 13829s E INFO: Platform : 13829s E Architecture: armhf 13829s E Compiler : gcc 13829s E 13829s E CPU baseline : 13829s E Requested : 'min' 13829s E Enabled : none 13829s E Flags : none 13829s E Extra checks: none 13829s E 13829s E CPU dispatch : 13829s E Requested : 'max -xop -fma4' 13829s E Enabled : none 13829s E Generated : none 13829s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13829s 13829s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13829s d = '/tmp/tmpjj8q074z' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s err = None 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s kw = {} 13829s module_name = 'test_array_from_pyobj_ext' 13829s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13829s p = 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13829s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[CFLOAT] _______ 13829s 13829s def setup_module(): 13829s """ 13829s Build the required testing extension module 13829s 13829s """ 13829s global wrap 13829s 13829s # Check compiler availability first 13829s if not util.has_c_compiler(): 13829s pytest.skip("No C compiler available") 13829s 13829s if wrap is None: 13829s config_code = """ 13829s config.add_extension('test_array_from_pyobj_ext', 13829s sources=['wrapmodule.c', 'fortranobject.c'], 13829s define_macros=[]) 13829s """ 13829s d = os.path.dirname(__file__) 13829s src = [ 13829s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13829s util.getpath("src", "fortranobject.c"), 13829s util.getpath("src", "fortranobject.h"), 13829s ] 13829s > wrap = util.build_module_distutils(src, config_code, 13829s "test_array_from_pyobj_ext") 13829s 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13829s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13829s memo[key] = func(*a, **kw) 13829s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13829s func = 13829s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13829s kw = {} 13829s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s 13829s @_memoize 13829s def build_module_distutils(source_files, config_code, module_name, **kw): 13829s """ 13829s Build a module via distutils and import it. 13829s 13829s """ 13829s d = get_module_dir() 13829s 13829s # Copy files 13829s dst_sources = [] 13829s for fn in source_files: 13829s if not os.path.isfile(fn): 13829s raise RuntimeError("%s is not a file" % fn) 13829s dst = os.path.join(d, os.path.basename(fn)) 13829s shutil.copyfile(fn, dst) 13829s dst_sources.append(dst) 13829s 13829s # Build script 13829s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13829s 13829s code = fr""" 13829s import os 13829s import sys 13829s sys.path = {repr(sys.path)} 13829s 13829s def configuration(parent_name='',top_path=None): 13829s from numpy.distutils.misc_util import Configuration 13829s config = Configuration('', parent_name, top_path) 13829s {config_code} 13829s return config 13829s 13829s if __name__ == "__main__": 13829s from numpy.distutils.core import setup 13829s setup(configuration=configuration) 13829s """ 13829s script = os.path.join(d, get_temp_module_name() + ".py") 13829s dst_sources.append(script) 13829s with open(script, "wb") as f: 13829s f.write(asbytes(code)) 13829s 13829s # Build 13829s cwd = os.getcwd() 13829s try: 13829s os.chdir(d) 13829s cmd = [sys.executable, script, "build_ext", "-i"] 13829s p = subprocess.Popen(cmd, 13829s stdout=subprocess.PIPE, 13829s stderr=subprocess.STDOUT) 13829s out, err = p.communicate() 13829s if p.returncode != 0: 13829s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13829s (cmd[4:], asstr(out))) 13829s E RuntimeError: Running distutils build failed: [] 13829s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13829s E 13829s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13829s E of the deprecation of `distutils` itself. It will be removed for 13829s E Python >= 3.12. For older Python versions it will remain present. 13829s E It is recommended to use `setuptools < 60.0` for those Python versions. 13829s E For more details, see: 13829s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13829s E 13829s E 13829s E from numpy.distutils.core import setup 13829s E running build_ext 13829s E running build_src 13829s E INFO: build_src 13829s E INFO: building extension "test_array_from_pyobj_ext" sources 13829s E INFO: build_src: building npy-pkg config files 13829s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13829s E !! 13829s E 13829s E ******************************************************************************** 13829s E Please avoid running ``setup.py`` directly. 13829s E Instead, use pypa/build, pypa/installer or other 13829s E standards-based tools. 13829s E 13829s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13829s E ******************************************************************************** 13829s E 13829s E !! 13829s E self.initialize_options() 13829s E INFO: customize UnixCCompiler 13829s E INFO: customize UnixCCompiler using build_ext 13829s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/tmp 13829s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/usr 13829s E creating /tmp/tmppq19o2st/usr/lib 13829s E creating /tmp/tmppq19o2st/usr/lib/python3 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=native' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-O3' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-Werror' 13829s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13829s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-vfpv4' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=armv8.2-a+fp16' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13829s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13829s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13829s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13829s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13829s E INFO: building 'test_array_from_pyobj_ext' extension 13829s E INFO: compiling C sources 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13829s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13829s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13829s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13829s E 14 | #include 13829s E | ^~~~~~~~~~ 13829s E In file included from fortranobject.c:2: 13829s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13829s E 7 | #include 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E compilation terminated. 13829s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13829s E INFO: 13829s E ########### EXT COMPILER OPTIMIZATION ########### 13829s E INFO: Platform : 13829s E Architecture: armhf 13829s E Compiler : gcc 13829s E 13829s E CPU baseline : 13829s E Requested : 'min' 13829s E Enabled : none 13829s E Flags : none 13829s E Extra checks: none 13829s E 13829s E CPU dispatch : 13829s E Requested : 'max -xop -fma4' 13829s E Enabled : none 13829s E Generated : none 13829s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13829s 13829s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13829s d = '/tmp/tmpjj8q074z' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s err = None 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s kw = {} 13829s module_name = 'test_array_from_pyobj_ext' 13829s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13829s p = 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13829s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-2seq-C-w] ______ 13829s 13829s def setup_module(): 13829s """ 13829s Build the required testing extension module 13829s 13829s """ 13829s global wrap 13829s 13829s # Check compiler availability first 13829s if not util.has_c_compiler(): 13829s pytest.skip("No C compiler available") 13829s 13829s if wrap is None: 13829s config_code = """ 13829s config.add_extension('test_array_from_pyobj_ext', 13829s sources=['wrapmodule.c', 'fortranobject.c'], 13829s define_macros=[]) 13829s """ 13829s d = os.path.dirname(__file__) 13829s src = [ 13829s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13829s util.getpath("src", "fortranobject.c"), 13829s util.getpath("src", "fortranobject.h"), 13829s ] 13829s > wrap = util.build_module_distutils(src, config_code, 13829s "test_array_from_pyobj_ext") 13829s 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13829s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13829s memo[key] = func(*a, **kw) 13829s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13829s func = 13829s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13829s kw = {} 13829s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s 13829s @_memoize 13829s def build_module_distutils(source_files, config_code, module_name, **kw): 13829s """ 13829s Build a module via distutils and import it. 13829s 13829s """ 13829s d = get_module_dir() 13829s 13829s # Copy files 13829s dst_sources = [] 13829s for fn in source_files: 13829s if not os.path.isfile(fn): 13829s raise RuntimeError("%s is not a file" % fn) 13829s dst = os.path.join(d, os.path.basename(fn)) 13829s shutil.copyfile(fn, dst) 13829s dst_sources.append(dst) 13829s 13829s # Build script 13829s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13829s 13829s code = fr""" 13829s import os 13829s import sys 13829s sys.path = {repr(sys.path)} 13829s 13829s def configuration(parent_name='',top_path=None): 13829s from numpy.distutils.misc_util import Configuration 13829s config = Configuration('', parent_name, top_path) 13829s {config_code} 13829s return config 13829s 13829s if __name__ == "__main__": 13829s from numpy.distutils.core import setup 13829s setup(configuration=configuration) 13829s """ 13829s script = os.path.join(d, get_temp_module_name() + ".py") 13829s dst_sources.append(script) 13829s with open(script, "wb") as f: 13829s f.write(asbytes(code)) 13829s 13829s # Build 13829s cwd = os.getcwd() 13829s try: 13829s os.chdir(d) 13829s cmd = [sys.executable, script, "build_ext", "-i"] 13829s p = subprocess.Popen(cmd, 13829s stdout=subprocess.PIPE, 13829s stderr=subprocess.STDOUT) 13829s out, err = p.communicate() 13829s if p.returncode != 0: 13829s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13829s (cmd[4:], asstr(out))) 13829s E RuntimeError: Running distutils build failed: [] 13829s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13829s E 13829s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13829s E of the deprecation of `distutils` itself. It will be removed for 13829s E Python >= 3.12. For older Python versions it will remain present. 13829s E It is recommended to use `setuptools < 60.0` for those Python versions. 13829s E For more details, see: 13829s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13829s E 13829s E 13829s E from numpy.distutils.core import setup 13829s E running build_ext 13829s E running build_src 13829s E INFO: build_src 13829s E INFO: building extension "test_array_from_pyobj_ext" sources 13829s E INFO: build_src: building npy-pkg config files 13829s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13829s E !! 13829s E 13829s E ******************************************************************************** 13829s E Please avoid running ``setup.py`` directly. 13829s E Instead, use pypa/build, pypa/installer or other 13829s E standards-based tools. 13829s E 13829s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13829s E ******************************************************************************** 13829s E 13829s E !! 13829s E self.initialize_options() 13829s E INFO: customize UnixCCompiler 13829s E INFO: customize UnixCCompiler using build_ext 13829s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/tmp 13829s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/usr 13829s E creating /tmp/tmppq19o2st/usr/lib 13829s E creating /tmp/tmppq19o2st/usr/lib/python3 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=native' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-O3' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-Werror' 13829s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13829s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-vfpv4' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=armv8.2-a+fp16' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13829s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13829s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13829s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13829s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13829s E INFO: building 'test_array_from_pyobj_ext' extension 13829s E INFO: compiling C sources 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13829s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13829s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13829s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13829s E 14 | #include 13829s E | ^~~~~~~~~~ 13829s E In file included from fortranobject.c:2: 13829s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13829s E 7 | #include 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E compilation terminated. 13829s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13829s E INFO: 13829s E ########### EXT COMPILER OPTIMIZATION ########### 13829s E INFO: Platform : 13829s E Architecture: armhf 13829s E Compiler : gcc 13829s E 13829s E CPU baseline : 13829s E Requested : 'min' 13829s E Enabled : none 13829s E Flags : none 13829s E Extra checks: none 13829s E 13829s E CPU dispatch : 13829s E Requested : 'max -xop -fma4' 13829s E Enabled : none 13829s E Generated : none 13829s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13829s 13829s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13829s d = '/tmp/tmpjj8q074z' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s err = None 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s kw = {} 13829s module_name = 'test_array_from_pyobj_ext' 13829s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13829s p = 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13829s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-2seq-C-ro] ______ 13829s 13829s def setup_module(): 13829s """ 13829s Build the required testing extension module 13829s 13829s """ 13829s global wrap 13829s 13829s # Check compiler availability first 13829s if not util.has_c_compiler(): 13829s pytest.skip("No C compiler available") 13829s 13829s if wrap is None: 13829s config_code = """ 13829s config.add_extension('test_array_from_pyobj_ext', 13829s sources=['wrapmodule.c', 'fortranobject.c'], 13829s define_macros=[]) 13829s """ 13829s d = os.path.dirname(__file__) 13829s src = [ 13829s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13829s util.getpath("src", "fortranobject.c"), 13829s util.getpath("src", "fortranobject.h"), 13829s ] 13829s > wrap = util.build_module_distutils(src, config_code, 13829s "test_array_from_pyobj_ext") 13829s 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13829s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13829s memo[key] = func(*a, **kw) 13829s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13829s func = 13829s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13829s kw = {} 13829s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s 13829s @_memoize 13829s def build_module_distutils(source_files, config_code, module_name, **kw): 13829s """ 13829s Build a module via distutils and import it. 13829s 13829s """ 13829s d = get_module_dir() 13829s 13829s # Copy files 13829s dst_sources = [] 13829s for fn in source_files: 13829s if not os.path.isfile(fn): 13829s raise RuntimeError("%s is not a file" % fn) 13829s dst = os.path.join(d, os.path.basename(fn)) 13829s shutil.copyfile(fn, dst) 13829s dst_sources.append(dst) 13829s 13829s # Build script 13829s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13829s 13829s code = fr""" 13829s import os 13829s import sys 13829s sys.path = {repr(sys.path)} 13829s 13829s def configuration(parent_name='',top_path=None): 13829s from numpy.distutils.misc_util import Configuration 13829s config = Configuration('', parent_name, top_path) 13829s {config_code} 13829s return config 13829s 13829s if __name__ == "__main__": 13829s from numpy.distutils.core import setup 13829s setup(configuration=configuration) 13829s """ 13829s script = os.path.join(d, get_temp_module_name() + ".py") 13829s dst_sources.append(script) 13829s with open(script, "wb") as f: 13829s f.write(asbytes(code)) 13829s 13829s # Build 13829s cwd = os.getcwd() 13829s try: 13829s os.chdir(d) 13829s cmd = [sys.executable, script, "build_ext", "-i"] 13829s p = subprocess.Popen(cmd, 13829s stdout=subprocess.PIPE, 13829s stderr=subprocess.STDOUT) 13829s out, err = p.communicate() 13829s if p.returncode != 0: 13829s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13829s (cmd[4:], asstr(out))) 13829s E RuntimeError: Running distutils build failed: [] 13829s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13829s E 13829s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13829s E of the deprecation of `distutils` itself. It will be removed for 13829s E Python >= 3.12. For older Python versions it will remain present. 13829s E It is recommended to use `setuptools < 60.0` for those Python versions. 13829s E For more details, see: 13829s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13829s E 13829s E 13829s E from numpy.distutils.core import setup 13829s E running build_ext 13829s E running build_src 13829s E INFO: build_src 13829s E INFO: building extension "test_array_from_pyobj_ext" sources 13829s E INFO: build_src: building npy-pkg config files 13829s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13829s E !! 13829s E 13829s E ******************************************************************************** 13829s E Please avoid running ``setup.py`` directly. 13829s E Instead, use pypa/build, pypa/installer or other 13829s E standards-based tools. 13829s E 13829s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13829s E ******************************************************************************** 13829s E 13829s E !! 13829s E self.initialize_options() 13829s E INFO: customize UnixCCompiler 13829s E INFO: customize UnixCCompiler using build_ext 13829s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/tmp 13829s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/usr 13829s E creating /tmp/tmppq19o2st/usr/lib 13829s E creating /tmp/tmppq19o2st/usr/lib/python3 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=native' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-O3' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-Werror' 13829s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13829s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-vfpv4' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=armv8.2-a+fp16' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13829s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13829s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13829s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13829s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13829s E INFO: building 'test_array_from_pyobj_ext' extension 13829s E INFO: compiling C sources 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13829s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13829s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13829s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13829s E 14 | #include 13829s E | ^~~~~~~~~~ 13829s E In file included from fortranobject.c:2: 13829s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13829s E 7 | #include 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E compilation terminated. 13829s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13829s E INFO: 13829s E ########### EXT COMPILER OPTIMIZATION ########### 13829s E INFO: Platform : 13829s E Architecture: armhf 13829s E Compiler : gcc 13829s E 13829s E CPU baseline : 13829s E Requested : 'min' 13829s E Enabled : none 13829s E Flags : none 13829s E Extra checks: none 13829s E 13829s E CPU dispatch : 13829s E Requested : 'max -xop -fma4' 13829s E Enabled : none 13829s E Generated : none 13829s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13829s 13829s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13829s d = '/tmp/tmpjj8q074z' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s err = None 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s kw = {} 13829s module_name = 'test_array_from_pyobj_ext' 13829s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13829s p = 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13829s ______ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-2seq-F-w] ______ 13829s 13829s def setup_module(): 13829s """ 13829s Build the required testing extension module 13829s 13829s """ 13829s global wrap 13829s 13829s # Check compiler availability first 13829s if not util.has_c_compiler(): 13829s pytest.skip("No C compiler available") 13829s 13829s if wrap is None: 13829s config_code = """ 13829s config.add_extension('test_array_from_pyobj_ext', 13829s sources=['wrapmodule.c', 'fortranobject.c'], 13829s define_macros=[]) 13829s """ 13829s d = os.path.dirname(__file__) 13829s src = [ 13829s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13829s util.getpath("src", "fortranobject.c"), 13829s util.getpath("src", "fortranobject.h"), 13829s ] 13829s > wrap = util.build_module_distutils(src, config_code, 13829s "test_array_from_pyobj_ext") 13829s 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13829s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13829s memo[key] = func(*a, **kw) 13829s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13829s func = 13829s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13829s kw = {} 13829s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13829s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13829s 13829s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13829s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13829s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13829s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13829s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13829s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13829s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13829s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13829s 13829s @_memoize 13829s def build_module_distutils(source_files, config_code, module_name, **kw): 13829s """ 13829s Build a module via distutils and import it. 13829s 13829s """ 13829s d = get_module_dir() 13829s 13829s # Copy files 13829s dst_sources = [] 13829s for fn in source_files: 13829s if not os.path.isfile(fn): 13829s raise RuntimeError("%s is not a file" % fn) 13829s dst = os.path.join(d, os.path.basename(fn)) 13829s shutil.copyfile(fn, dst) 13829s dst_sources.append(dst) 13829s 13829s # Build script 13829s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13829s 13829s code = fr""" 13829s import os 13829s import sys 13829s sys.path = {repr(sys.path)} 13829s 13829s def configuration(parent_name='',top_path=None): 13829s from numpy.distutils.misc_util import Configuration 13829s config = Configuration('', parent_name, top_path) 13829s {config_code} 13829s return config 13829s 13829s if __name__ == "__main__": 13829s from numpy.distutils.core import setup 13829s setup(configuration=configuration) 13829s """ 13829s script = os.path.join(d, get_temp_module_name() + ".py") 13829s dst_sources.append(script) 13829s with open(script, "wb") as f: 13829s f.write(asbytes(code)) 13829s 13829s # Build 13829s cwd = os.getcwd() 13829s try: 13829s os.chdir(d) 13829s cmd = [sys.executable, script, "build_ext", "-i"] 13829s p = subprocess.Popen(cmd, 13829s stdout=subprocess.PIPE, 13829s stderr=subprocess.STDOUT) 13829s out, err = p.communicate() 13829s if p.returncode != 0: 13829s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13829s (cmd[4:], asstr(out))) 13829s E RuntimeError: Running distutils build failed: [] 13829s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13829s E 13829s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13829s E of the deprecation of `distutils` itself. It will be removed for 13829s E Python >= 3.12. For older Python versions it will remain present. 13829s E It is recommended to use `setuptools < 60.0` for those Python versions. 13829s E For more details, see: 13829s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13829s E 13829s E 13829s E from numpy.distutils.core import setup 13829s E running build_ext 13829s E running build_src 13829s E INFO: build_src 13829s E INFO: building extension "test_array_from_pyobj_ext" sources 13829s E INFO: build_src: building npy-pkg config files 13829s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13829s E !! 13829s E 13829s E ******************************************************************************** 13829s E Please avoid running ``setup.py`` directly. 13829s E Instead, use pypa/build, pypa/installer or other 13829s E standards-based tools. 13829s E 13829s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13829s E ******************************************************************************** 13829s E 13829s E !! 13829s E self.initialize_options() 13829s E INFO: customize UnixCCompiler 13829s E INFO: customize UnixCCompiler using build_ext 13829s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/tmp 13829s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E creating /tmp/tmppq19o2st/usr 13829s E creating /tmp/tmppq19o2st/usr/lib 13829s E creating /tmp/tmppq19o2st/usr/lib/python3 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13829s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-march=native' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-O3' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-Werror' 13829s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13829s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon' 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13829s E INFO: compile options: '-I/usr/include/python3.12 -c' 13829s E extra options: '-mfpu=neon -Werror' 13829s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13829s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13829s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13829s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13829s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13829s E 9 | # include_next 13829s E | ^~~~~~~~~~ 13829s E compilation terminated. 13829s E 13829s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13829s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13829s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13829s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-2seq-F-ro] ______ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-23seq-C-w] ______ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-23seq-C-ro] _____ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-23seq-F-w] ______ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CFLOAT-23seq-F-ro] _____ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s __________ ERROR at setup of TestSharedMemory.test_inout_2seq[CFLOAT] __________ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[CFLOAT] _________ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[CFLOAT] _________ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s ____ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[CFLOAT] ____ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-vfpv4' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=armv8.2-a+fp16' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13830s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13830s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13830s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13830s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13830s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13830s E 9 | # include_next 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E 13830s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13830s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13830s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13830s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13830s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13830s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13830s E INFO: building 'test_array_from_pyobj_ext' extension 13830s E INFO: compiling C sources 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13830s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13830s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13830s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13830s E 14 | #include 13830s E | ^~~~~~~~~~ 13830s E In file included from fortranobject.c:2: 13830s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13830s E 7 | #include 13830s E | ^~~~~~~~~~ 13830s E compilation terminated. 13830s E compilation terminated. 13830s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13830s E INFO: 13830s E ########### EXT COMPILER OPTIMIZATION ########### 13830s E INFO: Platform : 13830s E Architecture: armhf 13830s E Compiler : gcc 13830s E 13830s E CPU baseline : 13830s E Requested : 'min' 13830s E Enabled : none 13830s E Flags : none 13830s E Extra checks: none 13830s E 13830s E CPU dispatch : 13830s E Requested : 'max -xop -fma4' 13830s E Enabled : none 13830s E Generated : none 13830s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13830s 13830s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13830s d = '/tmp/tmpjj8q074z' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s err = None 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s kw = {} 13830s module_name = 'test_array_from_pyobj_ext' 13830s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13830s p = 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13830s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[CFLOAT] ________ 13830s 13830s def setup_module(): 13830s """ 13830s Build the required testing extension module 13830s 13830s """ 13830s global wrap 13830s 13830s # Check compiler availability first 13830s if not util.has_c_compiler(): 13830s pytest.skip("No C compiler available") 13830s 13830s if wrap is None: 13830s config_code = """ 13830s config.add_extension('test_array_from_pyobj_ext', 13830s sources=['wrapmodule.c', 'fortranobject.c'], 13830s define_macros=[]) 13830s """ 13830s d = os.path.dirname(__file__) 13830s src = [ 13830s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13830s util.getpath("src", "fortranobject.c"), 13830s util.getpath("src", "fortranobject.h"), 13830s ] 13830s > wrap = util.build_module_distutils(src, config_code, 13830s "test_array_from_pyobj_ext") 13830s 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13830s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13830s memo[key] = func(*a, **kw) 13830s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13830s func = 13830s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13830s kw = {} 13830s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13830s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13830s 13830s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13830s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13830s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13830s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13830s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13830s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13830s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13830s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13830s 13830s @_memoize 13830s def build_module_distutils(source_files, config_code, module_name, **kw): 13830s """ 13830s Build a module via distutils and import it. 13830s 13830s """ 13830s d = get_module_dir() 13830s 13830s # Copy files 13830s dst_sources = [] 13830s for fn in source_files: 13830s if not os.path.isfile(fn): 13830s raise RuntimeError("%s is not a file" % fn) 13830s dst = os.path.join(d, os.path.basename(fn)) 13830s shutil.copyfile(fn, dst) 13830s dst_sources.append(dst) 13830s 13830s # Build script 13830s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13830s 13830s code = fr""" 13830s import os 13830s import sys 13830s sys.path = {repr(sys.path)} 13830s 13830s def configuration(parent_name='',top_path=None): 13830s from numpy.distutils.misc_util import Configuration 13830s config = Configuration('', parent_name, top_path) 13830s {config_code} 13830s return config 13830s 13830s if __name__ == "__main__": 13830s from numpy.distutils.core import setup 13830s setup(configuration=configuration) 13830s """ 13830s script = os.path.join(d, get_temp_module_name() + ".py") 13830s dst_sources.append(script) 13830s with open(script, "wb") as f: 13830s f.write(asbytes(code)) 13830s 13830s # Build 13830s cwd = os.getcwd() 13830s try: 13830s os.chdir(d) 13830s cmd = [sys.executable, script, "build_ext", "-i"] 13830s p = subprocess.Popen(cmd, 13830s stdout=subprocess.PIPE, 13830s stderr=subprocess.STDOUT) 13830s out, err = p.communicate() 13830s if p.returncode != 0: 13830s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13830s (cmd[4:], asstr(out))) 13830s E RuntimeError: Running distutils build failed: [] 13830s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13830s E 13830s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13830s E of the deprecation of `distutils` itself. It will be removed for 13830s E Python >= 3.12. For older Python versions it will remain present. 13830s E It is recommended to use `setuptools < 60.0` for those Python versions. 13830s E For more details, see: 13830s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13830s E 13830s E 13830s E from numpy.distutils.core import setup 13830s E running build_ext 13830s E running build_src 13830s E INFO: build_src 13830s E INFO: building extension "test_array_from_pyobj_ext" sources 13830s E INFO: build_src: building npy-pkg config files 13830s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13830s E !! 13830s E 13830s E ******************************************************************************** 13830s E Please avoid running ``setup.py`` directly. 13830s E Instead, use pypa/build, pypa/installer or other 13830s E standards-based tools. 13830s E 13830s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13830s E ******************************************************************************** 13830s E 13830s E !! 13830s E self.initialize_options() 13830s E INFO: customize UnixCCompiler 13830s E INFO: customize UnixCCompiler using build_ext 13830s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/tmp 13830s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E creating /tmp/tmppq19o2st/usr 13830s E creating /tmp/tmppq19o2st/usr/lib 13830s E creating /tmp/tmppq19o2st/usr/lib/python3 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13830s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-march=native' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-O3' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-Werror' 13830s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13830s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon' 13830s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13830s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13830s E 13830s E INFO: compile options: '-I/usr/include/python3.12 -c' 13830s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13830s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s ______ ERROR at setup of TestSharedMemory.test_in_from_23casttype[CFLOAT] ______ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s _____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[CFLOAT] _____ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[CFLOAT] _____ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[CFLOAT] ___ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[CFLOAT] ___ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[CFLOAT] ____ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[CFLOAT] _ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s _________ ERROR at setup of TestSharedMemory.test_cache_hidden[CFLOAT] _________ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s ____________ ERROR at setup of TestSharedMemory.test_hidden[CFLOAT] ____________ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s ________ ERROR at setup of TestSharedMemory.test_optional_none[CFLOAT] _________ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s ______ ERROR at setup of TestSharedMemory.test_optional_from_2seq[CFLOAT] ______ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[CFLOAT] ______ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13831s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s 13831s @_memoize 13831s def build_module_distutils(source_files, config_code, module_name, **kw): 13831s """ 13831s Build a module via distutils and import it. 13831s 13831s """ 13831s d = get_module_dir() 13831s 13831s # Copy files 13831s dst_sources = [] 13831s for fn in source_files: 13831s if not os.path.isfile(fn): 13831s raise RuntimeError("%s is not a file" % fn) 13831s dst = os.path.join(d, os.path.basename(fn)) 13831s shutil.copyfile(fn, dst) 13831s dst_sources.append(dst) 13831s 13831s # Build script 13831s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13831s 13831s code = fr""" 13831s import os 13831s import sys 13831s sys.path = {repr(sys.path)} 13831s 13831s def configuration(parent_name='',top_path=None): 13831s from numpy.distutils.misc_util import Configuration 13831s config = Configuration('', parent_name, top_path) 13831s {config_code} 13831s return config 13831s 13831s if __name__ == "__main__": 13831s from numpy.distutils.core import setup 13831s setup(configuration=configuration) 13831s """ 13831s script = os.path.join(d, get_temp_module_name() + ".py") 13831s dst_sources.append(script) 13831s with open(script, "wb") as f: 13831s f.write(asbytes(code)) 13831s 13831s # Build 13831s cwd = os.getcwd() 13831s try: 13831s os.chdir(d) 13831s cmd = [sys.executable, script, "build_ext", "-i"] 13831s p = subprocess.Popen(cmd, 13831s stdout=subprocess.PIPE, 13831s stderr=subprocess.STDOUT) 13831s out, err = p.communicate() 13831s if p.returncode != 0: 13831s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13831s (cmd[4:], asstr(out))) 13831s E RuntimeError: Running distutils build failed: [] 13831s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13831s E 13831s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13831s E of the deprecation of `distutils` itself. It will be removed for 13831s E Python >= 3.12. For older Python versions it will remain present. 13831s E It is recommended to use `setuptools < 60.0` for those Python versions. 13831s E For more details, see: 13831s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13831s E 13831s E 13831s E from numpy.distutils.core import setup 13831s E running build_ext 13831s E running build_src 13831s E INFO: build_src 13831s E INFO: building extension "test_array_from_pyobj_ext" sources 13831s E INFO: build_src: building npy-pkg config files 13831s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13831s E !! 13831s E 13831s E ******************************************************************************** 13831s E Please avoid running ``setup.py`` directly. 13831s E Instead, use pypa/build, pypa/installer or other 13831s E standards-based tools. 13831s E 13831s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13831s E ******************************************************************************** 13831s E 13831s E !! 13831s E self.initialize_options() 13831s E INFO: customize UnixCCompiler 13831s E INFO: customize UnixCCompiler using build_ext 13831s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/tmp 13831s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E creating /tmp/tmppq19o2st/usr 13831s E creating /tmp/tmppq19o2st/usr/lib 13831s E creating /tmp/tmppq19o2st/usr/lib/python3 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13831s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=native' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-O3' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-Werror' 13831s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13831s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-vfpv4' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13831s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-march=armv8.2-a+fp16' 13831s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/include/python3.12 -c' 13831s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13831s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13831s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13831s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13831s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13831s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13831s E 9 | # include_next 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E 13831s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13831s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13831s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13831s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13831s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13831s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13831s E INFO: building 'test_array_from_pyobj_ext' extension 13831s E INFO: compiling C sources 13831s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13831s E 13831s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13831s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13831s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13831s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13831s E 14 | #include 13831s E | ^~~~~~~~~~ 13831s E In file included from fortranobject.c:2: 13831s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13831s E 7 | #include 13831s E | ^~~~~~~~~~ 13831s E compilation terminated. 13831s E compilation terminated. 13831s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13831s E INFO: 13831s E ########### EXT COMPILER OPTIMIZATION ########### 13831s E INFO: Platform : 13831s E Architecture: armhf 13831s E Compiler : gcc 13831s E 13831s E CPU baseline : 13831s E Requested : 'min' 13831s E Enabled : none 13831s E Flags : none 13831s E Extra checks: none 13831s E 13831s E CPU dispatch : 13831s E Requested : 'max -xop -fma4' 13831s E Enabled : none 13831s E Generated : none 13831s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13831s 13831s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13831s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13831s d = '/tmp/tmpjj8q074z' 13831s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13831s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13831s err = None 13831s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13831s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s kw = {} 13831s module_name = 'test_array_from_pyobj_ext' 13831s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13831s p = 13831s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13831s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13831s ___________ ERROR at setup of TestSharedMemory.test_inplace[CFLOAT] ____________ 13831s 13831s def setup_module(): 13831s """ 13831s Build the required testing extension module 13831s 13831s """ 13831s global wrap 13831s 13831s # Check compiler availability first 13831s if not util.has_c_compiler(): 13831s pytest.skip("No C compiler available") 13831s 13831s if wrap is None: 13831s config_code = """ 13831s config.add_extension('test_array_from_pyobj_ext', 13831s sources=['wrapmodule.c', 'fortranobject.c'], 13831s define_macros=[]) 13831s """ 13831s d = os.path.dirname(__file__) 13831s src = [ 13831s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13831s util.getpath("src", "fortranobject.c"), 13831s util.getpath("src", "fortranobject.h"), 13831s ] 13831s > wrap = util.build_module_distutils(src, config_code, 13831s "test_array_from_pyobj_ext") 13831s 13831s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13831s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13831s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13831s 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13831s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13831s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13831s memo[key] = func(*a, **kw) 13831s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13831s func = 13831s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13831s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[CFLOAT] _____ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s ________ ERROR at setup of TestSharedMemory.test_in_from_2seq[STRING1] _________ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[STRING1] ______ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-2seq-C-w] ______ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-2seq-C-ro] _____ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-2seq-F-w] ______ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-2seq-F-ro] _____ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-23seq-C-w] _____ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13832s sys.path = {repr(sys.path)} 13832s 13832s def configuration(parent_name='',top_path=None): 13832s from numpy.distutils.misc_util import Configuration 13832s config = Configuration('', parent_name, top_path) 13832s {config_code} 13832s return config 13832s 13832s if __name__ == "__main__": 13832s from numpy.distutils.core import setup 13832s setup(configuration=configuration) 13832s """ 13832s script = os.path.join(d, get_temp_module_name() + ".py") 13832s dst_sources.append(script) 13832s with open(script, "wb") as f: 13832s f.write(asbytes(code)) 13832s 13832s # Build 13832s cwd = os.getcwd() 13832s try: 13832s os.chdir(d) 13832s cmd = [sys.executable, script, "build_ext", "-i"] 13832s p = subprocess.Popen(cmd, 13832s stdout=subprocess.PIPE, 13832s stderr=subprocess.STDOUT) 13832s out, err = p.communicate() 13832s if p.returncode != 0: 13832s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13832s (cmd[4:], asstr(out))) 13832s E RuntimeError: Running distutils build failed: [] 13832s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13832s E 13832s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13832s E of the deprecation of `distutils` itself. It will be removed for 13832s E Python >= 3.12. For older Python versions it will remain present. 13832s E It is recommended to use `setuptools < 60.0` for those Python versions. 13832s E For more details, see: 13832s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13832s E 13832s E 13832s E from numpy.distutils.core import setup 13832s E running build_ext 13832s E running build_src 13832s E INFO: build_src 13832s E INFO: building extension "test_array_from_pyobj_ext" sources 13832s E INFO: build_src: building npy-pkg config files 13832s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13832s E !! 13832s E 13832s E ******************************************************************************** 13832s E Please avoid running ``setup.py`` directly. 13832s E Instead, use pypa/build, pypa/installer or other 13832s E standards-based tools. 13832s E 13832s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13832s E ******************************************************************************** 13832s E 13832s E !! 13832s E self.initialize_options() 13832s E INFO: customize UnixCCompiler 13832s E INFO: customize UnixCCompiler using build_ext 13832s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/tmp 13832s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E creating /tmp/tmppq19o2st/usr 13832s E creating /tmp/tmppq19o2st/usr/lib 13832s E creating /tmp/tmppq19o2st/usr/lib/python3 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13832s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=native' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-O3' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-Werror' 13832s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13832s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-vfpv4' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13832s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-march=armv8.2-a+fp16' 13832s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/include/python3.12 -c' 13832s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13832s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13832s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13832s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13832s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13832s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13832s E 9 | # include_next 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E 13832s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13832s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13832s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13832s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13832s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13832s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13832s E INFO: building 'test_array_from_pyobj_ext' extension 13832s E INFO: compiling C sources 13832s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13832s E 13832s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13832s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13832s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13832s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13832s E 14 | #include 13832s E | ^~~~~~~~~~ 13832s E In file included from fortranobject.c:2: 13832s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13832s E 7 | #include 13832s E | ^~~~~~~~~~ 13832s E compilation terminated. 13832s E compilation terminated. 13832s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13832s E INFO: 13832s E ########### EXT COMPILER OPTIMIZATION ########### 13832s E INFO: Platform : 13832s E Architecture: armhf 13832s E Compiler : gcc 13832s E 13832s E CPU baseline : 13832s E Requested : 'min' 13832s E Enabled : none 13832s E Flags : none 13832s E Extra checks: none 13832s E 13832s E CPU dispatch : 13832s E Requested : 'max -xop -fma4' 13832s E Enabled : none 13832s E Generated : none 13832s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13832s 13832s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13832s d = '/tmp/tmpjj8q074z' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s err = None 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s kw = {} 13832s module_name = 'test_array_from_pyobj_ext' 13832s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13832s p = 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13832s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-23seq-C-ro] _____ 13832s 13832s def setup_module(): 13832s """ 13832s Build the required testing extension module 13832s 13832s """ 13832s global wrap 13832s 13832s # Check compiler availability first 13832s if not util.has_c_compiler(): 13832s pytest.skip("No C compiler available") 13832s 13832s if wrap is None: 13832s config_code = """ 13832s config.add_extension('test_array_from_pyobj_ext', 13832s sources=['wrapmodule.c', 'fortranobject.c'], 13832s define_macros=[]) 13832s """ 13832s d = os.path.dirname(__file__) 13832s src = [ 13832s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13832s util.getpath("src", "fortranobject.c"), 13832s util.getpath("src", "fortranobject.h"), 13832s ] 13832s > wrap = util.build_module_distutils(src, config_code, 13832s "test_array_from_pyobj_ext") 13832s 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13832s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13832s memo[key] = func(*a, **kw) 13832s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13832s func = 13832s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13832s kw = {} 13832s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13832s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13832s 13832s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13832s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13832s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13832s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13832s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13832s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13832s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13832s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13832s 13832s @_memoize 13832s def build_module_distutils(source_files, config_code, module_name, **kw): 13832s """ 13832s Build a module via distutils and import it. 13832s 13832s """ 13832s d = get_module_dir() 13832s 13832s # Copy files 13832s dst_sources = [] 13832s for fn in source_files: 13832s if not os.path.isfile(fn): 13832s raise RuntimeError("%s is not a file" % fn) 13832s dst = os.path.join(d, os.path.basename(fn)) 13832s shutil.copyfile(fn, dst) 13832s dst_sources.append(dst) 13832s 13832s # Build script 13832s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13832s 13832s code = fr""" 13832s import os 13832s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-23seq-F-w] _____ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING1-23seq-F-ro] _____ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s _________ ERROR at setup of TestSharedMemory.test_inout_2seq[STRING1] __________ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[STRING1] ________ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[STRING1] ________ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s ___ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[STRING1] ____ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[STRING1] _______ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s _____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[STRING1] ______ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13833s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13833s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13833s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13833s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13833s E INFO: building 'test_array_from_pyobj_ext' extension 13833s E INFO: compiling C sources 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13833s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13833s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13833s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13833s E 14 | #include 13833s E | ^~~~~~~~~~ 13833s E In file included from fortranobject.c:2: 13833s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13833s E 7 | #include 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E compilation terminated. 13833s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13833s E INFO: 13833s E ########### EXT COMPILER OPTIMIZATION ########### 13833s E INFO: Platform : 13833s E Architecture: armhf 13833s E Compiler : gcc 13833s E 13833s E CPU baseline : 13833s E Requested : 'min' 13833s E Enabled : none 13833s E Flags : none 13833s E Extra checks: none 13833s E 13833s E CPU dispatch : 13833s E Requested : 'max -xop -fma4' 13833s E Enabled : none 13833s E Generated : none 13833s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13833s 13833s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13833s d = '/tmp/tmpjj8q074z' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s err = None 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s kw = {} 13833s module_name = 'test_array_from_pyobj_ext' 13833s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13833s p = 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13833s ____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[STRING1] _____ 13833s 13833s def setup_module(): 13833s """ 13833s Build the required testing extension module 13833s 13833s """ 13833s global wrap 13833s 13833s # Check compiler availability first 13833s if not util.has_c_compiler(): 13833s pytest.skip("No C compiler available") 13833s 13833s if wrap is None: 13833s config_code = """ 13833s config.add_extension('test_array_from_pyobj_ext', 13833s sources=['wrapmodule.c', 'fortranobject.c'], 13833s define_macros=[]) 13833s """ 13833s d = os.path.dirname(__file__) 13833s src = [ 13833s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13833s util.getpath("src", "fortranobject.c"), 13833s util.getpath("src", "fortranobject.h"), 13833s ] 13833s > wrap = util.build_module_distutils(src, config_code, 13833s "test_array_from_pyobj_ext") 13833s 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13833s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13833s memo[key] = func(*a, **kw) 13833s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13833s func = 13833s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13833s kw = {} 13833s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13833s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13833s 13833s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13833s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13833s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13833s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13833s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13833s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13833s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13833s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13833s 13833s @_memoize 13833s def build_module_distutils(source_files, config_code, module_name, **kw): 13833s """ 13833s Build a module via distutils and import it. 13833s 13833s """ 13833s d = get_module_dir() 13833s 13833s # Copy files 13833s dst_sources = [] 13833s for fn in source_files: 13833s if not os.path.isfile(fn): 13833s raise RuntimeError("%s is not a file" % fn) 13833s dst = os.path.join(d, os.path.basename(fn)) 13833s shutil.copyfile(fn, dst) 13833s dst_sources.append(dst) 13833s 13833s # Build script 13833s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13833s 13833s code = fr""" 13833s import os 13833s import sys 13833s sys.path = {repr(sys.path)} 13833s 13833s def configuration(parent_name='',top_path=None): 13833s from numpy.distutils.misc_util import Configuration 13833s config = Configuration('', parent_name, top_path) 13833s {config_code} 13833s return config 13833s 13833s if __name__ == "__main__": 13833s from numpy.distutils.core import setup 13833s setup(configuration=configuration) 13833s """ 13833s script = os.path.join(d, get_temp_module_name() + ".py") 13833s dst_sources.append(script) 13833s with open(script, "wb") as f: 13833s f.write(asbytes(code)) 13833s 13833s # Build 13833s cwd = os.getcwd() 13833s try: 13833s os.chdir(d) 13833s cmd = [sys.executable, script, "build_ext", "-i"] 13833s p = subprocess.Popen(cmd, 13833s stdout=subprocess.PIPE, 13833s stderr=subprocess.STDOUT) 13833s out, err = p.communicate() 13833s if p.returncode != 0: 13833s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13833s (cmd[4:], asstr(out))) 13833s E RuntimeError: Running distutils build failed: [] 13833s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13833s E 13833s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13833s E of the deprecation of `distutils` itself. It will be removed for 13833s E Python >= 3.12. For older Python versions it will remain present. 13833s E It is recommended to use `setuptools < 60.0` for those Python versions. 13833s E For more details, see: 13833s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13833s E 13833s E 13833s E from numpy.distutils.core import setup 13833s E running build_ext 13833s E running build_src 13833s E INFO: build_src 13833s E INFO: building extension "test_array_from_pyobj_ext" sources 13833s E INFO: build_src: building npy-pkg config files 13833s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13833s E !! 13833s E 13833s E ******************************************************************************** 13833s E Please avoid running ``setup.py`` directly. 13833s E Instead, use pypa/build, pypa/installer or other 13833s E standards-based tools. 13833s E 13833s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13833s E ******************************************************************************** 13833s E 13833s E !! 13833s E self.initialize_options() 13833s E INFO: customize UnixCCompiler 13833s E INFO: customize UnixCCompiler using build_ext 13833s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/tmp 13833s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E creating /tmp/tmppq19o2st/usr 13833s E creating /tmp/tmppq19o2st/usr/lib 13833s E creating /tmp/tmppq19o2st/usr/lib/python3 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13833s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=native' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-O3' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-Werror' 13833s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13833s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon -Werror' 13833s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13833s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13833s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13833s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13833s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13833s E 9 | # include_next 13833s E | ^~~~~~~~~~ 13833s E compilation terminated. 13833s E 13833s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-vfpv4' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13833s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13833s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13833s E 13833s E INFO: compile options: '-I/usr/include/python3.12 -c' 13833s E extra options: '-march=armv8.2-a+fp16' 13833s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s ____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[STRING1] _____ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-vfpv4' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=armv8.2-a+fp16' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[STRING1] __ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-vfpv4' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=armv8.2-a+fp16' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[STRING1] __ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-vfpv4' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=armv8.2-a+fp16' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[STRING1] ___ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-vfpv4' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=armv8.2-a+fp16' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[STRING1] _ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-vfpv4' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=armv8.2-a+fp16' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s ________ ERROR at setup of TestSharedMemory.test_cache_hidden[STRING1] _________ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-vfpv4' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=armv8.2-a+fp16' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s ___________ ERROR at setup of TestSharedMemory.test_hidden[STRING1] ____________ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-vfpv4' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=armv8.2-a+fp16' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s ________ ERROR at setup of TestSharedMemory.test_optional_none[STRING1] ________ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-vfpv4' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=armv8.2-a+fp16' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13834s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13834s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13834s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13834s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13834s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13834s E 9 | # include_next 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E 13834s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13834s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13834s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13834s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13834s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13834s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13834s E INFO: building 'test_array_from_pyobj_ext' extension 13834s E INFO: compiling C sources 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13834s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13834s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13834s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13834s E 14 | #include 13834s E | ^~~~~~~~~~ 13834s E In file included from fortranobject.c:2: 13834s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13834s E 7 | #include 13834s E | ^~~~~~~~~~ 13834s E compilation terminated. 13834s E compilation terminated. 13834s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13834s E INFO: 13834s E ########### EXT COMPILER OPTIMIZATION ########### 13834s E INFO: Platform : 13834s E Architecture: armhf 13834s E Compiler : gcc 13834s E 13834s E CPU baseline : 13834s E Requested : 'min' 13834s E Enabled : none 13834s E Flags : none 13834s E Extra checks: none 13834s E 13834s E CPU dispatch : 13834s E Requested : 'max -xop -fma4' 13834s E Enabled : none 13834s E Generated : none 13834s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13834s 13834s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13834s d = '/tmp/tmpjj8q074z' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s err = None 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s kw = {} 13834s module_name = 'test_array_from_pyobj_ext' 13834s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13834s p = 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13834s _____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[STRING1] ______ 13834s 13834s def setup_module(): 13834s """ 13834s Build the required testing extension module 13834s 13834s """ 13834s global wrap 13834s 13834s # Check compiler availability first 13834s if not util.has_c_compiler(): 13834s pytest.skip("No C compiler available") 13834s 13834s if wrap is None: 13834s config_code = """ 13834s config.add_extension('test_array_from_pyobj_ext', 13834s sources=['wrapmodule.c', 'fortranobject.c'], 13834s define_macros=[]) 13834s """ 13834s d = os.path.dirname(__file__) 13834s src = [ 13834s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13834s util.getpath("src", "fortranobject.c"), 13834s util.getpath("src", "fortranobject.h"), 13834s ] 13834s > wrap = util.build_module_distutils(src, config_code, 13834s "test_array_from_pyobj_ext") 13834s 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13834s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13834s memo[key] = func(*a, **kw) 13834s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13834s func = 13834s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13834s kw = {} 13834s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13834s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13834s 13834s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13834s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13834s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13834s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13834s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13834s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13834s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13834s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13834s 13834s @_memoize 13834s def build_module_distutils(source_files, config_code, module_name, **kw): 13834s """ 13834s Build a module via distutils and import it. 13834s 13834s """ 13834s d = get_module_dir() 13834s 13834s # Copy files 13834s dst_sources = [] 13834s for fn in source_files: 13834s if not os.path.isfile(fn): 13834s raise RuntimeError("%s is not a file" % fn) 13834s dst = os.path.join(d, os.path.basename(fn)) 13834s shutil.copyfile(fn, dst) 13834s dst_sources.append(dst) 13834s 13834s # Build script 13834s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13834s 13834s code = fr""" 13834s import os 13834s import sys 13834s sys.path = {repr(sys.path)} 13834s 13834s def configuration(parent_name='',top_path=None): 13834s from numpy.distutils.misc_util import Configuration 13834s config = Configuration('', parent_name, top_path) 13834s {config_code} 13834s return config 13834s 13834s if __name__ == "__main__": 13834s from numpy.distutils.core import setup 13834s setup(configuration=configuration) 13834s """ 13834s script = os.path.join(d, get_temp_module_name() + ".py") 13834s dst_sources.append(script) 13834s with open(script, "wb") as f: 13834s f.write(asbytes(code)) 13834s 13834s # Build 13834s cwd = os.getcwd() 13834s try: 13834s os.chdir(d) 13834s cmd = [sys.executable, script, "build_ext", "-i"] 13834s p = subprocess.Popen(cmd, 13834s stdout=subprocess.PIPE, 13834s stderr=subprocess.STDOUT) 13834s out, err = p.communicate() 13834s if p.returncode != 0: 13834s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13834s (cmd[4:], asstr(out))) 13834s E RuntimeError: Running distutils build failed: [] 13834s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13834s E 13834s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13834s E of the deprecation of `distutils` itself. It will be removed for 13834s E Python >= 3.12. For older Python versions it will remain present. 13834s E It is recommended to use `setuptools < 60.0` for those Python versions. 13834s E For more details, see: 13834s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13834s E 13834s E 13834s E from numpy.distutils.core import setup 13834s E running build_ext 13834s E running build_src 13834s E INFO: build_src 13834s E INFO: building extension "test_array_from_pyobj_ext" sources 13834s E INFO: build_src: building npy-pkg config files 13834s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13834s E !! 13834s E 13834s E ******************************************************************************** 13834s E Please avoid running ``setup.py`` directly. 13834s E Instead, use pypa/build, pypa/installer or other 13834s E standards-based tools. 13834s E 13834s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13834s E ******************************************************************************** 13834s E 13834s E !! 13834s E self.initialize_options() 13834s E INFO: customize UnixCCompiler 13834s E INFO: customize UnixCCompiler using build_ext 13834s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/tmp 13834s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E creating /tmp/tmppq19o2st/usr 13834s E creating /tmp/tmppq19o2st/usr/lib 13834s E creating /tmp/tmppq19o2st/usr/lib/python3 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13834s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-march=native' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-O3' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-Werror' 13834s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13834s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon' 13834s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13834s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13834s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13834s E 13834s E INFO: compile options: '-I/usr/include/python3.12 -c' 13834s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-vfpv4' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=armv8.2-a+fp16' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13835s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13835s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13835s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13835s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13835s E INFO: building 'test_array_from_pyobj_ext' extension 13835s E INFO: compiling C sources 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13835s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13835s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13835s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13835s E 14 | #include 13835s E | ^~~~~~~~~~ 13835s E In file included from fortranobject.c:2: 13835s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13835s E 7 | #include 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E compilation terminated. 13835s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13835s E INFO: 13835s E ########### EXT COMPILER OPTIMIZATION ########### 13835s E INFO: Platform : 13835s E Architecture: armhf 13835s E Compiler : gcc 13835s E 13835s E CPU baseline : 13835s E Requested : 'min' 13835s E Enabled : none 13835s E Flags : none 13835s E Extra checks: none 13835s E 13835s E CPU dispatch : 13835s E Requested : 'max -xop -fma4' 13835s E Enabled : none 13835s E Generated : none 13835s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13835s 13835s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13835s d = '/tmp/tmpjj8q074z' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s err = None 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s kw = {} 13835s module_name = 'test_array_from_pyobj_ext' 13835s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13835s p = 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13835s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[STRING1] _____ 13835s 13835s def setup_module(): 13835s """ 13835s Build the required testing extension module 13835s 13835s """ 13835s global wrap 13835s 13835s # Check compiler availability first 13835s if not util.has_c_compiler(): 13835s pytest.skip("No C compiler available") 13835s 13835s if wrap is None: 13835s config_code = """ 13835s config.add_extension('test_array_from_pyobj_ext', 13835s sources=['wrapmodule.c', 'fortranobject.c'], 13835s define_macros=[]) 13835s """ 13835s d = os.path.dirname(__file__) 13835s src = [ 13835s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13835s util.getpath("src", "fortranobject.c"), 13835s util.getpath("src", "fortranobject.h"), 13835s ] 13835s > wrap = util.build_module_distutils(src, config_code, 13835s "test_array_from_pyobj_ext") 13835s 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13835s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13835s memo[key] = func(*a, **kw) 13835s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13835s func = 13835s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13835s kw = {} 13835s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s 13835s @_memoize 13835s def build_module_distutils(source_files, config_code, module_name, **kw): 13835s """ 13835s Build a module via distutils and import it. 13835s 13835s """ 13835s d = get_module_dir() 13835s 13835s # Copy files 13835s dst_sources = [] 13835s for fn in source_files: 13835s if not os.path.isfile(fn): 13835s raise RuntimeError("%s is not a file" % fn) 13835s dst = os.path.join(d, os.path.basename(fn)) 13835s shutil.copyfile(fn, dst) 13835s dst_sources.append(dst) 13835s 13835s # Build script 13835s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13835s 13835s code = fr""" 13835s import os 13835s import sys 13835s sys.path = {repr(sys.path)} 13835s 13835s def configuration(parent_name='',top_path=None): 13835s from numpy.distutils.misc_util import Configuration 13835s config = Configuration('', parent_name, top_path) 13835s {config_code} 13835s return config 13835s 13835s if __name__ == "__main__": 13835s from numpy.distutils.core import setup 13835s setup(configuration=configuration) 13835s """ 13835s script = os.path.join(d, get_temp_module_name() + ".py") 13835s dst_sources.append(script) 13835s with open(script, "wb") as f: 13835s f.write(asbytes(code)) 13835s 13835s # Build 13835s cwd = os.getcwd() 13835s try: 13835s os.chdir(d) 13835s cmd = [sys.executable, script, "build_ext", "-i"] 13835s p = subprocess.Popen(cmd, 13835s stdout=subprocess.PIPE, 13835s stderr=subprocess.STDOUT) 13835s out, err = p.communicate() 13835s if p.returncode != 0: 13835s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13835s (cmd[4:], asstr(out))) 13835s E RuntimeError: Running distutils build failed: [] 13835s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13835s E 13835s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13835s E of the deprecation of `distutils` itself. It will be removed for 13835s E Python >= 3.12. For older Python versions it will remain present. 13835s E It is recommended to use `setuptools < 60.0` for those Python versions. 13835s E For more details, see: 13835s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13835s E 13835s E 13835s E from numpy.distutils.core import setup 13835s E running build_ext 13835s E running build_src 13835s E INFO: build_src 13835s E INFO: building extension "test_array_from_pyobj_ext" sources 13835s E INFO: build_src: building npy-pkg config files 13835s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13835s E !! 13835s E 13835s E ******************************************************************************** 13835s E Please avoid running ``setup.py`` directly. 13835s E Instead, use pypa/build, pypa/installer or other 13835s E standards-based tools. 13835s E 13835s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13835s E ******************************************************************************** 13835s E 13835s E !! 13835s E self.initialize_options() 13835s E INFO: customize UnixCCompiler 13835s E INFO: customize UnixCCompiler using build_ext 13835s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/tmp 13835s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/usr 13835s E creating /tmp/tmppq19o2st/usr/lib 13835s E creating /tmp/tmppq19o2st/usr/lib/python3 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=native' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-O3' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-Werror' 13835s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13835s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-vfpv4' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=armv8.2-a+fp16' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13835s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13835s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13835s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13835s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13835s E INFO: building 'test_array_from_pyobj_ext' extension 13835s E INFO: compiling C sources 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13835s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13835s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13835s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13835s E 14 | #include 13835s E | ^~~~~~~~~~ 13835s E In file included from fortranobject.c:2: 13835s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13835s E 7 | #include 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E compilation terminated. 13835s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13835s E INFO: 13835s E ########### EXT COMPILER OPTIMIZATION ########### 13835s E INFO: Platform : 13835s E Architecture: armhf 13835s E Compiler : gcc 13835s E 13835s E CPU baseline : 13835s E Requested : 'min' 13835s E Enabled : none 13835s E Flags : none 13835s E Extra checks: none 13835s E 13835s E CPU dispatch : 13835s E Requested : 'max -xop -fma4' 13835s E Enabled : none 13835s E Generated : none 13835s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13835s 13835s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13835s d = '/tmp/tmpjj8q074z' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s err = None 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s kw = {} 13835s module_name = 'test_array_from_pyobj_ext' 13835s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13835s p = 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13835s ___________ ERROR at setup of TestSharedMemory.test_inplace[STRING1] ___________ 13835s 13835s def setup_module(): 13835s """ 13835s Build the required testing extension module 13835s 13835s """ 13835s global wrap 13835s 13835s # Check compiler availability first 13835s if not util.has_c_compiler(): 13835s pytest.skip("No C compiler available") 13835s 13835s if wrap is None: 13835s config_code = """ 13835s config.add_extension('test_array_from_pyobj_ext', 13835s sources=['wrapmodule.c', 'fortranobject.c'], 13835s define_macros=[]) 13835s """ 13835s d = os.path.dirname(__file__) 13835s src = [ 13835s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13835s util.getpath("src", "fortranobject.c"), 13835s util.getpath("src", "fortranobject.h"), 13835s ] 13835s > wrap = util.build_module_distutils(src, config_code, 13835s "test_array_from_pyobj_ext") 13835s 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13835s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13835s memo[key] = func(*a, **kw) 13835s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13835s func = 13835s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13835s kw = {} 13835s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s 13835s @_memoize 13835s def build_module_distutils(source_files, config_code, module_name, **kw): 13835s """ 13835s Build a module via distutils and import it. 13835s 13835s """ 13835s d = get_module_dir() 13835s 13835s # Copy files 13835s dst_sources = [] 13835s for fn in source_files: 13835s if not os.path.isfile(fn): 13835s raise RuntimeError("%s is not a file" % fn) 13835s dst = os.path.join(d, os.path.basename(fn)) 13835s shutil.copyfile(fn, dst) 13835s dst_sources.append(dst) 13835s 13835s # Build script 13835s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13835s 13835s code = fr""" 13835s import os 13835s import sys 13835s sys.path = {repr(sys.path)} 13835s 13835s def configuration(parent_name='',top_path=None): 13835s from numpy.distutils.misc_util import Configuration 13835s config = Configuration('', parent_name, top_path) 13835s {config_code} 13835s return config 13835s 13835s if __name__ == "__main__": 13835s from numpy.distutils.core import setup 13835s setup(configuration=configuration) 13835s """ 13835s script = os.path.join(d, get_temp_module_name() + ".py") 13835s dst_sources.append(script) 13835s with open(script, "wb") as f: 13835s f.write(asbytes(code)) 13835s 13835s # Build 13835s cwd = os.getcwd() 13835s try: 13835s os.chdir(d) 13835s cmd = [sys.executable, script, "build_ext", "-i"] 13835s p = subprocess.Popen(cmd, 13835s stdout=subprocess.PIPE, 13835s stderr=subprocess.STDOUT) 13835s out, err = p.communicate() 13835s if p.returncode != 0: 13835s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13835s (cmd[4:], asstr(out))) 13835s E RuntimeError: Running distutils build failed: [] 13835s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13835s E 13835s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13835s E of the deprecation of `distutils` itself. It will be removed for 13835s E Python >= 3.12. For older Python versions it will remain present. 13835s E It is recommended to use `setuptools < 60.0` for those Python versions. 13835s E For more details, see: 13835s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13835s E 13835s E 13835s E from numpy.distutils.core import setup 13835s E running build_ext 13835s E running build_src 13835s E INFO: build_src 13835s E INFO: building extension "test_array_from_pyobj_ext" sources 13835s E INFO: build_src: building npy-pkg config files 13835s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13835s E !! 13835s E 13835s E ******************************************************************************** 13835s E Please avoid running ``setup.py`` directly. 13835s E Instead, use pypa/build, pypa/installer or other 13835s E standards-based tools. 13835s E 13835s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13835s E ******************************************************************************** 13835s E 13835s E !! 13835s E self.initialize_options() 13835s E INFO: customize UnixCCompiler 13835s E INFO: customize UnixCCompiler using build_ext 13835s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/tmp 13835s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/usr 13835s E creating /tmp/tmppq19o2st/usr/lib 13835s E creating /tmp/tmppq19o2st/usr/lib/python3 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=native' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-O3' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-Werror' 13835s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13835s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-vfpv4' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=armv8.2-a+fp16' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13835s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13835s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13835s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13835s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13835s E INFO: building 'test_array_from_pyobj_ext' extension 13835s E INFO: compiling C sources 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13835s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13835s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13835s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13835s E 14 | #include 13835s E | ^~~~~~~~~~ 13835s E In file included from fortranobject.c:2: 13835s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13835s E 7 | #include 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E compilation terminated. 13835s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13835s E INFO: 13835s E ########### EXT COMPILER OPTIMIZATION ########### 13835s E INFO: Platform : 13835s E Architecture: armhf 13835s E Compiler : gcc 13835s E 13835s E CPU baseline : 13835s E Requested : 'min' 13835s E Enabled : none 13835s E Flags : none 13835s E Extra checks: none 13835s E 13835s E CPU dispatch : 13835s E Requested : 'max -xop -fma4' 13835s E Enabled : none 13835s E Generated : none 13835s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13835s 13835s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13835s d = '/tmp/tmpjj8q074z' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s err = None 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s kw = {} 13835s module_name = 'test_array_from_pyobj_ext' 13835s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13835s p = 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13835s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[STRING1] ____ 13835s 13835s def setup_module(): 13835s """ 13835s Build the required testing extension module 13835s 13835s """ 13835s global wrap 13835s 13835s # Check compiler availability first 13835s if not util.has_c_compiler(): 13835s pytest.skip("No C compiler available") 13835s 13835s if wrap is None: 13835s config_code = """ 13835s config.add_extension('test_array_from_pyobj_ext', 13835s sources=['wrapmodule.c', 'fortranobject.c'], 13835s define_macros=[]) 13835s """ 13835s d = os.path.dirname(__file__) 13835s src = [ 13835s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13835s util.getpath("src", "fortranobject.c"), 13835s util.getpath("src", "fortranobject.h"), 13835s ] 13835s > wrap = util.build_module_distutils(src, config_code, 13835s "test_array_from_pyobj_ext") 13835s 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13835s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13835s memo[key] = func(*a, **kw) 13835s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13835s func = 13835s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13835s kw = {} 13835s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s 13835s @_memoize 13835s def build_module_distutils(source_files, config_code, module_name, **kw): 13835s """ 13835s Build a module via distutils and import it. 13835s 13835s """ 13835s d = get_module_dir() 13835s 13835s # Copy files 13835s dst_sources = [] 13835s for fn in source_files: 13835s if not os.path.isfile(fn): 13835s raise RuntimeError("%s is not a file" % fn) 13835s dst = os.path.join(d, os.path.basename(fn)) 13835s shutil.copyfile(fn, dst) 13835s dst_sources.append(dst) 13835s 13835s # Build script 13835s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13835s 13835s code = fr""" 13835s import os 13835s import sys 13835s sys.path = {repr(sys.path)} 13835s 13835s def configuration(parent_name='',top_path=None): 13835s from numpy.distutils.misc_util import Configuration 13835s config = Configuration('', parent_name, top_path) 13835s {config_code} 13835s return config 13835s 13835s if __name__ == "__main__": 13835s from numpy.distutils.core import setup 13835s setup(configuration=configuration) 13835s """ 13835s script = os.path.join(d, get_temp_module_name() + ".py") 13835s dst_sources.append(script) 13835s with open(script, "wb") as f: 13835s f.write(asbytes(code)) 13835s 13835s # Build 13835s cwd = os.getcwd() 13835s try: 13835s os.chdir(d) 13835s cmd = [sys.executable, script, "build_ext", "-i"] 13835s p = subprocess.Popen(cmd, 13835s stdout=subprocess.PIPE, 13835s stderr=subprocess.STDOUT) 13835s out, err = p.communicate() 13835s if p.returncode != 0: 13835s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13835s (cmd[4:], asstr(out))) 13835s E RuntimeError: Running distutils build failed: [] 13835s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13835s E 13835s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13835s E of the deprecation of `distutils` itself. It will be removed for 13835s E Python >= 3.12. For older Python versions it will remain present. 13835s E It is recommended to use `setuptools < 60.0` for those Python versions. 13835s E For more details, see: 13835s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13835s E 13835s E 13835s E from numpy.distutils.core import setup 13835s E running build_ext 13835s E running build_src 13835s E INFO: build_src 13835s E INFO: building extension "test_array_from_pyobj_ext" sources 13835s E INFO: build_src: building npy-pkg config files 13835s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13835s E !! 13835s E 13835s E ******************************************************************************** 13835s E Please avoid running ``setup.py`` directly. 13835s E Instead, use pypa/build, pypa/installer or other 13835s E standards-based tools. 13835s E 13835s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13835s E ******************************************************************************** 13835s E 13835s E !! 13835s E self.initialize_options() 13835s E INFO: customize UnixCCompiler 13835s E INFO: customize UnixCCompiler using build_ext 13835s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/tmp 13835s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/usr 13835s E creating /tmp/tmppq19o2st/usr/lib 13835s E creating /tmp/tmppq19o2st/usr/lib/python3 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=native' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-O3' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-Werror' 13835s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13835s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-vfpv4' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=armv8.2-a+fp16' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13835s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13835s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13835s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13835s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13835s E INFO: building 'test_array_from_pyobj_ext' extension 13835s E INFO: compiling C sources 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13835s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13835s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13835s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13835s E 14 | #include 13835s E | ^~~~~~~~~~ 13835s E In file included from fortranobject.c:2: 13835s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13835s E 7 | #include 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E compilation terminated. 13835s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13835s E INFO: 13835s E ########### EXT COMPILER OPTIMIZATION ########### 13835s E INFO: Platform : 13835s E Architecture: armhf 13835s E Compiler : gcc 13835s E 13835s E CPU baseline : 13835s E Requested : 'min' 13835s E Enabled : none 13835s E Flags : none 13835s E Extra checks: none 13835s E 13835s E CPU dispatch : 13835s E Requested : 'max -xop -fma4' 13835s E Enabled : none 13835s E Generated : none 13835s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13835s 13835s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13835s d = '/tmp/tmpjj8q074z' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s err = None 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s kw = {} 13835s module_name = 'test_array_from_pyobj_ext' 13835s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13835s p = 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13835s ________ ERROR at setup of TestSharedMemory.test_in_from_2seq[STRING5] _________ 13835s 13835s def setup_module(): 13835s """ 13835s Build the required testing extension module 13835s 13835s """ 13835s global wrap 13835s 13835s # Check compiler availability first 13835s if not util.has_c_compiler(): 13835s pytest.skip("No C compiler available") 13835s 13835s if wrap is None: 13835s config_code = """ 13835s config.add_extension('test_array_from_pyobj_ext', 13835s sources=['wrapmodule.c', 'fortranobject.c'], 13835s define_macros=[]) 13835s """ 13835s d = os.path.dirname(__file__) 13835s src = [ 13835s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13835s util.getpath("src", "fortranobject.c"), 13835s util.getpath("src", "fortranobject.h"), 13835s ] 13835s > wrap = util.build_module_distutils(src, config_code, 13835s "test_array_from_pyobj_ext") 13835s 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13835s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13835s memo[key] = func(*a, **kw) 13835s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13835s func = 13835s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13835s kw = {} 13835s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s 13835s @_memoize 13835s def build_module_distutils(source_files, config_code, module_name, **kw): 13835s """ 13835s Build a module via distutils and import it. 13835s 13835s """ 13835s d = get_module_dir() 13835s 13835s # Copy files 13835s dst_sources = [] 13835s for fn in source_files: 13835s if not os.path.isfile(fn): 13835s raise RuntimeError("%s is not a file" % fn) 13835s dst = os.path.join(d, os.path.basename(fn)) 13835s shutil.copyfile(fn, dst) 13835s dst_sources.append(dst) 13835s 13835s # Build script 13835s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13835s 13835s code = fr""" 13835s import os 13835s import sys 13835s sys.path = {repr(sys.path)} 13835s 13835s def configuration(parent_name='',top_path=None): 13835s from numpy.distutils.misc_util import Configuration 13835s config = Configuration('', parent_name, top_path) 13835s {config_code} 13835s return config 13835s 13835s if __name__ == "__main__": 13835s from numpy.distutils.core import setup 13835s setup(configuration=configuration) 13835s """ 13835s script = os.path.join(d, get_temp_module_name() + ".py") 13835s dst_sources.append(script) 13835s with open(script, "wb") as f: 13835s f.write(asbytes(code)) 13835s 13835s # Build 13835s cwd = os.getcwd() 13835s try: 13835s os.chdir(d) 13835s cmd = [sys.executable, script, "build_ext", "-i"] 13835s p = subprocess.Popen(cmd, 13835s stdout=subprocess.PIPE, 13835s stderr=subprocess.STDOUT) 13835s out, err = p.communicate() 13835s if p.returncode != 0: 13835s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13835s (cmd[4:], asstr(out))) 13835s E RuntimeError: Running distutils build failed: [] 13835s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13835s E 13835s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13835s E of the deprecation of `distutils` itself. It will be removed for 13835s E Python >= 3.12. For older Python versions it will remain present. 13835s E It is recommended to use `setuptools < 60.0` for those Python versions. 13835s E For more details, see: 13835s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13835s E 13835s E 13835s E from numpy.distutils.core import setup 13835s E running build_ext 13835s E running build_src 13835s E INFO: build_src 13835s E INFO: building extension "test_array_from_pyobj_ext" sources 13835s E INFO: build_src: building npy-pkg config files 13835s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13835s E !! 13835s E 13835s E ******************************************************************************** 13835s E Please avoid running ``setup.py`` directly. 13835s E Instead, use pypa/build, pypa/installer or other 13835s E standards-based tools. 13835s E 13835s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13835s E ******************************************************************************** 13835s E 13835s E !! 13835s E self.initialize_options() 13835s E INFO: customize UnixCCompiler 13835s E INFO: customize UnixCCompiler using build_ext 13835s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/tmp 13835s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/usr 13835s E creating /tmp/tmppq19o2st/usr/lib 13835s E creating /tmp/tmppq19o2st/usr/lib/python3 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=native' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-O3' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-Werror' 13835s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13835s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-vfpv4' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=armv8.2-a+fp16' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13835s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13835s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13835s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13835s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13835s E INFO: building 'test_array_from_pyobj_ext' extension 13835s E INFO: compiling C sources 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13835s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13835s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13835s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13835s E 14 | #include 13835s E | ^~~~~~~~~~ 13835s E In file included from fortranobject.c:2: 13835s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13835s E 7 | #include 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E compilation terminated. 13835s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13835s E INFO: 13835s E ########### EXT COMPILER OPTIMIZATION ########### 13835s E INFO: Platform : 13835s E Architecture: armhf 13835s E Compiler : gcc 13835s E 13835s E CPU baseline : 13835s E Requested : 'min' 13835s E Enabled : none 13835s E Flags : none 13835s E Extra checks: none 13835s E 13835s E CPU dispatch : 13835s E Requested : 'max -xop -fma4' 13835s E Enabled : none 13835s E Generated : none 13835s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13835s 13835s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13835s d = '/tmp/tmpjj8q074z' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s err = None 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s kw = {} 13835s module_name = 'test_array_from_pyobj_ext' 13835s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13835s p = 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13835s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[STRING5] ______ 13835s 13835s def setup_module(): 13835s """ 13835s Build the required testing extension module 13835s 13835s """ 13835s global wrap 13835s 13835s # Check compiler availability first 13835s if not util.has_c_compiler(): 13835s pytest.skip("No C compiler available") 13835s 13835s if wrap is None: 13835s config_code = """ 13835s config.add_extension('test_array_from_pyobj_ext', 13835s sources=['wrapmodule.c', 'fortranobject.c'], 13835s define_macros=[]) 13835s """ 13835s d = os.path.dirname(__file__) 13835s src = [ 13835s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13835s util.getpath("src", "fortranobject.c"), 13835s util.getpath("src", "fortranobject.h"), 13835s ] 13835s > wrap = util.build_module_distutils(src, config_code, 13835s "test_array_from_pyobj_ext") 13835s 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13835s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13835s memo[key] = func(*a, **kw) 13835s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13835s func = 13835s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13835s kw = {} 13835s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s 13835s @_memoize 13835s def build_module_distutils(source_files, config_code, module_name, **kw): 13835s """ 13835s Build a module via distutils and import it. 13835s 13835s """ 13835s d = get_module_dir() 13835s 13835s # Copy files 13835s dst_sources = [] 13835s for fn in source_files: 13835s if not os.path.isfile(fn): 13835s raise RuntimeError("%s is not a file" % fn) 13835s dst = os.path.join(d, os.path.basename(fn)) 13835s shutil.copyfile(fn, dst) 13835s dst_sources.append(dst) 13835s 13835s # Build script 13835s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13835s 13835s code = fr""" 13835s import os 13835s import sys 13835s sys.path = {repr(sys.path)} 13835s 13835s def configuration(parent_name='',top_path=None): 13835s from numpy.distutils.misc_util import Configuration 13835s config = Configuration('', parent_name, top_path) 13835s {config_code} 13835s return config 13835s 13835s if __name__ == "__main__": 13835s from numpy.distutils.core import setup 13835s setup(configuration=configuration) 13835s """ 13835s script = os.path.join(d, get_temp_module_name() + ".py") 13835s dst_sources.append(script) 13835s with open(script, "wb") as f: 13835s f.write(asbytes(code)) 13835s 13835s # Build 13835s cwd = os.getcwd() 13835s try: 13835s os.chdir(d) 13835s cmd = [sys.executable, script, "build_ext", "-i"] 13835s p = subprocess.Popen(cmd, 13835s stdout=subprocess.PIPE, 13835s stderr=subprocess.STDOUT) 13835s out, err = p.communicate() 13835s if p.returncode != 0: 13835s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13835s (cmd[4:], asstr(out))) 13835s E RuntimeError: Running distutils build failed: [] 13835s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13835s E 13835s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13835s E of the deprecation of `distutils` itself. It will be removed for 13835s E Python >= 3.12. For older Python versions it will remain present. 13835s E It is recommended to use `setuptools < 60.0` for those Python versions. 13835s E For more details, see: 13835s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13835s E 13835s E 13835s E from numpy.distutils.core import setup 13835s E running build_ext 13835s E running build_src 13835s E INFO: build_src 13835s E INFO: building extension "test_array_from_pyobj_ext" sources 13835s E INFO: build_src: building npy-pkg config files 13835s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13835s E !! 13835s E 13835s E ******************************************************************************** 13835s E Please avoid running ``setup.py`` directly. 13835s E Instead, use pypa/build, pypa/installer or other 13835s E standards-based tools. 13835s E 13835s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13835s E ******************************************************************************** 13835s E 13835s E !! 13835s E self.initialize_options() 13835s E INFO: customize UnixCCompiler 13835s E INFO: customize UnixCCompiler using build_ext 13835s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/tmp 13835s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/usr 13835s E creating /tmp/tmppq19o2st/usr/lib 13835s E creating /tmp/tmppq19o2st/usr/lib/python3 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=native' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-O3' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-Werror' 13835s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13835s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-vfpv4' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=armv8.2-a+fp16' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13835s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13835s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13835s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13835s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13835s E INFO: building 'test_array_from_pyobj_ext' extension 13835s E INFO: compiling C sources 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13835s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13835s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13835s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13835s E 14 | #include 13835s E | ^~~~~~~~~~ 13835s E In file included from fortranobject.c:2: 13835s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13835s E 7 | #include 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E compilation terminated. 13835s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13835s E INFO: 13835s E ########### EXT COMPILER OPTIMIZATION ########### 13835s E INFO: Platform : 13835s E Architecture: armhf 13835s E Compiler : gcc 13835s E 13835s E CPU baseline : 13835s E Requested : 'min' 13835s E Enabled : none 13835s E Flags : none 13835s E Extra checks: none 13835s E 13835s E CPU dispatch : 13835s E Requested : 'max -xop -fma4' 13835s E Enabled : none 13835s E Generated : none 13835s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13835s 13835s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13835s d = '/tmp/tmpjj8q074z' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s err = None 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s kw = {} 13835s module_name = 'test_array_from_pyobj_ext' 13835s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13835s p = 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13835s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-2seq-C-w] ______ 13835s 13835s def setup_module(): 13835s """ 13835s Build the required testing extension module 13835s 13835s """ 13835s global wrap 13835s 13835s # Check compiler availability first 13835s if not util.has_c_compiler(): 13835s pytest.skip("No C compiler available") 13835s 13835s if wrap is None: 13835s config_code = """ 13835s config.add_extension('test_array_from_pyobj_ext', 13835s sources=['wrapmodule.c', 'fortranobject.c'], 13835s define_macros=[]) 13835s """ 13835s d = os.path.dirname(__file__) 13835s src = [ 13835s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13835s util.getpath("src", "fortranobject.c"), 13835s util.getpath("src", "fortranobject.h"), 13835s ] 13835s > wrap = util.build_module_distutils(src, config_code, 13835s "test_array_from_pyobj_ext") 13835s 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13835s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13835s memo[key] = func(*a, **kw) 13835s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13835s func = 13835s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13835s kw = {} 13835s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s 13835s @_memoize 13835s def build_module_distutils(source_files, config_code, module_name, **kw): 13835s """ 13835s Build a module via distutils and import it. 13835s 13835s """ 13835s d = get_module_dir() 13835s 13835s # Copy files 13835s dst_sources = [] 13835s for fn in source_files: 13835s if not os.path.isfile(fn): 13835s raise RuntimeError("%s is not a file" % fn) 13835s dst = os.path.join(d, os.path.basename(fn)) 13835s shutil.copyfile(fn, dst) 13835s dst_sources.append(dst) 13835s 13835s # Build script 13835s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13835s 13835s code = fr""" 13835s import os 13835s import sys 13835s sys.path = {repr(sys.path)} 13835s 13835s def configuration(parent_name='',top_path=None): 13835s from numpy.distutils.misc_util import Configuration 13835s config = Configuration('', parent_name, top_path) 13835s {config_code} 13835s return config 13835s 13835s if __name__ == "__main__": 13835s from numpy.distutils.core import setup 13835s setup(configuration=configuration) 13835s """ 13835s script = os.path.join(d, get_temp_module_name() + ".py") 13835s dst_sources.append(script) 13835s with open(script, "wb") as f: 13835s f.write(asbytes(code)) 13835s 13835s # Build 13835s cwd = os.getcwd() 13835s try: 13835s os.chdir(d) 13835s cmd = [sys.executable, script, "build_ext", "-i"] 13835s p = subprocess.Popen(cmd, 13835s stdout=subprocess.PIPE, 13835s stderr=subprocess.STDOUT) 13835s out, err = p.communicate() 13835s if p.returncode != 0: 13835s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13835s (cmd[4:], asstr(out))) 13835s E RuntimeError: Running distutils build failed: [] 13835s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13835s E 13835s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13835s E of the deprecation of `distutils` itself. It will be removed for 13835s E Python >= 3.12. For older Python versions it will remain present. 13835s E It is recommended to use `setuptools < 60.0` for those Python versions. 13835s E For more details, see: 13835s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13835s E 13835s E 13835s E from numpy.distutils.core import setup 13835s E running build_ext 13835s E running build_src 13835s E INFO: build_src 13835s E INFO: building extension "test_array_from_pyobj_ext" sources 13835s E INFO: build_src: building npy-pkg config files 13835s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13835s E !! 13835s E 13835s E ******************************************************************************** 13835s E Please avoid running ``setup.py`` directly. 13835s E Instead, use pypa/build, pypa/installer or other 13835s E standards-based tools. 13835s E 13835s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13835s E ******************************************************************************** 13835s E 13835s E !! 13835s E self.initialize_options() 13835s E INFO: customize UnixCCompiler 13835s E INFO: customize UnixCCompiler using build_ext 13835s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/tmp 13835s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/usr 13835s E creating /tmp/tmppq19o2st/usr/lib 13835s E creating /tmp/tmppq19o2st/usr/lib/python3 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=native' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-O3' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-Werror' 13835s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13835s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-vfpv4' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=armv8.2-a+fp16' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13835s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13835s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13835s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13835s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13835s E INFO: building 'test_array_from_pyobj_ext' extension 13835s E INFO: compiling C sources 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13835s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13835s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13835s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13835s E 14 | #include 13835s E | ^~~~~~~~~~ 13835s E In file included from fortranobject.c:2: 13835s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13835s E 7 | #include 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E compilation terminated. 13835s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13835s E INFO: 13835s E ########### EXT COMPILER OPTIMIZATION ########### 13835s E INFO: Platform : 13835s E Architecture: armhf 13835s E Compiler : gcc 13835s E 13835s E CPU baseline : 13835s E Requested : 'min' 13835s E Enabled : none 13835s E Flags : none 13835s E Extra checks: none 13835s E 13835s E CPU dispatch : 13835s E Requested : 'max -xop -fma4' 13835s E Enabled : none 13835s E Generated : none 13835s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13835s 13835s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13835s d = '/tmp/tmpjj8q074z' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s err = None 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s kw = {} 13835s module_name = 'test_array_from_pyobj_ext' 13835s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13835s p = 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13835s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-2seq-C-ro] _____ 13835s 13835s def setup_module(): 13835s """ 13835s Build the required testing extension module 13835s 13835s """ 13835s global wrap 13835s 13835s # Check compiler availability first 13835s if not util.has_c_compiler(): 13835s pytest.skip("No C compiler available") 13835s 13835s if wrap is None: 13835s config_code = """ 13835s config.add_extension('test_array_from_pyobj_ext', 13835s sources=['wrapmodule.c', 'fortranobject.c'], 13835s define_macros=[]) 13835s """ 13835s d = os.path.dirname(__file__) 13835s src = [ 13835s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13835s util.getpath("src", "fortranobject.c"), 13835s util.getpath("src", "fortranobject.h"), 13835s ] 13835s > wrap = util.build_module_distutils(src, config_code, 13835s "test_array_from_pyobj_ext") 13835s 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13835s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13835s memo[key] = func(*a, **kw) 13835s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13835s func = 13835s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13835s kw = {} 13835s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s 13835s @_memoize 13835s def build_module_distutils(source_files, config_code, module_name, **kw): 13835s """ 13835s Build a module via distutils and import it. 13835s 13835s """ 13835s d = get_module_dir() 13835s 13835s # Copy files 13835s dst_sources = [] 13835s for fn in source_files: 13835s if not os.path.isfile(fn): 13835s raise RuntimeError("%s is not a file" % fn) 13835s dst = os.path.join(d, os.path.basename(fn)) 13835s shutil.copyfile(fn, dst) 13835s dst_sources.append(dst) 13835s 13835s # Build script 13835s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13835s 13835s code = fr""" 13835s import os 13835s import sys 13835s sys.path = {repr(sys.path)} 13835s 13835s def configuration(parent_name='',top_path=None): 13835s from numpy.distutils.misc_util import Configuration 13835s config = Configuration('', parent_name, top_path) 13835s {config_code} 13835s return config 13835s 13835s if __name__ == "__main__": 13835s from numpy.distutils.core import setup 13835s setup(configuration=configuration) 13835s """ 13835s script = os.path.join(d, get_temp_module_name() + ".py") 13835s dst_sources.append(script) 13835s with open(script, "wb") as f: 13835s f.write(asbytes(code)) 13835s 13835s # Build 13835s cwd = os.getcwd() 13835s try: 13835s os.chdir(d) 13835s cmd = [sys.executable, script, "build_ext", "-i"] 13835s p = subprocess.Popen(cmd, 13835s stdout=subprocess.PIPE, 13835s stderr=subprocess.STDOUT) 13835s out, err = p.communicate() 13835s if p.returncode != 0: 13835s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13835s (cmd[4:], asstr(out))) 13835s E RuntimeError: Running distutils build failed: [] 13835s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13835s E 13835s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13835s E of the deprecation of `distutils` itself. It will be removed for 13835s E Python >= 3.12. For older Python versions it will remain present. 13835s E It is recommended to use `setuptools < 60.0` for those Python versions. 13835s E For more details, see: 13835s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13835s E 13835s E 13835s E from numpy.distutils.core import setup 13835s E running build_ext 13835s E running build_src 13835s E INFO: build_src 13835s E INFO: building extension "test_array_from_pyobj_ext" sources 13835s E INFO: build_src: building npy-pkg config files 13835s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13835s E !! 13835s E 13835s E ******************************************************************************** 13835s E Please avoid running ``setup.py`` directly. 13835s E Instead, use pypa/build, pypa/installer or other 13835s E standards-based tools. 13835s E 13835s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13835s E ******************************************************************************** 13835s E 13835s E !! 13835s E self.initialize_options() 13835s E INFO: customize UnixCCompiler 13835s E INFO: customize UnixCCompiler using build_ext 13835s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/tmp 13835s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/usr 13835s E creating /tmp/tmppq19o2st/usr/lib 13835s E creating /tmp/tmppq19o2st/usr/lib/python3 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=native' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-O3' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-Werror' 13835s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13835s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-vfpv4' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=armv8.2-a+fp16' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13835s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13835s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13835s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13835s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13835s E INFO: building 'test_array_from_pyobj_ext' extension 13835s E INFO: compiling C sources 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13835s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13835s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13835s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13835s E 14 | #include 13835s E | ^~~~~~~~~~ 13835s E In file included from fortranobject.c:2: 13835s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13835s E 7 | #include 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E compilation terminated. 13835s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13835s E INFO: 13835s E ########### EXT COMPILER OPTIMIZATION ########### 13835s E INFO: Platform : 13835s E Architecture: armhf 13835s E Compiler : gcc 13835s E 13835s E CPU baseline : 13835s E Requested : 'min' 13835s E Enabled : none 13835s E Flags : none 13835s E Extra checks: none 13835s E 13835s E CPU dispatch : 13835s E Requested : 'max -xop -fma4' 13835s E Enabled : none 13835s E Generated : none 13835s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13835s 13835s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13835s d = '/tmp/tmpjj8q074z' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s err = None 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s kw = {} 13835s module_name = 'test_array_from_pyobj_ext' 13835s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13835s p = 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13835s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-2seq-F-w] ______ 13835s 13835s def setup_module(): 13835s """ 13835s Build the required testing extension module 13835s 13835s """ 13835s global wrap 13835s 13835s # Check compiler availability first 13835s if not util.has_c_compiler(): 13835s pytest.skip("No C compiler available") 13835s 13835s if wrap is None: 13835s config_code = """ 13835s config.add_extension('test_array_from_pyobj_ext', 13835s sources=['wrapmodule.c', 'fortranobject.c'], 13835s define_macros=[]) 13835s """ 13835s d = os.path.dirname(__file__) 13835s src = [ 13835s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13835s util.getpath("src", "fortranobject.c"), 13835s util.getpath("src", "fortranobject.h"), 13835s ] 13835s > wrap = util.build_module_distutils(src, config_code, 13835s "test_array_from_pyobj_ext") 13835s 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13835s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13835s memo[key] = func(*a, **kw) 13835s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13835s func = 13835s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13835s kw = {} 13835s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13835s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13835s 13835s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13835s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13835s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13835s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13835s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13835s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13835s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13835s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13835s 13835s @_memoize 13835s def build_module_distutils(source_files, config_code, module_name, **kw): 13835s """ 13835s Build a module via distutils and import it. 13835s 13835s """ 13835s d = get_module_dir() 13835s 13835s # Copy files 13835s dst_sources = [] 13835s for fn in source_files: 13835s if not os.path.isfile(fn): 13835s raise RuntimeError("%s is not a file" % fn) 13835s dst = os.path.join(d, os.path.basename(fn)) 13835s shutil.copyfile(fn, dst) 13835s dst_sources.append(dst) 13835s 13835s # Build script 13835s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13835s 13835s code = fr""" 13835s import os 13835s import sys 13835s sys.path = {repr(sys.path)} 13835s 13835s def configuration(parent_name='',top_path=None): 13835s from numpy.distutils.misc_util import Configuration 13835s config = Configuration('', parent_name, top_path) 13835s {config_code} 13835s return config 13835s 13835s if __name__ == "__main__": 13835s from numpy.distutils.core import setup 13835s setup(configuration=configuration) 13835s """ 13835s script = os.path.join(d, get_temp_module_name() + ".py") 13835s dst_sources.append(script) 13835s with open(script, "wb") as f: 13835s f.write(asbytes(code)) 13835s 13835s # Build 13835s cwd = os.getcwd() 13835s try: 13835s os.chdir(d) 13835s cmd = [sys.executable, script, "build_ext", "-i"] 13835s p = subprocess.Popen(cmd, 13835s stdout=subprocess.PIPE, 13835s stderr=subprocess.STDOUT) 13835s out, err = p.communicate() 13835s if p.returncode != 0: 13835s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13835s (cmd[4:], asstr(out))) 13835s E RuntimeError: Running distutils build failed: [] 13835s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13835s E 13835s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13835s E of the deprecation of `distutils` itself. It will be removed for 13835s E Python >= 3.12. For older Python versions it will remain present. 13835s E It is recommended to use `setuptools < 60.0` for those Python versions. 13835s E For more details, see: 13835s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13835s E 13835s E 13835s E from numpy.distutils.core import setup 13835s E running build_ext 13835s E running build_src 13835s E INFO: build_src 13835s E INFO: building extension "test_array_from_pyobj_ext" sources 13835s E INFO: build_src: building npy-pkg config files 13835s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13835s E !! 13835s E 13835s E ******************************************************************************** 13835s E Please avoid running ``setup.py`` directly. 13835s E Instead, use pypa/build, pypa/installer or other 13835s E standards-based tools. 13835s E 13835s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13835s E ******************************************************************************** 13835s E 13835s E !! 13835s E self.initialize_options() 13835s E INFO: customize UnixCCompiler 13835s E INFO: customize UnixCCompiler using build_ext 13835s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/tmp 13835s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E creating /tmp/tmppq19o2st/usr 13835s E creating /tmp/tmppq19o2st/usr/lib 13835s E creating /tmp/tmppq19o2st/usr/lib/python3 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13835s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-march=native' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-O3' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-Werror' 13835s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13835s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon' 13835s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13835s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13835s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13835s E 13835s E INFO: compile options: '-I/usr/include/python3.12 -c' 13835s E extra options: '-mfpu=neon -Werror' 13835s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13835s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13835s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13835s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13835s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13835s E 9 | # include_next 13835s E | ^~~~~~~~~~ 13835s E compilation terminated. 13835s E 13835s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-2seq-F-ro] _____ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-23seq-C-w] _____ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-23seq-C-ro] _____ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-23seq-F-w] _____ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[STRING5-23seq-F-ro] _____ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s _________ ERROR at setup of TestSharedMemory.test_inout_2seq[STRING5] __________ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[STRING5] ________ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[STRING5] ________ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s ___ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[STRING5] ____ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[STRING5] _______ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-Werror' 13836s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13836s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-vfpv4' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=armv8.2-a+fp16' 13836s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13836s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13836s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13836s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13836s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13836s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13836s E 9 | # include_next 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E 13836s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13836s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13836s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13836s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13836s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13836s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13836s E INFO: building 'test_array_from_pyobj_ext' extension 13836s E INFO: compiling C sources 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13836s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13836s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13836s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13836s E 14 | #include 13836s E | ^~~~~~~~~~ 13836s E In file included from fortranobject.c:2: 13836s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13836s E 7 | #include 13836s E | ^~~~~~~~~~ 13836s E compilation terminated. 13836s E compilation terminated. 13836s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13836s E INFO: 13836s E ########### EXT COMPILER OPTIMIZATION ########### 13836s E INFO: Platform : 13836s E Architecture: armhf 13836s E Compiler : gcc 13836s E 13836s E CPU baseline : 13836s E Requested : 'min' 13836s E Enabled : none 13836s E Flags : none 13836s E Extra checks: none 13836s E 13836s E CPU dispatch : 13836s E Requested : 'max -xop -fma4' 13836s E Enabled : none 13836s E Generated : none 13836s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13836s 13836s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13836s d = '/tmp/tmpjj8q074z' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s err = None 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s kw = {} 13836s module_name = 'test_array_from_pyobj_ext' 13836s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13836s p = 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13836s _____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[STRING5] ______ 13836s 13836s def setup_module(): 13836s """ 13836s Build the required testing extension module 13836s 13836s """ 13836s global wrap 13836s 13836s # Check compiler availability first 13836s if not util.has_c_compiler(): 13836s pytest.skip("No C compiler available") 13836s 13836s if wrap is None: 13836s config_code = """ 13836s config.add_extension('test_array_from_pyobj_ext', 13836s sources=['wrapmodule.c', 'fortranobject.c'], 13836s define_macros=[]) 13836s """ 13836s d = os.path.dirname(__file__) 13836s src = [ 13836s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13836s util.getpath("src", "fortranobject.c"), 13836s util.getpath("src", "fortranobject.h"), 13836s ] 13836s > wrap = util.build_module_distutils(src, config_code, 13836s "test_array_from_pyobj_ext") 13836s 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13836s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13836s memo[key] = func(*a, **kw) 13836s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13836s func = 13836s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13836s kw = {} 13836s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13836s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13836s 13836s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13836s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13836s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13836s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13836s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13836s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13836s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13836s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13836s 13836s @_memoize 13836s def build_module_distutils(source_files, config_code, module_name, **kw): 13836s """ 13836s Build a module via distutils and import it. 13836s 13836s """ 13836s d = get_module_dir() 13836s 13836s # Copy files 13836s dst_sources = [] 13836s for fn in source_files: 13836s if not os.path.isfile(fn): 13836s raise RuntimeError("%s is not a file" % fn) 13836s dst = os.path.join(d, os.path.basename(fn)) 13836s shutil.copyfile(fn, dst) 13836s dst_sources.append(dst) 13836s 13836s # Build script 13836s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13836s 13836s code = fr""" 13836s import os 13836s import sys 13836s sys.path = {repr(sys.path)} 13836s 13836s def configuration(parent_name='',top_path=None): 13836s from numpy.distutils.misc_util import Configuration 13836s config = Configuration('', parent_name, top_path) 13836s {config_code} 13836s return config 13836s 13836s if __name__ == "__main__": 13836s from numpy.distutils.core import setup 13836s setup(configuration=configuration) 13836s """ 13836s script = os.path.join(d, get_temp_module_name() + ".py") 13836s dst_sources.append(script) 13836s with open(script, "wb") as f: 13836s f.write(asbytes(code)) 13836s 13836s # Build 13836s cwd = os.getcwd() 13836s try: 13836s os.chdir(d) 13836s cmd = [sys.executable, script, "build_ext", "-i"] 13836s p = subprocess.Popen(cmd, 13836s stdout=subprocess.PIPE, 13836s stderr=subprocess.STDOUT) 13836s out, err = p.communicate() 13836s if p.returncode != 0: 13836s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13836s (cmd[4:], asstr(out))) 13836s E RuntimeError: Running distutils build failed: [] 13836s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13836s E 13836s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13836s E of the deprecation of `distutils` itself. It will be removed for 13836s E Python >= 3.12. For older Python versions it will remain present. 13836s E It is recommended to use `setuptools < 60.0` for those Python versions. 13836s E For more details, see: 13836s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13836s E 13836s E 13836s E from numpy.distutils.core import setup 13836s E running build_ext 13836s E running build_src 13836s E INFO: build_src 13836s E INFO: building extension "test_array_from_pyobj_ext" sources 13836s E INFO: build_src: building npy-pkg config files 13836s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13836s E !! 13836s E 13836s E ******************************************************************************** 13836s E Please avoid running ``setup.py`` directly. 13836s E Instead, use pypa/build, pypa/installer or other 13836s E standards-based tools. 13836s E 13836s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13836s E ******************************************************************************** 13836s E 13836s E !! 13836s E self.initialize_options() 13836s E INFO: customize UnixCCompiler 13836s E INFO: customize UnixCCompiler using build_ext 13836s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/tmp 13836s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E creating /tmp/tmppq19o2st/usr 13836s E creating /tmp/tmppq19o2st/usr/lib 13836s E creating /tmp/tmppq19o2st/usr/lib/python3 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13836s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-march=native' 13836s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13836s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13836s E 13836s E INFO: compile options: '-I/usr/include/python3.12 -c' 13836s E extra options: '-O3' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-Werror' 13837s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13837s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-vfpv4' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=armv8.2-a+fp16' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13837s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13837s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13837s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13837s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13837s E INFO: building 'test_array_from_pyobj_ext' extension 13837s E INFO: compiling C sources 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13837s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13837s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13837s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13837s E 14 | #include 13837s E | ^~~~~~~~~~ 13837s E In file included from fortranobject.c:2: 13837s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13837s E 7 | #include 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E compilation terminated. 13837s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13837s E INFO: 13837s E ########### EXT COMPILER OPTIMIZATION ########### 13837s E INFO: Platform : 13837s E Architecture: armhf 13837s E Compiler : gcc 13837s E 13837s E CPU baseline : 13837s E Requested : 'min' 13837s E Enabled : none 13837s E Flags : none 13837s E Extra checks: none 13837s E 13837s E CPU dispatch : 13837s E Requested : 'max -xop -fma4' 13837s E Enabled : none 13837s E Generated : none 13837s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13837s 13837s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13837s d = '/tmp/tmpjj8q074z' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s err = None 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s kw = {} 13837s module_name = 'test_array_from_pyobj_ext' 13837s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13837s p = 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13837s ____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[STRING5] _____ 13837s 13837s def setup_module(): 13837s """ 13837s Build the required testing extension module 13837s 13837s """ 13837s global wrap 13837s 13837s # Check compiler availability first 13837s if not util.has_c_compiler(): 13837s pytest.skip("No C compiler available") 13837s 13837s if wrap is None: 13837s config_code = """ 13837s config.add_extension('test_array_from_pyobj_ext', 13837s sources=['wrapmodule.c', 'fortranobject.c'], 13837s define_macros=[]) 13837s """ 13837s d = os.path.dirname(__file__) 13837s src = [ 13837s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13837s util.getpath("src", "fortranobject.c"), 13837s util.getpath("src", "fortranobject.h"), 13837s ] 13837s > wrap = util.build_module_distutils(src, config_code, 13837s "test_array_from_pyobj_ext") 13837s 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13837s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13837s memo[key] = func(*a, **kw) 13837s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13837s func = 13837s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13837s kw = {} 13837s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s 13837s @_memoize 13837s def build_module_distutils(source_files, config_code, module_name, **kw): 13837s """ 13837s Build a module via distutils and import it. 13837s 13837s """ 13837s d = get_module_dir() 13837s 13837s # Copy files 13837s dst_sources = [] 13837s for fn in source_files: 13837s if not os.path.isfile(fn): 13837s raise RuntimeError("%s is not a file" % fn) 13837s dst = os.path.join(d, os.path.basename(fn)) 13837s shutil.copyfile(fn, dst) 13837s dst_sources.append(dst) 13837s 13837s # Build script 13837s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13837s 13837s code = fr""" 13837s import os 13837s import sys 13837s sys.path = {repr(sys.path)} 13837s 13837s def configuration(parent_name='',top_path=None): 13837s from numpy.distutils.misc_util import Configuration 13837s config = Configuration('', parent_name, top_path) 13837s {config_code} 13837s return config 13837s 13837s if __name__ == "__main__": 13837s from numpy.distutils.core import setup 13837s setup(configuration=configuration) 13837s """ 13837s script = os.path.join(d, get_temp_module_name() + ".py") 13837s dst_sources.append(script) 13837s with open(script, "wb") as f: 13837s f.write(asbytes(code)) 13837s 13837s # Build 13837s cwd = os.getcwd() 13837s try: 13837s os.chdir(d) 13837s cmd = [sys.executable, script, "build_ext", "-i"] 13837s p = subprocess.Popen(cmd, 13837s stdout=subprocess.PIPE, 13837s stderr=subprocess.STDOUT) 13837s out, err = p.communicate() 13837s if p.returncode != 0: 13837s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13837s (cmd[4:], asstr(out))) 13837s E RuntimeError: Running distutils build failed: [] 13837s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13837s E 13837s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13837s E of the deprecation of `distutils` itself. It will be removed for 13837s E Python >= 3.12. For older Python versions it will remain present. 13837s E It is recommended to use `setuptools < 60.0` for those Python versions. 13837s E For more details, see: 13837s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13837s E 13837s E 13837s E from numpy.distutils.core import setup 13837s E running build_ext 13837s E running build_src 13837s E INFO: build_src 13837s E INFO: building extension "test_array_from_pyobj_ext" sources 13837s E INFO: build_src: building npy-pkg config files 13837s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13837s E !! 13837s E 13837s E ******************************************************************************** 13837s E Please avoid running ``setup.py`` directly. 13837s E Instead, use pypa/build, pypa/installer or other 13837s E standards-based tools. 13837s E 13837s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13837s E ******************************************************************************** 13837s E 13837s E !! 13837s E self.initialize_options() 13837s E INFO: customize UnixCCompiler 13837s E INFO: customize UnixCCompiler using build_ext 13837s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E creating /tmp/tmppq19o2st/tmp 13837s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E creating /tmp/tmppq19o2st/usr 13837s E creating /tmp/tmppq19o2st/usr/lib 13837s E creating /tmp/tmppq19o2st/usr/lib/python3 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=native' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-O3' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-Werror' 13837s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13837s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-vfpv4' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=armv8.2-a+fp16' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13837s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13837s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13837s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13837s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13837s E INFO: building 'test_array_from_pyobj_ext' extension 13837s E INFO: compiling C sources 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13837s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13837s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13837s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13837s E 14 | #include 13837s E | ^~~~~~~~~~ 13837s E In file included from fortranobject.c:2: 13837s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13837s E 7 | #include 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E compilation terminated. 13837s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13837s E INFO: 13837s E ########### EXT COMPILER OPTIMIZATION ########### 13837s E INFO: Platform : 13837s E Architecture: armhf 13837s E Compiler : gcc 13837s E 13837s E CPU baseline : 13837s E Requested : 'min' 13837s E Enabled : none 13837s E Flags : none 13837s E Extra checks: none 13837s E 13837s E CPU dispatch : 13837s E Requested : 'max -xop -fma4' 13837s E Enabled : none 13837s E Generated : none 13837s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13837s 13837s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13837s d = '/tmp/tmpjj8q074z' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s err = None 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s kw = {} 13837s module_name = 'test_array_from_pyobj_ext' 13837s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13837s p = 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13837s ____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[STRING5] _____ 13837s 13837s def setup_module(): 13837s """ 13837s Build the required testing extension module 13837s 13837s """ 13837s global wrap 13837s 13837s # Check compiler availability first 13837s if not util.has_c_compiler(): 13837s pytest.skip("No C compiler available") 13837s 13837s if wrap is None: 13837s config_code = """ 13837s config.add_extension('test_array_from_pyobj_ext', 13837s sources=['wrapmodule.c', 'fortranobject.c'], 13837s define_macros=[]) 13837s """ 13837s d = os.path.dirname(__file__) 13837s src = [ 13837s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13837s util.getpath("src", "fortranobject.c"), 13837s util.getpath("src", "fortranobject.h"), 13837s ] 13837s > wrap = util.build_module_distutils(src, config_code, 13837s "test_array_from_pyobj_ext") 13837s 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13837s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13837s memo[key] = func(*a, **kw) 13837s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13837s func = 13837s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13837s kw = {} 13837s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s 13837s @_memoize 13837s def build_module_distutils(source_files, config_code, module_name, **kw): 13837s """ 13837s Build a module via distutils and import it. 13837s 13837s """ 13837s d = get_module_dir() 13837s 13837s # Copy files 13837s dst_sources = [] 13837s for fn in source_files: 13837s if not os.path.isfile(fn): 13837s raise RuntimeError("%s is not a file" % fn) 13837s dst = os.path.join(d, os.path.basename(fn)) 13837s shutil.copyfile(fn, dst) 13837s dst_sources.append(dst) 13837s 13837s # Build script 13837s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13837s 13837s code = fr""" 13837s import os 13837s import sys 13837s sys.path = {repr(sys.path)} 13837s 13837s def configuration(parent_name='',top_path=None): 13837s from numpy.distutils.misc_util import Configuration 13837s config = Configuration('', parent_name, top_path) 13837s {config_code} 13837s return config 13837s 13837s if __name__ == "__main__": 13837s from numpy.distutils.core import setup 13837s setup(configuration=configuration) 13837s """ 13837s script = os.path.join(d, get_temp_module_name() + ".py") 13837s dst_sources.append(script) 13837s with open(script, "wb") as f: 13837s f.write(asbytes(code)) 13837s 13837s # Build 13837s cwd = os.getcwd() 13837s try: 13837s os.chdir(d) 13837s cmd = [sys.executable, script, "build_ext", "-i"] 13837s p = subprocess.Popen(cmd, 13837s stdout=subprocess.PIPE, 13837s stderr=subprocess.STDOUT) 13837s out, err = p.communicate() 13837s if p.returncode != 0: 13837s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13837s (cmd[4:], asstr(out))) 13837s E RuntimeError: Running distutils build failed: [] 13837s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13837s E 13837s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13837s E of the deprecation of `distutils` itself. It will be removed for 13837s E Python >= 3.12. For older Python versions it will remain present. 13837s E It is recommended to use `setuptools < 60.0` for those Python versions. 13837s E For more details, see: 13837s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13837s E 13837s E 13837s E from numpy.distutils.core import setup 13837s E running build_ext 13837s E running build_src 13837s E INFO: build_src 13837s E INFO: building extension "test_array_from_pyobj_ext" sources 13837s E INFO: build_src: building npy-pkg config files 13837s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13837s E !! 13837s E 13837s E ******************************************************************************** 13837s E Please avoid running ``setup.py`` directly. 13837s E Instead, use pypa/build, pypa/installer or other 13837s E standards-based tools. 13837s E 13837s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13837s E ******************************************************************************** 13837s E 13837s E !! 13837s E self.initialize_options() 13837s E INFO: customize UnixCCompiler 13837s E INFO: customize UnixCCompiler using build_ext 13837s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E creating /tmp/tmppq19o2st/tmp 13837s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E creating /tmp/tmppq19o2st/usr 13837s E creating /tmp/tmppq19o2st/usr/lib 13837s E creating /tmp/tmppq19o2st/usr/lib/python3 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=native' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-O3' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-Werror' 13837s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13837s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-vfpv4' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=armv8.2-a+fp16' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13837s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13837s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13837s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13837s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13837s E INFO: building 'test_array_from_pyobj_ext' extension 13837s E INFO: compiling C sources 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13837s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13837s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13837s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13837s E 14 | #include 13837s E | ^~~~~~~~~~ 13837s E In file included from fortranobject.c:2: 13837s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13837s E 7 | #include 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E compilation terminated. 13837s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13837s E INFO: 13837s E ########### EXT COMPILER OPTIMIZATION ########### 13837s E INFO: Platform : 13837s E Architecture: armhf 13837s E Compiler : gcc 13837s E 13837s E CPU baseline : 13837s E Requested : 'min' 13837s E Enabled : none 13837s E Flags : none 13837s E Extra checks: none 13837s E 13837s E CPU dispatch : 13837s E Requested : 'max -xop -fma4' 13837s E Enabled : none 13837s E Generated : none 13837s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13837s 13837s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13837s d = '/tmp/tmpjj8q074z' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s err = None 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s kw = {} 13837s module_name = 'test_array_from_pyobj_ext' 13837s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13837s p = 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13837s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[STRING5] __ 13837s 13837s def setup_module(): 13837s """ 13837s Build the required testing extension module 13837s 13837s """ 13837s global wrap 13837s 13837s # Check compiler availability first 13837s if not util.has_c_compiler(): 13837s pytest.skip("No C compiler available") 13837s 13837s if wrap is None: 13837s config_code = """ 13837s config.add_extension('test_array_from_pyobj_ext', 13837s sources=['wrapmodule.c', 'fortranobject.c'], 13837s define_macros=[]) 13837s """ 13837s d = os.path.dirname(__file__) 13837s src = [ 13837s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13837s util.getpath("src", "fortranobject.c"), 13837s util.getpath("src", "fortranobject.h"), 13837s ] 13837s > wrap = util.build_module_distutils(src, config_code, 13837s "test_array_from_pyobj_ext") 13837s 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13837s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13837s memo[key] = func(*a, **kw) 13837s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13837s func = 13837s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13837s kw = {} 13837s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s 13837s @_memoize 13837s def build_module_distutils(source_files, config_code, module_name, **kw): 13837s """ 13837s Build a module via distutils and import it. 13837s 13837s """ 13837s d = get_module_dir() 13837s 13837s # Copy files 13837s dst_sources = [] 13837s for fn in source_files: 13837s if not os.path.isfile(fn): 13837s raise RuntimeError("%s is not a file" % fn) 13837s dst = os.path.join(d, os.path.basename(fn)) 13837s shutil.copyfile(fn, dst) 13837s dst_sources.append(dst) 13837s 13837s # Build script 13837s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13837s 13837s code = fr""" 13837s import os 13837s import sys 13837s sys.path = {repr(sys.path)} 13837s 13837s def configuration(parent_name='',top_path=None): 13837s from numpy.distutils.misc_util import Configuration 13837s config = Configuration('', parent_name, top_path) 13837s {config_code} 13837s return config 13837s 13837s if __name__ == "__main__": 13837s from numpy.distutils.core import setup 13837s setup(configuration=configuration) 13837s """ 13837s script = os.path.join(d, get_temp_module_name() + ".py") 13837s dst_sources.append(script) 13837s with open(script, "wb") as f: 13837s f.write(asbytes(code)) 13837s 13837s # Build 13837s cwd = os.getcwd() 13837s try: 13837s os.chdir(d) 13837s cmd = [sys.executable, script, "build_ext", "-i"] 13837s p = subprocess.Popen(cmd, 13837s stdout=subprocess.PIPE, 13837s stderr=subprocess.STDOUT) 13837s out, err = p.communicate() 13837s if p.returncode != 0: 13837s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13837s (cmd[4:], asstr(out))) 13837s E RuntimeError: Running distutils build failed: [] 13837s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13837s E 13837s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13837s E of the deprecation of `distutils` itself. It will be removed for 13837s E Python >= 3.12. For older Python versions it will remain present. 13837s E It is recommended to use `setuptools < 60.0` for those Python versions. 13837s E For more details, see: 13837s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13837s E 13837s E 13837s E from numpy.distutils.core import setup 13837s E running build_ext 13837s E running build_src 13837s E INFO: build_src 13837s E INFO: building extension "test_array_from_pyobj_ext" sources 13837s E INFO: build_src: building npy-pkg config files 13837s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13837s E !! 13837s E 13837s E ******************************************************************************** 13837s E Please avoid running ``setup.py`` directly. 13837s E Instead, use pypa/build, pypa/installer or other 13837s E standards-based tools. 13837s E 13837s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13837s E ******************************************************************************** 13837s E 13837s E !! 13837s E self.initialize_options() 13837s E INFO: customize UnixCCompiler 13837s E INFO: customize UnixCCompiler using build_ext 13837s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E creating /tmp/tmppq19o2st/tmp 13837s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E creating /tmp/tmppq19o2st/usr 13837s E creating /tmp/tmppq19o2st/usr/lib 13837s E creating /tmp/tmppq19o2st/usr/lib/python3 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=native' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-O3' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-Werror' 13837s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13837s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-vfpv4' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=armv8.2-a+fp16' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13837s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13837s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13837s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13837s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13837s E INFO: building 'test_array_from_pyobj_ext' extension 13837s E INFO: compiling C sources 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13837s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13837s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13837s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13837s E 14 | #include 13837s E | ^~~~~~~~~~ 13837s E In file included from fortranobject.c:2: 13837s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13837s E 7 | #include 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E compilation terminated. 13837s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13837s E INFO: 13837s E ########### EXT COMPILER OPTIMIZATION ########### 13837s E INFO: Platform : 13837s E Architecture: armhf 13837s E Compiler : gcc 13837s E 13837s E CPU baseline : 13837s E Requested : 'min' 13837s E Enabled : none 13837s E Flags : none 13837s E Extra checks: none 13837s E 13837s E CPU dispatch : 13837s E Requested : 'max -xop -fma4' 13837s E Enabled : none 13837s E Generated : none 13837s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13837s 13837s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13837s d = '/tmp/tmpjj8q074z' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s err = None 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s kw = {} 13837s module_name = 'test_array_from_pyobj_ext' 13837s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13837s p = 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13837s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[STRING5] __ 13837s 13837s def setup_module(): 13837s """ 13837s Build the required testing extension module 13837s 13837s """ 13837s global wrap 13837s 13837s # Check compiler availability first 13837s if not util.has_c_compiler(): 13837s pytest.skip("No C compiler available") 13837s 13837s if wrap is None: 13837s config_code = """ 13837s config.add_extension('test_array_from_pyobj_ext', 13837s sources=['wrapmodule.c', 'fortranobject.c'], 13837s define_macros=[]) 13837s """ 13837s d = os.path.dirname(__file__) 13837s src = [ 13837s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13837s util.getpath("src", "fortranobject.c"), 13837s util.getpath("src", "fortranobject.h"), 13837s ] 13837s > wrap = util.build_module_distutils(src, config_code, 13837s "test_array_from_pyobj_ext") 13837s 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13837s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13837s memo[key] = func(*a, **kw) 13837s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13837s func = 13837s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13837s kw = {} 13837s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s 13837s @_memoize 13837s def build_module_distutils(source_files, config_code, module_name, **kw): 13837s """ 13837s Build a module via distutils and import it. 13837s 13837s """ 13837s d = get_module_dir() 13837s 13837s # Copy files 13837s dst_sources = [] 13837s for fn in source_files: 13837s if not os.path.isfile(fn): 13837s raise RuntimeError("%s is not a file" % fn) 13837s dst = os.path.join(d, os.path.basename(fn)) 13837s shutil.copyfile(fn, dst) 13837s dst_sources.append(dst) 13837s 13837s # Build script 13837s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13837s 13837s code = fr""" 13837s import os 13837s import sys 13837s sys.path = {repr(sys.path)} 13837s 13837s def configuration(parent_name='',top_path=None): 13837s from numpy.distutils.misc_util import Configuration 13837s config = Configuration('', parent_name, top_path) 13837s {config_code} 13837s return config 13837s 13837s if __name__ == "__main__": 13837s from numpy.distutils.core import setup 13837s setup(configuration=configuration) 13837s """ 13837s script = os.path.join(d, get_temp_module_name() + ".py") 13837s dst_sources.append(script) 13837s with open(script, "wb") as f: 13837s f.write(asbytes(code)) 13837s 13837s # Build 13837s cwd = os.getcwd() 13837s try: 13837s os.chdir(d) 13837s cmd = [sys.executable, script, "build_ext", "-i"] 13837s p = subprocess.Popen(cmd, 13837s stdout=subprocess.PIPE, 13837s stderr=subprocess.STDOUT) 13837s out, err = p.communicate() 13837s if p.returncode != 0: 13837s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13837s (cmd[4:], asstr(out))) 13837s E RuntimeError: Running distutils build failed: [] 13837s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13837s E 13837s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13837s E of the deprecation of `distutils` itself. It will be removed for 13837s E Python >= 3.12. For older Python versions it will remain present. 13837s E It is recommended to use `setuptools < 60.0` for those Python versions. 13837s E For more details, see: 13837s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13837s E 13837s E 13837s E from numpy.distutils.core import setup 13837s E running build_ext 13837s E running build_src 13837s E INFO: build_src 13837s E INFO: building extension "test_array_from_pyobj_ext" sources 13837s E INFO: build_src: building npy-pkg config files 13837s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13837s E !! 13837s E 13837s E ******************************************************************************** 13837s E Please avoid running ``setup.py`` directly. 13837s E Instead, use pypa/build, pypa/installer or other 13837s E standards-based tools. 13837s E 13837s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13837s E ******************************************************************************** 13837s E 13837s E !! 13837s E self.initialize_options() 13837s E INFO: customize UnixCCompiler 13837s E INFO: customize UnixCCompiler using build_ext 13837s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E creating /tmp/tmppq19o2st/tmp 13837s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E creating /tmp/tmppq19o2st/usr 13837s E creating /tmp/tmppq19o2st/usr/lib 13837s E creating /tmp/tmppq19o2st/usr/lib/python3 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13837s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=native' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-O3' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-Werror' 13837s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13837s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-vfpv4' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13837s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-march=armv8.2-a+fp16' 13837s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/include/python3.12 -c' 13837s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13837s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13837s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13837s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13837s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13837s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13837s E 9 | # include_next 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E 13837s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13837s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13837s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13837s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13837s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13837s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13837s E INFO: building 'test_array_from_pyobj_ext' extension 13837s E INFO: compiling C sources 13837s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13837s E 13837s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13837s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13837s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13837s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13837s E 14 | #include 13837s E | ^~~~~~~~~~ 13837s E In file included from fortranobject.c:2: 13837s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13837s E 7 | #include 13837s E | ^~~~~~~~~~ 13837s E compilation terminated. 13837s E compilation terminated. 13837s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13837s E INFO: 13837s E ########### EXT COMPILER OPTIMIZATION ########### 13837s E INFO: Platform : 13837s E Architecture: armhf 13837s E Compiler : gcc 13837s E 13837s E CPU baseline : 13837s E Requested : 'min' 13837s E Enabled : none 13837s E Flags : none 13837s E Extra checks: none 13837s E 13837s E CPU dispatch : 13837s E Requested : 'max -xop -fma4' 13837s E Enabled : none 13837s E Generated : none 13837s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13837s 13837s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13837s d = '/tmp/tmpjj8q074z' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s err = None 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s kw = {} 13837s module_name = 'test_array_from_pyobj_ext' 13837s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13837s p = 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13837s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[STRING5] ___ 13837s 13837s def setup_module(): 13837s """ 13837s Build the required testing extension module 13837s 13837s """ 13837s global wrap 13837s 13837s # Check compiler availability first 13837s if not util.has_c_compiler(): 13837s pytest.skip("No C compiler available") 13837s 13837s if wrap is None: 13837s config_code = """ 13837s config.add_extension('test_array_from_pyobj_ext', 13837s sources=['wrapmodule.c', 'fortranobject.c'], 13837s define_macros=[]) 13837s """ 13837s d = os.path.dirname(__file__) 13837s src = [ 13837s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13837s util.getpath("src", "fortranobject.c"), 13837s util.getpath("src", "fortranobject.h"), 13837s ] 13837s > wrap = util.build_module_distutils(src, config_code, 13837s "test_array_from_pyobj_ext") 13837s 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13837s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13837s memo[key] = func(*a, **kw) 13837s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13837s func = 13837s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13837s kw = {} 13837s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13837s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13837s 13837s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13837s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13837s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13837s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13837s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13837s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13837s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13837s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13837s 13837s @_memoize 13837s def build_module_distutils(source_files, config_code, module_name, **kw): 13837s """ 13837s Build a module via distutils and import it. 13837s 13837s """ 13837s d = get_module_dir() 13837s 13837s # Copy files 13837s dst_sources = [] 13837s for fn in source_files: 13837s if not os.path.isfile(fn): 13837s raise RuntimeError("%s is not a file" % fn) 13837s dst = os.path.join(d, os.path.basename(fn)) 13837s shutil.copyfile(fn, dst) 13837s dst_sources.append(dst) 13837s 13837s # Build script 13837s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13837s 13837s code = fr""" 13837s import os 13837s import sys 13837s sys.path = {repr(sys.path)} 13837s 13837s def configuration(parent_name='',top_path=None): 13837s from numpy.distutils.misc_util import Configuration 13837s config = Configuration('', parent_name, top_path) 13837s {config_code} 13837s return config 13837s 13837s if __name__ == "__main__": 13837s from numpy.distutils.core import setup 13837s setup(configuration=configuration) 13837s """ 13838s script = os.path.join(d, get_temp_module_name() + ".py") 13838s dst_sources.append(script) 13838s with open(script, "wb") as f: 13838s f.write(asbytes(code)) 13838s 13838s # Build 13838s cwd = os.getcwd() 13838s try: 13838s os.chdir(d) 13838s cmd = [sys.executable, script, "build_ext", "-i"] 13838s p = subprocess.Popen(cmd, 13838s stdout=subprocess.PIPE, 13838s stderr=subprocess.STDOUT) 13838s out, err = p.communicate() 13838s if p.returncode != 0: 13838s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13838s (cmd[4:], asstr(out))) 13838s E RuntimeError: Running distutils build failed: [] 13838s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13838s E 13838s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13838s E of the deprecation of `distutils` itself. It will be removed for 13838s E Python >= 3.12. For older Python versions it will remain present. 13838s E It is recommended to use `setuptools < 60.0` for those Python versions. 13838s E For more details, see: 13838s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13838s E 13838s E 13838s E from numpy.distutils.core import setup 13838s E running build_ext 13838s E running build_src 13838s E INFO: build_src 13838s E INFO: building extension "test_array_from_pyobj_ext" sources 13838s E INFO: build_src: building npy-pkg config files 13838s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13838s E !! 13838s E 13838s E ******************************************************************************** 13838s E Please avoid running ``setup.py`` directly. 13838s E Instead, use pypa/build, pypa/installer or other 13838s E standards-based tools. 13838s E 13838s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13838s E ******************************************************************************** 13838s E 13838s E !! 13838s E self.initialize_options() 13838s E INFO: customize UnixCCompiler 13838s E INFO: customize UnixCCompiler using build_ext 13838s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/tmp 13838s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/usr 13838s E creating /tmp/tmppq19o2st/usr/lib 13838s E creating /tmp/tmppq19o2st/usr/lib/python3 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=native' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-O3' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-Werror' 13838s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13838s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-vfpv4' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=armv8.2-a+fp16' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13838s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13838s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13838s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13838s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13838s E INFO: building 'test_array_from_pyobj_ext' extension 13838s E INFO: compiling C sources 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13838s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13838s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13838s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13838s E 14 | #include 13838s E | ^~~~~~~~~~ 13838s E In file included from fortranobject.c:2: 13838s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13838s E 7 | #include 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E compilation terminated. 13838s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13838s E INFO: 13838s E ########### EXT COMPILER OPTIMIZATION ########### 13838s E INFO: Platform : 13838s E Architecture: armhf 13838s E Compiler : gcc 13838s E 13838s E CPU baseline : 13838s E Requested : 'min' 13838s E Enabled : none 13838s E Flags : none 13838s E Extra checks: none 13838s E 13838s E CPU dispatch : 13838s E Requested : 'max -xop -fma4' 13838s E Enabled : none 13838s E Generated : none 13838s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13838s 13838s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13838s d = '/tmp/tmpjj8q074z' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s err = None 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s kw = {} 13838s module_name = 'test_array_from_pyobj_ext' 13838s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13838s p = 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13838s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[STRING5] _ 13838s 13838s def setup_module(): 13838s """ 13838s Build the required testing extension module 13838s 13838s """ 13838s global wrap 13838s 13838s # Check compiler availability first 13838s if not util.has_c_compiler(): 13838s pytest.skip("No C compiler available") 13838s 13838s if wrap is None: 13838s config_code = """ 13838s config.add_extension('test_array_from_pyobj_ext', 13838s sources=['wrapmodule.c', 'fortranobject.c'], 13838s define_macros=[]) 13838s """ 13838s d = os.path.dirname(__file__) 13838s src = [ 13838s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13838s util.getpath("src", "fortranobject.c"), 13838s util.getpath("src", "fortranobject.h"), 13838s ] 13838s > wrap = util.build_module_distutils(src, config_code, 13838s "test_array_from_pyobj_ext") 13838s 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13838s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13838s memo[key] = func(*a, **kw) 13838s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13838s func = 13838s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13838s kw = {} 13838s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s 13838s @_memoize 13838s def build_module_distutils(source_files, config_code, module_name, **kw): 13838s """ 13838s Build a module via distutils and import it. 13838s 13838s """ 13838s d = get_module_dir() 13838s 13838s # Copy files 13838s dst_sources = [] 13838s for fn in source_files: 13838s if not os.path.isfile(fn): 13838s raise RuntimeError("%s is not a file" % fn) 13838s dst = os.path.join(d, os.path.basename(fn)) 13838s shutil.copyfile(fn, dst) 13838s dst_sources.append(dst) 13838s 13838s # Build script 13838s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13838s 13838s code = fr""" 13838s import os 13838s import sys 13838s sys.path = {repr(sys.path)} 13838s 13838s def configuration(parent_name='',top_path=None): 13838s from numpy.distutils.misc_util import Configuration 13838s config = Configuration('', parent_name, top_path) 13838s {config_code} 13838s return config 13838s 13838s if __name__ == "__main__": 13838s from numpy.distutils.core import setup 13838s setup(configuration=configuration) 13838s """ 13838s script = os.path.join(d, get_temp_module_name() + ".py") 13838s dst_sources.append(script) 13838s with open(script, "wb") as f: 13838s f.write(asbytes(code)) 13838s 13838s # Build 13838s cwd = os.getcwd() 13838s try: 13838s os.chdir(d) 13838s cmd = [sys.executable, script, "build_ext", "-i"] 13838s p = subprocess.Popen(cmd, 13838s stdout=subprocess.PIPE, 13838s stderr=subprocess.STDOUT) 13838s out, err = p.communicate() 13838s if p.returncode != 0: 13838s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13838s (cmd[4:], asstr(out))) 13838s E RuntimeError: Running distutils build failed: [] 13838s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13838s E 13838s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13838s E of the deprecation of `distutils` itself. It will be removed for 13838s E Python >= 3.12. For older Python versions it will remain present. 13838s E It is recommended to use `setuptools < 60.0` for those Python versions. 13838s E For more details, see: 13838s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13838s E 13838s E 13838s E from numpy.distutils.core import setup 13838s E running build_ext 13838s E running build_src 13838s E INFO: build_src 13838s E INFO: building extension "test_array_from_pyobj_ext" sources 13838s E INFO: build_src: building npy-pkg config files 13838s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13838s E !! 13838s E 13838s E ******************************************************************************** 13838s E Please avoid running ``setup.py`` directly. 13838s E Instead, use pypa/build, pypa/installer or other 13838s E standards-based tools. 13838s E 13838s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13838s E ******************************************************************************** 13838s E 13838s E !! 13838s E self.initialize_options() 13838s E INFO: customize UnixCCompiler 13838s E INFO: customize UnixCCompiler using build_ext 13838s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/tmp 13838s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/usr 13838s E creating /tmp/tmppq19o2st/usr/lib 13838s E creating /tmp/tmppq19o2st/usr/lib/python3 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=native' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-O3' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-Werror' 13838s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13838s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-vfpv4' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=armv8.2-a+fp16' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13838s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13838s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13838s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13838s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13838s E INFO: building 'test_array_from_pyobj_ext' extension 13838s E INFO: compiling C sources 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13838s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13838s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13838s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13838s E 14 | #include 13838s E | ^~~~~~~~~~ 13838s E In file included from fortranobject.c:2: 13838s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13838s E 7 | #include 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E compilation terminated. 13838s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13838s E INFO: 13838s E ########### EXT COMPILER OPTIMIZATION ########### 13838s E INFO: Platform : 13838s E Architecture: armhf 13838s E Compiler : gcc 13838s E 13838s E CPU baseline : 13838s E Requested : 'min' 13838s E Enabled : none 13838s E Flags : none 13838s E Extra checks: none 13838s E 13838s E CPU dispatch : 13838s E Requested : 'max -xop -fma4' 13838s E Enabled : none 13838s E Generated : none 13838s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13838s 13838s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13838s d = '/tmp/tmpjj8q074z' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s err = None 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s kw = {} 13838s module_name = 'test_array_from_pyobj_ext' 13838s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13838s p = 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13838s ________ ERROR at setup of TestSharedMemory.test_cache_hidden[STRING5] _________ 13838s 13838s def setup_module(): 13838s """ 13838s Build the required testing extension module 13838s 13838s """ 13838s global wrap 13838s 13838s # Check compiler availability first 13838s if not util.has_c_compiler(): 13838s pytest.skip("No C compiler available") 13838s 13838s if wrap is None: 13838s config_code = """ 13838s config.add_extension('test_array_from_pyobj_ext', 13838s sources=['wrapmodule.c', 'fortranobject.c'], 13838s define_macros=[]) 13838s """ 13838s d = os.path.dirname(__file__) 13838s src = [ 13838s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13838s util.getpath("src", "fortranobject.c"), 13838s util.getpath("src", "fortranobject.h"), 13838s ] 13838s > wrap = util.build_module_distutils(src, config_code, 13838s "test_array_from_pyobj_ext") 13838s 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13838s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13838s memo[key] = func(*a, **kw) 13838s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13838s func = 13838s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13838s kw = {} 13838s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s 13838s @_memoize 13838s def build_module_distutils(source_files, config_code, module_name, **kw): 13838s """ 13838s Build a module via distutils and import it. 13838s 13838s """ 13838s d = get_module_dir() 13838s 13838s # Copy files 13838s dst_sources = [] 13838s for fn in source_files: 13838s if not os.path.isfile(fn): 13838s raise RuntimeError("%s is not a file" % fn) 13838s dst = os.path.join(d, os.path.basename(fn)) 13838s shutil.copyfile(fn, dst) 13838s dst_sources.append(dst) 13838s 13838s # Build script 13838s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13838s 13838s code = fr""" 13838s import os 13838s import sys 13838s sys.path = {repr(sys.path)} 13838s 13838s def configuration(parent_name='',top_path=None): 13838s from numpy.distutils.misc_util import Configuration 13838s config = Configuration('', parent_name, top_path) 13838s {config_code} 13838s return config 13838s 13838s if __name__ == "__main__": 13838s from numpy.distutils.core import setup 13838s setup(configuration=configuration) 13838s """ 13838s script = os.path.join(d, get_temp_module_name() + ".py") 13838s dst_sources.append(script) 13838s with open(script, "wb") as f: 13838s f.write(asbytes(code)) 13838s 13838s # Build 13838s cwd = os.getcwd() 13838s try: 13838s os.chdir(d) 13838s cmd = [sys.executable, script, "build_ext", "-i"] 13838s p = subprocess.Popen(cmd, 13838s stdout=subprocess.PIPE, 13838s stderr=subprocess.STDOUT) 13838s out, err = p.communicate() 13838s if p.returncode != 0: 13838s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13838s (cmd[4:], asstr(out))) 13838s E RuntimeError: Running distutils build failed: [] 13838s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13838s E 13838s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13838s E of the deprecation of `distutils` itself. It will be removed for 13838s E Python >= 3.12. For older Python versions it will remain present. 13838s E It is recommended to use `setuptools < 60.0` for those Python versions. 13838s E For more details, see: 13838s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13838s E 13838s E 13838s E from numpy.distutils.core import setup 13838s E running build_ext 13838s E running build_src 13838s E INFO: build_src 13838s E INFO: building extension "test_array_from_pyobj_ext" sources 13838s E INFO: build_src: building npy-pkg config files 13838s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13838s E !! 13838s E 13838s E ******************************************************************************** 13838s E Please avoid running ``setup.py`` directly. 13838s E Instead, use pypa/build, pypa/installer or other 13838s E standards-based tools. 13838s E 13838s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13838s E ******************************************************************************** 13838s E 13838s E !! 13838s E self.initialize_options() 13838s E INFO: customize UnixCCompiler 13838s E INFO: customize UnixCCompiler using build_ext 13838s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/tmp 13838s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/usr 13838s E creating /tmp/tmppq19o2st/usr/lib 13838s E creating /tmp/tmppq19o2st/usr/lib/python3 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=native' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-O3' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-Werror' 13838s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13838s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-vfpv4' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=armv8.2-a+fp16' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13838s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13838s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13838s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13838s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13838s E INFO: building 'test_array_from_pyobj_ext' extension 13838s E INFO: compiling C sources 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13838s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13838s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13838s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13838s E 14 | #include 13838s E | ^~~~~~~~~~ 13838s E In file included from fortranobject.c:2: 13838s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13838s E 7 | #include 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E compilation terminated. 13838s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13838s E INFO: 13838s E ########### EXT COMPILER OPTIMIZATION ########### 13838s E INFO: Platform : 13838s E Architecture: armhf 13838s E Compiler : gcc 13838s E 13838s E CPU baseline : 13838s E Requested : 'min' 13838s E Enabled : none 13838s E Flags : none 13838s E Extra checks: none 13838s E 13838s E CPU dispatch : 13838s E Requested : 'max -xop -fma4' 13838s E Enabled : none 13838s E Generated : none 13838s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13838s 13838s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13838s d = '/tmp/tmpjj8q074z' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s err = None 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s kw = {} 13838s module_name = 'test_array_from_pyobj_ext' 13838s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13838s p = 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13838s ___________ ERROR at setup of TestSharedMemory.test_hidden[STRING5] ____________ 13838s 13838s def setup_module(): 13838s """ 13838s Build the required testing extension module 13838s 13838s """ 13838s global wrap 13838s 13838s # Check compiler availability first 13838s if not util.has_c_compiler(): 13838s pytest.skip("No C compiler available") 13838s 13838s if wrap is None: 13838s config_code = """ 13838s config.add_extension('test_array_from_pyobj_ext', 13838s sources=['wrapmodule.c', 'fortranobject.c'], 13838s define_macros=[]) 13838s """ 13838s d = os.path.dirname(__file__) 13838s src = [ 13838s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13838s util.getpath("src", "fortranobject.c"), 13838s util.getpath("src", "fortranobject.h"), 13838s ] 13838s > wrap = util.build_module_distutils(src, config_code, 13838s "test_array_from_pyobj_ext") 13838s 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13838s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13838s memo[key] = func(*a, **kw) 13838s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13838s func = 13838s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13838s kw = {} 13838s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s 13838s @_memoize 13838s def build_module_distutils(source_files, config_code, module_name, **kw): 13838s """ 13838s Build a module via distutils and import it. 13838s 13838s """ 13838s d = get_module_dir() 13838s 13838s # Copy files 13838s dst_sources = [] 13838s for fn in source_files: 13838s if not os.path.isfile(fn): 13838s raise RuntimeError("%s is not a file" % fn) 13838s dst = os.path.join(d, os.path.basename(fn)) 13838s shutil.copyfile(fn, dst) 13838s dst_sources.append(dst) 13838s 13838s # Build script 13838s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13838s 13838s code = fr""" 13838s import os 13838s import sys 13838s sys.path = {repr(sys.path)} 13838s 13838s def configuration(parent_name='',top_path=None): 13838s from numpy.distutils.misc_util import Configuration 13838s config = Configuration('', parent_name, top_path) 13838s {config_code} 13838s return config 13838s 13838s if __name__ == "__main__": 13838s from numpy.distutils.core import setup 13838s setup(configuration=configuration) 13838s """ 13838s script = os.path.join(d, get_temp_module_name() + ".py") 13838s dst_sources.append(script) 13838s with open(script, "wb") as f: 13838s f.write(asbytes(code)) 13838s 13838s # Build 13838s cwd = os.getcwd() 13838s try: 13838s os.chdir(d) 13838s cmd = [sys.executable, script, "build_ext", "-i"] 13838s p = subprocess.Popen(cmd, 13838s stdout=subprocess.PIPE, 13838s stderr=subprocess.STDOUT) 13838s out, err = p.communicate() 13838s if p.returncode != 0: 13838s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13838s (cmd[4:], asstr(out))) 13838s E RuntimeError: Running distutils build failed: [] 13838s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13838s E 13838s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13838s E of the deprecation of `distutils` itself. It will be removed for 13838s E Python >= 3.12. For older Python versions it will remain present. 13838s E It is recommended to use `setuptools < 60.0` for those Python versions. 13838s E For more details, see: 13838s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13838s E 13838s E 13838s E from numpy.distutils.core import setup 13838s E running build_ext 13838s E running build_src 13838s E INFO: build_src 13838s E INFO: building extension "test_array_from_pyobj_ext" sources 13838s E INFO: build_src: building npy-pkg config files 13838s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13838s E !! 13838s E 13838s E ******************************************************************************** 13838s E Please avoid running ``setup.py`` directly. 13838s E Instead, use pypa/build, pypa/installer or other 13838s E standards-based tools. 13838s E 13838s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13838s E ******************************************************************************** 13838s E 13838s E !! 13838s E self.initialize_options() 13838s E INFO: customize UnixCCompiler 13838s E INFO: customize UnixCCompiler using build_ext 13838s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/tmp 13838s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/usr 13838s E creating /tmp/tmppq19o2st/usr/lib 13838s E creating /tmp/tmppq19o2st/usr/lib/python3 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=native' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-O3' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-Werror' 13838s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13838s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-vfpv4' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=armv8.2-a+fp16' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13838s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13838s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13838s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13838s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13838s E INFO: building 'test_array_from_pyobj_ext' extension 13838s E INFO: compiling C sources 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13838s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13838s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13838s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13838s E 14 | #include 13838s E | ^~~~~~~~~~ 13838s E In file included from fortranobject.c:2: 13838s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13838s E 7 | #include 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E compilation terminated. 13838s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13838s E INFO: 13838s E ########### EXT COMPILER OPTIMIZATION ########### 13838s E INFO: Platform : 13838s E Architecture: armhf 13838s E Compiler : gcc 13838s E 13838s E CPU baseline : 13838s E Requested : 'min' 13838s E Enabled : none 13838s E Flags : none 13838s E Extra checks: none 13838s E 13838s E CPU dispatch : 13838s E Requested : 'max -xop -fma4' 13838s E Enabled : none 13838s E Generated : none 13838s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13838s 13838s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13838s d = '/tmp/tmpjj8q074z' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s err = None 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s kw = {} 13838s module_name = 'test_array_from_pyobj_ext' 13838s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13838s p = 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13838s ________ ERROR at setup of TestSharedMemory.test_optional_none[STRING5] ________ 13838s 13838s def setup_module(): 13838s """ 13838s Build the required testing extension module 13838s 13838s """ 13838s global wrap 13838s 13838s # Check compiler availability first 13838s if not util.has_c_compiler(): 13838s pytest.skip("No C compiler available") 13838s 13838s if wrap is None: 13838s config_code = """ 13838s config.add_extension('test_array_from_pyobj_ext', 13838s sources=['wrapmodule.c', 'fortranobject.c'], 13838s define_macros=[]) 13838s """ 13838s d = os.path.dirname(__file__) 13838s src = [ 13838s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13838s util.getpath("src", "fortranobject.c"), 13838s util.getpath("src", "fortranobject.h"), 13838s ] 13838s > wrap = util.build_module_distutils(src, config_code, 13838s "test_array_from_pyobj_ext") 13838s 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13838s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13838s memo[key] = func(*a, **kw) 13838s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13838s func = 13838s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13838s kw = {} 13838s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s 13838s @_memoize 13838s def build_module_distutils(source_files, config_code, module_name, **kw): 13838s """ 13838s Build a module via distutils and import it. 13838s 13838s """ 13838s d = get_module_dir() 13838s 13838s # Copy files 13838s dst_sources = [] 13838s for fn in source_files: 13838s if not os.path.isfile(fn): 13838s raise RuntimeError("%s is not a file" % fn) 13838s dst = os.path.join(d, os.path.basename(fn)) 13838s shutil.copyfile(fn, dst) 13838s dst_sources.append(dst) 13838s 13838s # Build script 13838s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13838s 13838s code = fr""" 13838s import os 13838s import sys 13838s sys.path = {repr(sys.path)} 13838s 13838s def configuration(parent_name='',top_path=None): 13838s from numpy.distutils.misc_util import Configuration 13838s config = Configuration('', parent_name, top_path) 13838s {config_code} 13838s return config 13838s 13838s if __name__ == "__main__": 13838s from numpy.distutils.core import setup 13838s setup(configuration=configuration) 13838s """ 13838s script = os.path.join(d, get_temp_module_name() + ".py") 13838s dst_sources.append(script) 13838s with open(script, "wb") as f: 13838s f.write(asbytes(code)) 13838s 13838s # Build 13838s cwd = os.getcwd() 13838s try: 13838s os.chdir(d) 13838s cmd = [sys.executable, script, "build_ext", "-i"] 13838s p = subprocess.Popen(cmd, 13838s stdout=subprocess.PIPE, 13838s stderr=subprocess.STDOUT) 13838s out, err = p.communicate() 13838s if p.returncode != 0: 13838s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13838s (cmd[4:], asstr(out))) 13838s E RuntimeError: Running distutils build failed: [] 13838s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13838s E 13838s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13838s E of the deprecation of `distutils` itself. It will be removed for 13838s E Python >= 3.12. For older Python versions it will remain present. 13838s E It is recommended to use `setuptools < 60.0` for those Python versions. 13838s E For more details, see: 13838s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13838s E 13838s E 13838s E from numpy.distutils.core import setup 13838s E running build_ext 13838s E running build_src 13838s E INFO: build_src 13838s E INFO: building extension "test_array_from_pyobj_ext" sources 13838s E INFO: build_src: building npy-pkg config files 13838s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13838s E !! 13838s E 13838s E ******************************************************************************** 13838s E Please avoid running ``setup.py`` directly. 13838s E Instead, use pypa/build, pypa/installer or other 13838s E standards-based tools. 13838s E 13838s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13838s E ******************************************************************************** 13838s E 13838s E !! 13838s E self.initialize_options() 13838s E INFO: customize UnixCCompiler 13838s E INFO: customize UnixCCompiler using build_ext 13838s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/tmp 13838s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E creating /tmp/tmppq19o2st/usr 13838s E creating /tmp/tmppq19o2st/usr/lib 13838s E creating /tmp/tmppq19o2st/usr/lib/python3 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13838s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=native' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-O3' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-Werror' 13838s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13838s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-vfpv4' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13838s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-march=armv8.2-a+fp16' 13838s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/include/python3.12 -c' 13838s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13838s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13838s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13838s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13838s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13838s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13838s E 9 | # include_next 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E 13838s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13838s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13838s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13838s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13838s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13838s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13838s E INFO: building 'test_array_from_pyobj_ext' extension 13838s E INFO: compiling C sources 13838s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13838s E 13838s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13838s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13838s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13838s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13838s E 14 | #include 13838s E | ^~~~~~~~~~ 13838s E In file included from fortranobject.c:2: 13838s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13838s E 7 | #include 13838s E | ^~~~~~~~~~ 13838s E compilation terminated. 13838s E compilation terminated. 13838s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13838s E INFO: 13838s E ########### EXT COMPILER OPTIMIZATION ########### 13838s E INFO: Platform : 13838s E Architecture: armhf 13838s E Compiler : gcc 13838s E 13838s E CPU baseline : 13838s E Requested : 'min' 13838s E Enabled : none 13838s E Flags : none 13838s E Extra checks: none 13838s E 13838s E CPU dispatch : 13838s E Requested : 'max -xop -fma4' 13838s E Enabled : none 13838s E Generated : none 13838s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13838s 13838s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13838s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13838s d = '/tmp/tmpjj8q074z' 13838s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13838s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13838s err = None 13838s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13838s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s kw = {} 13838s module_name = 'test_array_from_pyobj_ext' 13838s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13838s p = 13838s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13838s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13838s _____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[STRING5] ______ 13838s 13838s def setup_module(): 13838s """ 13838s Build the required testing extension module 13838s 13838s """ 13838s global wrap 13838s 13838s # Check compiler availability first 13838s if not util.has_c_compiler(): 13838s pytest.skip("No C compiler available") 13838s 13838s if wrap is None: 13838s config_code = """ 13838s config.add_extension('test_array_from_pyobj_ext', 13838s sources=['wrapmodule.c', 'fortranobject.c'], 13838s define_macros=[]) 13838s """ 13838s d = os.path.dirname(__file__) 13838s src = [ 13838s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13838s util.getpath("src", "fortranobject.c"), 13838s util.getpath("src", "fortranobject.h"), 13838s ] 13838s > wrap = util.build_module_distutils(src, config_code, 13838s "test_array_from_pyobj_ext") 13838s 13838s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13838s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13838s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13838s 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13838s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13838s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13838s memo[key] = func(*a, **kw) 13838s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13838s func = 13839s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13839s kw = {} 13839s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s 13839s @_memoize 13839s def build_module_distutils(source_files, config_code, module_name, **kw): 13839s """ 13839s Build a module via distutils and import it. 13839s 13839s """ 13839s d = get_module_dir() 13839s 13839s # Copy files 13839s dst_sources = [] 13839s for fn in source_files: 13839s if not os.path.isfile(fn): 13839s raise RuntimeError("%s is not a file" % fn) 13839s dst = os.path.join(d, os.path.basename(fn)) 13839s shutil.copyfile(fn, dst) 13839s dst_sources.append(dst) 13839s 13839s # Build script 13839s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13839s 13839s code = fr""" 13839s import os 13839s import sys 13839s sys.path = {repr(sys.path)} 13839s 13839s def configuration(parent_name='',top_path=None): 13839s from numpy.distutils.misc_util import Configuration 13839s config = Configuration('', parent_name, top_path) 13839s {config_code} 13839s return config 13839s 13839s if __name__ == "__main__": 13839s from numpy.distutils.core import setup 13839s setup(configuration=configuration) 13839s """ 13839s script = os.path.join(d, get_temp_module_name() + ".py") 13839s dst_sources.append(script) 13839s with open(script, "wb") as f: 13839s f.write(asbytes(code)) 13839s 13839s # Build 13839s cwd = os.getcwd() 13839s try: 13839s os.chdir(d) 13839s cmd = [sys.executable, script, "build_ext", "-i"] 13839s p = subprocess.Popen(cmd, 13839s stdout=subprocess.PIPE, 13839s stderr=subprocess.STDOUT) 13839s out, err = p.communicate() 13839s if p.returncode != 0: 13839s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13839s (cmd[4:], asstr(out))) 13839s E RuntimeError: Running distutils build failed: [] 13839s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13839s E 13839s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13839s E of the deprecation of `distutils` itself. It will be removed for 13839s E Python >= 3.12. For older Python versions it will remain present. 13839s E It is recommended to use `setuptools < 60.0` for those Python versions. 13839s E For more details, see: 13839s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13839s E 13839s E 13839s E from numpy.distutils.core import setup 13839s E running build_ext 13839s E running build_src 13839s E INFO: build_src 13839s E INFO: building extension "test_array_from_pyobj_ext" sources 13839s E INFO: build_src: building npy-pkg config files 13839s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13839s E !! 13839s E 13839s E ******************************************************************************** 13839s E Please avoid running ``setup.py`` directly. 13839s E Instead, use pypa/build, pypa/installer or other 13839s E standards-based tools. 13839s E 13839s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13839s E ******************************************************************************** 13839s E 13839s E !! 13839s E self.initialize_options() 13839s E INFO: customize UnixCCompiler 13839s E INFO: customize UnixCCompiler using build_ext 13839s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/tmp 13839s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/usr 13839s E creating /tmp/tmppq19o2st/usr/lib 13839s E creating /tmp/tmppq19o2st/usr/lib/python3 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=native' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-O3' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-Werror' 13839s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13839s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-vfpv4' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=armv8.2-a+fp16' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13839s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13839s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13839s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13839s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13839s E INFO: building 'test_array_from_pyobj_ext' extension 13839s E INFO: compiling C sources 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13839s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13839s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13839s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13839s E 14 | #include 13839s E | ^~~~~~~~~~ 13839s E In file included from fortranobject.c:2: 13839s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13839s E 7 | #include 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E compilation terminated. 13839s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13839s E INFO: 13839s E ########### EXT COMPILER OPTIMIZATION ########### 13839s E INFO: Platform : 13839s E Architecture: armhf 13839s E Compiler : gcc 13839s E 13839s E CPU baseline : 13839s E Requested : 'min' 13839s E Enabled : none 13839s E Flags : none 13839s E Extra checks: none 13839s E 13839s E CPU dispatch : 13839s E Requested : 'max -xop -fma4' 13839s E Enabled : none 13839s E Generated : none 13839s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13839s 13839s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13839s d = '/tmp/tmpjj8q074z' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s err = None 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s kw = {} 13839s module_name = 'test_array_from_pyobj_ext' 13839s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13839s p = 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13839s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[STRING5] _____ 13839s 13839s def setup_module(): 13839s """ 13839s Build the required testing extension module 13839s 13839s """ 13839s global wrap 13839s 13839s # Check compiler availability first 13839s if not util.has_c_compiler(): 13839s pytest.skip("No C compiler available") 13839s 13839s if wrap is None: 13839s config_code = """ 13839s config.add_extension('test_array_from_pyobj_ext', 13839s sources=['wrapmodule.c', 'fortranobject.c'], 13839s define_macros=[]) 13839s """ 13839s d = os.path.dirname(__file__) 13839s src = [ 13839s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13839s util.getpath("src", "fortranobject.c"), 13839s util.getpath("src", "fortranobject.h"), 13839s ] 13839s > wrap = util.build_module_distutils(src, config_code, 13839s "test_array_from_pyobj_ext") 13839s 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13839s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13839s memo[key] = func(*a, **kw) 13839s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13839s func = 13839s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13839s kw = {} 13839s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s 13839s @_memoize 13839s def build_module_distutils(source_files, config_code, module_name, **kw): 13839s """ 13839s Build a module via distutils and import it. 13839s 13839s """ 13839s d = get_module_dir() 13839s 13839s # Copy files 13839s dst_sources = [] 13839s for fn in source_files: 13839s if not os.path.isfile(fn): 13839s raise RuntimeError("%s is not a file" % fn) 13839s dst = os.path.join(d, os.path.basename(fn)) 13839s shutil.copyfile(fn, dst) 13839s dst_sources.append(dst) 13839s 13839s # Build script 13839s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13839s 13839s code = fr""" 13839s import os 13839s import sys 13839s sys.path = {repr(sys.path)} 13839s 13839s def configuration(parent_name='',top_path=None): 13839s from numpy.distutils.misc_util import Configuration 13839s config = Configuration('', parent_name, top_path) 13839s {config_code} 13839s return config 13839s 13839s if __name__ == "__main__": 13839s from numpy.distutils.core import setup 13839s setup(configuration=configuration) 13839s """ 13839s script = os.path.join(d, get_temp_module_name() + ".py") 13839s dst_sources.append(script) 13839s with open(script, "wb") as f: 13839s f.write(asbytes(code)) 13839s 13839s # Build 13839s cwd = os.getcwd() 13839s try: 13839s os.chdir(d) 13839s cmd = [sys.executable, script, "build_ext", "-i"] 13839s p = subprocess.Popen(cmd, 13839s stdout=subprocess.PIPE, 13839s stderr=subprocess.STDOUT) 13839s out, err = p.communicate() 13839s if p.returncode != 0: 13839s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13839s (cmd[4:], asstr(out))) 13839s E RuntimeError: Running distutils build failed: [] 13839s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13839s E 13839s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13839s E of the deprecation of `distutils` itself. It will be removed for 13839s E Python >= 3.12. For older Python versions it will remain present. 13839s E It is recommended to use `setuptools < 60.0` for those Python versions. 13839s E For more details, see: 13839s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13839s E 13839s E 13839s E from numpy.distutils.core import setup 13839s E running build_ext 13839s E running build_src 13839s E INFO: build_src 13839s E INFO: building extension "test_array_from_pyobj_ext" sources 13839s E INFO: build_src: building npy-pkg config files 13839s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13839s E !! 13839s E 13839s E ******************************************************************************** 13839s E Please avoid running ``setup.py`` directly. 13839s E Instead, use pypa/build, pypa/installer or other 13839s E standards-based tools. 13839s E 13839s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13839s E ******************************************************************************** 13839s E 13839s E !! 13839s E self.initialize_options() 13839s E INFO: customize UnixCCompiler 13839s E INFO: customize UnixCCompiler using build_ext 13839s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/tmp 13839s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/usr 13839s E creating /tmp/tmppq19o2st/usr/lib 13839s E creating /tmp/tmppq19o2st/usr/lib/python3 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=native' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-O3' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-Werror' 13839s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13839s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-vfpv4' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=armv8.2-a+fp16' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13839s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13839s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13839s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13839s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13839s E INFO: building 'test_array_from_pyobj_ext' extension 13839s E INFO: compiling C sources 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13839s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13839s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13839s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13839s E 14 | #include 13839s E | ^~~~~~~~~~ 13839s E In file included from fortranobject.c:2: 13839s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13839s E 7 | #include 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E compilation terminated. 13839s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13839s E INFO: 13839s E ########### EXT COMPILER OPTIMIZATION ########### 13839s E INFO: Platform : 13839s E Architecture: armhf 13839s E Compiler : gcc 13839s E 13839s E CPU baseline : 13839s E Requested : 'min' 13839s E Enabled : none 13839s E Flags : none 13839s E Extra checks: none 13839s E 13839s E CPU dispatch : 13839s E Requested : 'max -xop -fma4' 13839s E Enabled : none 13839s E Generated : none 13839s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13839s 13839s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13839s d = '/tmp/tmpjj8q074z' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s err = None 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s kw = {} 13839s module_name = 'test_array_from_pyobj_ext' 13839s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13839s p = 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13839s ___________ ERROR at setup of TestSharedMemory.test_inplace[STRING5] ___________ 13839s 13839s def setup_module(): 13839s """ 13839s Build the required testing extension module 13839s 13839s """ 13839s global wrap 13839s 13839s # Check compiler availability first 13839s if not util.has_c_compiler(): 13839s pytest.skip("No C compiler available") 13839s 13839s if wrap is None: 13839s config_code = """ 13839s config.add_extension('test_array_from_pyobj_ext', 13839s sources=['wrapmodule.c', 'fortranobject.c'], 13839s define_macros=[]) 13839s """ 13839s d = os.path.dirname(__file__) 13839s src = [ 13839s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13839s util.getpath("src", "fortranobject.c"), 13839s util.getpath("src", "fortranobject.h"), 13839s ] 13839s > wrap = util.build_module_distutils(src, config_code, 13839s "test_array_from_pyobj_ext") 13839s 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13839s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13839s memo[key] = func(*a, **kw) 13839s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13839s func = 13839s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13839s kw = {} 13839s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s 13839s @_memoize 13839s def build_module_distutils(source_files, config_code, module_name, **kw): 13839s """ 13839s Build a module via distutils and import it. 13839s 13839s """ 13839s d = get_module_dir() 13839s 13839s # Copy files 13839s dst_sources = [] 13839s for fn in source_files: 13839s if not os.path.isfile(fn): 13839s raise RuntimeError("%s is not a file" % fn) 13839s dst = os.path.join(d, os.path.basename(fn)) 13839s shutil.copyfile(fn, dst) 13839s dst_sources.append(dst) 13839s 13839s # Build script 13839s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13839s 13839s code = fr""" 13839s import os 13839s import sys 13839s sys.path = {repr(sys.path)} 13839s 13839s def configuration(parent_name='',top_path=None): 13839s from numpy.distutils.misc_util import Configuration 13839s config = Configuration('', parent_name, top_path) 13839s {config_code} 13839s return config 13839s 13839s if __name__ == "__main__": 13839s from numpy.distutils.core import setup 13839s setup(configuration=configuration) 13839s """ 13839s script = os.path.join(d, get_temp_module_name() + ".py") 13839s dst_sources.append(script) 13839s with open(script, "wb") as f: 13839s f.write(asbytes(code)) 13839s 13839s # Build 13839s cwd = os.getcwd() 13839s try: 13839s os.chdir(d) 13839s cmd = [sys.executable, script, "build_ext", "-i"] 13839s p = subprocess.Popen(cmd, 13839s stdout=subprocess.PIPE, 13839s stderr=subprocess.STDOUT) 13839s out, err = p.communicate() 13839s if p.returncode != 0: 13839s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13839s (cmd[4:], asstr(out))) 13839s E RuntimeError: Running distutils build failed: [] 13839s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13839s E 13839s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13839s E of the deprecation of `distutils` itself. It will be removed for 13839s E Python >= 3.12. For older Python versions it will remain present. 13839s E It is recommended to use `setuptools < 60.0` for those Python versions. 13839s E For more details, see: 13839s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13839s E 13839s E 13839s E from numpy.distutils.core import setup 13839s E running build_ext 13839s E running build_src 13839s E INFO: build_src 13839s E INFO: building extension "test_array_from_pyobj_ext" sources 13839s E INFO: build_src: building npy-pkg config files 13839s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13839s E !! 13839s E 13839s E ******************************************************************************** 13839s E Please avoid running ``setup.py`` directly. 13839s E Instead, use pypa/build, pypa/installer or other 13839s E standards-based tools. 13839s E 13839s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13839s E ******************************************************************************** 13839s E 13839s E !! 13839s E self.initialize_options() 13839s E INFO: customize UnixCCompiler 13839s E INFO: customize UnixCCompiler using build_ext 13839s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/tmp 13839s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/usr 13839s E creating /tmp/tmppq19o2st/usr/lib 13839s E creating /tmp/tmppq19o2st/usr/lib/python3 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=native' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-O3' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-Werror' 13839s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13839s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-vfpv4' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=armv8.2-a+fp16' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13839s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13839s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13839s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13839s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13839s E INFO: building 'test_array_from_pyobj_ext' extension 13839s E INFO: compiling C sources 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13839s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13839s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13839s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13839s E 14 | #include 13839s E | ^~~~~~~~~~ 13839s E In file included from fortranobject.c:2: 13839s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13839s E 7 | #include 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E compilation terminated. 13839s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13839s E INFO: 13839s E ########### EXT COMPILER OPTIMIZATION ########### 13839s E INFO: Platform : 13839s E Architecture: armhf 13839s E Compiler : gcc 13839s E 13839s E CPU baseline : 13839s E Requested : 'min' 13839s E Enabled : none 13839s E Flags : none 13839s E Extra checks: none 13839s E 13839s E CPU dispatch : 13839s E Requested : 'max -xop -fma4' 13839s E Enabled : none 13839s E Generated : none 13839s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13839s 13839s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13839s d = '/tmp/tmpjj8q074z' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s err = None 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s kw = {} 13839s module_name = 'test_array_from_pyobj_ext' 13839s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13839s p = 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13839s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[STRING5] ____ 13839s 13839s def setup_module(): 13839s """ 13839s Build the required testing extension module 13839s 13839s """ 13839s global wrap 13839s 13839s # Check compiler availability first 13839s if not util.has_c_compiler(): 13839s pytest.skip("No C compiler available") 13839s 13839s if wrap is None: 13839s config_code = """ 13839s config.add_extension('test_array_from_pyobj_ext', 13839s sources=['wrapmodule.c', 'fortranobject.c'], 13839s define_macros=[]) 13839s """ 13839s d = os.path.dirname(__file__) 13839s src = [ 13839s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13839s util.getpath("src", "fortranobject.c"), 13839s util.getpath("src", "fortranobject.h"), 13839s ] 13839s > wrap = util.build_module_distutils(src, config_code, 13839s "test_array_from_pyobj_ext") 13839s 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13839s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13839s memo[key] = func(*a, **kw) 13839s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13839s func = 13839s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13839s kw = {} 13839s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s 13839s @_memoize 13839s def build_module_distutils(source_files, config_code, module_name, **kw): 13839s """ 13839s Build a module via distutils and import it. 13839s 13839s """ 13839s d = get_module_dir() 13839s 13839s # Copy files 13839s dst_sources = [] 13839s for fn in source_files: 13839s if not os.path.isfile(fn): 13839s raise RuntimeError("%s is not a file" % fn) 13839s dst = os.path.join(d, os.path.basename(fn)) 13839s shutil.copyfile(fn, dst) 13839s dst_sources.append(dst) 13839s 13839s # Build script 13839s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13839s 13839s code = fr""" 13839s import os 13839s import sys 13839s sys.path = {repr(sys.path)} 13839s 13839s def configuration(parent_name='',top_path=None): 13839s from numpy.distutils.misc_util import Configuration 13839s config = Configuration('', parent_name, top_path) 13839s {config_code} 13839s return config 13839s 13839s if __name__ == "__main__": 13839s from numpy.distutils.core import setup 13839s setup(configuration=configuration) 13839s """ 13839s script = os.path.join(d, get_temp_module_name() + ".py") 13839s dst_sources.append(script) 13839s with open(script, "wb") as f: 13839s f.write(asbytes(code)) 13839s 13839s # Build 13839s cwd = os.getcwd() 13839s try: 13839s os.chdir(d) 13839s cmd = [sys.executable, script, "build_ext", "-i"] 13839s p = subprocess.Popen(cmd, 13839s stdout=subprocess.PIPE, 13839s stderr=subprocess.STDOUT) 13839s out, err = p.communicate() 13839s if p.returncode != 0: 13839s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13839s (cmd[4:], asstr(out))) 13839s E RuntimeError: Running distutils build failed: [] 13839s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13839s E 13839s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13839s E of the deprecation of `distutils` itself. It will be removed for 13839s E Python >= 3.12. For older Python versions it will remain present. 13839s E It is recommended to use `setuptools < 60.0` for those Python versions. 13839s E For more details, see: 13839s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13839s E 13839s E 13839s E from numpy.distutils.core import setup 13839s E running build_ext 13839s E running build_src 13839s E INFO: build_src 13839s E INFO: building extension "test_array_from_pyobj_ext" sources 13839s E INFO: build_src: building npy-pkg config files 13839s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13839s E !! 13839s E 13839s E ******************************************************************************** 13839s E Please avoid running ``setup.py`` directly. 13839s E Instead, use pypa/build, pypa/installer or other 13839s E standards-based tools. 13839s E 13839s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13839s E ******************************************************************************** 13839s E 13839s E !! 13839s E self.initialize_options() 13839s E INFO: customize UnixCCompiler 13839s E INFO: customize UnixCCompiler using build_ext 13839s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/tmp 13839s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/usr 13839s E creating /tmp/tmppq19o2st/usr/lib 13839s E creating /tmp/tmppq19o2st/usr/lib/python3 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=native' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-O3' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-Werror' 13839s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13839s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-vfpv4' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=armv8.2-a+fp16' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13839s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13839s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13839s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13839s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13839s E INFO: building 'test_array_from_pyobj_ext' extension 13839s E INFO: compiling C sources 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13839s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13839s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13839s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13839s E 14 | #include 13839s E | ^~~~~~~~~~ 13839s E In file included from fortranobject.c:2: 13839s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13839s E 7 | #include 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E compilation terminated. 13839s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13839s E INFO: 13839s E ########### EXT COMPILER OPTIMIZATION ########### 13839s E INFO: Platform : 13839s E Architecture: armhf 13839s E Compiler : gcc 13839s E 13839s E CPU baseline : 13839s E Requested : 'min' 13839s E Enabled : none 13839s E Flags : none 13839s E Extra checks: none 13839s E 13839s E CPU dispatch : 13839s E Requested : 'max -xop -fma4' 13839s E Enabled : none 13839s E Generated : none 13839s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13839s 13839s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13839s d = '/tmp/tmpjj8q074z' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s err = None 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s kw = {} 13839s module_name = 'test_array_from_pyobj_ext' 13839s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13839s p = 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13839s _______ ERROR at setup of TestSharedMemory.test_in_from_2seq[CHARACTER] ________ 13839s 13839s def setup_module(): 13839s """ 13839s Build the required testing extension module 13839s 13839s """ 13839s global wrap 13839s 13839s # Check compiler availability first 13839s if not util.has_c_compiler(): 13839s pytest.skip("No C compiler available") 13839s 13839s if wrap is None: 13839s config_code = """ 13839s config.add_extension('test_array_from_pyobj_ext', 13839s sources=['wrapmodule.c', 'fortranobject.c'], 13839s define_macros=[]) 13839s """ 13839s d = os.path.dirname(__file__) 13839s src = [ 13839s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13839s util.getpath("src", "fortranobject.c"), 13839s util.getpath("src", "fortranobject.h"), 13839s ] 13839s > wrap = util.build_module_distutils(src, config_code, 13839s "test_array_from_pyobj_ext") 13839s 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13839s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13839s memo[key] = func(*a, **kw) 13839s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13839s func = 13839s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13839s kw = {} 13839s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s 13839s @_memoize 13839s def build_module_distutils(source_files, config_code, module_name, **kw): 13839s """ 13839s Build a module via distutils and import it. 13839s 13839s """ 13839s d = get_module_dir() 13839s 13839s # Copy files 13839s dst_sources = [] 13839s for fn in source_files: 13839s if not os.path.isfile(fn): 13839s raise RuntimeError("%s is not a file" % fn) 13839s dst = os.path.join(d, os.path.basename(fn)) 13839s shutil.copyfile(fn, dst) 13839s dst_sources.append(dst) 13839s 13839s # Build script 13839s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13839s 13839s code = fr""" 13839s import os 13839s import sys 13839s sys.path = {repr(sys.path)} 13839s 13839s def configuration(parent_name='',top_path=None): 13839s from numpy.distutils.misc_util import Configuration 13839s config = Configuration('', parent_name, top_path) 13839s {config_code} 13839s return config 13839s 13839s if __name__ == "__main__": 13839s from numpy.distutils.core import setup 13839s setup(configuration=configuration) 13839s """ 13839s script = os.path.join(d, get_temp_module_name() + ".py") 13839s dst_sources.append(script) 13839s with open(script, "wb") as f: 13839s f.write(asbytes(code)) 13839s 13839s # Build 13839s cwd = os.getcwd() 13839s try: 13839s os.chdir(d) 13839s cmd = [sys.executable, script, "build_ext", "-i"] 13839s p = subprocess.Popen(cmd, 13839s stdout=subprocess.PIPE, 13839s stderr=subprocess.STDOUT) 13839s out, err = p.communicate() 13839s if p.returncode != 0: 13839s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13839s (cmd[4:], asstr(out))) 13839s E RuntimeError: Running distutils build failed: [] 13839s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13839s E 13839s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13839s E of the deprecation of `distutils` itself. It will be removed for 13839s E Python >= 3.12. For older Python versions it will remain present. 13839s E It is recommended to use `setuptools < 60.0` for those Python versions. 13839s E For more details, see: 13839s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13839s E 13839s E 13839s E from numpy.distutils.core import setup 13839s E running build_ext 13839s E running build_src 13839s E INFO: build_src 13839s E INFO: building extension "test_array_from_pyobj_ext" sources 13839s E INFO: build_src: building npy-pkg config files 13839s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13839s E !! 13839s E 13839s E ******************************************************************************** 13839s E Please avoid running ``setup.py`` directly. 13839s E Instead, use pypa/build, pypa/installer or other 13839s E standards-based tools. 13839s E 13839s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13839s E ******************************************************************************** 13839s E 13839s E !! 13839s E self.initialize_options() 13839s E INFO: customize UnixCCompiler 13839s E INFO: customize UnixCCompiler using build_ext 13839s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/tmp 13839s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/usr 13839s E creating /tmp/tmppq19o2st/usr/lib 13839s E creating /tmp/tmppq19o2st/usr/lib/python3 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=native' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-O3' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-Werror' 13839s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13839s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-vfpv4' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=armv8.2-a+fp16' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13839s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13839s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13839s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13839s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13839s E INFO: building 'test_array_from_pyobj_ext' extension 13839s E INFO: compiling C sources 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13839s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13839s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13839s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13839s E 14 | #include 13839s E | ^~~~~~~~~~ 13839s E In file included from fortranobject.c:2: 13839s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13839s E 7 | #include 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E compilation terminated. 13839s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13839s E INFO: 13839s E ########### EXT COMPILER OPTIMIZATION ########### 13839s E INFO: Platform : 13839s E Architecture: armhf 13839s E Compiler : gcc 13839s E 13839s E CPU baseline : 13839s E Requested : 'min' 13839s E Enabled : none 13839s E Flags : none 13839s E Extra checks: none 13839s E 13839s E CPU dispatch : 13839s E Requested : 'max -xop -fma4' 13839s E Enabled : none 13839s E Generated : none 13839s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13839s 13839s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13839s d = '/tmp/tmpjj8q074z' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s err = None 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s kw = {} 13839s module_name = 'test_array_from_pyobj_ext' 13839s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13839s p = 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13839s _____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[CHARACTER] _____ 13839s 13839s def setup_module(): 13839s """ 13839s Build the required testing extension module 13839s 13839s """ 13839s global wrap 13839s 13839s # Check compiler availability first 13839s if not util.has_c_compiler(): 13839s pytest.skip("No C compiler available") 13839s 13839s if wrap is None: 13839s config_code = """ 13839s config.add_extension('test_array_from_pyobj_ext', 13839s sources=['wrapmodule.c', 'fortranobject.c'], 13839s define_macros=[]) 13839s """ 13839s d = os.path.dirname(__file__) 13839s src = [ 13839s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13839s util.getpath("src", "fortranobject.c"), 13839s util.getpath("src", "fortranobject.h"), 13839s ] 13839s > wrap = util.build_module_distutils(src, config_code, 13839s "test_array_from_pyobj_ext") 13839s 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13839s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13839s memo[key] = func(*a, **kw) 13839s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13839s func = 13839s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13839s kw = {} 13839s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13839s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13839s 13839s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13839s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13839s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13839s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13839s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13839s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13839s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13839s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13839s 13839s @_memoize 13839s def build_module_distutils(source_files, config_code, module_name, **kw): 13839s """ 13839s Build a module via distutils and import it. 13839s 13839s """ 13839s d = get_module_dir() 13839s 13839s # Copy files 13839s dst_sources = [] 13839s for fn in source_files: 13839s if not os.path.isfile(fn): 13839s raise RuntimeError("%s is not a file" % fn) 13839s dst = os.path.join(d, os.path.basename(fn)) 13839s shutil.copyfile(fn, dst) 13839s dst_sources.append(dst) 13839s 13839s # Build script 13839s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13839s 13839s code = fr""" 13839s import os 13839s import sys 13839s sys.path = {repr(sys.path)} 13839s 13839s def configuration(parent_name='',top_path=None): 13839s from numpy.distutils.misc_util import Configuration 13839s config = Configuration('', parent_name, top_path) 13839s {config_code} 13839s return config 13839s 13839s if __name__ == "__main__": 13839s from numpy.distutils.core import setup 13839s setup(configuration=configuration) 13839s """ 13839s script = os.path.join(d, get_temp_module_name() + ".py") 13839s dst_sources.append(script) 13839s with open(script, "wb") as f: 13839s f.write(asbytes(code)) 13839s 13839s # Build 13839s cwd = os.getcwd() 13839s try: 13839s os.chdir(d) 13839s cmd = [sys.executable, script, "build_ext", "-i"] 13839s p = subprocess.Popen(cmd, 13839s stdout=subprocess.PIPE, 13839s stderr=subprocess.STDOUT) 13839s out, err = p.communicate() 13839s if p.returncode != 0: 13839s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13839s (cmd[4:], asstr(out))) 13839s E RuntimeError: Running distutils build failed: [] 13839s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13839s E 13839s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13839s E of the deprecation of `distutils` itself. It will be removed for 13839s E Python >= 3.12. For older Python versions it will remain present. 13839s E It is recommended to use `setuptools < 60.0` for those Python versions. 13839s E For more details, see: 13839s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13839s E 13839s E 13839s E from numpy.distutils.core import setup 13839s E running build_ext 13839s E running build_src 13839s E INFO: build_src 13839s E INFO: building extension "test_array_from_pyobj_ext" sources 13839s E INFO: build_src: building npy-pkg config files 13839s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13839s E !! 13839s E 13839s E ******************************************************************************** 13839s E Please avoid running ``setup.py`` directly. 13839s E Instead, use pypa/build, pypa/installer or other 13839s E standards-based tools. 13839s E 13839s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13839s E ******************************************************************************** 13839s E 13839s E !! 13839s E self.initialize_options() 13839s E INFO: customize UnixCCompiler 13839s E INFO: customize UnixCCompiler using build_ext 13839s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/tmp 13839s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E creating /tmp/tmppq19o2st/usr 13839s E creating /tmp/tmppq19o2st/usr/lib 13839s E creating /tmp/tmppq19o2st/usr/lib/python3 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13839s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=native' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-O3' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-Werror' 13839s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13839s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-vfpv4' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13839s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-march=armv8.2-a+fp16' 13839s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13839s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13839s E 13839s E INFO: compile options: '-I/usr/include/python3.12 -c' 13839s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13839s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13839s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13839s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13839s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13839s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13839s E 9 | # include_next 13839s E | ^~~~~~~~~~ 13839s E compilation terminated. 13839s E 13839s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13839s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-2seq-C-w] _____ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-vfpv4' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=armv8.2-a+fp16' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-2seq-C-ro] ____ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-vfpv4' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=armv8.2-a+fp16' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-2seq-F-w] _____ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-vfpv4' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=armv8.2-a+fp16' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-2seq-F-ro] ____ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-vfpv4' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=armv8.2-a+fp16' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-23seq-C-w] ____ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-vfpv4' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=armv8.2-a+fp16' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-23seq-C-ro] ____ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-vfpv4' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=armv8.2-a+fp16' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-23seq-F-w] ____ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-vfpv4' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=armv8.2-a+fp16' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CHARACTER-23seq-F-ro] ____ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-vfpv4' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=armv8.2-a+fp16' 13840s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13840s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13840s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13840s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13840s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13840s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13840s E 9 | # include_next 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E 13840s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13840s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13840s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13840s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13840s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13840s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13840s E INFO: building 'test_array_from_pyobj_ext' extension 13840s E INFO: compiling C sources 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13840s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13840s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13840s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13840s E 14 | #include 13840s E | ^~~~~~~~~~ 13840s E In file included from fortranobject.c:2: 13840s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13840s E 7 | #include 13840s E | ^~~~~~~~~~ 13840s E compilation terminated. 13840s E compilation terminated. 13840s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13840s E INFO: 13840s E ########### EXT COMPILER OPTIMIZATION ########### 13840s E INFO: Platform : 13840s E Architecture: armhf 13840s E Compiler : gcc 13840s E 13840s E CPU baseline : 13840s E Requested : 'min' 13840s E Enabled : none 13840s E Flags : none 13840s E Extra checks: none 13840s E 13840s E CPU dispatch : 13840s E Requested : 'max -xop -fma4' 13840s E Enabled : none 13840s E Generated : none 13840s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13840s 13840s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13840s d = '/tmp/tmpjj8q074z' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s err = None 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s kw = {} 13840s module_name = 'test_array_from_pyobj_ext' 13840s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13840s p = 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13840s ________ ERROR at setup of TestSharedMemory.test_inout_2seq[CHARACTER] _________ 13840s 13840s def setup_module(): 13840s """ 13840s Build the required testing extension module 13840s 13840s """ 13840s global wrap 13840s 13840s # Check compiler availability first 13840s if not util.has_c_compiler(): 13840s pytest.skip("No C compiler available") 13840s 13840s if wrap is None: 13840s config_code = """ 13840s config.add_extension('test_array_from_pyobj_ext', 13840s sources=['wrapmodule.c', 'fortranobject.c'], 13840s define_macros=[]) 13840s """ 13840s d = os.path.dirname(__file__) 13840s src = [ 13840s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13840s util.getpath("src", "fortranobject.c"), 13840s util.getpath("src", "fortranobject.h"), 13840s ] 13840s > wrap = util.build_module_distutils(src, config_code, 13840s "test_array_from_pyobj_ext") 13840s 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13840s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13840s memo[key] = func(*a, **kw) 13840s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13840s func = 13840s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13840s kw = {} 13840s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13840s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13840s 13840s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13840s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13840s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13840s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13840s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13840s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13840s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13840s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13840s 13840s @_memoize 13840s def build_module_distutils(source_files, config_code, module_name, **kw): 13840s """ 13840s Build a module via distutils and import it. 13840s 13840s """ 13840s d = get_module_dir() 13840s 13840s # Copy files 13840s dst_sources = [] 13840s for fn in source_files: 13840s if not os.path.isfile(fn): 13840s raise RuntimeError("%s is not a file" % fn) 13840s dst = os.path.join(d, os.path.basename(fn)) 13840s shutil.copyfile(fn, dst) 13840s dst_sources.append(dst) 13840s 13840s # Build script 13840s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13840s 13840s code = fr""" 13840s import os 13840s import sys 13840s sys.path = {repr(sys.path)} 13840s 13840s def configuration(parent_name='',top_path=None): 13840s from numpy.distutils.misc_util import Configuration 13840s config = Configuration('', parent_name, top_path) 13840s {config_code} 13840s return config 13840s 13840s if __name__ == "__main__": 13840s from numpy.distutils.core import setup 13840s setup(configuration=configuration) 13840s """ 13840s script = os.path.join(d, get_temp_module_name() + ".py") 13840s dst_sources.append(script) 13840s with open(script, "wb") as f: 13840s f.write(asbytes(code)) 13840s 13840s # Build 13840s cwd = os.getcwd() 13840s try: 13840s os.chdir(d) 13840s cmd = [sys.executable, script, "build_ext", "-i"] 13840s p = subprocess.Popen(cmd, 13840s stdout=subprocess.PIPE, 13840s stderr=subprocess.STDOUT) 13840s out, err = p.communicate() 13840s if p.returncode != 0: 13840s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13840s (cmd[4:], asstr(out))) 13840s E RuntimeError: Running distutils build failed: [] 13840s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13840s E 13840s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13840s E of the deprecation of `distutils` itself. It will be removed for 13840s E Python >= 3.12. For older Python versions it will remain present. 13840s E It is recommended to use `setuptools < 60.0` for those Python versions. 13840s E For more details, see: 13840s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13840s E 13840s E 13840s E from numpy.distutils.core import setup 13840s E running build_ext 13840s E running build_src 13840s E INFO: build_src 13840s E INFO: building extension "test_array_from_pyobj_ext" sources 13840s E INFO: build_src: building npy-pkg config files 13840s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13840s E !! 13840s E 13840s E ******************************************************************************** 13840s E Please avoid running ``setup.py`` directly. 13840s E Instead, use pypa/build, pypa/installer or other 13840s E standards-based tools. 13840s E 13840s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13840s E ******************************************************************************** 13840s E 13840s E !! 13840s E self.initialize_options() 13840s E INFO: customize UnixCCompiler 13840s E INFO: customize UnixCCompiler using build_ext 13840s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/tmp 13840s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E creating /tmp/tmppq19o2st/usr 13840s E creating /tmp/tmppq19o2st/usr/lib 13840s E creating /tmp/tmppq19o2st/usr/lib/python3 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13840s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-march=native' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-O3' 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13840s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13840s E 13840s E INFO: compile options: '-I/usr/include/python3.12 -c' 13840s E extra options: '-Werror' 13840s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13840s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13840s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s _______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[CHARACTER] _______ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13841s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13841s 13841s code = fr""" 13841s import os 13841s import sys 13841s sys.path = {repr(sys.path)} 13841s 13841s def configuration(parent_name='',top_path=None): 13841s from numpy.distutils.misc_util import Configuration 13841s config = Configuration('', parent_name, top_path) 13841s {config_code} 13841s return config 13841s 13841s if __name__ == "__main__": 13841s from numpy.distutils.core import setup 13841s setup(configuration=configuration) 13841s """ 13841s script = os.path.join(d, get_temp_module_name() + ".py") 13841s dst_sources.append(script) 13841s with open(script, "wb") as f: 13841s f.write(asbytes(code)) 13841s 13841s # Build 13841s cwd = os.getcwd() 13841s try: 13841s os.chdir(d) 13841s cmd = [sys.executable, script, "build_ext", "-i"] 13841s p = subprocess.Popen(cmd, 13841s stdout=subprocess.PIPE, 13841s stderr=subprocess.STDOUT) 13841s out, err = p.communicate() 13841s if p.returncode != 0: 13841s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13841s (cmd[4:], asstr(out))) 13841s E RuntimeError: Running distutils build failed: [] 13841s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13841s E 13841s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13841s E of the deprecation of `distutils` itself. It will be removed for 13841s E Python >= 3.12. For older Python versions it will remain present. 13841s E It is recommended to use `setuptools < 60.0` for those Python versions. 13841s E For more details, see: 13841s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13841s E 13841s E 13841s E from numpy.distutils.core import setup 13841s E running build_ext 13841s E running build_src 13841s E INFO: build_src 13841s E INFO: building extension "test_array_from_pyobj_ext" sources 13841s E INFO: build_src: building npy-pkg config files 13841s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13841s E !! 13841s E 13841s E ******************************************************************************** 13841s E Please avoid running ``setup.py`` directly. 13841s E Instead, use pypa/build, pypa/installer or other 13841s E standards-based tools. 13841s E 13841s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13841s E ******************************************************************************** 13841s E 13841s E !! 13841s E self.initialize_options() 13841s E INFO: customize UnixCCompiler 13841s E INFO: customize UnixCCompiler using build_ext 13841s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/tmp 13841s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/usr 13841s E creating /tmp/tmppq19o2st/usr/lib 13841s E creating /tmp/tmppq19o2st/usr/lib/python3 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=native' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-O3' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-Werror' 13841s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13841s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s _______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[CHARACTER] _______ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13841s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13841s 13841s code = fr""" 13841s import os 13841s import sys 13841s sys.path = {repr(sys.path)} 13841s 13841s def configuration(parent_name='',top_path=None): 13841s from numpy.distutils.misc_util import Configuration 13841s config = Configuration('', parent_name, top_path) 13841s {config_code} 13841s return config 13841s 13841s if __name__ == "__main__": 13841s from numpy.distutils.core import setup 13841s setup(configuration=configuration) 13841s """ 13841s script = os.path.join(d, get_temp_module_name() + ".py") 13841s dst_sources.append(script) 13841s with open(script, "wb") as f: 13841s f.write(asbytes(code)) 13841s 13841s # Build 13841s cwd = os.getcwd() 13841s try: 13841s os.chdir(d) 13841s cmd = [sys.executable, script, "build_ext", "-i"] 13841s p = subprocess.Popen(cmd, 13841s stdout=subprocess.PIPE, 13841s stderr=subprocess.STDOUT) 13841s out, err = p.communicate() 13841s if p.returncode != 0: 13841s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13841s (cmd[4:], asstr(out))) 13841s E RuntimeError: Running distutils build failed: [] 13841s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13841s E 13841s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13841s E of the deprecation of `distutils` itself. It will be removed for 13841s E Python >= 3.12. For older Python versions it will remain present. 13841s E It is recommended to use `setuptools < 60.0` for those Python versions. 13841s E For more details, see: 13841s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13841s E 13841s E 13841s E from numpy.distutils.core import setup 13841s E running build_ext 13841s E running build_src 13841s E INFO: build_src 13841s E INFO: building extension "test_array_from_pyobj_ext" sources 13841s E INFO: build_src: building npy-pkg config files 13841s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13841s E !! 13841s E 13841s E ******************************************************************************** 13841s E Please avoid running ``setup.py`` directly. 13841s E Instead, use pypa/build, pypa/installer or other 13841s E standards-based tools. 13841s E 13841s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13841s E ******************************************************************************** 13841s E 13841s E !! 13841s E self.initialize_options() 13841s E INFO: customize UnixCCompiler 13841s E INFO: customize UnixCCompiler using build_ext 13841s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/tmp 13841s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/usr 13841s E creating /tmp/tmppq19o2st/usr/lib 13841s E creating /tmp/tmppq19o2st/usr/lib/python3 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=native' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-O3' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-Werror' 13841s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13841s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s __ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[CHARACTER] ___ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13841s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13841s 13841s code = fr""" 13841s import os 13841s import sys 13841s sys.path = {repr(sys.path)} 13841s 13841s def configuration(parent_name='',top_path=None): 13841s from numpy.distutils.misc_util import Configuration 13841s config = Configuration('', parent_name, top_path) 13841s {config_code} 13841s return config 13841s 13841s if __name__ == "__main__": 13841s from numpy.distutils.core import setup 13841s setup(configuration=configuration) 13841s """ 13841s script = os.path.join(d, get_temp_module_name() + ".py") 13841s dst_sources.append(script) 13841s with open(script, "wb") as f: 13841s f.write(asbytes(code)) 13841s 13841s # Build 13841s cwd = os.getcwd() 13841s try: 13841s os.chdir(d) 13841s cmd = [sys.executable, script, "build_ext", "-i"] 13841s p = subprocess.Popen(cmd, 13841s stdout=subprocess.PIPE, 13841s stderr=subprocess.STDOUT) 13841s out, err = p.communicate() 13841s if p.returncode != 0: 13841s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13841s (cmd[4:], asstr(out))) 13841s E RuntimeError: Running distutils build failed: [] 13841s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13841s E 13841s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13841s E of the deprecation of `distutils` itself. It will be removed for 13841s E Python >= 3.12. For older Python versions it will remain present. 13841s E It is recommended to use `setuptools < 60.0` for those Python versions. 13841s E For more details, see: 13841s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13841s E 13841s E 13841s E from numpy.distutils.core import setup 13841s E running build_ext 13841s E running build_src 13841s E INFO: build_src 13841s E INFO: building extension "test_array_from_pyobj_ext" sources 13841s E INFO: build_src: building npy-pkg config files 13841s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13841s E !! 13841s E 13841s E ******************************************************************************** 13841s E Please avoid running ``setup.py`` directly. 13841s E Instead, use pypa/build, pypa/installer or other 13841s E standards-based tools. 13841s E 13841s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13841s E ******************************************************************************** 13841s E 13841s E !! 13841s E self.initialize_options() 13841s E INFO: customize UnixCCompiler 13841s E INFO: customize UnixCCompiler using build_ext 13841s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/tmp 13841s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/usr 13841s E creating /tmp/tmppq19o2st/usr/lib 13841s E creating /tmp/tmppq19o2st/usr/lib/python3 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=native' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-O3' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-Werror' 13841s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13841s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s ______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[CHARACTER] ______ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13841s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13841s 13841s code = fr""" 13841s import os 13841s import sys 13841s sys.path = {repr(sys.path)} 13841s 13841s def configuration(parent_name='',top_path=None): 13841s from numpy.distutils.misc_util import Configuration 13841s config = Configuration('', parent_name, top_path) 13841s {config_code} 13841s return config 13841s 13841s if __name__ == "__main__": 13841s from numpy.distutils.core import setup 13841s setup(configuration=configuration) 13841s """ 13841s script = os.path.join(d, get_temp_module_name() + ".py") 13841s dst_sources.append(script) 13841s with open(script, "wb") as f: 13841s f.write(asbytes(code)) 13841s 13841s # Build 13841s cwd = os.getcwd() 13841s try: 13841s os.chdir(d) 13841s cmd = [sys.executable, script, "build_ext", "-i"] 13841s p = subprocess.Popen(cmd, 13841s stdout=subprocess.PIPE, 13841s stderr=subprocess.STDOUT) 13841s out, err = p.communicate() 13841s if p.returncode != 0: 13841s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13841s (cmd[4:], asstr(out))) 13841s E RuntimeError: Running distutils build failed: [] 13841s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13841s E 13841s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13841s E of the deprecation of `distutils` itself. It will be removed for 13841s E Python >= 3.12. For older Python versions it will remain present. 13841s E It is recommended to use `setuptools < 60.0` for those Python versions. 13841s E For more details, see: 13841s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13841s E 13841s E 13841s E from numpy.distutils.core import setup 13841s E running build_ext 13841s E running build_src 13841s E INFO: build_src 13841s E INFO: building extension "test_array_from_pyobj_ext" sources 13841s E INFO: build_src: building npy-pkg config files 13841s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13841s E !! 13841s E 13841s E ******************************************************************************** 13841s E Please avoid running ``setup.py`` directly. 13841s E Instead, use pypa/build, pypa/installer or other 13841s E standards-based tools. 13841s E 13841s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13841s E ******************************************************************************** 13841s E 13841s E !! 13841s E self.initialize_options() 13841s E INFO: customize UnixCCompiler 13841s E INFO: customize UnixCCompiler using build_ext 13841s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/tmp 13841s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/usr 13841s E creating /tmp/tmppq19o2st/usr/lib 13841s E creating /tmp/tmppq19o2st/usr/lib/python3 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=native' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-O3' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-Werror' 13841s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13841s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s ____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[CHARACTER] _____ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13841s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13841s 13841s code = fr""" 13841s import os 13841s import sys 13841s sys.path = {repr(sys.path)} 13841s 13841s def configuration(parent_name='',top_path=None): 13841s from numpy.distutils.misc_util import Configuration 13841s config = Configuration('', parent_name, top_path) 13841s {config_code} 13841s return config 13841s 13841s if __name__ == "__main__": 13841s from numpy.distutils.core import setup 13841s setup(configuration=configuration) 13841s """ 13841s script = os.path.join(d, get_temp_module_name() + ".py") 13841s dst_sources.append(script) 13841s with open(script, "wb") as f: 13841s f.write(asbytes(code)) 13841s 13841s # Build 13841s cwd = os.getcwd() 13841s try: 13841s os.chdir(d) 13841s cmd = [sys.executable, script, "build_ext", "-i"] 13841s p = subprocess.Popen(cmd, 13841s stdout=subprocess.PIPE, 13841s stderr=subprocess.STDOUT) 13841s out, err = p.communicate() 13841s if p.returncode != 0: 13841s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13841s (cmd[4:], asstr(out))) 13841s E RuntimeError: Running distutils build failed: [] 13841s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13841s E 13841s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13841s E of the deprecation of `distutils` itself. It will be removed for 13841s E Python >= 3.12. For older Python versions it will remain present. 13841s E It is recommended to use `setuptools < 60.0` for those Python versions. 13841s E For more details, see: 13841s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13841s E 13841s E 13841s E from numpy.distutils.core import setup 13841s E running build_ext 13841s E running build_src 13841s E INFO: build_src 13841s E INFO: building extension "test_array_from_pyobj_ext" sources 13841s E INFO: build_src: building npy-pkg config files 13841s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13841s E !! 13841s E 13841s E ******************************************************************************** 13841s E Please avoid running ``setup.py`` directly. 13841s E Instead, use pypa/build, pypa/installer or other 13841s E standards-based tools. 13841s E 13841s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13841s E ******************************************************************************** 13841s E 13841s E !! 13841s E self.initialize_options() 13841s E INFO: customize UnixCCompiler 13841s E INFO: customize UnixCCompiler using build_ext 13841s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/tmp 13841s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/usr 13841s E creating /tmp/tmppq19o2st/usr/lib 13841s E creating /tmp/tmppq19o2st/usr/lib/python3 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=native' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-O3' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-Werror' 13841s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13841s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s ___ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[CHARACTER] ____ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13841s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13841s 13841s code = fr""" 13841s import os 13841s import sys 13841s sys.path = {repr(sys.path)} 13841s 13841s def configuration(parent_name='',top_path=None): 13841s from numpy.distutils.misc_util import Configuration 13841s config = Configuration('', parent_name, top_path) 13841s {config_code} 13841s return config 13841s 13841s if __name__ == "__main__": 13841s from numpy.distutils.core import setup 13841s setup(configuration=configuration) 13841s """ 13841s script = os.path.join(d, get_temp_module_name() + ".py") 13841s dst_sources.append(script) 13841s with open(script, "wb") as f: 13841s f.write(asbytes(code)) 13841s 13841s # Build 13841s cwd = os.getcwd() 13841s try: 13841s os.chdir(d) 13841s cmd = [sys.executable, script, "build_ext", "-i"] 13841s p = subprocess.Popen(cmd, 13841s stdout=subprocess.PIPE, 13841s stderr=subprocess.STDOUT) 13841s out, err = p.communicate() 13841s if p.returncode != 0: 13841s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13841s (cmd[4:], asstr(out))) 13841s E RuntimeError: Running distutils build failed: [] 13841s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13841s E 13841s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13841s E of the deprecation of `distutils` itself. It will be removed for 13841s E Python >= 3.12. For older Python versions it will remain present. 13841s E It is recommended to use `setuptools < 60.0` for those Python versions. 13841s E For more details, see: 13841s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13841s E 13841s E 13841s E from numpy.distutils.core import setup 13841s E running build_ext 13841s E running build_src 13841s E INFO: build_src 13841s E INFO: building extension "test_array_from_pyobj_ext" sources 13841s E INFO: build_src: building npy-pkg config files 13841s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13841s E !! 13841s E 13841s E ******************************************************************************** 13841s E Please avoid running ``setup.py`` directly. 13841s E Instead, use pypa/build, pypa/installer or other 13841s E standards-based tools. 13841s E 13841s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13841s E ******************************************************************************** 13841s E 13841s E !! 13841s E self.initialize_options() 13841s E INFO: customize UnixCCompiler 13841s E INFO: customize UnixCCompiler using build_ext 13841s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/tmp 13841s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/usr 13841s E creating /tmp/tmppq19o2st/usr/lib 13841s E creating /tmp/tmppq19o2st/usr/lib/python3 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=native' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-O3' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-Werror' 13841s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13841s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s ___ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[CHARACTER] ____ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13841s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13841s 13841s code = fr""" 13841s import os 13841s import sys 13841s sys.path = {repr(sys.path)} 13841s 13841s def configuration(parent_name='',top_path=None): 13841s from numpy.distutils.misc_util import Configuration 13841s config = Configuration('', parent_name, top_path) 13841s {config_code} 13841s return config 13841s 13841s if __name__ == "__main__": 13841s from numpy.distutils.core import setup 13841s setup(configuration=configuration) 13841s """ 13841s script = os.path.join(d, get_temp_module_name() + ".py") 13841s dst_sources.append(script) 13841s with open(script, "wb") as f: 13841s f.write(asbytes(code)) 13841s 13841s # Build 13841s cwd = os.getcwd() 13841s try: 13841s os.chdir(d) 13841s cmd = [sys.executable, script, "build_ext", "-i"] 13841s p = subprocess.Popen(cmd, 13841s stdout=subprocess.PIPE, 13841s stderr=subprocess.STDOUT) 13841s out, err = p.communicate() 13841s if p.returncode != 0: 13841s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13841s (cmd[4:], asstr(out))) 13841s E RuntimeError: Running distutils build failed: [] 13841s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13841s E 13841s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13841s E of the deprecation of `distutils` itself. It will be removed for 13841s E Python >= 3.12. For older Python versions it will remain present. 13841s E It is recommended to use `setuptools < 60.0` for those Python versions. 13841s E For more details, see: 13841s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13841s E 13841s E 13841s E from numpy.distutils.core import setup 13841s E running build_ext 13841s E running build_src 13841s E INFO: build_src 13841s E INFO: building extension "test_array_from_pyobj_ext" sources 13841s E INFO: build_src: building npy-pkg config files 13841s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13841s E !! 13841s E 13841s E ******************************************************************************** 13841s E Please avoid running ``setup.py`` directly. 13841s E Instead, use pypa/build, pypa/installer or other 13841s E standards-based tools. 13841s E 13841s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13841s E ******************************************************************************** 13841s E 13841s E !! 13841s E self.initialize_options() 13841s E INFO: customize UnixCCompiler 13841s E INFO: customize UnixCCompiler using build_ext 13841s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/tmp 13841s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/usr 13841s E creating /tmp/tmppq19o2st/usr/lib 13841s E creating /tmp/tmppq19o2st/usr/lib/python3 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=native' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-O3' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-Werror' 13841s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13841s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[CHARACTER] _ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13841s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13841s 13841s code = fr""" 13841s import os 13841s import sys 13841s sys.path = {repr(sys.path)} 13841s 13841s def configuration(parent_name='',top_path=None): 13841s from numpy.distutils.misc_util import Configuration 13841s config = Configuration('', parent_name, top_path) 13841s {config_code} 13841s return config 13841s 13841s if __name__ == "__main__": 13841s from numpy.distutils.core import setup 13841s setup(configuration=configuration) 13841s """ 13841s script = os.path.join(d, get_temp_module_name() + ".py") 13841s dst_sources.append(script) 13841s with open(script, "wb") as f: 13841s f.write(asbytes(code)) 13841s 13841s # Build 13841s cwd = os.getcwd() 13841s try: 13841s os.chdir(d) 13841s cmd = [sys.executable, script, "build_ext", "-i"] 13841s p = subprocess.Popen(cmd, 13841s stdout=subprocess.PIPE, 13841s stderr=subprocess.STDOUT) 13841s out, err = p.communicate() 13841s if p.returncode != 0: 13841s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13841s (cmd[4:], asstr(out))) 13841s E RuntimeError: Running distutils build failed: [] 13841s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13841s E 13841s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13841s E of the deprecation of `distutils` itself. It will be removed for 13841s E Python >= 3.12. For older Python versions it will remain present. 13841s E It is recommended to use `setuptools < 60.0` for those Python versions. 13841s E For more details, see: 13841s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13841s E 13841s E 13841s E from numpy.distutils.core import setup 13841s E running build_ext 13841s E running build_src 13841s E INFO: build_src 13841s E INFO: building extension "test_array_from_pyobj_ext" sources 13841s E INFO: build_src: building npy-pkg config files 13841s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13841s E !! 13841s E 13841s E ******************************************************************************** 13841s E Please avoid running ``setup.py`` directly. 13841s E Instead, use pypa/build, pypa/installer or other 13841s E standards-based tools. 13841s E 13841s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13841s E ******************************************************************************** 13841s E 13841s E !! 13841s E self.initialize_options() 13841s E INFO: customize UnixCCompiler 13841s E INFO: customize UnixCCompiler using build_ext 13841s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/tmp 13841s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E creating /tmp/tmppq19o2st/usr 13841s E creating /tmp/tmppq19o2st/usr/lib 13841s E creating /tmp/tmppq19o2st/usr/lib/python3 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13841s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=native' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-O3' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-Werror' 13841s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13841s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-vfpv4' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13841s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-march=armv8.2-a+fp16' 13841s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/include/python3.12 -c' 13841s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13841s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13841s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13841s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13841s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13841s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13841s E 9 | # include_next 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E 13841s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13841s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13841s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13841s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13841s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13841s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13841s E INFO: building 'test_array_from_pyobj_ext' extension 13841s E INFO: compiling C sources 13841s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13841s E 13841s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13841s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13841s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13841s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13841s E 14 | #include 13841s E | ^~~~~~~~~~ 13841s E In file included from fortranobject.c:2: 13841s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13841s E 7 | #include 13841s E | ^~~~~~~~~~ 13841s E compilation terminated. 13841s E compilation terminated. 13841s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13841s E INFO: 13841s E ########### EXT COMPILER OPTIMIZATION ########### 13841s E INFO: Platform : 13841s E Architecture: armhf 13841s E Compiler : gcc 13841s E 13841s E CPU baseline : 13841s E Requested : 'min' 13841s E Enabled : none 13841s E Flags : none 13841s E Extra checks: none 13841s E 13841s E CPU dispatch : 13841s E Requested : 'max -xop -fma4' 13841s E Enabled : none 13841s E Generated : none 13841s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13841s 13841s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13841s d = '/tmp/tmpjj8q074z' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s err = None 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s kw = {} 13841s module_name = 'test_array_from_pyobj_ext' 13841s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13841s p = 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13841s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[CHARACTER] _ 13841s 13841s def setup_module(): 13841s """ 13841s Build the required testing extension module 13841s 13841s """ 13841s global wrap 13841s 13841s # Check compiler availability first 13841s if not util.has_c_compiler(): 13841s pytest.skip("No C compiler available") 13841s 13841s if wrap is None: 13841s config_code = """ 13841s config.add_extension('test_array_from_pyobj_ext', 13841s sources=['wrapmodule.c', 'fortranobject.c'], 13841s define_macros=[]) 13841s """ 13841s d = os.path.dirname(__file__) 13841s src = [ 13841s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13841s util.getpath("src", "fortranobject.c"), 13841s util.getpath("src", "fortranobject.h"), 13841s ] 13841s > wrap = util.build_module_distutils(src, config_code, 13841s "test_array_from_pyobj_ext") 13841s 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13841s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13841s memo[key] = func(*a, **kw) 13841s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13841s func = 13841s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13841s kw = {} 13841s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13841s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13841s 13841s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13841s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13841s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13841s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13841s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13841s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13841s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13841s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13841s 13841s @_memoize 13841s def build_module_distutils(source_files, config_code, module_name, **kw): 13841s """ 13841s Build a module via distutils and import it. 13841s 13841s """ 13841s d = get_module_dir() 13841s 13841s # Copy files 13841s dst_sources = [] 13841s for fn in source_files: 13841s if not os.path.isfile(fn): 13841s raise RuntimeError("%s is not a file" % fn) 13841s dst = os.path.join(d, os.path.basename(fn)) 13841s shutil.copyfile(fn, dst) 13841s dst_sources.append(dst) 13841s 13841s # Build script 13842s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13842s 13842s code = fr""" 13842s import os 13842s import sys 13842s sys.path = {repr(sys.path)} 13842s 13842s def configuration(parent_name='',top_path=None): 13842s from numpy.distutils.misc_util import Configuration 13842s config = Configuration('', parent_name, top_path) 13842s {config_code} 13842s return config 13842s 13842s if __name__ == "__main__": 13842s from numpy.distutils.core import setup 13842s setup(configuration=configuration) 13842s """ 13842s script = os.path.join(d, get_temp_module_name() + ".py") 13842s dst_sources.append(script) 13842s with open(script, "wb") as f: 13842s f.write(asbytes(code)) 13842s 13842s # Build 13842s cwd = os.getcwd() 13842s try: 13842s os.chdir(d) 13842s cmd = [sys.executable, script, "build_ext", "-i"] 13842s p = subprocess.Popen(cmd, 13842s stdout=subprocess.PIPE, 13842s stderr=subprocess.STDOUT) 13842s out, err = p.communicate() 13842s if p.returncode != 0: 13842s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13842s (cmd[4:], asstr(out))) 13842s E RuntimeError: Running distutils build failed: [] 13842s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13842s E 13842s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13842s E of the deprecation of `distutils` itself. It will be removed for 13842s E Python >= 3.12. For older Python versions it will remain present. 13842s E It is recommended to use `setuptools < 60.0` for those Python versions. 13842s E For more details, see: 13842s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13842s E 13842s E 13842s E from numpy.distutils.core import setup 13842s E running build_ext 13842s E running build_src 13842s E INFO: build_src 13842s E INFO: building extension "test_array_from_pyobj_ext" sources 13842s E INFO: build_src: building npy-pkg config files 13842s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13842s E !! 13842s E 13842s E ******************************************************************************** 13842s E Please avoid running ``setup.py`` directly. 13842s E Instead, use pypa/build, pypa/installer or other 13842s E standards-based tools. 13842s E 13842s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13842s E ******************************************************************************** 13842s E 13842s E !! 13842s E self.initialize_options() 13842s E INFO: customize UnixCCompiler 13842s E INFO: customize UnixCCompiler using build_ext 13842s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/tmp 13842s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/usr 13842s E creating /tmp/tmppq19o2st/usr/lib 13842s E creating /tmp/tmppq19o2st/usr/lib/python3 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=native' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-O3' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-Werror' 13842s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13842s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-vfpv4' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=armv8.2-a+fp16' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13842s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13842s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13842s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13842s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13842s E INFO: building 'test_array_from_pyobj_ext' extension 13842s E INFO: compiling C sources 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13842s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13842s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13842s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13842s E 14 | #include 13842s E | ^~~~~~~~~~ 13842s E In file included from fortranobject.c:2: 13842s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13842s E 7 | #include 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E compilation terminated. 13842s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13842s E INFO: 13842s E ########### EXT COMPILER OPTIMIZATION ########### 13842s E INFO: Platform : 13842s E Architecture: armhf 13842s E Compiler : gcc 13842s E 13842s E CPU baseline : 13842s E Requested : 'min' 13842s E Enabled : none 13842s E Flags : none 13842s E Extra checks: none 13842s E 13842s E CPU dispatch : 13842s E Requested : 'max -xop -fma4' 13842s E Enabled : none 13842s E Generated : none 13842s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13842s 13842s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13842s d = '/tmp/tmpjj8q074z' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s err = None 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s kw = {} 13842s module_name = 'test_array_from_pyobj_ext' 13842s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13842s p = 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13842s __ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[CHARACTER] __ 13842s 13842s def setup_module(): 13842s """ 13842s Build the required testing extension module 13842s 13842s """ 13842s global wrap 13842s 13842s # Check compiler availability first 13842s if not util.has_c_compiler(): 13842s pytest.skip("No C compiler available") 13842s 13842s if wrap is None: 13842s config_code = """ 13842s config.add_extension('test_array_from_pyobj_ext', 13842s sources=['wrapmodule.c', 'fortranobject.c'], 13842s define_macros=[]) 13842s """ 13842s d = os.path.dirname(__file__) 13842s src = [ 13842s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13842s util.getpath("src", "fortranobject.c"), 13842s util.getpath("src", "fortranobject.h"), 13842s ] 13842s > wrap = util.build_module_distutils(src, config_code, 13842s "test_array_from_pyobj_ext") 13842s 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13842s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13842s memo[key] = func(*a, **kw) 13842s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13842s func = 13842s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13842s kw = {} 13842s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s 13842s @_memoize 13842s def build_module_distutils(source_files, config_code, module_name, **kw): 13842s """ 13842s Build a module via distutils and import it. 13842s 13842s """ 13842s d = get_module_dir() 13842s 13842s # Copy files 13842s dst_sources = [] 13842s for fn in source_files: 13842s if not os.path.isfile(fn): 13842s raise RuntimeError("%s is not a file" % fn) 13842s dst = os.path.join(d, os.path.basename(fn)) 13842s shutil.copyfile(fn, dst) 13842s dst_sources.append(dst) 13842s 13842s # Build script 13842s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13842s 13842s code = fr""" 13842s import os 13842s import sys 13842s sys.path = {repr(sys.path)} 13842s 13842s def configuration(parent_name='',top_path=None): 13842s from numpy.distutils.misc_util import Configuration 13842s config = Configuration('', parent_name, top_path) 13842s {config_code} 13842s return config 13842s 13842s if __name__ == "__main__": 13842s from numpy.distutils.core import setup 13842s setup(configuration=configuration) 13842s """ 13842s script = os.path.join(d, get_temp_module_name() + ".py") 13842s dst_sources.append(script) 13842s with open(script, "wb") as f: 13842s f.write(asbytes(code)) 13842s 13842s # Build 13842s cwd = os.getcwd() 13842s try: 13842s os.chdir(d) 13842s cmd = [sys.executable, script, "build_ext", "-i"] 13842s p = subprocess.Popen(cmd, 13842s stdout=subprocess.PIPE, 13842s stderr=subprocess.STDOUT) 13842s out, err = p.communicate() 13842s if p.returncode != 0: 13842s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13842s (cmd[4:], asstr(out))) 13842s E RuntimeError: Running distutils build failed: [] 13842s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13842s E 13842s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13842s E of the deprecation of `distutils` itself. It will be removed for 13842s E Python >= 3.12. For older Python versions it will remain present. 13842s E It is recommended to use `setuptools < 60.0` for those Python versions. 13842s E For more details, see: 13842s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13842s E 13842s E 13842s E from numpy.distutils.core import setup 13842s E running build_ext 13842s E running build_src 13842s E INFO: build_src 13842s E INFO: building extension "test_array_from_pyobj_ext" sources 13842s E INFO: build_src: building npy-pkg config files 13842s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13842s E !! 13842s E 13842s E ******************************************************************************** 13842s E Please avoid running ``setup.py`` directly. 13842s E Instead, use pypa/build, pypa/installer or other 13842s E standards-based tools. 13842s E 13842s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13842s E ******************************************************************************** 13842s E 13842s E !! 13842s E self.initialize_options() 13842s E INFO: customize UnixCCompiler 13842s E INFO: customize UnixCCompiler using build_ext 13842s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/tmp 13842s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/usr 13842s E creating /tmp/tmppq19o2st/usr/lib 13842s E creating /tmp/tmppq19o2st/usr/lib/python3 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=native' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-O3' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-Werror' 13842s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13842s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-vfpv4' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=armv8.2-a+fp16' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13842s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13842s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13842s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13842s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13842s E INFO: building 'test_array_from_pyobj_ext' extension 13842s E INFO: compiling C sources 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13842s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13842s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13842s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13842s E 14 | #include 13842s E | ^~~~~~~~~~ 13842s E In file included from fortranobject.c:2: 13842s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13842s E 7 | #include 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E compilation terminated. 13842s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13842s E INFO: 13842s E ########### EXT COMPILER OPTIMIZATION ########### 13842s E INFO: Platform : 13842s E Architecture: armhf 13842s E Compiler : gcc 13842s E 13842s E CPU baseline : 13842s E Requested : 'min' 13842s E Enabled : none 13842s E Flags : none 13842s E Extra checks: none 13842s E 13842s E CPU dispatch : 13842s E Requested : 'max -xop -fma4' 13842s E Enabled : none 13842s E Generated : none 13842s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13842s 13842s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13842s d = '/tmp/tmpjj8q074z' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s err = None 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s kw = {} 13842s module_name = 'test_array_from_pyobj_ext' 13842s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13842s p = 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13842s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[CHARACTER] _ 13842s 13842s def setup_module(): 13842s """ 13842s Build the required testing extension module 13842s 13842s """ 13842s global wrap 13842s 13842s # Check compiler availability first 13842s if not util.has_c_compiler(): 13842s pytest.skip("No C compiler available") 13842s 13842s if wrap is None: 13842s config_code = """ 13842s config.add_extension('test_array_from_pyobj_ext', 13842s sources=['wrapmodule.c', 'fortranobject.c'], 13842s define_macros=[]) 13842s """ 13842s d = os.path.dirname(__file__) 13842s src = [ 13842s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13842s util.getpath("src", "fortranobject.c"), 13842s util.getpath("src", "fortranobject.h"), 13842s ] 13842s > wrap = util.build_module_distutils(src, config_code, 13842s "test_array_from_pyobj_ext") 13842s 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13842s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13842s memo[key] = func(*a, **kw) 13842s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13842s func = 13842s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13842s kw = {} 13842s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s 13842s @_memoize 13842s def build_module_distutils(source_files, config_code, module_name, **kw): 13842s """ 13842s Build a module via distutils and import it. 13842s 13842s """ 13842s d = get_module_dir() 13842s 13842s # Copy files 13842s dst_sources = [] 13842s for fn in source_files: 13842s if not os.path.isfile(fn): 13842s raise RuntimeError("%s is not a file" % fn) 13842s dst = os.path.join(d, os.path.basename(fn)) 13842s shutil.copyfile(fn, dst) 13842s dst_sources.append(dst) 13842s 13842s # Build script 13842s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13842s 13842s code = fr""" 13842s import os 13842s import sys 13842s sys.path = {repr(sys.path)} 13842s 13842s def configuration(parent_name='',top_path=None): 13842s from numpy.distutils.misc_util import Configuration 13842s config = Configuration('', parent_name, top_path) 13842s {config_code} 13842s return config 13842s 13842s if __name__ == "__main__": 13842s from numpy.distutils.core import setup 13842s setup(configuration=configuration) 13842s """ 13842s script = os.path.join(d, get_temp_module_name() + ".py") 13842s dst_sources.append(script) 13842s with open(script, "wb") as f: 13842s f.write(asbytes(code)) 13842s 13842s # Build 13842s cwd = os.getcwd() 13842s try: 13842s os.chdir(d) 13842s cmd = [sys.executable, script, "build_ext", "-i"] 13842s p = subprocess.Popen(cmd, 13842s stdout=subprocess.PIPE, 13842s stderr=subprocess.STDOUT) 13842s out, err = p.communicate() 13842s if p.returncode != 0: 13842s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13842s (cmd[4:], asstr(out))) 13842s E RuntimeError: Running distutils build failed: [] 13842s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13842s E 13842s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13842s E of the deprecation of `distutils` itself. It will be removed for 13842s E Python >= 3.12. For older Python versions it will remain present. 13842s E It is recommended to use `setuptools < 60.0` for those Python versions. 13842s E For more details, see: 13842s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13842s E 13842s E 13842s E from numpy.distutils.core import setup 13842s E running build_ext 13842s E running build_src 13842s E INFO: build_src 13842s E INFO: building extension "test_array_from_pyobj_ext" sources 13842s E INFO: build_src: building npy-pkg config files 13842s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13842s E !! 13842s E 13842s E ******************************************************************************** 13842s E Please avoid running ``setup.py`` directly. 13842s E Instead, use pypa/build, pypa/installer or other 13842s E standards-based tools. 13842s E 13842s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13842s E ******************************************************************************** 13842s E 13842s E !! 13842s E self.initialize_options() 13842s E INFO: customize UnixCCompiler 13842s E INFO: customize UnixCCompiler using build_ext 13842s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/tmp 13842s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/usr 13842s E creating /tmp/tmppq19o2st/usr/lib 13842s E creating /tmp/tmppq19o2st/usr/lib/python3 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=native' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-O3' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-Werror' 13842s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13842s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-vfpv4' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=armv8.2-a+fp16' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13842s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13842s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13842s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13842s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13842s E INFO: building 'test_array_from_pyobj_ext' extension 13842s E INFO: compiling C sources 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13842s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13842s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13842s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13842s E 14 | #include 13842s E | ^~~~~~~~~~ 13842s E In file included from fortranobject.c:2: 13842s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13842s E 7 | #include 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E compilation terminated. 13842s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13842s E INFO: 13842s E ########### EXT COMPILER OPTIMIZATION ########### 13842s E INFO: Platform : 13842s E Architecture: armhf 13842s E Compiler : gcc 13842s E 13842s E CPU baseline : 13842s E Requested : 'min' 13842s E Enabled : none 13842s E Flags : none 13842s E Extra checks: none 13842s E 13842s E CPU dispatch : 13842s E Requested : 'max -xop -fma4' 13842s E Enabled : none 13842s E Generated : none 13842s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13842s 13842s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13842s d = '/tmp/tmpjj8q074z' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s err = None 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s kw = {} 13842s module_name = 'test_array_from_pyobj_ext' 13842s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13842s p = 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13842s _______ ERROR at setup of TestSharedMemory.test_cache_hidden[CHARACTER] ________ 13842s 13842s def setup_module(): 13842s """ 13842s Build the required testing extension module 13842s 13842s """ 13842s global wrap 13842s 13842s # Check compiler availability first 13842s if not util.has_c_compiler(): 13842s pytest.skip("No C compiler available") 13842s 13842s if wrap is None: 13842s config_code = """ 13842s config.add_extension('test_array_from_pyobj_ext', 13842s sources=['wrapmodule.c', 'fortranobject.c'], 13842s define_macros=[]) 13842s """ 13842s d = os.path.dirname(__file__) 13842s src = [ 13842s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13842s util.getpath("src", "fortranobject.c"), 13842s util.getpath("src", "fortranobject.h"), 13842s ] 13842s > wrap = util.build_module_distutils(src, config_code, 13842s "test_array_from_pyobj_ext") 13842s 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13842s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13842s memo[key] = func(*a, **kw) 13842s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13842s func = 13842s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13842s kw = {} 13842s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s 13842s @_memoize 13842s def build_module_distutils(source_files, config_code, module_name, **kw): 13842s """ 13842s Build a module via distutils and import it. 13842s 13842s """ 13842s d = get_module_dir() 13842s 13842s # Copy files 13842s dst_sources = [] 13842s for fn in source_files: 13842s if not os.path.isfile(fn): 13842s raise RuntimeError("%s is not a file" % fn) 13842s dst = os.path.join(d, os.path.basename(fn)) 13842s shutil.copyfile(fn, dst) 13842s dst_sources.append(dst) 13842s 13842s # Build script 13842s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13842s 13842s code = fr""" 13842s import os 13842s import sys 13842s sys.path = {repr(sys.path)} 13842s 13842s def configuration(parent_name='',top_path=None): 13842s from numpy.distutils.misc_util import Configuration 13842s config = Configuration('', parent_name, top_path) 13842s {config_code} 13842s return config 13842s 13842s if __name__ == "__main__": 13842s from numpy.distutils.core import setup 13842s setup(configuration=configuration) 13842s """ 13842s script = os.path.join(d, get_temp_module_name() + ".py") 13842s dst_sources.append(script) 13842s with open(script, "wb") as f: 13842s f.write(asbytes(code)) 13842s 13842s # Build 13842s cwd = os.getcwd() 13842s try: 13842s os.chdir(d) 13842s cmd = [sys.executable, script, "build_ext", "-i"] 13842s p = subprocess.Popen(cmd, 13842s stdout=subprocess.PIPE, 13842s stderr=subprocess.STDOUT) 13842s out, err = p.communicate() 13842s if p.returncode != 0: 13842s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13842s (cmd[4:], asstr(out))) 13842s E RuntimeError: Running distutils build failed: [] 13842s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13842s E 13842s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13842s E of the deprecation of `distutils` itself. It will be removed for 13842s E Python >= 3.12. For older Python versions it will remain present. 13842s E It is recommended to use `setuptools < 60.0` for those Python versions. 13842s E For more details, see: 13842s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13842s E 13842s E 13842s E from numpy.distutils.core import setup 13842s E running build_ext 13842s E running build_src 13842s E INFO: build_src 13842s E INFO: building extension "test_array_from_pyobj_ext" sources 13842s E INFO: build_src: building npy-pkg config files 13842s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13842s E !! 13842s E 13842s E ******************************************************************************** 13842s E Please avoid running ``setup.py`` directly. 13842s E Instead, use pypa/build, pypa/installer or other 13842s E standards-based tools. 13842s E 13842s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13842s E ******************************************************************************** 13842s E 13842s E !! 13842s E self.initialize_options() 13842s E INFO: customize UnixCCompiler 13842s E INFO: customize UnixCCompiler using build_ext 13842s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/tmp 13842s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/usr 13842s E creating /tmp/tmppq19o2st/usr/lib 13842s E creating /tmp/tmppq19o2st/usr/lib/python3 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=native' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-O3' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-Werror' 13842s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13842s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-vfpv4' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=armv8.2-a+fp16' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13842s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13842s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13842s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13842s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13842s E INFO: building 'test_array_from_pyobj_ext' extension 13842s E INFO: compiling C sources 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13842s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13842s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13842s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13842s E 14 | #include 13842s E | ^~~~~~~~~~ 13842s E In file included from fortranobject.c:2: 13842s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13842s E 7 | #include 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E compilation terminated. 13842s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13842s E INFO: 13842s E ########### EXT COMPILER OPTIMIZATION ########### 13842s E INFO: Platform : 13842s E Architecture: armhf 13842s E Compiler : gcc 13842s E 13842s E CPU baseline : 13842s E Requested : 'min' 13842s E Enabled : none 13842s E Flags : none 13842s E Extra checks: none 13842s E 13842s E CPU dispatch : 13842s E Requested : 'max -xop -fma4' 13842s E Enabled : none 13842s E Generated : none 13842s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13842s 13842s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13842s d = '/tmp/tmpjj8q074z' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s err = None 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s kw = {} 13842s module_name = 'test_array_from_pyobj_ext' 13842s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13842s p = 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13842s __________ ERROR at setup of TestSharedMemory.test_hidden[CHARACTER] ___________ 13842s 13842s def setup_module(): 13842s """ 13842s Build the required testing extension module 13842s 13842s """ 13842s global wrap 13842s 13842s # Check compiler availability first 13842s if not util.has_c_compiler(): 13842s pytest.skip("No C compiler available") 13842s 13842s if wrap is None: 13842s config_code = """ 13842s config.add_extension('test_array_from_pyobj_ext', 13842s sources=['wrapmodule.c', 'fortranobject.c'], 13842s define_macros=[]) 13842s """ 13842s d = os.path.dirname(__file__) 13842s src = [ 13842s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13842s util.getpath("src", "fortranobject.c"), 13842s util.getpath("src", "fortranobject.h"), 13842s ] 13842s > wrap = util.build_module_distutils(src, config_code, 13842s "test_array_from_pyobj_ext") 13842s 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13842s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13842s memo[key] = func(*a, **kw) 13842s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13842s func = 13842s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13842s kw = {} 13842s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s 13842s @_memoize 13842s def build_module_distutils(source_files, config_code, module_name, **kw): 13842s """ 13842s Build a module via distutils and import it. 13842s 13842s """ 13842s d = get_module_dir() 13842s 13842s # Copy files 13842s dst_sources = [] 13842s for fn in source_files: 13842s if not os.path.isfile(fn): 13842s raise RuntimeError("%s is not a file" % fn) 13842s dst = os.path.join(d, os.path.basename(fn)) 13842s shutil.copyfile(fn, dst) 13842s dst_sources.append(dst) 13842s 13842s # Build script 13842s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13842s 13842s code = fr""" 13842s import os 13842s import sys 13842s sys.path = {repr(sys.path)} 13842s 13842s def configuration(parent_name='',top_path=None): 13842s from numpy.distutils.misc_util import Configuration 13842s config = Configuration('', parent_name, top_path) 13842s {config_code} 13842s return config 13842s 13842s if __name__ == "__main__": 13842s from numpy.distutils.core import setup 13842s setup(configuration=configuration) 13842s """ 13842s script = os.path.join(d, get_temp_module_name() + ".py") 13842s dst_sources.append(script) 13842s with open(script, "wb") as f: 13842s f.write(asbytes(code)) 13842s 13842s # Build 13842s cwd = os.getcwd() 13842s try: 13842s os.chdir(d) 13842s cmd = [sys.executable, script, "build_ext", "-i"] 13842s p = subprocess.Popen(cmd, 13842s stdout=subprocess.PIPE, 13842s stderr=subprocess.STDOUT) 13842s out, err = p.communicate() 13842s if p.returncode != 0: 13842s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13842s (cmd[4:], asstr(out))) 13842s E RuntimeError: Running distutils build failed: [] 13842s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13842s E 13842s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13842s E of the deprecation of `distutils` itself. It will be removed for 13842s E Python >= 3.12. For older Python versions it will remain present. 13842s E It is recommended to use `setuptools < 60.0` for those Python versions. 13842s E For more details, see: 13842s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13842s E 13842s E 13842s E from numpy.distutils.core import setup 13842s E running build_ext 13842s E running build_src 13842s E INFO: build_src 13842s E INFO: building extension "test_array_from_pyobj_ext" sources 13842s E INFO: build_src: building npy-pkg config files 13842s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13842s E !! 13842s E 13842s E ******************************************************************************** 13842s E Please avoid running ``setup.py`` directly. 13842s E Instead, use pypa/build, pypa/installer or other 13842s E standards-based tools. 13842s E 13842s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13842s E ******************************************************************************** 13842s E 13842s E !! 13842s E self.initialize_options() 13842s E INFO: customize UnixCCompiler 13842s E INFO: customize UnixCCompiler using build_ext 13842s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/tmp 13842s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/usr 13842s E creating /tmp/tmppq19o2st/usr/lib 13842s E creating /tmp/tmppq19o2st/usr/lib/python3 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=native' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-O3' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-Werror' 13842s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13842s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-vfpv4' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=armv8.2-a+fp16' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13842s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13842s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13842s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13842s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13842s E INFO: building 'test_array_from_pyobj_ext' extension 13842s E INFO: compiling C sources 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13842s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13842s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13842s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13842s E 14 | #include 13842s E | ^~~~~~~~~~ 13842s E In file included from fortranobject.c:2: 13842s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13842s E 7 | #include 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E compilation terminated. 13842s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13842s E INFO: 13842s E ########### EXT COMPILER OPTIMIZATION ########### 13842s E INFO: Platform : 13842s E Architecture: armhf 13842s E Compiler : gcc 13842s E 13842s E CPU baseline : 13842s E Requested : 'min' 13842s E Enabled : none 13842s E Flags : none 13842s E Extra checks: none 13842s E 13842s E CPU dispatch : 13842s E Requested : 'max -xop -fma4' 13842s E Enabled : none 13842s E Generated : none 13842s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13842s 13842s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13842s d = '/tmp/tmpjj8q074z' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s err = None 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s kw = {} 13842s module_name = 'test_array_from_pyobj_ext' 13842s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13842s p = 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13842s _______ ERROR at setup of TestSharedMemory.test_optional_none[CHARACTER] _______ 13842s 13842s def setup_module(): 13842s """ 13842s Build the required testing extension module 13842s 13842s """ 13842s global wrap 13842s 13842s # Check compiler availability first 13842s if not util.has_c_compiler(): 13842s pytest.skip("No C compiler available") 13842s 13842s if wrap is None: 13842s config_code = """ 13842s config.add_extension('test_array_from_pyobj_ext', 13842s sources=['wrapmodule.c', 'fortranobject.c'], 13842s define_macros=[]) 13842s """ 13842s d = os.path.dirname(__file__) 13842s src = [ 13842s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13842s util.getpath("src", "fortranobject.c"), 13842s util.getpath("src", "fortranobject.h"), 13842s ] 13842s > wrap = util.build_module_distutils(src, config_code, 13842s "test_array_from_pyobj_ext") 13842s 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13842s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13842s memo[key] = func(*a, **kw) 13842s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13842s func = 13842s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13842s kw = {} 13842s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s 13842s @_memoize 13842s def build_module_distutils(source_files, config_code, module_name, **kw): 13842s """ 13842s Build a module via distutils and import it. 13842s 13842s """ 13842s d = get_module_dir() 13842s 13842s # Copy files 13842s dst_sources = [] 13842s for fn in source_files: 13842s if not os.path.isfile(fn): 13842s raise RuntimeError("%s is not a file" % fn) 13842s dst = os.path.join(d, os.path.basename(fn)) 13842s shutil.copyfile(fn, dst) 13842s dst_sources.append(dst) 13842s 13842s # Build script 13842s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13842s 13842s code = fr""" 13842s import os 13842s import sys 13842s sys.path = {repr(sys.path)} 13842s 13842s def configuration(parent_name='',top_path=None): 13842s from numpy.distutils.misc_util import Configuration 13842s config = Configuration('', parent_name, top_path) 13842s {config_code} 13842s return config 13842s 13842s if __name__ == "__main__": 13842s from numpy.distutils.core import setup 13842s setup(configuration=configuration) 13842s """ 13842s script = os.path.join(d, get_temp_module_name() + ".py") 13842s dst_sources.append(script) 13842s with open(script, "wb") as f: 13842s f.write(asbytes(code)) 13842s 13842s # Build 13842s cwd = os.getcwd() 13842s try: 13842s os.chdir(d) 13842s cmd = [sys.executable, script, "build_ext", "-i"] 13842s p = subprocess.Popen(cmd, 13842s stdout=subprocess.PIPE, 13842s stderr=subprocess.STDOUT) 13842s out, err = p.communicate() 13842s if p.returncode != 0: 13842s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13842s (cmd[4:], asstr(out))) 13842s E RuntimeError: Running distutils build failed: [] 13842s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13842s E 13842s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13842s E of the deprecation of `distutils` itself. It will be removed for 13842s E Python >= 3.12. For older Python versions it will remain present. 13842s E It is recommended to use `setuptools < 60.0` for those Python versions. 13842s E For more details, see: 13842s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13842s E 13842s E 13842s E from numpy.distutils.core import setup 13842s E running build_ext 13842s E running build_src 13842s E INFO: build_src 13842s E INFO: building extension "test_array_from_pyobj_ext" sources 13842s E INFO: build_src: building npy-pkg config files 13842s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13842s E !! 13842s E 13842s E ******************************************************************************** 13842s E Please avoid running ``setup.py`` directly. 13842s E Instead, use pypa/build, pypa/installer or other 13842s E standards-based tools. 13842s E 13842s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13842s E ******************************************************************************** 13842s E 13842s E !! 13842s E self.initialize_options() 13842s E INFO: customize UnixCCompiler 13842s E INFO: customize UnixCCompiler using build_ext 13842s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/tmp 13842s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/usr 13842s E creating /tmp/tmppq19o2st/usr/lib 13842s E creating /tmp/tmppq19o2st/usr/lib/python3 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=native' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-O3' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-Werror' 13842s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13842s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-vfpv4' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=armv8.2-a+fp16' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13842s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13842s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13842s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13842s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13842s E INFO: building 'test_array_from_pyobj_ext' extension 13842s E INFO: compiling C sources 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13842s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13842s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13842s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13842s E 14 | #include 13842s E | ^~~~~~~~~~ 13842s E In file included from fortranobject.c:2: 13842s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13842s E 7 | #include 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E compilation terminated. 13842s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13842s E INFO: 13842s E ########### EXT COMPILER OPTIMIZATION ########### 13842s E INFO: Platform : 13842s E Architecture: armhf 13842s E Compiler : gcc 13842s E 13842s E CPU baseline : 13842s E Requested : 'min' 13842s E Enabled : none 13842s E Flags : none 13842s E Extra checks: none 13842s E 13842s E CPU dispatch : 13842s E Requested : 'max -xop -fma4' 13842s E Enabled : none 13842s E Generated : none 13842s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13842s 13842s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13842s d = '/tmp/tmpjj8q074z' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s err = None 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s kw = {} 13842s module_name = 'test_array_from_pyobj_ext' 13842s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13842s p = 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13842s ____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[CHARACTER] _____ 13842s 13842s def setup_module(): 13842s """ 13842s Build the required testing extension module 13842s 13842s """ 13842s global wrap 13842s 13842s # Check compiler availability first 13842s if not util.has_c_compiler(): 13842s pytest.skip("No C compiler available") 13842s 13842s if wrap is None: 13842s config_code = """ 13842s config.add_extension('test_array_from_pyobj_ext', 13842s sources=['wrapmodule.c', 'fortranobject.c'], 13842s define_macros=[]) 13842s """ 13842s d = os.path.dirname(__file__) 13842s src = [ 13842s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13842s util.getpath("src", "fortranobject.c"), 13842s util.getpath("src", "fortranobject.h"), 13842s ] 13842s > wrap = util.build_module_distutils(src, config_code, 13842s "test_array_from_pyobj_ext") 13842s 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13842s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13842s memo[key] = func(*a, **kw) 13842s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13842s func = 13842s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13842s kw = {} 13842s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s 13842s @_memoize 13842s def build_module_distutils(source_files, config_code, module_name, **kw): 13842s """ 13842s Build a module via distutils and import it. 13842s 13842s """ 13842s d = get_module_dir() 13842s 13842s # Copy files 13842s dst_sources = [] 13842s for fn in source_files: 13842s if not os.path.isfile(fn): 13842s raise RuntimeError("%s is not a file" % fn) 13842s dst = os.path.join(d, os.path.basename(fn)) 13842s shutil.copyfile(fn, dst) 13842s dst_sources.append(dst) 13842s 13842s # Build script 13842s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13842s 13842s code = fr""" 13842s import os 13842s import sys 13842s sys.path = {repr(sys.path)} 13842s 13842s def configuration(parent_name='',top_path=None): 13842s from numpy.distutils.misc_util import Configuration 13842s config = Configuration('', parent_name, top_path) 13842s {config_code} 13842s return config 13842s 13842s if __name__ == "__main__": 13842s from numpy.distutils.core import setup 13842s setup(configuration=configuration) 13842s """ 13842s script = os.path.join(d, get_temp_module_name() + ".py") 13842s dst_sources.append(script) 13842s with open(script, "wb") as f: 13842s f.write(asbytes(code)) 13842s 13842s # Build 13842s cwd = os.getcwd() 13842s try: 13842s os.chdir(d) 13842s cmd = [sys.executable, script, "build_ext", "-i"] 13842s p = subprocess.Popen(cmd, 13842s stdout=subprocess.PIPE, 13842s stderr=subprocess.STDOUT) 13842s out, err = p.communicate() 13842s if p.returncode != 0: 13842s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13842s (cmd[4:], asstr(out))) 13842s E RuntimeError: Running distutils build failed: [] 13842s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13842s E 13842s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13842s E of the deprecation of `distutils` itself. It will be removed for 13842s E Python >= 3.12. For older Python versions it will remain present. 13842s E It is recommended to use `setuptools < 60.0` for those Python versions. 13842s E For more details, see: 13842s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13842s E 13842s E 13842s E from numpy.distutils.core import setup 13842s E running build_ext 13842s E running build_src 13842s E INFO: build_src 13842s E INFO: building extension "test_array_from_pyobj_ext" sources 13842s E INFO: build_src: building npy-pkg config files 13842s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13842s E !! 13842s E 13842s E ******************************************************************************** 13842s E Please avoid running ``setup.py`` directly. 13842s E Instead, use pypa/build, pypa/installer or other 13842s E standards-based tools. 13842s E 13842s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13842s E ******************************************************************************** 13842s E 13842s E !! 13842s E self.initialize_options() 13842s E INFO: customize UnixCCompiler 13842s E INFO: customize UnixCCompiler using build_ext 13842s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/tmp 13842s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/usr 13842s E creating /tmp/tmppq19o2st/usr/lib 13842s E creating /tmp/tmppq19o2st/usr/lib/python3 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=native' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-O3' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-Werror' 13842s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13842s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-vfpv4' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=armv8.2-a+fp16' 13842s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13842s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13842s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13842s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13842s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13842s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13842s E 9 | # include_next 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E 13842s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13842s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13842s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13842s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13842s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13842s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13842s E INFO: building 'test_array_from_pyobj_ext' extension 13842s E INFO: compiling C sources 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13842s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13842s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13842s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13842s E 14 | #include 13842s E | ^~~~~~~~~~ 13842s E In file included from fortranobject.c:2: 13842s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13842s E 7 | #include 13842s E | ^~~~~~~~~~ 13842s E compilation terminated. 13842s E compilation terminated. 13842s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13842s E INFO: 13842s E ########### EXT COMPILER OPTIMIZATION ########### 13842s E INFO: Platform : 13842s E Architecture: armhf 13842s E Compiler : gcc 13842s E 13842s E CPU baseline : 13842s E Requested : 'min' 13842s E Enabled : none 13842s E Flags : none 13842s E Extra checks: none 13842s E 13842s E CPU dispatch : 13842s E Requested : 'max -xop -fma4' 13842s E Enabled : none 13842s E Generated : none 13842s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13842s 13842s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13842s d = '/tmp/tmpjj8q074z' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s err = None 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s kw = {} 13842s module_name = 'test_array_from_pyobj_ext' 13842s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13842s p = 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13842s ____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[CHARACTER] ____ 13842s 13842s def setup_module(): 13842s """ 13842s Build the required testing extension module 13842s 13842s """ 13842s global wrap 13842s 13842s # Check compiler availability first 13842s if not util.has_c_compiler(): 13842s pytest.skip("No C compiler available") 13842s 13842s if wrap is None: 13842s config_code = """ 13842s config.add_extension('test_array_from_pyobj_ext', 13842s sources=['wrapmodule.c', 'fortranobject.c'], 13842s define_macros=[]) 13842s """ 13842s d = os.path.dirname(__file__) 13842s src = [ 13842s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13842s util.getpath("src", "fortranobject.c"), 13842s util.getpath("src", "fortranobject.h"), 13842s ] 13842s > wrap = util.build_module_distutils(src, config_code, 13842s "test_array_from_pyobj_ext") 13842s 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13842s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13842s memo[key] = func(*a, **kw) 13842s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13842s func = 13842s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13842s kw = {} 13842s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13842s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13842s 13842s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13842s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13842s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13842s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13842s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13842s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13842s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13842s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13842s 13842s @_memoize 13842s def build_module_distutils(source_files, config_code, module_name, **kw): 13842s """ 13842s Build a module via distutils and import it. 13842s 13842s """ 13842s d = get_module_dir() 13842s 13842s # Copy files 13842s dst_sources = [] 13842s for fn in source_files: 13842s if not os.path.isfile(fn): 13842s raise RuntimeError("%s is not a file" % fn) 13842s dst = os.path.join(d, os.path.basename(fn)) 13842s shutil.copyfile(fn, dst) 13842s dst_sources.append(dst) 13842s 13842s # Build script 13842s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13842s 13842s code = fr""" 13842s import os 13842s import sys 13842s sys.path = {repr(sys.path)} 13842s 13842s def configuration(parent_name='',top_path=None): 13842s from numpy.distutils.misc_util import Configuration 13842s config = Configuration('', parent_name, top_path) 13842s {config_code} 13842s return config 13842s 13842s if __name__ == "__main__": 13842s from numpy.distutils.core import setup 13842s setup(configuration=configuration) 13842s """ 13842s script = os.path.join(d, get_temp_module_name() + ".py") 13842s dst_sources.append(script) 13842s with open(script, "wb") as f: 13842s f.write(asbytes(code)) 13842s 13842s # Build 13842s cwd = os.getcwd() 13842s try: 13842s os.chdir(d) 13842s cmd = [sys.executable, script, "build_ext", "-i"] 13842s p = subprocess.Popen(cmd, 13842s stdout=subprocess.PIPE, 13842s stderr=subprocess.STDOUT) 13842s out, err = p.communicate() 13842s if p.returncode != 0: 13842s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13842s (cmd[4:], asstr(out))) 13842s E RuntimeError: Running distutils build failed: [] 13842s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13842s E 13842s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13842s E of the deprecation of `distutils` itself. It will be removed for 13842s E Python >= 3.12. For older Python versions it will remain present. 13842s E It is recommended to use `setuptools < 60.0` for those Python versions. 13842s E For more details, see: 13842s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13842s E 13842s E 13842s E from numpy.distutils.core import setup 13842s E running build_ext 13842s E running build_src 13842s E INFO: build_src 13842s E INFO: building extension "test_array_from_pyobj_ext" sources 13842s E INFO: build_src: building npy-pkg config files 13842s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13842s E !! 13842s E 13842s E ******************************************************************************** 13842s E Please avoid running ``setup.py`` directly. 13842s E Instead, use pypa/build, pypa/installer or other 13842s E standards-based tools. 13842s E 13842s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13842s E ******************************************************************************** 13842s E 13842s E !! 13842s E self.initialize_options() 13842s E INFO: customize UnixCCompiler 13842s E INFO: customize UnixCCompiler using build_ext 13842s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/tmp 13842s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E creating /tmp/tmppq19o2st/usr 13842s E creating /tmp/tmppq19o2st/usr/lib 13842s E creating /tmp/tmppq19o2st/usr/lib/python3 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13842s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-march=native' 13842s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13842s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13842s E 13842s E INFO: compile options: '-I/usr/include/python3.12 -c' 13842s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s __________ ERROR at setup of TestSharedMemory.test_inplace[CHARACTER] __________ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/tmp 13843s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/usr 13843s E creating /tmp/tmppq19o2st/usr/lib 13843s E creating /tmp/tmppq19o2st/usr/lib/python3 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=native' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s ___ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[CHARACTER] ___ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/tmp 13843s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/usr 13843s E creating /tmp/tmppq19o2st/usr/lib 13843s E creating /tmp/tmppq19o2st/usr/lib/python3 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=native' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s _______ ERROR at setup of TestSharedMemory.test_in_from_2seq[LONGDOUBLE] _______ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/tmp 13843s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/usr 13843s E creating /tmp/tmppq19o2st/usr/lib 13843s E creating /tmp/tmppq19o2st/usr/lib/python3 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=native' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s ____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[LONGDOUBLE] _____ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/tmp 13843s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/usr 13843s E creating /tmp/tmppq19o2st/usr/lib 13843s E creating /tmp/tmppq19o2st/usr/lib/python3 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=native' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-2seq-C-w] ____ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/tmp 13843s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/usr 13843s E creating /tmp/tmppq19o2st/usr/lib 13843s E creating /tmp/tmppq19o2st/usr/lib/python3 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=native' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-2seq-C-ro] ____ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/tmp 13843s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/usr 13843s E creating /tmp/tmppq19o2st/usr/lib 13843s E creating /tmp/tmppq19o2st/usr/lib/python3 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=native' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-2seq-F-w] ____ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/tmp 13843s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/usr 13843s E creating /tmp/tmppq19o2st/usr/lib 13843s E creating /tmp/tmppq19o2st/usr/lib/python3 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=native' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-2seq-F-ro] ____ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/tmp 13843s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E creating /tmp/tmppq19o2st/usr 13843s E creating /tmp/tmppq19o2st/usr/lib 13843s E creating /tmp/tmppq19o2st/usr/lib/python3 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13843s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=native' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-O3' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-Werror' 13843s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13843s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-vfpv4' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13843s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-march=armv8.2-a+fp16' 13843s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/include/python3.12 -c' 13843s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13843s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13843s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13843s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13843s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13843s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13843s E 9 | # include_next 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E 13843s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13843s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13843s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13843s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13843s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13843s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13843s E INFO: building 'test_array_from_pyobj_ext' extension 13843s E INFO: compiling C sources 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13843s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13843s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13843s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13843s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13843s E 14 | #include 13843s E | ^~~~~~~~~~ 13843s E In file included from fortranobject.c:2: 13843s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13843s E 7 | #include 13843s E | ^~~~~~~~~~ 13843s E compilation terminated. 13843s E compilation terminated. 13843s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13843s E INFO: 13843s E ########### EXT COMPILER OPTIMIZATION ########### 13843s E INFO: Platform : 13843s E Architecture: armhf 13843s E Compiler : gcc 13843s E 13843s E CPU baseline : 13843s E Requested : 'min' 13843s E Enabled : none 13843s E Flags : none 13843s E Extra checks: none 13843s E 13843s E CPU dispatch : 13843s E Requested : 'max -xop -fma4' 13843s E Enabled : none 13843s E Generated : none 13843s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13843s 13843s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13843s d = '/tmp/tmpjj8q074z' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s err = None 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s kw = {} 13843s module_name = 'test_array_from_pyobj_ext' 13843s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13843s p = 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13843s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-23seq-C-w] ____ 13843s 13843s def setup_module(): 13843s """ 13843s Build the required testing extension module 13843s 13843s """ 13843s global wrap 13843s 13843s # Check compiler availability first 13843s if not util.has_c_compiler(): 13843s pytest.skip("No C compiler available") 13843s 13843s if wrap is None: 13843s config_code = """ 13843s config.add_extension('test_array_from_pyobj_ext', 13843s sources=['wrapmodule.c', 'fortranobject.c'], 13843s define_macros=[]) 13843s """ 13843s d = os.path.dirname(__file__) 13843s src = [ 13843s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13843s util.getpath("src", "fortranobject.c"), 13843s util.getpath("src", "fortranobject.h"), 13843s ] 13843s > wrap = util.build_module_distutils(src, config_code, 13843s "test_array_from_pyobj_ext") 13843s 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13843s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13843s memo[key] = func(*a, **kw) 13843s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13843s func = 13843s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13843s kw = {} 13843s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13843s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13843s 13843s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13843s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13843s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13843s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13843s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13843s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13843s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13843s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13843s 13843s @_memoize 13843s def build_module_distutils(source_files, config_code, module_name, **kw): 13843s """ 13843s Build a module via distutils and import it. 13843s 13843s """ 13843s d = get_module_dir() 13843s 13843s # Copy files 13843s dst_sources = [] 13843s for fn in source_files: 13843s if not os.path.isfile(fn): 13843s raise RuntimeError("%s is not a file" % fn) 13843s dst = os.path.join(d, os.path.basename(fn)) 13843s shutil.copyfile(fn, dst) 13843s dst_sources.append(dst) 13843s 13843s # Build script 13843s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13843s 13843s code = fr""" 13843s import os 13843s import sys 13843s sys.path = {repr(sys.path)} 13843s 13843s def configuration(parent_name='',top_path=None): 13843s from numpy.distutils.misc_util import Configuration 13843s config = Configuration('', parent_name, top_path) 13843s {config_code} 13843s return config 13843s 13843s if __name__ == "__main__": 13843s from numpy.distutils.core import setup 13843s setup(configuration=configuration) 13843s """ 13843s script = os.path.join(d, get_temp_module_name() + ".py") 13843s dst_sources.append(script) 13843s with open(script, "wb") as f: 13843s f.write(asbytes(code)) 13843s 13843s # Build 13843s cwd = os.getcwd() 13843s try: 13843s os.chdir(d) 13843s cmd = [sys.executable, script, "build_ext", "-i"] 13843s p = subprocess.Popen(cmd, 13843s stdout=subprocess.PIPE, 13843s stderr=subprocess.STDOUT) 13843s out, err = p.communicate() 13843s if p.returncode != 0: 13843s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13843s (cmd[4:], asstr(out))) 13843s E RuntimeError: Running distutils build failed: [] 13843s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13843s E 13843s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13843s E of the deprecation of `distutils` itself. It will be removed for 13843s E Python >= 3.12. For older Python versions it will remain present. 13843s E It is recommended to use `setuptools < 60.0` for those Python versions. 13843s E For more details, see: 13843s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13843s E 13843s E 13843s E from numpy.distutils.core import setup 13843s E running build_ext 13843s E running build_src 13843s E INFO: build_src 13843s E INFO: building extension "test_array_from_pyobj_ext" sources 13843s E INFO: build_src: building npy-pkg config files 13843s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13843s E !! 13843s E 13843s E ******************************************************************************** 13843s E Please avoid running ``setup.py`` directly. 13843s E Instead, use pypa/build, pypa/installer or other 13843s E standards-based tools. 13843s E 13843s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13843s E ******************************************************************************** 13843s E 13843s E !! 13843s E self.initialize_options() 13843s E INFO: customize UnixCCompiler 13843s E INFO: customize UnixCCompiler using build_ext 13843s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13843s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13843s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-23seq-C-ro] ___ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-23seq-F-w] ____ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[LONGDOUBLE-23seq-F-ro] ___ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s ________ ERROR at setup of TestSharedMemory.test_inout_2seq[LONGDOUBLE] ________ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s ______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[LONGDOUBLE] _______ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s ______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[LONGDOUBLE] _______ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s __ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[LONGDOUBLE] __ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[LONGDOUBLE] ______ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s ____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[LONGDOUBLE] ____ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-vfpv4' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=armv8.2-a+fp16' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13844s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13844s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13844s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13844s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13844s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13844s E 9 | # include_next 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E 13844s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13844s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13844s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13844s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13844s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13844s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13844s E INFO: building 'test_array_from_pyobj_ext' extension 13844s E INFO: compiling C sources 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13844s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13844s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13844s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13844s E 14 | #include 13844s E | ^~~~~~~~~~ 13844s E In file included from fortranobject.c:2: 13844s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13844s E 7 | #include 13844s E | ^~~~~~~~~~ 13844s E compilation terminated. 13844s E compilation terminated. 13844s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13844s E INFO: 13844s E ########### EXT COMPILER OPTIMIZATION ########### 13844s E INFO: Platform : 13844s E Architecture: armhf 13844s E Compiler : gcc 13844s E 13844s E CPU baseline : 13844s E Requested : 'min' 13844s E Enabled : none 13844s E Flags : none 13844s E Extra checks: none 13844s E 13844s E CPU dispatch : 13844s E Requested : 'max -xop -fma4' 13844s E Enabled : none 13844s E Generated : none 13844s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13844s 13844s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13844s d = '/tmp/tmpjj8q074z' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s err = None 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s kw = {} 13844s module_name = 'test_array_from_pyobj_ext' 13844s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13844s p = 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13844s ___ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[LONGDOUBLE] ___ 13844s 13844s def setup_module(): 13844s """ 13844s Build the required testing extension module 13844s 13844s """ 13844s global wrap 13844s 13844s # Check compiler availability first 13844s if not util.has_c_compiler(): 13844s pytest.skip("No C compiler available") 13844s 13844s if wrap is None: 13844s config_code = """ 13844s config.add_extension('test_array_from_pyobj_ext', 13844s sources=['wrapmodule.c', 'fortranobject.c'], 13844s define_macros=[]) 13844s """ 13844s d = os.path.dirname(__file__) 13844s src = [ 13844s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13844s util.getpath("src", "fortranobject.c"), 13844s util.getpath("src", "fortranobject.h"), 13844s ] 13844s > wrap = util.build_module_distutils(src, config_code, 13844s "test_array_from_pyobj_ext") 13844s 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13844s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13844s memo[key] = func(*a, **kw) 13844s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13844s func = 13844s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13844s kw = {} 13844s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13844s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13844s 13844s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13844s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13844s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13844s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13844s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13844s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13844s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13844s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13844s 13844s @_memoize 13844s def build_module_distutils(source_files, config_code, module_name, **kw): 13844s """ 13844s Build a module via distutils and import it. 13844s 13844s """ 13844s d = get_module_dir() 13844s 13844s # Copy files 13844s dst_sources = [] 13844s for fn in source_files: 13844s if not os.path.isfile(fn): 13844s raise RuntimeError("%s is not a file" % fn) 13844s dst = os.path.join(d, os.path.basename(fn)) 13844s shutil.copyfile(fn, dst) 13844s dst_sources.append(dst) 13844s 13844s # Build script 13844s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13844s 13844s code = fr""" 13844s import os 13844s import sys 13844s sys.path = {repr(sys.path)} 13844s 13844s def configuration(parent_name='',top_path=None): 13844s from numpy.distutils.misc_util import Configuration 13844s config = Configuration('', parent_name, top_path) 13844s {config_code} 13844s return config 13844s 13844s if __name__ == "__main__": 13844s from numpy.distutils.core import setup 13844s setup(configuration=configuration) 13844s """ 13844s script = os.path.join(d, get_temp_module_name() + ".py") 13844s dst_sources.append(script) 13844s with open(script, "wb") as f: 13844s f.write(asbytes(code)) 13844s 13844s # Build 13844s cwd = os.getcwd() 13844s try: 13844s os.chdir(d) 13844s cmd = [sys.executable, script, "build_ext", "-i"] 13844s p = subprocess.Popen(cmd, 13844s stdout=subprocess.PIPE, 13844s stderr=subprocess.STDOUT) 13844s out, err = p.communicate() 13844s if p.returncode != 0: 13844s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13844s (cmd[4:], asstr(out))) 13844s E RuntimeError: Running distutils build failed: [] 13844s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13844s E 13844s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13844s E of the deprecation of `distutils` itself. It will be removed for 13844s E Python >= 3.12. For older Python versions it will remain present. 13844s E It is recommended to use `setuptools < 60.0` for those Python versions. 13844s E For more details, see: 13844s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13844s E 13844s E 13844s E from numpy.distutils.core import setup 13844s E running build_ext 13844s E running build_src 13844s E INFO: build_src 13844s E INFO: building extension "test_array_from_pyobj_ext" sources 13844s E INFO: build_src: building npy-pkg config files 13844s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13844s E !! 13844s E 13844s E ******************************************************************************** 13844s E Please avoid running ``setup.py`` directly. 13844s E Instead, use pypa/build, pypa/installer or other 13844s E standards-based tools. 13844s E 13844s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13844s E ******************************************************************************** 13844s E 13844s E !! 13844s E self.initialize_options() 13844s E INFO: customize UnixCCompiler 13844s E INFO: customize UnixCCompiler using build_ext 13844s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/tmp 13844s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E creating /tmp/tmppq19o2st/usr 13844s E creating /tmp/tmppq19o2st/usr/lib 13844s E creating /tmp/tmppq19o2st/usr/lib/python3 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13844s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-march=native' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-O3' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-Werror' 13844s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13844s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon' 13844s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13844s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13844s E 13844s E INFO: compile options: '-I/usr/include/python3.12 -c' 13844s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13844s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s ___ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[LONGDOUBLE] ___ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[LONGDOUBLE] _ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[LONGDOUBLE] _ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[LONGDOUBLE] __ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[LONGDOUBLE] _ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s _______ ERROR at setup of TestSharedMemory.test_cache_hidden[LONGDOUBLE] _______ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s __________ ERROR at setup of TestSharedMemory.test_hidden[LONGDOUBLE] __________ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s ______ ERROR at setup of TestSharedMemory.test_optional_none[LONGDOUBLE] _______ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s ____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[LONGDOUBLE] ____ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s ___ ERROR at setup of TestSharedMemory.test_optional_from_23seq[LONGDOUBLE] ____ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13845s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13845s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13845s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13845s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13845s E INFO: building 'test_array_from_pyobj_ext' extension 13845s E INFO: compiling C sources 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13845s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13845s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13845s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13845s E 14 | #include 13845s E | ^~~~~~~~~~ 13845s E In file included from fortranobject.c:2: 13845s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13845s E 7 | #include 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E compilation terminated. 13845s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13845s E INFO: 13845s E ########### EXT COMPILER OPTIMIZATION ########### 13845s E INFO: Platform : 13845s E Architecture: armhf 13845s E Compiler : gcc 13845s E 13845s E CPU baseline : 13845s E Requested : 'min' 13845s E Enabled : none 13845s E Flags : none 13845s E Extra checks: none 13845s E 13845s E CPU dispatch : 13845s E Requested : 'max -xop -fma4' 13845s E Enabled : none 13845s E Generated : none 13845s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13845s 13845s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13845s d = '/tmp/tmpjj8q074z' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s err = None 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s kw = {} 13845s module_name = 'test_array_from_pyobj_ext' 13845s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13845s p = 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13845s _________ ERROR at setup of TestSharedMemory.test_inplace[LONGDOUBLE] __________ 13845s 13845s def setup_module(): 13845s """ 13845s Build the required testing extension module 13845s 13845s """ 13845s global wrap 13845s 13845s # Check compiler availability first 13845s if not util.has_c_compiler(): 13845s pytest.skip("No C compiler available") 13845s 13845s if wrap is None: 13845s config_code = """ 13845s config.add_extension('test_array_from_pyobj_ext', 13845s sources=['wrapmodule.c', 'fortranobject.c'], 13845s define_macros=[]) 13845s """ 13845s d = os.path.dirname(__file__) 13845s src = [ 13845s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13845s util.getpath("src", "fortranobject.c"), 13845s util.getpath("src", "fortranobject.h"), 13845s ] 13845s > wrap = util.build_module_distutils(src, config_code, 13845s "test_array_from_pyobj_ext") 13845s 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13845s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13845s memo[key] = func(*a, **kw) 13845s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13845s func = 13845s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13845s kw = {} 13845s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13845s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13845s 13845s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13845s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13845s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13845s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13845s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13845s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13845s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13845s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13845s 13845s @_memoize 13845s def build_module_distutils(source_files, config_code, module_name, **kw): 13845s """ 13845s Build a module via distutils and import it. 13845s 13845s """ 13845s d = get_module_dir() 13845s 13845s # Copy files 13845s dst_sources = [] 13845s for fn in source_files: 13845s if not os.path.isfile(fn): 13845s raise RuntimeError("%s is not a file" % fn) 13845s dst = os.path.join(d, os.path.basename(fn)) 13845s shutil.copyfile(fn, dst) 13845s dst_sources.append(dst) 13845s 13845s # Build script 13845s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13845s 13845s code = fr""" 13845s import os 13845s import sys 13845s sys.path = {repr(sys.path)} 13845s 13845s def configuration(parent_name='',top_path=None): 13845s from numpy.distutils.misc_util import Configuration 13845s config = Configuration('', parent_name, top_path) 13845s {config_code} 13845s return config 13845s 13845s if __name__ == "__main__": 13845s from numpy.distutils.core import setup 13845s setup(configuration=configuration) 13845s """ 13845s script = os.path.join(d, get_temp_module_name() + ".py") 13845s dst_sources.append(script) 13845s with open(script, "wb") as f: 13845s f.write(asbytes(code)) 13845s 13845s # Build 13845s cwd = os.getcwd() 13845s try: 13845s os.chdir(d) 13845s cmd = [sys.executable, script, "build_ext", "-i"] 13845s p = subprocess.Popen(cmd, 13845s stdout=subprocess.PIPE, 13845s stderr=subprocess.STDOUT) 13845s out, err = p.communicate() 13845s if p.returncode != 0: 13845s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13845s (cmd[4:], asstr(out))) 13845s E RuntimeError: Running distutils build failed: [] 13845s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13845s E 13845s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13845s E of the deprecation of `distutils` itself. It will be removed for 13845s E Python >= 3.12. For older Python versions it will remain present. 13845s E It is recommended to use `setuptools < 60.0` for those Python versions. 13845s E For more details, see: 13845s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13845s E 13845s E 13845s E from numpy.distutils.core import setup 13845s E running build_ext 13845s E running build_src 13845s E INFO: build_src 13845s E INFO: building extension "test_array_from_pyobj_ext" sources 13845s E INFO: build_src: building npy-pkg config files 13845s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13845s E !! 13845s E 13845s E ******************************************************************************** 13845s E Please avoid running ``setup.py`` directly. 13845s E Instead, use pypa/build, pypa/installer or other 13845s E standards-based tools. 13845s E 13845s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13845s E ******************************************************************************** 13845s E 13845s E !! 13845s E self.initialize_options() 13845s E INFO: customize UnixCCompiler 13845s E INFO: customize UnixCCompiler using build_ext 13845s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/tmp 13845s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E creating /tmp/tmppq19o2st/usr 13845s E creating /tmp/tmppq19o2st/usr/lib 13845s E creating /tmp/tmppq19o2st/usr/lib/python3 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13845s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=native' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-O3' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-Werror' 13845s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13845s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon -Werror' 13845s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13845s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13845s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13845s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13845s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13845s E 9 | # include_next 13845s E | ^~~~~~~~~~ 13845s E compilation terminated. 13845s E 13845s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-vfpv4' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13845s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13845s E INFO: compile options: '-I/usr/include/python3.12 -c' 13845s E extra options: '-march=armv8.2-a+fp16' 13845s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13845s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13845s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s __ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[LONGDOUBLE] ___ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s ________ ERROR at setup of TestSharedMemory.test_in_from_2seq[CDOUBLE] _________ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s ______ ERROR at setup of TestSharedMemory.test_in_from_2casttype[CDOUBLE] ______ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-2seq-C-w] ______ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-2seq-C-ro] _____ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-2seq-F-w] ______ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-2seq-F-ro] _____ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-23seq-C-w] _____ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-23seq-C-ro] _____ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13846s E INFO: building extension "test_array_from_pyobj_ext" sources 13846s E INFO: build_src: building npy-pkg config files 13846s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13846s E !! 13846s E 13846s E ******************************************************************************** 13846s E Please avoid running ``setup.py`` directly. 13846s E Instead, use pypa/build, pypa/installer or other 13846s E standards-based tools. 13846s E 13846s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13846s E ******************************************************************************** 13846s E 13846s E !! 13846s E self.initialize_options() 13846s E INFO: customize UnixCCompiler 13846s E INFO: customize UnixCCompiler using build_ext 13846s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/tmp 13846s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E creating /tmp/tmppq19o2st/usr 13846s E creating /tmp/tmppq19o2st/usr/lib 13846s E creating /tmp/tmppq19o2st/usr/lib/python3 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13846s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=native' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-O3' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-Werror' 13846s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13846s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-vfpv4' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13846s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-march=armv8.2-a+fp16' 13846s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/include/python3.12 -c' 13846s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13846s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13846s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13846s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13846s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13846s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13846s E 9 | # include_next 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E 13846s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13846s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13846s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13846s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13846s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13846s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13846s E INFO: building 'test_array_from_pyobj_ext' extension 13846s E INFO: compiling C sources 13846s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13846s E 13846s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13846s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13846s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13846s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13846s E 14 | #include 13846s E | ^~~~~~~~~~ 13846s E In file included from fortranobject.c:2: 13846s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13846s E 7 | #include 13846s E | ^~~~~~~~~~ 13846s E compilation terminated. 13846s E compilation terminated. 13846s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13846s E INFO: 13846s E ########### EXT COMPILER OPTIMIZATION ########### 13846s E INFO: Platform : 13846s E Architecture: armhf 13846s E Compiler : gcc 13846s E 13846s E CPU baseline : 13846s E Requested : 'min' 13846s E Enabled : none 13846s E Flags : none 13846s E Extra checks: none 13846s E 13846s E CPU dispatch : 13846s E Requested : 'max -xop -fma4' 13846s E Enabled : none 13846s E Generated : none 13846s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13846s 13846s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13846s d = '/tmp/tmpjj8q074z' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s err = None 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s kw = {} 13846s module_name = 'test_array_from_pyobj_ext' 13846s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13846s p = 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13846s _____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-23seq-F-w] _____ 13846s 13846s def setup_module(): 13846s """ 13846s Build the required testing extension module 13846s 13846s """ 13846s global wrap 13846s 13846s # Check compiler availability first 13846s if not util.has_c_compiler(): 13846s pytest.skip("No C compiler available") 13846s 13846s if wrap is None: 13846s config_code = """ 13846s config.add_extension('test_array_from_pyobj_ext', 13846s sources=['wrapmodule.c', 'fortranobject.c'], 13846s define_macros=[]) 13846s """ 13846s d = os.path.dirname(__file__) 13846s src = [ 13846s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13846s util.getpath("src", "fortranobject.c"), 13846s util.getpath("src", "fortranobject.h"), 13846s ] 13846s > wrap = util.build_module_distutils(src, config_code, 13846s "test_array_from_pyobj_ext") 13846s 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13846s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13846s memo[key] = func(*a, **kw) 13846s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13846s func = 13846s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13846s kw = {} 13846s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13846s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13846s 13846s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13846s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13846s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13846s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13846s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13846s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13846s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13846s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13846s 13846s @_memoize 13846s def build_module_distutils(source_files, config_code, module_name, **kw): 13846s """ 13846s Build a module via distutils and import it. 13846s 13846s """ 13846s d = get_module_dir() 13846s 13846s # Copy files 13846s dst_sources = [] 13846s for fn in source_files: 13846s if not os.path.isfile(fn): 13846s raise RuntimeError("%s is not a file" % fn) 13846s dst = os.path.join(d, os.path.basename(fn)) 13846s shutil.copyfile(fn, dst) 13846s dst_sources.append(dst) 13846s 13846s # Build script 13846s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13846s 13846s code = fr""" 13846s import os 13846s import sys 13846s sys.path = {repr(sys.path)} 13846s 13846s def configuration(parent_name='',top_path=None): 13846s from numpy.distutils.misc_util import Configuration 13846s config = Configuration('', parent_name, top_path) 13846s {config_code} 13846s return config 13846s 13846s if __name__ == "__main__": 13846s from numpy.distutils.core import setup 13846s setup(configuration=configuration) 13846s """ 13846s script = os.path.join(d, get_temp_module_name() + ".py") 13846s dst_sources.append(script) 13846s with open(script, "wb") as f: 13846s f.write(asbytes(code)) 13846s 13846s # Build 13846s cwd = os.getcwd() 13846s try: 13846s os.chdir(d) 13846s cmd = [sys.executable, script, "build_ext", "-i"] 13846s p = subprocess.Popen(cmd, 13846s stdout=subprocess.PIPE, 13846s stderr=subprocess.STDOUT) 13846s out, err = p.communicate() 13846s if p.returncode != 0: 13846s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13846s (cmd[4:], asstr(out))) 13846s E RuntimeError: Running distutils build failed: [] 13846s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13846s E 13846s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13846s E of the deprecation of `distutils` itself. It will be removed for 13846s E Python >= 3.12. For older Python versions it will remain present. 13846s E It is recommended to use `setuptools < 60.0` for those Python versions. 13846s E For more details, see: 13846s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13846s E 13846s E 13846s E from numpy.distutils.core import setup 13846s E running build_ext 13846s E running build_src 13846s E INFO: build_src 13847s E INFO: building extension "test_array_from_pyobj_ext" sources 13847s E INFO: build_src: building npy-pkg config files 13847s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13847s E !! 13847s E 13847s E ******************************************************************************** 13847s E Please avoid running ``setup.py`` directly. 13847s E Instead, use pypa/build, pypa/installer or other 13847s E standards-based tools. 13847s E 13847s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13847s E ******************************************************************************** 13847s E 13847s E !! 13847s E self.initialize_options() 13847s E INFO: customize UnixCCompiler 13847s E INFO: customize UnixCCompiler using build_ext 13847s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/tmp 13847s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/usr 13847s E creating /tmp/tmppq19o2st/usr/lib 13847s E creating /tmp/tmppq19o2st/usr/lib/python3 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=native' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-O3' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-Werror' 13847s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13847s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-vfpv4' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=armv8.2-a+fp16' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13847s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13847s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13847s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13847s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13847s E INFO: building 'test_array_from_pyobj_ext' extension 13847s E INFO: compiling C sources 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13847s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13847s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13847s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13847s E 14 | #include 13847s E | ^~~~~~~~~~ 13847s E In file included from fortranobject.c:2: 13847s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13847s E 7 | #include 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E compilation terminated. 13847s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13847s E INFO: 13847s E ########### EXT COMPILER OPTIMIZATION ########### 13847s E INFO: Platform : 13847s E Architecture: armhf 13847s E Compiler : gcc 13847s E 13847s E CPU baseline : 13847s E Requested : 'min' 13847s E Enabled : none 13847s E Flags : none 13847s E Extra checks: none 13847s E 13847s E CPU dispatch : 13847s E Requested : 'max -xop -fma4' 13847s E Enabled : none 13847s E Generated : none 13847s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13847s 13847s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13847s d = '/tmp/tmpjj8q074z' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s err = None 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s kw = {} 13847s module_name = 'test_array_from_pyobj_ext' 13847s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13847s p = 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13847s ____ ERROR at setup of TestSharedMemory.test_in_nocopy[CDOUBLE-23seq-F-ro] _____ 13847s 13847s def setup_module(): 13847s """ 13847s Build the required testing extension module 13847s 13847s """ 13847s global wrap 13847s 13847s # Check compiler availability first 13847s if not util.has_c_compiler(): 13847s pytest.skip("No C compiler available") 13847s 13847s if wrap is None: 13847s config_code = """ 13847s config.add_extension('test_array_from_pyobj_ext', 13847s sources=['wrapmodule.c', 'fortranobject.c'], 13847s define_macros=[]) 13847s """ 13847s d = os.path.dirname(__file__) 13847s src = [ 13847s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13847s util.getpath("src", "fortranobject.c"), 13847s util.getpath("src", "fortranobject.h"), 13847s ] 13847s > wrap = util.build_module_distutils(src, config_code, 13847s "test_array_from_pyobj_ext") 13847s 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13847s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13847s memo[key] = func(*a, **kw) 13847s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13847s func = 13847s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13847s kw = {} 13847s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s 13847s @_memoize 13847s def build_module_distutils(source_files, config_code, module_name, **kw): 13847s """ 13847s Build a module via distutils and import it. 13847s 13847s """ 13847s d = get_module_dir() 13847s 13847s # Copy files 13847s dst_sources = [] 13847s for fn in source_files: 13847s if not os.path.isfile(fn): 13847s raise RuntimeError("%s is not a file" % fn) 13847s dst = os.path.join(d, os.path.basename(fn)) 13847s shutil.copyfile(fn, dst) 13847s dst_sources.append(dst) 13847s 13847s # Build script 13847s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13847s 13847s code = fr""" 13847s import os 13847s import sys 13847s sys.path = {repr(sys.path)} 13847s 13847s def configuration(parent_name='',top_path=None): 13847s from numpy.distutils.misc_util import Configuration 13847s config = Configuration('', parent_name, top_path) 13847s {config_code} 13847s return config 13847s 13847s if __name__ == "__main__": 13847s from numpy.distutils.core import setup 13847s setup(configuration=configuration) 13847s """ 13847s script = os.path.join(d, get_temp_module_name() + ".py") 13847s dst_sources.append(script) 13847s with open(script, "wb") as f: 13847s f.write(asbytes(code)) 13847s 13847s # Build 13847s cwd = os.getcwd() 13847s try: 13847s os.chdir(d) 13847s cmd = [sys.executable, script, "build_ext", "-i"] 13847s p = subprocess.Popen(cmd, 13847s stdout=subprocess.PIPE, 13847s stderr=subprocess.STDOUT) 13847s out, err = p.communicate() 13847s if p.returncode != 0: 13847s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13847s (cmd[4:], asstr(out))) 13847s E RuntimeError: Running distutils build failed: [] 13847s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13847s E 13847s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13847s E of the deprecation of `distutils` itself. It will be removed for 13847s E Python >= 3.12. For older Python versions it will remain present. 13847s E It is recommended to use `setuptools < 60.0` for those Python versions. 13847s E For more details, see: 13847s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13847s E 13847s E 13847s E from numpy.distutils.core import setup 13847s E running build_ext 13847s E running build_src 13847s E INFO: build_src 13847s E INFO: building extension "test_array_from_pyobj_ext" sources 13847s E INFO: build_src: building npy-pkg config files 13847s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13847s E !! 13847s E 13847s E ******************************************************************************** 13847s E Please avoid running ``setup.py`` directly. 13847s E Instead, use pypa/build, pypa/installer or other 13847s E standards-based tools. 13847s E 13847s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13847s E ******************************************************************************** 13847s E 13847s E !! 13847s E self.initialize_options() 13847s E INFO: customize UnixCCompiler 13847s E INFO: customize UnixCCompiler using build_ext 13847s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/tmp 13847s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/usr 13847s E creating /tmp/tmppq19o2st/usr/lib 13847s E creating /tmp/tmppq19o2st/usr/lib/python3 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=native' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-O3' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-Werror' 13847s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13847s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-vfpv4' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=armv8.2-a+fp16' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13847s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13847s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13847s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13847s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13847s E INFO: building 'test_array_from_pyobj_ext' extension 13847s E INFO: compiling C sources 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13847s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13847s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13847s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13847s E 14 | #include 13847s E | ^~~~~~~~~~ 13847s E In file included from fortranobject.c:2: 13847s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13847s E 7 | #include 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E compilation terminated. 13847s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13847s E INFO: 13847s E ########### EXT COMPILER OPTIMIZATION ########### 13847s E INFO: Platform : 13847s E Architecture: armhf 13847s E Compiler : gcc 13847s E 13847s E CPU baseline : 13847s E Requested : 'min' 13847s E Enabled : none 13847s E Flags : none 13847s E Extra checks: none 13847s E 13847s E CPU dispatch : 13847s E Requested : 'max -xop -fma4' 13847s E Enabled : none 13847s E Generated : none 13847s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13847s 13847s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13847s d = '/tmp/tmpjj8q074z' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s err = None 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s kw = {} 13847s module_name = 'test_array_from_pyobj_ext' 13847s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13847s p = 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13847s _________ ERROR at setup of TestSharedMemory.test_inout_2seq[CDOUBLE] __________ 13847s 13847s def setup_module(): 13847s """ 13847s Build the required testing extension module 13847s 13847s """ 13847s global wrap 13847s 13847s # Check compiler availability first 13847s if not util.has_c_compiler(): 13847s pytest.skip("No C compiler available") 13847s 13847s if wrap is None: 13847s config_code = """ 13847s config.add_extension('test_array_from_pyobj_ext', 13847s sources=['wrapmodule.c', 'fortranobject.c'], 13847s define_macros=[]) 13847s """ 13847s d = os.path.dirname(__file__) 13847s src = [ 13847s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13847s util.getpath("src", "fortranobject.c"), 13847s util.getpath("src", "fortranobject.h"), 13847s ] 13847s > wrap = util.build_module_distutils(src, config_code, 13847s "test_array_from_pyobj_ext") 13847s 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13847s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13847s memo[key] = func(*a, **kw) 13847s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13847s func = 13847s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13847s kw = {} 13847s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s 13847s @_memoize 13847s def build_module_distutils(source_files, config_code, module_name, **kw): 13847s """ 13847s Build a module via distutils and import it. 13847s 13847s """ 13847s d = get_module_dir() 13847s 13847s # Copy files 13847s dst_sources = [] 13847s for fn in source_files: 13847s if not os.path.isfile(fn): 13847s raise RuntimeError("%s is not a file" % fn) 13847s dst = os.path.join(d, os.path.basename(fn)) 13847s shutil.copyfile(fn, dst) 13847s dst_sources.append(dst) 13847s 13847s # Build script 13847s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13847s 13847s code = fr""" 13847s import os 13847s import sys 13847s sys.path = {repr(sys.path)} 13847s 13847s def configuration(parent_name='',top_path=None): 13847s from numpy.distutils.misc_util import Configuration 13847s config = Configuration('', parent_name, top_path) 13847s {config_code} 13847s return config 13847s 13847s if __name__ == "__main__": 13847s from numpy.distutils.core import setup 13847s setup(configuration=configuration) 13847s """ 13847s script = os.path.join(d, get_temp_module_name() + ".py") 13847s dst_sources.append(script) 13847s with open(script, "wb") as f: 13847s f.write(asbytes(code)) 13847s 13847s # Build 13847s cwd = os.getcwd() 13847s try: 13847s os.chdir(d) 13847s cmd = [sys.executable, script, "build_ext", "-i"] 13847s p = subprocess.Popen(cmd, 13847s stdout=subprocess.PIPE, 13847s stderr=subprocess.STDOUT) 13847s out, err = p.communicate() 13847s if p.returncode != 0: 13847s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13847s (cmd[4:], asstr(out))) 13847s E RuntimeError: Running distutils build failed: [] 13847s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13847s E 13847s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13847s E of the deprecation of `distutils` itself. It will be removed for 13847s E Python >= 3.12. For older Python versions it will remain present. 13847s E It is recommended to use `setuptools < 60.0` for those Python versions. 13847s E For more details, see: 13847s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13847s E 13847s E 13847s E from numpy.distutils.core import setup 13847s E running build_ext 13847s E running build_src 13847s E INFO: build_src 13847s E INFO: building extension "test_array_from_pyobj_ext" sources 13847s E INFO: build_src: building npy-pkg config files 13847s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13847s E !! 13847s E 13847s E ******************************************************************************** 13847s E Please avoid running ``setup.py`` directly. 13847s E Instead, use pypa/build, pypa/installer or other 13847s E standards-based tools. 13847s E 13847s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13847s E ******************************************************************************** 13847s E 13847s E !! 13847s E self.initialize_options() 13847s E INFO: customize UnixCCompiler 13847s E INFO: customize UnixCCompiler using build_ext 13847s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/tmp 13847s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/usr 13847s E creating /tmp/tmppq19o2st/usr/lib 13847s E creating /tmp/tmppq19o2st/usr/lib/python3 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=native' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-O3' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-Werror' 13847s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13847s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-vfpv4' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=armv8.2-a+fp16' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13847s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13847s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13847s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13847s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13847s E INFO: building 'test_array_from_pyobj_ext' extension 13847s E INFO: compiling C sources 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13847s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13847s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13847s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13847s E 14 | #include 13847s E | ^~~~~~~~~~ 13847s E In file included from fortranobject.c:2: 13847s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13847s E 7 | #include 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E compilation terminated. 13847s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13847s E INFO: 13847s E ########### EXT COMPILER OPTIMIZATION ########### 13847s E INFO: Platform : 13847s E Architecture: armhf 13847s E Compiler : gcc 13847s E 13847s E CPU baseline : 13847s E Requested : 'min' 13847s E Enabled : none 13847s E Flags : none 13847s E Extra checks: none 13847s E 13847s E CPU dispatch : 13847s E Requested : 'max -xop -fma4' 13847s E Enabled : none 13847s E Generated : none 13847s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13847s 13847s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13847s d = '/tmp/tmpjj8q074z' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s err = None 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s kw = {} 13847s module_name = 'test_array_from_pyobj_ext' 13847s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13847s p = 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13847s ________ ERROR at setup of TestSharedMemory.test_f_inout_23seq[CDOUBLE] ________ 13847s 13847s def setup_module(): 13847s """ 13847s Build the required testing extension module 13847s 13847s """ 13847s global wrap 13847s 13847s # Check compiler availability first 13847s if not util.has_c_compiler(): 13847s pytest.skip("No C compiler available") 13847s 13847s if wrap is None: 13847s config_code = """ 13847s config.add_extension('test_array_from_pyobj_ext', 13847s sources=['wrapmodule.c', 'fortranobject.c'], 13847s define_macros=[]) 13847s """ 13847s d = os.path.dirname(__file__) 13847s src = [ 13847s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13847s util.getpath("src", "fortranobject.c"), 13847s util.getpath("src", "fortranobject.h"), 13847s ] 13847s > wrap = util.build_module_distutils(src, config_code, 13847s "test_array_from_pyobj_ext") 13847s 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13847s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13847s memo[key] = func(*a, **kw) 13847s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13847s func = 13847s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13847s kw = {} 13847s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s 13847s @_memoize 13847s def build_module_distutils(source_files, config_code, module_name, **kw): 13847s """ 13847s Build a module via distutils and import it. 13847s 13847s """ 13847s d = get_module_dir() 13847s 13847s # Copy files 13847s dst_sources = [] 13847s for fn in source_files: 13847s if not os.path.isfile(fn): 13847s raise RuntimeError("%s is not a file" % fn) 13847s dst = os.path.join(d, os.path.basename(fn)) 13847s shutil.copyfile(fn, dst) 13847s dst_sources.append(dst) 13847s 13847s # Build script 13847s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13847s 13847s code = fr""" 13847s import os 13847s import sys 13847s sys.path = {repr(sys.path)} 13847s 13847s def configuration(parent_name='',top_path=None): 13847s from numpy.distutils.misc_util import Configuration 13847s config = Configuration('', parent_name, top_path) 13847s {config_code} 13847s return config 13847s 13847s if __name__ == "__main__": 13847s from numpy.distutils.core import setup 13847s setup(configuration=configuration) 13847s """ 13847s script = os.path.join(d, get_temp_module_name() + ".py") 13847s dst_sources.append(script) 13847s with open(script, "wb") as f: 13847s f.write(asbytes(code)) 13847s 13847s # Build 13847s cwd = os.getcwd() 13847s try: 13847s os.chdir(d) 13847s cmd = [sys.executable, script, "build_ext", "-i"] 13847s p = subprocess.Popen(cmd, 13847s stdout=subprocess.PIPE, 13847s stderr=subprocess.STDOUT) 13847s out, err = p.communicate() 13847s if p.returncode != 0: 13847s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13847s (cmd[4:], asstr(out))) 13847s E RuntimeError: Running distutils build failed: [] 13847s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13847s E 13847s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13847s E of the deprecation of `distutils` itself. It will be removed for 13847s E Python >= 3.12. For older Python versions it will remain present. 13847s E It is recommended to use `setuptools < 60.0` for those Python versions. 13847s E For more details, see: 13847s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13847s E 13847s E 13847s E from numpy.distutils.core import setup 13847s E running build_ext 13847s E running build_src 13847s E INFO: build_src 13847s E INFO: building extension "test_array_from_pyobj_ext" sources 13847s E INFO: build_src: building npy-pkg config files 13847s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13847s E !! 13847s E 13847s E ******************************************************************************** 13847s E Please avoid running ``setup.py`` directly. 13847s E Instead, use pypa/build, pypa/installer or other 13847s E standards-based tools. 13847s E 13847s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13847s E ******************************************************************************** 13847s E 13847s E !! 13847s E self.initialize_options() 13847s E INFO: customize UnixCCompiler 13847s E INFO: customize UnixCCompiler using build_ext 13847s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/tmp 13847s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/usr 13847s E creating /tmp/tmppq19o2st/usr/lib 13847s E creating /tmp/tmppq19o2st/usr/lib/python3 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=native' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-O3' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-Werror' 13847s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13847s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-vfpv4' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=armv8.2-a+fp16' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13847s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13847s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13847s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13847s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13847s E INFO: building 'test_array_from_pyobj_ext' extension 13847s E INFO: compiling C sources 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13847s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13847s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13847s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13847s E 14 | #include 13847s E | ^~~~~~~~~~ 13847s E In file included from fortranobject.c:2: 13847s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13847s E 7 | #include 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E compilation terminated. 13847s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13847s E INFO: 13847s E ########### EXT COMPILER OPTIMIZATION ########### 13847s E INFO: Platform : 13847s E Architecture: armhf 13847s E Compiler : gcc 13847s E 13847s E CPU baseline : 13847s E Requested : 'min' 13847s E Enabled : none 13847s E Flags : none 13847s E Extra checks: none 13847s E 13847s E CPU dispatch : 13847s E Requested : 'max -xop -fma4' 13847s E Enabled : none 13847s E Generated : none 13847s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13847s 13847s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13847s d = '/tmp/tmpjj8q074z' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s err = None 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s kw = {} 13847s module_name = 'test_array_from_pyobj_ext' 13847s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13847s p = 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13847s ________ ERROR at setup of TestSharedMemory.test_c_inout_23seq[CDOUBLE] ________ 13847s 13847s def setup_module(): 13847s """ 13847s Build the required testing extension module 13847s 13847s """ 13847s global wrap 13847s 13847s # Check compiler availability first 13847s if not util.has_c_compiler(): 13847s pytest.skip("No C compiler available") 13847s 13847s if wrap is None: 13847s config_code = """ 13847s config.add_extension('test_array_from_pyobj_ext', 13847s sources=['wrapmodule.c', 'fortranobject.c'], 13847s define_macros=[]) 13847s """ 13847s d = os.path.dirname(__file__) 13847s src = [ 13847s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13847s util.getpath("src", "fortranobject.c"), 13847s util.getpath("src", "fortranobject.h"), 13847s ] 13847s > wrap = util.build_module_distutils(src, config_code, 13847s "test_array_from_pyobj_ext") 13847s 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13847s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13847s memo[key] = func(*a, **kw) 13847s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13847s func = 13847s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13847s kw = {} 13847s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s 13847s @_memoize 13847s def build_module_distutils(source_files, config_code, module_name, **kw): 13847s """ 13847s Build a module via distutils and import it. 13847s 13847s """ 13847s d = get_module_dir() 13847s 13847s # Copy files 13847s dst_sources = [] 13847s for fn in source_files: 13847s if not os.path.isfile(fn): 13847s raise RuntimeError("%s is not a file" % fn) 13847s dst = os.path.join(d, os.path.basename(fn)) 13847s shutil.copyfile(fn, dst) 13847s dst_sources.append(dst) 13847s 13847s # Build script 13847s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13847s 13847s code = fr""" 13847s import os 13847s import sys 13847s sys.path = {repr(sys.path)} 13847s 13847s def configuration(parent_name='',top_path=None): 13847s from numpy.distutils.misc_util import Configuration 13847s config = Configuration('', parent_name, top_path) 13847s {config_code} 13847s return config 13847s 13847s if __name__ == "__main__": 13847s from numpy.distutils.core import setup 13847s setup(configuration=configuration) 13847s """ 13847s script = os.path.join(d, get_temp_module_name() + ".py") 13847s dst_sources.append(script) 13847s with open(script, "wb") as f: 13847s f.write(asbytes(code)) 13847s 13847s # Build 13847s cwd = os.getcwd() 13847s try: 13847s os.chdir(d) 13847s cmd = [sys.executable, script, "build_ext", "-i"] 13847s p = subprocess.Popen(cmd, 13847s stdout=subprocess.PIPE, 13847s stderr=subprocess.STDOUT) 13847s out, err = p.communicate() 13847s if p.returncode != 0: 13847s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13847s (cmd[4:], asstr(out))) 13847s E RuntimeError: Running distutils build failed: [] 13847s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13847s E 13847s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13847s E of the deprecation of `distutils` itself. It will be removed for 13847s E Python >= 3.12. For older Python versions it will remain present. 13847s E It is recommended to use `setuptools < 60.0` for those Python versions. 13847s E For more details, see: 13847s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13847s E 13847s E 13847s E from numpy.distutils.core import setup 13847s E running build_ext 13847s E running build_src 13847s E INFO: build_src 13847s E INFO: building extension "test_array_from_pyobj_ext" sources 13847s E INFO: build_src: building npy-pkg config files 13847s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13847s E !! 13847s E 13847s E ******************************************************************************** 13847s E Please avoid running ``setup.py`` directly. 13847s E Instead, use pypa/build, pypa/installer or other 13847s E standards-based tools. 13847s E 13847s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13847s E ******************************************************************************** 13847s E 13847s E !! 13847s E self.initialize_options() 13847s E INFO: customize UnixCCompiler 13847s E INFO: customize UnixCCompiler using build_ext 13847s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/tmp 13847s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/usr 13847s E creating /tmp/tmppq19o2st/usr/lib 13847s E creating /tmp/tmppq19o2st/usr/lib/python3 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=native' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-O3' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-Werror' 13847s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13847s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-vfpv4' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=armv8.2-a+fp16' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13847s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13847s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13847s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13847s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13847s E INFO: building 'test_array_from_pyobj_ext' extension 13847s E INFO: compiling C sources 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13847s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13847s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13847s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13847s E 14 | #include 13847s E | ^~~~~~~~~~ 13847s E In file included from fortranobject.c:2: 13847s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13847s E 7 | #include 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E compilation terminated. 13847s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13847s E INFO: 13847s E ########### EXT COMPILER OPTIMIZATION ########### 13847s E INFO: Platform : 13847s E Architecture: armhf 13847s E Compiler : gcc 13847s E 13847s E CPU baseline : 13847s E Requested : 'min' 13847s E Enabled : none 13847s E Flags : none 13847s E Extra checks: none 13847s E 13847s E CPU dispatch : 13847s E Requested : 'max -xop -fma4' 13847s E Enabled : none 13847s E Generated : none 13847s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13847s 13847s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13847s d = '/tmp/tmpjj8q074z' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s err = None 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s kw = {} 13847s module_name = 'test_array_from_pyobj_ext' 13847s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13847s p = 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13847s ___ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[CDOUBLE] ____ 13847s 13847s def setup_module(): 13847s """ 13847s Build the required testing extension module 13847s 13847s """ 13847s global wrap 13847s 13847s # Check compiler availability first 13847s if not util.has_c_compiler(): 13847s pytest.skip("No C compiler available") 13847s 13847s if wrap is None: 13847s config_code = """ 13847s config.add_extension('test_array_from_pyobj_ext', 13847s sources=['wrapmodule.c', 'fortranobject.c'], 13847s define_macros=[]) 13847s """ 13847s d = os.path.dirname(__file__) 13847s src = [ 13847s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13847s util.getpath("src", "fortranobject.c"), 13847s util.getpath("src", "fortranobject.h"), 13847s ] 13847s > wrap = util.build_module_distutils(src, config_code, 13847s "test_array_from_pyobj_ext") 13847s 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13847s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13847s memo[key] = func(*a, **kw) 13847s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13847s func = 13847s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13847s kw = {} 13847s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s 13847s @_memoize 13847s def build_module_distutils(source_files, config_code, module_name, **kw): 13847s """ 13847s Build a module via distutils and import it. 13847s 13847s """ 13847s d = get_module_dir() 13847s 13847s # Copy files 13847s dst_sources = [] 13847s for fn in source_files: 13847s if not os.path.isfile(fn): 13847s raise RuntimeError("%s is not a file" % fn) 13847s dst = os.path.join(d, os.path.basename(fn)) 13847s shutil.copyfile(fn, dst) 13847s dst_sources.append(dst) 13847s 13847s # Build script 13847s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13847s 13847s code = fr""" 13847s import os 13847s import sys 13847s sys.path = {repr(sys.path)} 13847s 13847s def configuration(parent_name='',top_path=None): 13847s from numpy.distutils.misc_util import Configuration 13847s config = Configuration('', parent_name, top_path) 13847s {config_code} 13847s return config 13847s 13847s if __name__ == "__main__": 13847s from numpy.distutils.core import setup 13847s setup(configuration=configuration) 13847s """ 13847s script = os.path.join(d, get_temp_module_name() + ".py") 13847s dst_sources.append(script) 13847s with open(script, "wb") as f: 13847s f.write(asbytes(code)) 13847s 13847s # Build 13847s cwd = os.getcwd() 13847s try: 13847s os.chdir(d) 13847s cmd = [sys.executable, script, "build_ext", "-i"] 13847s p = subprocess.Popen(cmd, 13847s stdout=subprocess.PIPE, 13847s stderr=subprocess.STDOUT) 13847s out, err = p.communicate() 13847s if p.returncode != 0: 13847s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13847s (cmd[4:], asstr(out))) 13847s E RuntimeError: Running distutils build failed: [] 13847s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13847s E 13847s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13847s E of the deprecation of `distutils` itself. It will be removed for 13847s E Python >= 3.12. For older Python versions it will remain present. 13847s E It is recommended to use `setuptools < 60.0` for those Python versions. 13847s E For more details, see: 13847s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13847s E 13847s E 13847s E from numpy.distutils.core import setup 13847s E running build_ext 13847s E running build_src 13847s E INFO: build_src 13847s E INFO: building extension "test_array_from_pyobj_ext" sources 13847s E INFO: build_src: building npy-pkg config files 13847s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13847s E !! 13847s E 13847s E ******************************************************************************** 13847s E Please avoid running ``setup.py`` directly. 13847s E Instead, use pypa/build, pypa/installer or other 13847s E standards-based tools. 13847s E 13847s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13847s E ******************************************************************************** 13847s E 13847s E !! 13847s E self.initialize_options() 13847s E INFO: customize UnixCCompiler 13847s E INFO: customize UnixCCompiler using build_ext 13847s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/tmp 13847s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E creating /tmp/tmppq19o2st/usr 13847s E creating /tmp/tmppq19o2st/usr/lib 13847s E creating /tmp/tmppq19o2st/usr/lib/python3 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13847s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=native' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-O3' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-Werror' 13847s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13847s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-vfpv4' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13847s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-march=armv8.2-a+fp16' 13847s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/include/python3.12 -c' 13847s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13847s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13847s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13847s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13847s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13847s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13847s E 9 | # include_next 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E 13847s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13847s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13847s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13847s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13847s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13847s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13847s E INFO: building 'test_array_from_pyobj_ext' extension 13847s E INFO: compiling C sources 13847s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13847s E 13847s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13847s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13847s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13847s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13847s E 14 | #include 13847s E | ^~~~~~~~~~ 13847s E In file included from fortranobject.c:2: 13847s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13847s E 7 | #include 13847s E | ^~~~~~~~~~ 13847s E compilation terminated. 13847s E compilation terminated. 13847s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13847s E INFO: 13847s E ########### EXT COMPILER OPTIMIZATION ########### 13847s E INFO: Platform : 13847s E Architecture: armhf 13847s E Compiler : gcc 13847s E 13847s E CPU baseline : 13847s E Requested : 'min' 13847s E Enabled : none 13847s E Flags : none 13847s E Extra checks: none 13847s E 13847s E CPU dispatch : 13847s E Requested : 'max -xop -fma4' 13847s E Enabled : none 13847s E Generated : none 13847s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13847s 13847s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13847s d = '/tmp/tmpjj8q074z' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s err = None 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s kw = {} 13847s module_name = 'test_array_from_pyobj_ext' 13847s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13847s p = 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13847s _______ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[CDOUBLE] _______ 13847s 13847s def setup_module(): 13847s """ 13847s Build the required testing extension module 13847s 13847s """ 13847s global wrap 13847s 13847s # Check compiler availability first 13847s if not util.has_c_compiler(): 13847s pytest.skip("No C compiler available") 13847s 13847s if wrap is None: 13847s config_code = """ 13847s config.add_extension('test_array_from_pyobj_ext', 13847s sources=['wrapmodule.c', 'fortranobject.c'], 13847s define_macros=[]) 13847s """ 13847s d = os.path.dirname(__file__) 13847s src = [ 13847s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13847s util.getpath("src", "fortranobject.c"), 13847s util.getpath("src", "fortranobject.h"), 13847s ] 13847s > wrap = util.build_module_distutils(src, config_code, 13847s "test_array_from_pyobj_ext") 13847s 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13847s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13847s memo[key] = func(*a, **kw) 13847s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13847s func = 13847s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13847s kw = {} 13847s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13847s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13847s 13847s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13847s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13847s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13847s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13847s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13847s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13847s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13847s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13847s 13847s @_memoize 13847s def build_module_distutils(source_files, config_code, module_name, **kw): 13847s """ 13847s Build a module via distutils and import it. 13847s 13847s """ 13847s d = get_module_dir() 13847s 13847s # Copy files 13847s dst_sources = [] 13847s for fn in source_files: 13847s if not os.path.isfile(fn): 13847s raise RuntimeError("%s is not a file" % fn) 13847s dst = os.path.join(d, os.path.basename(fn)) 13847s shutil.copyfile(fn, dst) 13847s dst_sources.append(dst) 13847s 13847s # Build script 13847s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13847s 13847s code = fr""" 13847s import os 13847s import sys 13847s sys.path = {repr(sys.path)} 13847s 13847s def configuration(parent_name='',top_path=None): 13847s from numpy.distutils.misc_util import Configuration 13847s config = Configuration('', parent_name, top_path) 13847s {config_code} 13847s return config 13847s 13847s if __name__ == "__main__": 13847s from numpy.distutils.core import setup 13847s setup(configuration=configuration) 13847s """ 13847s script = os.path.join(d, get_temp_module_name() + ".py") 13847s dst_sources.append(script) 13847s with open(script, "wb") as f: 13847s f.write(asbytes(code)) 13847s 13847s # Build 13847s cwd = os.getcwd() 13847s try: 13847s os.chdir(d) 13847s cmd = [sys.executable, script, "build_ext", "-i"] 13847s p = subprocess.Popen(cmd, 13847s stdout=subprocess.PIPE, 13847s stderr=subprocess.STDOUT) 13847s out, err = p.communicate() 13847s if p.returncode != 0: 13847s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13847s (cmd[4:], asstr(out))) 13847s E RuntimeError: Running distutils build failed: [] 13847s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13847s E 13847s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13847s E of the deprecation of `distutils` itself. It will be removed for 13847s E Python >= 3.12. For older Python versions it will remain present. 13847s E It is recommended to use `setuptools < 60.0` for those Python versions. 13847s E For more details, see: 13847s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s _____ ERROR at setup of TestSharedMemory.test_in_from_23casttype[CDOUBLE] ______ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s ____ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[CDOUBLE] _____ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s ____ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[CDOUBLE] _____ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s __ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[CDOUBLE] __ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s __ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[CDOUBLE] __ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s ___ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[CDOUBLE] ___ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[CDOUBLE] _ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s ________ ERROR at setup of TestSharedMemory.test_cache_hidden[CDOUBLE] _________ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13848s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13848s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13848s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13848s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13848s E INFO: building 'test_array_from_pyobj_ext' extension 13848s E INFO: compiling C sources 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13848s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13848s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13848s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13848s E 14 | #include 13848s E | ^~~~~~~~~~ 13848s E In file included from fortranobject.c:2: 13848s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13848s E 7 | #include 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E compilation terminated. 13848s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13848s E INFO: 13848s E ########### EXT COMPILER OPTIMIZATION ########### 13848s E INFO: Platform : 13848s E Architecture: armhf 13848s E Compiler : gcc 13848s E 13848s E CPU baseline : 13848s E Requested : 'min' 13848s E Enabled : none 13848s E Flags : none 13848s E Extra checks: none 13848s E 13848s E CPU dispatch : 13848s E Requested : 'max -xop -fma4' 13848s E Enabled : none 13848s E Generated : none 13848s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13848s 13848s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13848s d = '/tmp/tmpjj8q074z' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s err = None 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s kw = {} 13848s module_name = 'test_array_from_pyobj_ext' 13848s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13848s p = 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13848s ___________ ERROR at setup of TestSharedMemory.test_hidden[CDOUBLE] ____________ 13848s 13848s def setup_module(): 13848s """ 13848s Build the required testing extension module 13848s 13848s """ 13848s global wrap 13848s 13848s # Check compiler availability first 13848s if not util.has_c_compiler(): 13848s pytest.skip("No C compiler available") 13848s 13848s if wrap is None: 13848s config_code = """ 13848s config.add_extension('test_array_from_pyobj_ext', 13848s sources=['wrapmodule.c', 'fortranobject.c'], 13848s define_macros=[]) 13848s """ 13848s d = os.path.dirname(__file__) 13848s src = [ 13848s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13848s util.getpath("src", "fortranobject.c"), 13848s util.getpath("src", "fortranobject.h"), 13848s ] 13848s > wrap = util.build_module_distutils(src, config_code, 13848s "test_array_from_pyobj_ext") 13848s 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13848s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13848s memo[key] = func(*a, **kw) 13848s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13848s func = 13848s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13848s kw = {} 13848s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13848s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13848s 13848s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13848s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13848s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13848s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13848s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13848s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13848s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13848s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13848s 13848s @_memoize 13848s def build_module_distutils(source_files, config_code, module_name, **kw): 13848s """ 13848s Build a module via distutils and import it. 13848s 13848s """ 13848s d = get_module_dir() 13848s 13848s # Copy files 13848s dst_sources = [] 13848s for fn in source_files: 13848s if not os.path.isfile(fn): 13848s raise RuntimeError("%s is not a file" % fn) 13848s dst = os.path.join(d, os.path.basename(fn)) 13848s shutil.copyfile(fn, dst) 13848s dst_sources.append(dst) 13848s 13848s # Build script 13848s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13848s 13848s code = fr""" 13848s import os 13848s import sys 13848s sys.path = {repr(sys.path)} 13848s 13848s def configuration(parent_name='',top_path=None): 13848s from numpy.distutils.misc_util import Configuration 13848s config = Configuration('', parent_name, top_path) 13848s {config_code} 13848s return config 13848s 13848s if __name__ == "__main__": 13848s from numpy.distutils.core import setup 13848s setup(configuration=configuration) 13848s """ 13848s script = os.path.join(d, get_temp_module_name() + ".py") 13848s dst_sources.append(script) 13848s with open(script, "wb") as f: 13848s f.write(asbytes(code)) 13848s 13848s # Build 13848s cwd = os.getcwd() 13848s try: 13848s os.chdir(d) 13848s cmd = [sys.executable, script, "build_ext", "-i"] 13848s p = subprocess.Popen(cmd, 13848s stdout=subprocess.PIPE, 13848s stderr=subprocess.STDOUT) 13848s out, err = p.communicate() 13848s if p.returncode != 0: 13848s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13848s (cmd[4:], asstr(out))) 13848s E RuntimeError: Running distutils build failed: [] 13848s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13848s E 13848s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13848s E of the deprecation of `distutils` itself. It will be removed for 13848s E Python >= 3.12. For older Python versions it will remain present. 13848s E It is recommended to use `setuptools < 60.0` for those Python versions. 13848s E For more details, see: 13848s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13848s E 13848s E 13848s E from numpy.distutils.core import setup 13848s E running build_ext 13848s E running build_src 13848s E INFO: build_src 13848s E INFO: building extension "test_array_from_pyobj_ext" sources 13848s E INFO: build_src: building npy-pkg config files 13848s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13848s E !! 13848s E 13848s E ******************************************************************************** 13848s E Please avoid running ``setup.py`` directly. 13848s E Instead, use pypa/build, pypa/installer or other 13848s E standards-based tools. 13848s E 13848s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13848s E ******************************************************************************** 13848s E 13848s E !! 13848s E self.initialize_options() 13848s E INFO: customize UnixCCompiler 13848s E INFO: customize UnixCCompiler using build_ext 13848s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/tmp 13848s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E creating /tmp/tmppq19o2st/usr 13848s E creating /tmp/tmppq19o2st/usr/lib 13848s E creating /tmp/tmppq19o2st/usr/lib/python3 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13848s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=native' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-O3' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-Werror' 13848s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13848s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-vfpv4' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13848s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-march=armv8.2-a+fp16' 13848s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13848s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13848s E 13848s E INFO: compile options: '-I/usr/include/python3.12 -c' 13848s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13848s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13848s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13848s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13848s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13848s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13848s E 9 | # include_next 13848s E | ^~~~~~~~~~ 13848s E compilation terminated. 13848s E 13848s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13848s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s ________ ERROR at setup of TestSharedMemory.test_optional_none[CDOUBLE] ________ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s _____ ERROR at setup of TestSharedMemory.test_optional_from_2seq[CDOUBLE] ______ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s _____ ERROR at setup of TestSharedMemory.test_optional_from_23seq[CDOUBLE] _____ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s ___________ ERROR at setup of TestSharedMemory.test_inplace[CDOUBLE] ___________ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s ____ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[CDOUBLE] ____ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s ______ ERROR at setup of TestSharedMemory.test_in_from_2seq[CLONGDOUBLE] _______ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s ____ ERROR at setup of TestSharedMemory.test_in_from_2casttype[CLONGDOUBLE] ____ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-2seq-C-w] ____ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-2seq-C-ro] ___ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13849s script = os.path.join(d, get_temp_module_name() + ".py") 13849s dst_sources.append(script) 13849s with open(script, "wb") as f: 13849s f.write(asbytes(code)) 13849s 13849s # Build 13849s cwd = os.getcwd() 13849s try: 13849s os.chdir(d) 13849s cmd = [sys.executable, script, "build_ext", "-i"] 13849s p = subprocess.Popen(cmd, 13849s stdout=subprocess.PIPE, 13849s stderr=subprocess.STDOUT) 13849s out, err = p.communicate() 13849s if p.returncode != 0: 13849s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13849s (cmd[4:], asstr(out))) 13849s E RuntimeError: Running distutils build failed: [] 13849s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13849s E 13849s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13849s E of the deprecation of `distutils` itself. It will be removed for 13849s E Python >= 3.12. For older Python versions it will remain present. 13849s E It is recommended to use `setuptools < 60.0` for those Python versions. 13849s E For more details, see: 13849s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13849s E 13849s E 13849s E from numpy.distutils.core import setup 13849s E running build_ext 13849s E running build_src 13849s E INFO: build_src 13849s E INFO: building extension "test_array_from_pyobj_ext" sources 13849s E INFO: build_src: building npy-pkg config files 13849s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13849s E !! 13849s E 13849s E ******************************************************************************** 13849s E Please avoid running ``setup.py`` directly. 13849s E Instead, use pypa/build, pypa/installer or other 13849s E standards-based tools. 13849s E 13849s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13849s E ******************************************************************************** 13849s E 13849s E !! 13849s E self.initialize_options() 13849s E INFO: customize UnixCCompiler 13849s E INFO: customize UnixCCompiler using build_ext 13849s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/tmp 13849s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E creating /tmp/tmppq19o2st/usr 13849s E creating /tmp/tmppq19o2st/usr/lib 13849s E creating /tmp/tmppq19o2st/usr/lib/python3 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13849s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=native' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-O3' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-Werror' 13849s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13849s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-vfpv4' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13849s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-march=armv8.2-a+fp16' 13849s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/include/python3.12 -c' 13849s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13849s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13849s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13849s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13849s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13849s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13849s E 9 | # include_next 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E 13849s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13849s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13849s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13849s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13849s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13849s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13849s E INFO: building 'test_array_from_pyobj_ext' extension 13849s E INFO: compiling C sources 13849s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13849s E 13849s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13849s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13849s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13849s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13849s E 14 | #include 13849s E | ^~~~~~~~~~ 13849s E In file included from fortranobject.c:2: 13849s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13849s E 7 | #include 13849s E | ^~~~~~~~~~ 13849s E compilation terminated. 13849s E compilation terminated. 13849s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13849s E INFO: 13849s E ########### EXT COMPILER OPTIMIZATION ########### 13849s E INFO: Platform : 13849s E Architecture: armhf 13849s E Compiler : gcc 13849s E 13849s E CPU baseline : 13849s E Requested : 'min' 13849s E Enabled : none 13849s E Flags : none 13849s E Extra checks: none 13849s E 13849s E CPU dispatch : 13849s E Requested : 'max -xop -fma4' 13849s E Enabled : none 13849s E Generated : none 13849s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13849s 13849s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13849s d = '/tmp/tmpjj8q074z' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s err = None 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s kw = {} 13849s module_name = 'test_array_from_pyobj_ext' 13849s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13849s p = 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13849s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-2seq-F-w] ____ 13849s 13849s def setup_module(): 13849s """ 13849s Build the required testing extension module 13849s 13849s """ 13849s global wrap 13849s 13849s # Check compiler availability first 13849s if not util.has_c_compiler(): 13849s pytest.skip("No C compiler available") 13849s 13849s if wrap is None: 13849s config_code = """ 13849s config.add_extension('test_array_from_pyobj_ext', 13849s sources=['wrapmodule.c', 'fortranobject.c'], 13849s define_macros=[]) 13849s """ 13849s d = os.path.dirname(__file__) 13849s src = [ 13849s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13849s util.getpath("src", "fortranobject.c"), 13849s util.getpath("src", "fortranobject.h"), 13849s ] 13849s > wrap = util.build_module_distutils(src, config_code, 13849s "test_array_from_pyobj_ext") 13849s 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13849s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13849s memo[key] = func(*a, **kw) 13849s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13849s func = 13849s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13849s kw = {} 13849s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13849s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13849s 13849s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13849s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13849s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13849s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13849s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13849s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13849s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13849s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13849s 13849s @_memoize 13849s def build_module_distutils(source_files, config_code, module_name, **kw): 13849s """ 13849s Build a module via distutils and import it. 13849s 13849s """ 13849s d = get_module_dir() 13849s 13849s # Copy files 13849s dst_sources = [] 13849s for fn in source_files: 13849s if not os.path.isfile(fn): 13849s raise RuntimeError("%s is not a file" % fn) 13849s dst = os.path.join(d, os.path.basename(fn)) 13849s shutil.copyfile(fn, dst) 13849s dst_sources.append(dst) 13849s 13849s # Build script 13849s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13849s 13849s code = fr""" 13849s import os 13849s import sys 13849s sys.path = {repr(sys.path)} 13849s 13849s def configuration(parent_name='',top_path=None): 13849s from numpy.distutils.misc_util import Configuration 13849s config = Configuration('', parent_name, top_path) 13849s {config_code} 13849s return config 13849s 13849s if __name__ == "__main__": 13849s from numpy.distutils.core import setup 13849s setup(configuration=configuration) 13849s """ 13850s script = os.path.join(d, get_temp_module_name() + ".py") 13850s dst_sources.append(script) 13850s with open(script, "wb") as f: 13850s f.write(asbytes(code)) 13850s 13850s # Build 13850s cwd = os.getcwd() 13850s try: 13850s os.chdir(d) 13850s cmd = [sys.executable, script, "build_ext", "-i"] 13850s p = subprocess.Popen(cmd, 13850s stdout=subprocess.PIPE, 13850s stderr=subprocess.STDOUT) 13850s out, err = p.communicate() 13850s if p.returncode != 0: 13850s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13850s (cmd[4:], asstr(out))) 13850s E RuntimeError: Running distutils build failed: [] 13850s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13850s E 13850s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13850s E of the deprecation of `distutils` itself. It will be removed for 13850s E Python >= 3.12. For older Python versions it will remain present. 13850s E It is recommended to use `setuptools < 60.0` for those Python versions. 13850s E For more details, see: 13850s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13850s E 13850s E 13850s E from numpy.distutils.core import setup 13850s E running build_ext 13850s E running build_src 13850s E INFO: build_src 13850s E INFO: building extension "test_array_from_pyobj_ext" sources 13850s E INFO: build_src: building npy-pkg config files 13850s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13850s E !! 13850s E 13850s E ******************************************************************************** 13850s E Please avoid running ``setup.py`` directly. 13850s E Instead, use pypa/build, pypa/installer or other 13850s E standards-based tools. 13850s E 13850s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13850s E ******************************************************************************** 13850s E 13850s E !! 13850s E self.initialize_options() 13850s E INFO: customize UnixCCompiler 13850s E INFO: customize UnixCCompiler using build_ext 13850s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/tmp 13850s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/usr 13850s E creating /tmp/tmppq19o2st/usr/lib 13850s E creating /tmp/tmppq19o2st/usr/lib/python3 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=native' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-O3' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-Werror' 13850s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13850s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-vfpv4' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=armv8.2-a+fp16' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13850s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13850s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13850s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13850s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13850s E INFO: building 'test_array_from_pyobj_ext' extension 13850s E INFO: compiling C sources 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13850s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13850s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13850s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13850s E 14 | #include 13850s E | ^~~~~~~~~~ 13850s E In file included from fortranobject.c:2: 13850s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13850s E 7 | #include 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E compilation terminated. 13850s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13850s E INFO: 13850s E ########### EXT COMPILER OPTIMIZATION ########### 13850s E INFO: Platform : 13850s E Architecture: armhf 13850s E Compiler : gcc 13850s E 13850s E CPU baseline : 13850s E Requested : 'min' 13850s E Enabled : none 13850s E Flags : none 13850s E Extra checks: none 13850s E 13850s E CPU dispatch : 13850s E Requested : 'max -xop -fma4' 13850s E Enabled : none 13850s E Generated : none 13850s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13850s 13850s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13850s d = '/tmp/tmpjj8q074z' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s err = None 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s kw = {} 13850s module_name = 'test_array_from_pyobj_ext' 13850s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13850s p = 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13850s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-2seq-F-ro] ___ 13850s 13850s def setup_module(): 13850s """ 13850s Build the required testing extension module 13850s 13850s """ 13850s global wrap 13850s 13850s # Check compiler availability first 13850s if not util.has_c_compiler(): 13850s pytest.skip("No C compiler available") 13850s 13850s if wrap is None: 13850s config_code = """ 13850s config.add_extension('test_array_from_pyobj_ext', 13850s sources=['wrapmodule.c', 'fortranobject.c'], 13850s define_macros=[]) 13850s """ 13850s d = os.path.dirname(__file__) 13850s src = [ 13850s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13850s util.getpath("src", "fortranobject.c"), 13850s util.getpath("src", "fortranobject.h"), 13850s ] 13850s > wrap = util.build_module_distutils(src, config_code, 13850s "test_array_from_pyobj_ext") 13850s 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13850s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13850s memo[key] = func(*a, **kw) 13850s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13850s func = 13850s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13850s kw = {} 13850s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s 13850s @_memoize 13850s def build_module_distutils(source_files, config_code, module_name, **kw): 13850s """ 13850s Build a module via distutils and import it. 13850s 13850s """ 13850s d = get_module_dir() 13850s 13850s # Copy files 13850s dst_sources = [] 13850s for fn in source_files: 13850s if not os.path.isfile(fn): 13850s raise RuntimeError("%s is not a file" % fn) 13850s dst = os.path.join(d, os.path.basename(fn)) 13850s shutil.copyfile(fn, dst) 13850s dst_sources.append(dst) 13850s 13850s # Build script 13850s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13850s 13850s code = fr""" 13850s import os 13850s import sys 13850s sys.path = {repr(sys.path)} 13850s 13850s def configuration(parent_name='',top_path=None): 13850s from numpy.distutils.misc_util import Configuration 13850s config = Configuration('', parent_name, top_path) 13850s {config_code} 13850s return config 13850s 13850s if __name__ == "__main__": 13850s from numpy.distutils.core import setup 13850s setup(configuration=configuration) 13850s """ 13850s script = os.path.join(d, get_temp_module_name() + ".py") 13850s dst_sources.append(script) 13850s with open(script, "wb") as f: 13850s f.write(asbytes(code)) 13850s 13850s # Build 13850s cwd = os.getcwd() 13850s try: 13850s os.chdir(d) 13850s cmd = [sys.executable, script, "build_ext", "-i"] 13850s p = subprocess.Popen(cmd, 13850s stdout=subprocess.PIPE, 13850s stderr=subprocess.STDOUT) 13850s out, err = p.communicate() 13850s if p.returncode != 0: 13850s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13850s (cmd[4:], asstr(out))) 13850s E RuntimeError: Running distutils build failed: [] 13850s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13850s E 13850s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13850s E of the deprecation of `distutils` itself. It will be removed for 13850s E Python >= 3.12. For older Python versions it will remain present. 13850s E It is recommended to use `setuptools < 60.0` for those Python versions. 13850s E For more details, see: 13850s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13850s E 13850s E 13850s E from numpy.distutils.core import setup 13850s E running build_ext 13850s E running build_src 13850s E INFO: build_src 13850s E INFO: building extension "test_array_from_pyobj_ext" sources 13850s E INFO: build_src: building npy-pkg config files 13850s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13850s E !! 13850s E 13850s E ******************************************************************************** 13850s E Please avoid running ``setup.py`` directly. 13850s E Instead, use pypa/build, pypa/installer or other 13850s E standards-based tools. 13850s E 13850s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13850s E ******************************************************************************** 13850s E 13850s E !! 13850s E self.initialize_options() 13850s E INFO: customize UnixCCompiler 13850s E INFO: customize UnixCCompiler using build_ext 13850s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/tmp 13850s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/usr 13850s E creating /tmp/tmppq19o2st/usr/lib 13850s E creating /tmp/tmppq19o2st/usr/lib/python3 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=native' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-O3' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-Werror' 13850s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13850s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-vfpv4' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=armv8.2-a+fp16' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13850s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13850s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13850s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13850s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13850s E INFO: building 'test_array_from_pyobj_ext' extension 13850s E INFO: compiling C sources 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13850s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13850s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13850s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13850s E 14 | #include 13850s E | ^~~~~~~~~~ 13850s E In file included from fortranobject.c:2: 13850s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13850s E 7 | #include 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E compilation terminated. 13850s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13850s E INFO: 13850s E ########### EXT COMPILER OPTIMIZATION ########### 13850s E INFO: Platform : 13850s E Architecture: armhf 13850s E Compiler : gcc 13850s E 13850s E CPU baseline : 13850s E Requested : 'min' 13850s E Enabled : none 13850s E Flags : none 13850s E Extra checks: none 13850s E 13850s E CPU dispatch : 13850s E Requested : 'max -xop -fma4' 13850s E Enabled : none 13850s E Generated : none 13850s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13850s 13850s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13850s d = '/tmp/tmpjj8q074z' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s err = None 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s kw = {} 13850s module_name = 'test_array_from_pyobj_ext' 13850s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13850s p = 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13850s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-23seq-C-w] ___ 13850s 13850s def setup_module(): 13850s """ 13850s Build the required testing extension module 13850s 13850s """ 13850s global wrap 13850s 13850s # Check compiler availability first 13850s if not util.has_c_compiler(): 13850s pytest.skip("No C compiler available") 13850s 13850s if wrap is None: 13850s config_code = """ 13850s config.add_extension('test_array_from_pyobj_ext', 13850s sources=['wrapmodule.c', 'fortranobject.c'], 13850s define_macros=[]) 13850s """ 13850s d = os.path.dirname(__file__) 13850s src = [ 13850s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13850s util.getpath("src", "fortranobject.c"), 13850s util.getpath("src", "fortranobject.h"), 13850s ] 13850s > wrap = util.build_module_distutils(src, config_code, 13850s "test_array_from_pyobj_ext") 13850s 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13850s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13850s memo[key] = func(*a, **kw) 13850s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13850s func = 13850s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13850s kw = {} 13850s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s 13850s @_memoize 13850s def build_module_distutils(source_files, config_code, module_name, **kw): 13850s """ 13850s Build a module via distutils and import it. 13850s 13850s """ 13850s d = get_module_dir() 13850s 13850s # Copy files 13850s dst_sources = [] 13850s for fn in source_files: 13850s if not os.path.isfile(fn): 13850s raise RuntimeError("%s is not a file" % fn) 13850s dst = os.path.join(d, os.path.basename(fn)) 13850s shutil.copyfile(fn, dst) 13850s dst_sources.append(dst) 13850s 13850s # Build script 13850s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13850s 13850s code = fr""" 13850s import os 13850s import sys 13850s sys.path = {repr(sys.path)} 13850s 13850s def configuration(parent_name='',top_path=None): 13850s from numpy.distutils.misc_util import Configuration 13850s config = Configuration('', parent_name, top_path) 13850s {config_code} 13850s return config 13850s 13850s if __name__ == "__main__": 13850s from numpy.distutils.core import setup 13850s setup(configuration=configuration) 13850s """ 13850s script = os.path.join(d, get_temp_module_name() + ".py") 13850s dst_sources.append(script) 13850s with open(script, "wb") as f: 13850s f.write(asbytes(code)) 13850s 13850s # Build 13850s cwd = os.getcwd() 13850s try: 13850s os.chdir(d) 13850s cmd = [sys.executable, script, "build_ext", "-i"] 13850s p = subprocess.Popen(cmd, 13850s stdout=subprocess.PIPE, 13850s stderr=subprocess.STDOUT) 13850s out, err = p.communicate() 13850s if p.returncode != 0: 13850s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13850s (cmd[4:], asstr(out))) 13850s E RuntimeError: Running distutils build failed: [] 13850s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13850s E 13850s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13850s E of the deprecation of `distutils` itself. It will be removed for 13850s E Python >= 3.12. For older Python versions it will remain present. 13850s E It is recommended to use `setuptools < 60.0` for those Python versions. 13850s E For more details, see: 13850s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13850s E 13850s E 13850s E from numpy.distutils.core import setup 13850s E running build_ext 13850s E running build_src 13850s E INFO: build_src 13850s E INFO: building extension "test_array_from_pyobj_ext" sources 13850s E INFO: build_src: building npy-pkg config files 13850s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13850s E !! 13850s E 13850s E ******************************************************************************** 13850s E Please avoid running ``setup.py`` directly. 13850s E Instead, use pypa/build, pypa/installer or other 13850s E standards-based tools. 13850s E 13850s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13850s E ******************************************************************************** 13850s E 13850s E !! 13850s E self.initialize_options() 13850s E INFO: customize UnixCCompiler 13850s E INFO: customize UnixCCompiler using build_ext 13850s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/tmp 13850s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/usr 13850s E creating /tmp/tmppq19o2st/usr/lib 13850s E creating /tmp/tmppq19o2st/usr/lib/python3 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=native' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-O3' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-Werror' 13850s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13850s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-vfpv4' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=armv8.2-a+fp16' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13850s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13850s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13850s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13850s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13850s E INFO: building 'test_array_from_pyobj_ext' extension 13850s E INFO: compiling C sources 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13850s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13850s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13850s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13850s E 14 | #include 13850s E | ^~~~~~~~~~ 13850s E In file included from fortranobject.c:2: 13850s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13850s E 7 | #include 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E compilation terminated. 13850s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13850s E INFO: 13850s E ########### EXT COMPILER OPTIMIZATION ########### 13850s E INFO: Platform : 13850s E Architecture: armhf 13850s E Compiler : gcc 13850s E 13850s E CPU baseline : 13850s E Requested : 'min' 13850s E Enabled : none 13850s E Flags : none 13850s E Extra checks: none 13850s E 13850s E CPU dispatch : 13850s E Requested : 'max -xop -fma4' 13850s E Enabled : none 13850s E Generated : none 13850s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13850s 13850s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13850s d = '/tmp/tmpjj8q074z' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s err = None 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s kw = {} 13850s module_name = 'test_array_from_pyobj_ext' 13850s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13850s p = 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13850s __ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-23seq-C-ro] ___ 13850s 13850s def setup_module(): 13850s """ 13850s Build the required testing extension module 13850s 13850s """ 13850s global wrap 13850s 13850s # Check compiler availability first 13850s if not util.has_c_compiler(): 13850s pytest.skip("No C compiler available") 13850s 13850s if wrap is None: 13850s config_code = """ 13850s config.add_extension('test_array_from_pyobj_ext', 13850s sources=['wrapmodule.c', 'fortranobject.c'], 13850s define_macros=[]) 13850s """ 13850s d = os.path.dirname(__file__) 13850s src = [ 13850s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13850s util.getpath("src", "fortranobject.c"), 13850s util.getpath("src", "fortranobject.h"), 13850s ] 13850s > wrap = util.build_module_distutils(src, config_code, 13850s "test_array_from_pyobj_ext") 13850s 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13850s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13850s memo[key] = func(*a, **kw) 13850s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13850s func = 13850s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13850s kw = {} 13850s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s 13850s @_memoize 13850s def build_module_distutils(source_files, config_code, module_name, **kw): 13850s """ 13850s Build a module via distutils and import it. 13850s 13850s """ 13850s d = get_module_dir() 13850s 13850s # Copy files 13850s dst_sources = [] 13850s for fn in source_files: 13850s if not os.path.isfile(fn): 13850s raise RuntimeError("%s is not a file" % fn) 13850s dst = os.path.join(d, os.path.basename(fn)) 13850s shutil.copyfile(fn, dst) 13850s dst_sources.append(dst) 13850s 13850s # Build script 13850s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13850s 13850s code = fr""" 13850s import os 13850s import sys 13850s sys.path = {repr(sys.path)} 13850s 13850s def configuration(parent_name='',top_path=None): 13850s from numpy.distutils.misc_util import Configuration 13850s config = Configuration('', parent_name, top_path) 13850s {config_code} 13850s return config 13850s 13850s if __name__ == "__main__": 13850s from numpy.distutils.core import setup 13850s setup(configuration=configuration) 13850s """ 13850s script = os.path.join(d, get_temp_module_name() + ".py") 13850s dst_sources.append(script) 13850s with open(script, "wb") as f: 13850s f.write(asbytes(code)) 13850s 13850s # Build 13850s cwd = os.getcwd() 13850s try: 13850s os.chdir(d) 13850s cmd = [sys.executable, script, "build_ext", "-i"] 13850s p = subprocess.Popen(cmd, 13850s stdout=subprocess.PIPE, 13850s stderr=subprocess.STDOUT) 13850s out, err = p.communicate() 13850s if p.returncode != 0: 13850s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13850s (cmd[4:], asstr(out))) 13850s E RuntimeError: Running distutils build failed: [] 13850s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13850s E 13850s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13850s E of the deprecation of `distutils` itself. It will be removed for 13850s E Python >= 3.12. For older Python versions it will remain present. 13850s E It is recommended to use `setuptools < 60.0` for those Python versions. 13850s E For more details, see: 13850s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13850s E 13850s E 13850s E from numpy.distutils.core import setup 13850s E running build_ext 13850s E running build_src 13850s E INFO: build_src 13850s E INFO: building extension "test_array_from_pyobj_ext" sources 13850s E INFO: build_src: building npy-pkg config files 13850s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13850s E !! 13850s E 13850s E ******************************************************************************** 13850s E Please avoid running ``setup.py`` directly. 13850s E Instead, use pypa/build, pypa/installer or other 13850s E standards-based tools. 13850s E 13850s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13850s E ******************************************************************************** 13850s E 13850s E !! 13850s E self.initialize_options() 13850s E INFO: customize UnixCCompiler 13850s E INFO: customize UnixCCompiler using build_ext 13850s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/tmp 13850s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/usr 13850s E creating /tmp/tmppq19o2st/usr/lib 13850s E creating /tmp/tmppq19o2st/usr/lib/python3 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=native' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-O3' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-Werror' 13850s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13850s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-vfpv4' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=armv8.2-a+fp16' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13850s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13850s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13850s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13850s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13850s E INFO: building 'test_array_from_pyobj_ext' extension 13850s E INFO: compiling C sources 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13850s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13850s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13850s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13850s E 14 | #include 13850s E | ^~~~~~~~~~ 13850s E In file included from fortranobject.c:2: 13850s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13850s E 7 | #include 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E compilation terminated. 13850s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13850s E INFO: 13850s E ########### EXT COMPILER OPTIMIZATION ########### 13850s E INFO: Platform : 13850s E Architecture: armhf 13850s E Compiler : gcc 13850s E 13850s E CPU baseline : 13850s E Requested : 'min' 13850s E Enabled : none 13850s E Flags : none 13850s E Extra checks: none 13850s E 13850s E CPU dispatch : 13850s E Requested : 'max -xop -fma4' 13850s E Enabled : none 13850s E Generated : none 13850s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13850s 13850s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13850s d = '/tmp/tmpjj8q074z' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s err = None 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s kw = {} 13850s module_name = 'test_array_from_pyobj_ext' 13850s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13850s p = 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13850s ___ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-23seq-F-w] ___ 13850s 13850s def setup_module(): 13850s """ 13850s Build the required testing extension module 13850s 13850s """ 13850s global wrap 13850s 13850s # Check compiler availability first 13850s if not util.has_c_compiler(): 13850s pytest.skip("No C compiler available") 13850s 13850s if wrap is None: 13850s config_code = """ 13850s config.add_extension('test_array_from_pyobj_ext', 13850s sources=['wrapmodule.c', 'fortranobject.c'], 13850s define_macros=[]) 13850s """ 13850s d = os.path.dirname(__file__) 13850s src = [ 13850s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13850s util.getpath("src", "fortranobject.c"), 13850s util.getpath("src", "fortranobject.h"), 13850s ] 13850s > wrap = util.build_module_distutils(src, config_code, 13850s "test_array_from_pyobj_ext") 13850s 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13850s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13850s memo[key] = func(*a, **kw) 13850s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13850s func = 13850s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13850s kw = {} 13850s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s 13850s @_memoize 13850s def build_module_distutils(source_files, config_code, module_name, **kw): 13850s """ 13850s Build a module via distutils and import it. 13850s 13850s """ 13850s d = get_module_dir() 13850s 13850s # Copy files 13850s dst_sources = [] 13850s for fn in source_files: 13850s if not os.path.isfile(fn): 13850s raise RuntimeError("%s is not a file" % fn) 13850s dst = os.path.join(d, os.path.basename(fn)) 13850s shutil.copyfile(fn, dst) 13850s dst_sources.append(dst) 13850s 13850s # Build script 13850s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13850s 13850s code = fr""" 13850s import os 13850s import sys 13850s sys.path = {repr(sys.path)} 13850s 13850s def configuration(parent_name='',top_path=None): 13850s from numpy.distutils.misc_util import Configuration 13850s config = Configuration('', parent_name, top_path) 13850s {config_code} 13850s return config 13850s 13850s if __name__ == "__main__": 13850s from numpy.distutils.core import setup 13850s setup(configuration=configuration) 13850s """ 13850s script = os.path.join(d, get_temp_module_name() + ".py") 13850s dst_sources.append(script) 13850s with open(script, "wb") as f: 13850s f.write(asbytes(code)) 13850s 13850s # Build 13850s cwd = os.getcwd() 13850s try: 13850s os.chdir(d) 13850s cmd = [sys.executable, script, "build_ext", "-i"] 13850s p = subprocess.Popen(cmd, 13850s stdout=subprocess.PIPE, 13850s stderr=subprocess.STDOUT) 13850s out, err = p.communicate() 13850s if p.returncode != 0: 13850s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13850s (cmd[4:], asstr(out))) 13850s E RuntimeError: Running distutils build failed: [] 13850s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13850s E 13850s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13850s E of the deprecation of `distutils` itself. It will be removed for 13850s E Python >= 3.12. For older Python versions it will remain present. 13850s E It is recommended to use `setuptools < 60.0` for those Python versions. 13850s E For more details, see: 13850s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13850s E 13850s E 13850s E from numpy.distutils.core import setup 13850s E running build_ext 13850s E running build_src 13850s E INFO: build_src 13850s E INFO: building extension "test_array_from_pyobj_ext" sources 13850s E INFO: build_src: building npy-pkg config files 13850s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13850s E !! 13850s E 13850s E ******************************************************************************** 13850s E Please avoid running ``setup.py`` directly. 13850s E Instead, use pypa/build, pypa/installer or other 13850s E standards-based tools. 13850s E 13850s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13850s E ******************************************************************************** 13850s E 13850s E !! 13850s E self.initialize_options() 13850s E INFO: customize UnixCCompiler 13850s E INFO: customize UnixCCompiler using build_ext 13850s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/tmp 13850s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/usr 13850s E creating /tmp/tmppq19o2st/usr/lib 13850s E creating /tmp/tmppq19o2st/usr/lib/python3 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=native' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-O3' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-Werror' 13850s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13850s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-vfpv4' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=armv8.2-a+fp16' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13850s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13850s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13850s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13850s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13850s E INFO: building 'test_array_from_pyobj_ext' extension 13850s E INFO: compiling C sources 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13850s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13850s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13850s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13850s E 14 | #include 13850s E | ^~~~~~~~~~ 13850s E In file included from fortranobject.c:2: 13850s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13850s E 7 | #include 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E compilation terminated. 13850s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13850s E INFO: 13850s E ########### EXT COMPILER OPTIMIZATION ########### 13850s E INFO: Platform : 13850s E Architecture: armhf 13850s E Compiler : gcc 13850s E 13850s E CPU baseline : 13850s E Requested : 'min' 13850s E Enabled : none 13850s E Flags : none 13850s E Extra checks: none 13850s E 13850s E CPU dispatch : 13850s E Requested : 'max -xop -fma4' 13850s E Enabled : none 13850s E Generated : none 13850s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13850s 13850s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13850s d = '/tmp/tmpjj8q074z' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s err = None 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s kw = {} 13850s module_name = 'test_array_from_pyobj_ext' 13850s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13850s p = 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13850s __ ERROR at setup of TestSharedMemory.test_in_nocopy[CLONGDOUBLE-23seq-F-ro] ___ 13850s 13850s def setup_module(): 13850s """ 13850s Build the required testing extension module 13850s 13850s """ 13850s global wrap 13850s 13850s # Check compiler availability first 13850s if not util.has_c_compiler(): 13850s pytest.skip("No C compiler available") 13850s 13850s if wrap is None: 13850s config_code = """ 13850s config.add_extension('test_array_from_pyobj_ext', 13850s sources=['wrapmodule.c', 'fortranobject.c'], 13850s define_macros=[]) 13850s """ 13850s d = os.path.dirname(__file__) 13850s src = [ 13850s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13850s util.getpath("src", "fortranobject.c"), 13850s util.getpath("src", "fortranobject.h"), 13850s ] 13850s > wrap = util.build_module_distutils(src, config_code, 13850s "test_array_from_pyobj_ext") 13850s 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13850s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13850s memo[key] = func(*a, **kw) 13850s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13850s func = 13850s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13850s kw = {} 13850s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s 13850s @_memoize 13850s def build_module_distutils(source_files, config_code, module_name, **kw): 13850s """ 13850s Build a module via distutils and import it. 13850s 13850s """ 13850s d = get_module_dir() 13850s 13850s # Copy files 13850s dst_sources = [] 13850s for fn in source_files: 13850s if not os.path.isfile(fn): 13850s raise RuntimeError("%s is not a file" % fn) 13850s dst = os.path.join(d, os.path.basename(fn)) 13850s shutil.copyfile(fn, dst) 13850s dst_sources.append(dst) 13850s 13850s # Build script 13850s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13850s 13850s code = fr""" 13850s import os 13850s import sys 13850s sys.path = {repr(sys.path)} 13850s 13850s def configuration(parent_name='',top_path=None): 13850s from numpy.distutils.misc_util import Configuration 13850s config = Configuration('', parent_name, top_path) 13850s {config_code} 13850s return config 13850s 13850s if __name__ == "__main__": 13850s from numpy.distutils.core import setup 13850s setup(configuration=configuration) 13850s """ 13850s script = os.path.join(d, get_temp_module_name() + ".py") 13850s dst_sources.append(script) 13850s with open(script, "wb") as f: 13850s f.write(asbytes(code)) 13850s 13850s # Build 13850s cwd = os.getcwd() 13850s try: 13850s os.chdir(d) 13850s cmd = [sys.executable, script, "build_ext", "-i"] 13850s p = subprocess.Popen(cmd, 13850s stdout=subprocess.PIPE, 13850s stderr=subprocess.STDOUT) 13850s out, err = p.communicate() 13850s if p.returncode != 0: 13850s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13850s (cmd[4:], asstr(out))) 13850s E RuntimeError: Running distutils build failed: [] 13850s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13850s E 13850s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13850s E of the deprecation of `distutils` itself. It will be removed for 13850s E Python >= 3.12. For older Python versions it will remain present. 13850s E It is recommended to use `setuptools < 60.0` for those Python versions. 13850s E For more details, see: 13850s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13850s E 13850s E 13850s E from numpy.distutils.core import setup 13850s E running build_ext 13850s E running build_src 13850s E INFO: build_src 13850s E INFO: building extension "test_array_from_pyobj_ext" sources 13850s E INFO: build_src: building npy-pkg config files 13850s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13850s E !! 13850s E 13850s E ******************************************************************************** 13850s E Please avoid running ``setup.py`` directly. 13850s E Instead, use pypa/build, pypa/installer or other 13850s E standards-based tools. 13850s E 13850s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13850s E ******************************************************************************** 13850s E 13850s E !! 13850s E self.initialize_options() 13850s E INFO: customize UnixCCompiler 13850s E INFO: customize UnixCCompiler using build_ext 13850s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/tmp 13850s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/usr 13850s E creating /tmp/tmppq19o2st/usr/lib 13850s E creating /tmp/tmppq19o2st/usr/lib/python3 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=native' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-O3' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-Werror' 13850s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13850s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-vfpv4' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=armv8.2-a+fp16' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13850s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13850s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13850s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13850s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13850s E INFO: building 'test_array_from_pyobj_ext' extension 13850s E INFO: compiling C sources 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13850s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13850s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13850s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13850s E 14 | #include 13850s E | ^~~~~~~~~~ 13850s E In file included from fortranobject.c:2: 13850s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13850s E 7 | #include 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E compilation terminated. 13850s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13850s E INFO: 13850s E ########### EXT COMPILER OPTIMIZATION ########### 13850s E INFO: Platform : 13850s E Architecture: armhf 13850s E Compiler : gcc 13850s E 13850s E CPU baseline : 13850s E Requested : 'min' 13850s E Enabled : none 13850s E Flags : none 13850s E Extra checks: none 13850s E 13850s E CPU dispatch : 13850s E Requested : 'max -xop -fma4' 13850s E Enabled : none 13850s E Generated : none 13850s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13850s 13850s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13850s d = '/tmp/tmpjj8q074z' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s err = None 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s kw = {} 13850s module_name = 'test_array_from_pyobj_ext' 13850s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13850s p = 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13850s _______ ERROR at setup of TestSharedMemory.test_inout_2seq[CLONGDOUBLE] ________ 13850s 13850s def setup_module(): 13850s """ 13850s Build the required testing extension module 13850s 13850s """ 13850s global wrap 13850s 13850s # Check compiler availability first 13850s if not util.has_c_compiler(): 13850s pytest.skip("No C compiler available") 13850s 13850s if wrap is None: 13850s config_code = """ 13850s config.add_extension('test_array_from_pyobj_ext', 13850s sources=['wrapmodule.c', 'fortranobject.c'], 13850s define_macros=[]) 13850s """ 13850s d = os.path.dirname(__file__) 13850s src = [ 13850s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13850s util.getpath("src", "fortranobject.c"), 13850s util.getpath("src", "fortranobject.h"), 13850s ] 13850s > wrap = util.build_module_distutils(src, config_code, 13850s "test_array_from_pyobj_ext") 13850s 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13850s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13850s memo[key] = func(*a, **kw) 13850s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13850s func = 13850s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13850s kw = {} 13850s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13850s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13850s 13850s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13850s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13850s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13850s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13850s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13850s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13850s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13850s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13850s 13850s @_memoize 13850s def build_module_distutils(source_files, config_code, module_name, **kw): 13850s """ 13850s Build a module via distutils and import it. 13850s 13850s """ 13850s d = get_module_dir() 13850s 13850s # Copy files 13850s dst_sources = [] 13850s for fn in source_files: 13850s if not os.path.isfile(fn): 13850s raise RuntimeError("%s is not a file" % fn) 13850s dst = os.path.join(d, os.path.basename(fn)) 13850s shutil.copyfile(fn, dst) 13850s dst_sources.append(dst) 13850s 13850s # Build script 13850s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13850s 13850s code = fr""" 13850s import os 13850s import sys 13850s sys.path = {repr(sys.path)} 13850s 13850s def configuration(parent_name='',top_path=None): 13850s from numpy.distutils.misc_util import Configuration 13850s config = Configuration('', parent_name, top_path) 13850s {config_code} 13850s return config 13850s 13850s if __name__ == "__main__": 13850s from numpy.distutils.core import setup 13850s setup(configuration=configuration) 13850s """ 13850s script = os.path.join(d, get_temp_module_name() + ".py") 13850s dst_sources.append(script) 13850s with open(script, "wb") as f: 13850s f.write(asbytes(code)) 13850s 13850s # Build 13850s cwd = os.getcwd() 13850s try: 13850s os.chdir(d) 13850s cmd = [sys.executable, script, "build_ext", "-i"] 13850s p = subprocess.Popen(cmd, 13850s stdout=subprocess.PIPE, 13850s stderr=subprocess.STDOUT) 13850s out, err = p.communicate() 13850s if p.returncode != 0: 13850s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13850s (cmd[4:], asstr(out))) 13850s E RuntimeError: Running distutils build failed: [] 13850s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13850s E 13850s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13850s E of the deprecation of `distutils` itself. It will be removed for 13850s E Python >= 3.12. For older Python versions it will remain present. 13850s E It is recommended to use `setuptools < 60.0` for those Python versions. 13850s E For more details, see: 13850s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13850s E 13850s E 13850s E from numpy.distutils.core import setup 13850s E running build_ext 13850s E running build_src 13850s E INFO: build_src 13850s E INFO: building extension "test_array_from_pyobj_ext" sources 13850s E INFO: build_src: building npy-pkg config files 13850s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13850s E !! 13850s E 13850s E ******************************************************************************** 13850s E Please avoid running ``setup.py`` directly. 13850s E Instead, use pypa/build, pypa/installer or other 13850s E standards-based tools. 13850s E 13850s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13850s E ******************************************************************************** 13850s E 13850s E !! 13850s E self.initialize_options() 13850s E INFO: customize UnixCCompiler 13850s E INFO: customize UnixCCompiler using build_ext 13850s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/tmp 13850s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E creating /tmp/tmppq19o2st/usr 13850s E creating /tmp/tmppq19o2st/usr/lib 13850s E creating /tmp/tmppq19o2st/usr/lib/python3 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13850s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-march=native' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-O3' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-Werror' 13850s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13850s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon' 13850s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13850s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13850s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13850s E 13850s E INFO: compile options: '-I/usr/include/python3.12 -c' 13850s E extra options: '-mfpu=neon -Werror' 13850s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13850s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13850s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13850s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13850s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13850s E 9 | # include_next 13850s E | ^~~~~~~~~~ 13850s E compilation terminated. 13850s E 13850s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s ______ ERROR at setup of TestSharedMemory.test_f_inout_23seq[CLONGDOUBLE] ______ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s ______ ERROR at setup of TestSharedMemory.test_c_inout_23seq[CLONGDOUBLE] ______ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s _ ERROR at setup of TestSharedMemory.test_in_copy_from_2casttype[CLONGDOUBLE] __ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s _____ ERROR at setup of TestSharedMemory.test_c_in_from_23seq[CLONGDOUBLE] _____ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s ___ ERROR at setup of TestSharedMemory.test_in_from_23casttype[CLONGDOUBLE] ____ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s __ ERROR at setup of TestSharedMemory.test_f_in_from_23casttype[CLONGDOUBLE] ___ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s __ ERROR at setup of TestSharedMemory.test_c_in_from_23casttype[CLONGDOUBLE] ___ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s _ ERROR at setup of TestSharedMemory.test_f_copy_in_from_23casttype[CLONGDOUBLE] _ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s _ ERROR at setup of TestSharedMemory.test_c_copy_in_from_23casttype[CLONGDOUBLE] _ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype[CLONGDOUBLE] _ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s _ ERROR at setup of TestSharedMemory.test_in_cache_from_2casttype_failure[CLONGDOUBLE] _ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13851s sys.path = {repr(sys.path)} 13851s 13851s def configuration(parent_name='',top_path=None): 13851s from numpy.distutils.misc_util import Configuration 13851s config = Configuration('', parent_name, top_path) 13851s {config_code} 13851s return config 13851s 13851s if __name__ == "__main__": 13851s from numpy.distutils.core import setup 13851s setup(configuration=configuration) 13851s """ 13851s script = os.path.join(d, get_temp_module_name() + ".py") 13851s dst_sources.append(script) 13851s with open(script, "wb") as f: 13851s f.write(asbytes(code)) 13851s 13851s # Build 13851s cwd = os.getcwd() 13851s try: 13851s os.chdir(d) 13851s cmd = [sys.executable, script, "build_ext", "-i"] 13851s p = subprocess.Popen(cmd, 13851s stdout=subprocess.PIPE, 13851s stderr=subprocess.STDOUT) 13851s out, err = p.communicate() 13851s if p.returncode != 0: 13851s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13851s (cmd[4:], asstr(out))) 13851s E RuntimeError: Running distutils build failed: [] 13851s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13851s E 13851s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13851s E of the deprecation of `distutils` itself. It will be removed for 13851s E Python >= 3.12. For older Python versions it will remain present. 13851s E It is recommended to use `setuptools < 60.0` for those Python versions. 13851s E For more details, see: 13851s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13851s E 13851s E 13851s E from numpy.distutils.core import setup 13851s E running build_ext 13851s E running build_src 13851s E INFO: build_src 13851s E INFO: building extension "test_array_from_pyobj_ext" sources 13851s E INFO: build_src: building npy-pkg config files 13851s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13851s E !! 13851s E 13851s E ******************************************************************************** 13851s E Please avoid running ``setup.py`` directly. 13851s E Instead, use pypa/build, pypa/installer or other 13851s E standards-based tools. 13851s E 13851s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13851s E ******************************************************************************** 13851s E 13851s E !! 13851s E self.initialize_options() 13851s E INFO: customize UnixCCompiler 13851s E INFO: customize UnixCCompiler using build_ext 13851s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/tmp 13851s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E creating /tmp/tmppq19o2st/usr 13851s E creating /tmp/tmppq19o2st/usr/lib 13851s E creating /tmp/tmppq19o2st/usr/lib/python3 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13851s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=native' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-O3' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-Werror' 13851s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13851s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-vfpv4' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13851s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-march=armv8.2-a+fp16' 13851s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/include/python3.12 -c' 13851s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13851s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13851s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13851s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13851s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13851s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13851s E 9 | # include_next 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E 13851s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13851s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13851s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13851s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13851s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13851s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13851s E INFO: building 'test_array_from_pyobj_ext' extension 13851s E INFO: compiling C sources 13851s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13851s E 13851s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13851s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13851s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13851s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13851s E 14 | #include 13851s E | ^~~~~~~~~~ 13851s E In file included from fortranobject.c:2: 13851s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13851s E 7 | #include 13851s E | ^~~~~~~~~~ 13851s E compilation terminated. 13851s E compilation terminated. 13851s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13851s E INFO: 13851s E ########### EXT COMPILER OPTIMIZATION ########### 13851s E INFO: Platform : 13851s E Architecture: armhf 13851s E Compiler : gcc 13851s E 13851s E CPU baseline : 13851s E Requested : 'min' 13851s E Enabled : none 13851s E Flags : none 13851s E Extra checks: none 13851s E 13851s E CPU dispatch : 13851s E Requested : 'max -xop -fma4' 13851s E Enabled : none 13851s E Generated : none 13851s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13851s 13851s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13851s d = '/tmp/tmpjj8q074z' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s err = None 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s kw = {} 13851s module_name = 'test_array_from_pyobj_ext' 13851s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13851s p = 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13851s ______ ERROR at setup of TestSharedMemory.test_cache_hidden[CLONGDOUBLE] _______ 13851s 13851s def setup_module(): 13851s """ 13851s Build the required testing extension module 13851s 13851s """ 13851s global wrap 13851s 13851s # Check compiler availability first 13851s if not util.has_c_compiler(): 13851s pytest.skip("No C compiler available") 13851s 13851s if wrap is None: 13851s config_code = """ 13851s config.add_extension('test_array_from_pyobj_ext', 13851s sources=['wrapmodule.c', 'fortranobject.c'], 13851s define_macros=[]) 13851s """ 13851s d = os.path.dirname(__file__) 13851s src = [ 13851s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13851s util.getpath("src", "fortranobject.c"), 13851s util.getpath("src", "fortranobject.h"), 13851s ] 13851s > wrap = util.build_module_distutils(src, config_code, 13851s "test_array_from_pyobj_ext") 13851s 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13851s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13851s memo[key] = func(*a, **kw) 13851s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13851s func = 13851s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13851s kw = {} 13851s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13851s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13851s 13851s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13851s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13851s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13851s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13851s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13851s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13851s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13851s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13851s 13851s @_memoize 13851s def build_module_distutils(source_files, config_code, module_name, **kw): 13851s """ 13851s Build a module via distutils and import it. 13851s 13851s """ 13851s d = get_module_dir() 13851s 13851s # Copy files 13851s dst_sources = [] 13851s for fn in source_files: 13851s if not os.path.isfile(fn): 13851s raise RuntimeError("%s is not a file" % fn) 13851s dst = os.path.join(d, os.path.basename(fn)) 13851s shutil.copyfile(fn, dst) 13851s dst_sources.append(dst) 13851s 13851s # Build script 13851s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13851s 13851s code = fr""" 13851s import os 13851s import sys 13852s sys.path = {repr(sys.path)} 13852s 13852s def configuration(parent_name='',top_path=None): 13852s from numpy.distutils.misc_util import Configuration 13852s config = Configuration('', parent_name, top_path) 13852s {config_code} 13852s return config 13852s 13852s if __name__ == "__main__": 13852s from numpy.distutils.core import setup 13852s setup(configuration=configuration) 13852s """ 13852s script = os.path.join(d, get_temp_module_name() + ".py") 13852s dst_sources.append(script) 13852s with open(script, "wb") as f: 13852s f.write(asbytes(code)) 13852s 13852s # Build 13852s cwd = os.getcwd() 13852s try: 13852s os.chdir(d) 13852s cmd = [sys.executable, script, "build_ext", "-i"] 13852s p = subprocess.Popen(cmd, 13852s stdout=subprocess.PIPE, 13852s stderr=subprocess.STDOUT) 13852s out, err = p.communicate() 13852s if p.returncode != 0: 13852s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13852s (cmd[4:], asstr(out))) 13852s E RuntimeError: Running distutils build failed: [] 13852s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13852s E 13852s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13852s E of the deprecation of `distutils` itself. It will be removed for 13852s E Python >= 3.12. For older Python versions it will remain present. 13852s E It is recommended to use `setuptools < 60.0` for those Python versions. 13852s E For more details, see: 13852s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13852s E 13852s E 13852s E from numpy.distutils.core import setup 13852s E running build_ext 13852s E running build_src 13852s E INFO: build_src 13852s E INFO: building extension "test_array_from_pyobj_ext" sources 13852s E INFO: build_src: building npy-pkg config files 13852s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13852s E !! 13852s E 13852s E ******************************************************************************** 13852s E Please avoid running ``setup.py`` directly. 13852s E Instead, use pypa/build, pypa/installer or other 13852s E standards-based tools. 13852s E 13852s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13852s E ******************************************************************************** 13852s E 13852s E !! 13852s E self.initialize_options() 13852s E INFO: customize UnixCCompiler 13852s E INFO: customize UnixCCompiler using build_ext 13852s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/tmp 13852s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/usr 13852s E creating /tmp/tmppq19o2st/usr/lib 13852s E creating /tmp/tmppq19o2st/usr/lib/python3 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=native' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-O3' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-Werror' 13852s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13852s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-vfpv4' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=armv8.2-a+fp16' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13852s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13852s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13852s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13852s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13852s E INFO: building 'test_array_from_pyobj_ext' extension 13852s E INFO: compiling C sources 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13852s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13852s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13852s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13852s E 14 | #include 13852s E | ^~~~~~~~~~ 13852s E In file included from fortranobject.c:2: 13852s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13852s E 7 | #include 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E compilation terminated. 13852s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13852s E INFO: 13852s E ########### EXT COMPILER OPTIMIZATION ########### 13852s E INFO: Platform : 13852s E Architecture: armhf 13852s E Compiler : gcc 13852s E 13852s E CPU baseline : 13852s E Requested : 'min' 13852s E Enabled : none 13852s E Flags : none 13852s E Extra checks: none 13852s E 13852s E CPU dispatch : 13852s E Requested : 'max -xop -fma4' 13852s E Enabled : none 13852s E Generated : none 13852s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13852s 13852s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13852s d = '/tmp/tmpjj8q074z' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s err = None 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s kw = {} 13852s module_name = 'test_array_from_pyobj_ext' 13852s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13852s p = 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13852s _________ ERROR at setup of TestSharedMemory.test_hidden[CLONGDOUBLE] __________ 13852s 13852s def setup_module(): 13852s """ 13852s Build the required testing extension module 13852s 13852s """ 13852s global wrap 13852s 13852s # Check compiler availability first 13852s if not util.has_c_compiler(): 13852s pytest.skip("No C compiler available") 13852s 13852s if wrap is None: 13852s config_code = """ 13852s config.add_extension('test_array_from_pyobj_ext', 13852s sources=['wrapmodule.c', 'fortranobject.c'], 13852s define_macros=[]) 13852s """ 13852s d = os.path.dirname(__file__) 13852s src = [ 13852s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13852s util.getpath("src", "fortranobject.c"), 13852s util.getpath("src", "fortranobject.h"), 13852s ] 13852s > wrap = util.build_module_distutils(src, config_code, 13852s "test_array_from_pyobj_ext") 13852s 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13852s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13852s memo[key] = func(*a, **kw) 13852s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13852s func = 13852s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13852s kw = {} 13852s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s 13852s @_memoize 13852s def build_module_distutils(source_files, config_code, module_name, **kw): 13852s """ 13852s Build a module via distutils and import it. 13852s 13852s """ 13852s d = get_module_dir() 13852s 13852s # Copy files 13852s dst_sources = [] 13852s for fn in source_files: 13852s if not os.path.isfile(fn): 13852s raise RuntimeError("%s is not a file" % fn) 13852s dst = os.path.join(d, os.path.basename(fn)) 13852s shutil.copyfile(fn, dst) 13852s dst_sources.append(dst) 13852s 13852s # Build script 13852s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13852s 13852s code = fr""" 13852s import os 13852s import sys 13852s sys.path = {repr(sys.path)} 13852s 13852s def configuration(parent_name='',top_path=None): 13852s from numpy.distutils.misc_util import Configuration 13852s config = Configuration('', parent_name, top_path) 13852s {config_code} 13852s return config 13852s 13852s if __name__ == "__main__": 13852s from numpy.distutils.core import setup 13852s setup(configuration=configuration) 13852s """ 13852s script = os.path.join(d, get_temp_module_name() + ".py") 13852s dst_sources.append(script) 13852s with open(script, "wb") as f: 13852s f.write(asbytes(code)) 13852s 13852s # Build 13852s cwd = os.getcwd() 13852s try: 13852s os.chdir(d) 13852s cmd = [sys.executable, script, "build_ext", "-i"] 13852s p = subprocess.Popen(cmd, 13852s stdout=subprocess.PIPE, 13852s stderr=subprocess.STDOUT) 13852s out, err = p.communicate() 13852s if p.returncode != 0: 13852s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13852s (cmd[4:], asstr(out))) 13852s E RuntimeError: Running distutils build failed: [] 13852s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13852s E 13852s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13852s E of the deprecation of `distutils` itself. It will be removed for 13852s E Python >= 3.12. For older Python versions it will remain present. 13852s E It is recommended to use `setuptools < 60.0` for those Python versions. 13852s E For more details, see: 13852s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13852s E 13852s E 13852s E from numpy.distutils.core import setup 13852s E running build_ext 13852s E running build_src 13852s E INFO: build_src 13852s E INFO: building extension "test_array_from_pyobj_ext" sources 13852s E INFO: build_src: building npy-pkg config files 13852s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13852s E !! 13852s E 13852s E ******************************************************************************** 13852s E Please avoid running ``setup.py`` directly. 13852s E Instead, use pypa/build, pypa/installer or other 13852s E standards-based tools. 13852s E 13852s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13852s E ******************************************************************************** 13852s E 13852s E !! 13852s E self.initialize_options() 13852s E INFO: customize UnixCCompiler 13852s E INFO: customize UnixCCompiler using build_ext 13852s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/tmp 13852s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/usr 13852s E creating /tmp/tmppq19o2st/usr/lib 13852s E creating /tmp/tmppq19o2st/usr/lib/python3 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=native' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-O3' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-Werror' 13852s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13852s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-vfpv4' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=armv8.2-a+fp16' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13852s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13852s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13852s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13852s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13852s E INFO: building 'test_array_from_pyobj_ext' extension 13852s E INFO: compiling C sources 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13852s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13852s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13852s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13852s E 14 | #include 13852s E | ^~~~~~~~~~ 13852s E In file included from fortranobject.c:2: 13852s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13852s E 7 | #include 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E compilation terminated. 13852s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13852s E INFO: 13852s E ########### EXT COMPILER OPTIMIZATION ########### 13852s E INFO: Platform : 13852s E Architecture: armhf 13852s E Compiler : gcc 13852s E 13852s E CPU baseline : 13852s E Requested : 'min' 13852s E Enabled : none 13852s E Flags : none 13852s E Extra checks: none 13852s E 13852s E CPU dispatch : 13852s E Requested : 'max -xop -fma4' 13852s E Enabled : none 13852s E Generated : none 13852s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13852s 13852s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13852s d = '/tmp/tmpjj8q074z' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s err = None 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s kw = {} 13852s module_name = 'test_array_from_pyobj_ext' 13852s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13852s p = 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13852s ______ ERROR at setup of TestSharedMemory.test_optional_none[CLONGDOUBLE] ______ 13852s 13852s def setup_module(): 13852s """ 13852s Build the required testing extension module 13852s 13852s """ 13852s global wrap 13852s 13852s # Check compiler availability first 13852s if not util.has_c_compiler(): 13852s pytest.skip("No C compiler available") 13852s 13852s if wrap is None: 13852s config_code = """ 13852s config.add_extension('test_array_from_pyobj_ext', 13852s sources=['wrapmodule.c', 'fortranobject.c'], 13852s define_macros=[]) 13852s """ 13852s d = os.path.dirname(__file__) 13852s src = [ 13852s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13852s util.getpath("src", "fortranobject.c"), 13852s util.getpath("src", "fortranobject.h"), 13852s ] 13852s > wrap = util.build_module_distutils(src, config_code, 13852s "test_array_from_pyobj_ext") 13852s 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13852s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13852s memo[key] = func(*a, **kw) 13852s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13852s func = 13852s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13852s kw = {} 13852s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s 13852s @_memoize 13852s def build_module_distutils(source_files, config_code, module_name, **kw): 13852s """ 13852s Build a module via distutils and import it. 13852s 13852s """ 13852s d = get_module_dir() 13852s 13852s # Copy files 13852s dst_sources = [] 13852s for fn in source_files: 13852s if not os.path.isfile(fn): 13852s raise RuntimeError("%s is not a file" % fn) 13852s dst = os.path.join(d, os.path.basename(fn)) 13852s shutil.copyfile(fn, dst) 13852s dst_sources.append(dst) 13852s 13852s # Build script 13852s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13852s 13852s code = fr""" 13852s import os 13852s import sys 13852s sys.path = {repr(sys.path)} 13852s 13852s def configuration(parent_name='',top_path=None): 13852s from numpy.distutils.misc_util import Configuration 13852s config = Configuration('', parent_name, top_path) 13852s {config_code} 13852s return config 13852s 13852s if __name__ == "__main__": 13852s from numpy.distutils.core import setup 13852s setup(configuration=configuration) 13852s """ 13852s script = os.path.join(d, get_temp_module_name() + ".py") 13852s dst_sources.append(script) 13852s with open(script, "wb") as f: 13852s f.write(asbytes(code)) 13852s 13852s # Build 13852s cwd = os.getcwd() 13852s try: 13852s os.chdir(d) 13852s cmd = [sys.executable, script, "build_ext", "-i"] 13852s p = subprocess.Popen(cmd, 13852s stdout=subprocess.PIPE, 13852s stderr=subprocess.STDOUT) 13852s out, err = p.communicate() 13852s if p.returncode != 0: 13852s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13852s (cmd[4:], asstr(out))) 13852s E RuntimeError: Running distutils build failed: [] 13852s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13852s E 13852s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13852s E of the deprecation of `distutils` itself. It will be removed for 13852s E Python >= 3.12. For older Python versions it will remain present. 13852s E It is recommended to use `setuptools < 60.0` for those Python versions. 13852s E For more details, see: 13852s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13852s E 13852s E 13852s E from numpy.distutils.core import setup 13852s E running build_ext 13852s E running build_src 13852s E INFO: build_src 13852s E INFO: building extension "test_array_from_pyobj_ext" sources 13852s E INFO: build_src: building npy-pkg config files 13852s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13852s E !! 13852s E 13852s E ******************************************************************************** 13852s E Please avoid running ``setup.py`` directly. 13852s E Instead, use pypa/build, pypa/installer or other 13852s E standards-based tools. 13852s E 13852s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13852s E ******************************************************************************** 13852s E 13852s E !! 13852s E self.initialize_options() 13852s E INFO: customize UnixCCompiler 13852s E INFO: customize UnixCCompiler using build_ext 13852s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/tmp 13852s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/usr 13852s E creating /tmp/tmppq19o2st/usr/lib 13852s E creating /tmp/tmppq19o2st/usr/lib/python3 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=native' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-O3' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-Werror' 13852s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13852s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-vfpv4' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=armv8.2-a+fp16' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13852s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13852s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13852s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13852s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13852s E INFO: building 'test_array_from_pyobj_ext' extension 13852s E INFO: compiling C sources 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13852s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13852s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13852s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13852s E 14 | #include 13852s E | ^~~~~~~~~~ 13852s E In file included from fortranobject.c:2: 13852s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13852s E 7 | #include 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E compilation terminated. 13852s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13852s E INFO: 13852s E ########### EXT COMPILER OPTIMIZATION ########### 13852s E INFO: Platform : 13852s E Architecture: armhf 13852s E Compiler : gcc 13852s E 13852s E CPU baseline : 13852s E Requested : 'min' 13852s E Enabled : none 13852s E Flags : none 13852s E Extra checks: none 13852s E 13852s E CPU dispatch : 13852s E Requested : 'max -xop -fma4' 13852s E Enabled : none 13852s E Generated : none 13852s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13852s 13852s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13852s d = '/tmp/tmpjj8q074z' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s err = None 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s kw = {} 13852s module_name = 'test_array_from_pyobj_ext' 13852s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13852s p = 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13852s ___ ERROR at setup of TestSharedMemory.test_optional_from_2seq[CLONGDOUBLE] ____ 13852s 13852s def setup_module(): 13852s """ 13852s Build the required testing extension module 13852s 13852s """ 13852s global wrap 13852s 13852s # Check compiler availability first 13852s if not util.has_c_compiler(): 13852s pytest.skip("No C compiler available") 13852s 13852s if wrap is None: 13852s config_code = """ 13852s config.add_extension('test_array_from_pyobj_ext', 13852s sources=['wrapmodule.c', 'fortranobject.c'], 13852s define_macros=[]) 13852s """ 13852s d = os.path.dirname(__file__) 13852s src = [ 13852s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13852s util.getpath("src", "fortranobject.c"), 13852s util.getpath("src", "fortranobject.h"), 13852s ] 13852s > wrap = util.build_module_distutils(src, config_code, 13852s "test_array_from_pyobj_ext") 13852s 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13852s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13852s memo[key] = func(*a, **kw) 13852s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13852s func = 13852s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13852s kw = {} 13852s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s 13852s @_memoize 13852s def build_module_distutils(source_files, config_code, module_name, **kw): 13852s """ 13852s Build a module via distutils and import it. 13852s 13852s """ 13852s d = get_module_dir() 13852s 13852s # Copy files 13852s dst_sources = [] 13852s for fn in source_files: 13852s if not os.path.isfile(fn): 13852s raise RuntimeError("%s is not a file" % fn) 13852s dst = os.path.join(d, os.path.basename(fn)) 13852s shutil.copyfile(fn, dst) 13852s dst_sources.append(dst) 13852s 13852s # Build script 13852s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13852s 13852s code = fr""" 13852s import os 13852s import sys 13852s sys.path = {repr(sys.path)} 13852s 13852s def configuration(parent_name='',top_path=None): 13852s from numpy.distutils.misc_util import Configuration 13852s config = Configuration('', parent_name, top_path) 13852s {config_code} 13852s return config 13852s 13852s if __name__ == "__main__": 13852s from numpy.distutils.core import setup 13852s setup(configuration=configuration) 13852s """ 13852s script = os.path.join(d, get_temp_module_name() + ".py") 13852s dst_sources.append(script) 13852s with open(script, "wb") as f: 13852s f.write(asbytes(code)) 13852s 13852s # Build 13852s cwd = os.getcwd() 13852s try: 13852s os.chdir(d) 13852s cmd = [sys.executable, script, "build_ext", "-i"] 13852s p = subprocess.Popen(cmd, 13852s stdout=subprocess.PIPE, 13852s stderr=subprocess.STDOUT) 13852s out, err = p.communicate() 13852s if p.returncode != 0: 13852s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13852s (cmd[4:], asstr(out))) 13852s E RuntimeError: Running distutils build failed: [] 13852s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13852s E 13852s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13852s E of the deprecation of `distutils` itself. It will be removed for 13852s E Python >= 3.12. For older Python versions it will remain present. 13852s E It is recommended to use `setuptools < 60.0` for those Python versions. 13852s E For more details, see: 13852s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13852s E 13852s E 13852s E from numpy.distutils.core import setup 13852s E running build_ext 13852s E running build_src 13852s E INFO: build_src 13852s E INFO: building extension "test_array_from_pyobj_ext" sources 13852s E INFO: build_src: building npy-pkg config files 13852s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13852s E !! 13852s E 13852s E ******************************************************************************** 13852s E Please avoid running ``setup.py`` directly. 13852s E Instead, use pypa/build, pypa/installer or other 13852s E standards-based tools. 13852s E 13852s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13852s E ******************************************************************************** 13852s E 13852s E !! 13852s E self.initialize_options() 13852s E INFO: customize UnixCCompiler 13852s E INFO: customize UnixCCompiler using build_ext 13852s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/tmp 13852s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/usr 13852s E creating /tmp/tmppq19o2st/usr/lib 13852s E creating /tmp/tmppq19o2st/usr/lib/python3 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=native' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-O3' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-Werror' 13852s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13852s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-vfpv4' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=armv8.2-a+fp16' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13852s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13852s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13852s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13852s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13852s E INFO: building 'test_array_from_pyobj_ext' extension 13852s E INFO: compiling C sources 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13852s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13852s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13852s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13852s E 14 | #include 13852s E | ^~~~~~~~~~ 13852s E In file included from fortranobject.c:2: 13852s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13852s E 7 | #include 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E compilation terminated. 13852s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13852s E INFO: 13852s E ########### EXT COMPILER OPTIMIZATION ########### 13852s E INFO: Platform : 13852s E Architecture: armhf 13852s E Compiler : gcc 13852s E 13852s E CPU baseline : 13852s E Requested : 'min' 13852s E Enabled : none 13852s E Flags : none 13852s E Extra checks: none 13852s E 13852s E CPU dispatch : 13852s E Requested : 'max -xop -fma4' 13852s E Enabled : none 13852s E Generated : none 13852s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13852s 13852s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13852s d = '/tmp/tmpjj8q074z' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s err = None 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s kw = {} 13852s module_name = 'test_array_from_pyobj_ext' 13852s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13852s p = 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13852s ___ ERROR at setup of TestSharedMemory.test_optional_from_23seq[CLONGDOUBLE] ___ 13852s 13852s def setup_module(): 13852s """ 13852s Build the required testing extension module 13852s 13852s """ 13852s global wrap 13852s 13852s # Check compiler availability first 13852s if not util.has_c_compiler(): 13852s pytest.skip("No C compiler available") 13852s 13852s if wrap is None: 13852s config_code = """ 13852s config.add_extension('test_array_from_pyobj_ext', 13852s sources=['wrapmodule.c', 'fortranobject.c'], 13852s define_macros=[]) 13852s """ 13852s d = os.path.dirname(__file__) 13852s src = [ 13852s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13852s util.getpath("src", "fortranobject.c"), 13852s util.getpath("src", "fortranobject.h"), 13852s ] 13852s > wrap = util.build_module_distutils(src, config_code, 13852s "test_array_from_pyobj_ext") 13852s 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13852s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13852s memo[key] = func(*a, **kw) 13852s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13852s func = 13852s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13852s kw = {} 13852s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s 13852s @_memoize 13852s def build_module_distutils(source_files, config_code, module_name, **kw): 13852s """ 13852s Build a module via distutils and import it. 13852s 13852s """ 13852s d = get_module_dir() 13852s 13852s # Copy files 13852s dst_sources = [] 13852s for fn in source_files: 13852s if not os.path.isfile(fn): 13852s raise RuntimeError("%s is not a file" % fn) 13852s dst = os.path.join(d, os.path.basename(fn)) 13852s shutil.copyfile(fn, dst) 13852s dst_sources.append(dst) 13852s 13852s # Build script 13852s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13852s 13852s code = fr""" 13852s import os 13852s import sys 13852s sys.path = {repr(sys.path)} 13852s 13852s def configuration(parent_name='',top_path=None): 13852s from numpy.distutils.misc_util import Configuration 13852s config = Configuration('', parent_name, top_path) 13852s {config_code} 13852s return config 13852s 13852s if __name__ == "__main__": 13852s from numpy.distutils.core import setup 13852s setup(configuration=configuration) 13852s """ 13852s script = os.path.join(d, get_temp_module_name() + ".py") 13852s dst_sources.append(script) 13852s with open(script, "wb") as f: 13852s f.write(asbytes(code)) 13852s 13852s # Build 13852s cwd = os.getcwd() 13852s try: 13852s os.chdir(d) 13852s cmd = [sys.executable, script, "build_ext", "-i"] 13852s p = subprocess.Popen(cmd, 13852s stdout=subprocess.PIPE, 13852s stderr=subprocess.STDOUT) 13852s out, err = p.communicate() 13852s if p.returncode != 0: 13852s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13852s (cmd[4:], asstr(out))) 13852s E RuntimeError: Running distutils build failed: [] 13852s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13852s E 13852s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13852s E of the deprecation of `distutils` itself. It will be removed for 13852s E Python >= 3.12. For older Python versions it will remain present. 13852s E It is recommended to use `setuptools < 60.0` for those Python versions. 13852s E For more details, see: 13852s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13852s E 13852s E 13852s E from numpy.distutils.core import setup 13852s E running build_ext 13852s E running build_src 13852s E INFO: build_src 13852s E INFO: building extension "test_array_from_pyobj_ext" sources 13852s E INFO: build_src: building npy-pkg config files 13852s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13852s E !! 13852s E 13852s E ******************************************************************************** 13852s E Please avoid running ``setup.py`` directly. 13852s E Instead, use pypa/build, pypa/installer or other 13852s E standards-based tools. 13852s E 13852s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13852s E ******************************************************************************** 13852s E 13852s E !! 13852s E self.initialize_options() 13852s E INFO: customize UnixCCompiler 13852s E INFO: customize UnixCCompiler using build_ext 13852s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/tmp 13852s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/usr 13852s E creating /tmp/tmppq19o2st/usr/lib 13852s E creating /tmp/tmppq19o2st/usr/lib/python3 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=native' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-O3' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-Werror' 13852s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13852s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-vfpv4' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=armv8.2-a+fp16' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13852s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13852s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13852s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13852s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13852s E INFO: building 'test_array_from_pyobj_ext' extension 13852s E INFO: compiling C sources 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13852s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13852s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13852s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13852s E 14 | #include 13852s E | ^~~~~~~~~~ 13852s E In file included from fortranobject.c:2: 13852s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13852s E 7 | #include 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E compilation terminated. 13852s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13852s E INFO: 13852s E ########### EXT COMPILER OPTIMIZATION ########### 13852s E INFO: Platform : 13852s E Architecture: armhf 13852s E Compiler : gcc 13852s E 13852s E CPU baseline : 13852s E Requested : 'min' 13852s E Enabled : none 13852s E Flags : none 13852s E Extra checks: none 13852s E 13852s E CPU dispatch : 13852s E Requested : 'max -xop -fma4' 13852s E Enabled : none 13852s E Generated : none 13852s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13852s 13852s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13852s d = '/tmp/tmpjj8q074z' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s err = None 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s kw = {} 13852s module_name = 'test_array_from_pyobj_ext' 13852s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13852s p = 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13852s _________ ERROR at setup of TestSharedMemory.test_inplace[CLONGDOUBLE] _________ 13852s 13852s def setup_module(): 13852s """ 13852s Build the required testing extension module 13852s 13852s """ 13852s global wrap 13852s 13852s # Check compiler availability first 13852s if not util.has_c_compiler(): 13852s pytest.skip("No C compiler available") 13852s 13852s if wrap is None: 13852s config_code = """ 13852s config.add_extension('test_array_from_pyobj_ext', 13852s sources=['wrapmodule.c', 'fortranobject.c'], 13852s define_macros=[]) 13852s """ 13852s d = os.path.dirname(__file__) 13852s src = [ 13852s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13852s util.getpath("src", "fortranobject.c"), 13852s util.getpath("src", "fortranobject.h"), 13852s ] 13852s > wrap = util.build_module_distutils(src, config_code, 13852s "test_array_from_pyobj_ext") 13852s 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13852s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13852s memo[key] = func(*a, **kw) 13852s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13852s func = 13852s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13852s kw = {} 13852s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s 13852s @_memoize 13852s def build_module_distutils(source_files, config_code, module_name, **kw): 13852s """ 13852s Build a module via distutils and import it. 13852s 13852s """ 13852s d = get_module_dir() 13852s 13852s # Copy files 13852s dst_sources = [] 13852s for fn in source_files: 13852s if not os.path.isfile(fn): 13852s raise RuntimeError("%s is not a file" % fn) 13852s dst = os.path.join(d, os.path.basename(fn)) 13852s shutil.copyfile(fn, dst) 13852s dst_sources.append(dst) 13852s 13852s # Build script 13852s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13852s 13852s code = fr""" 13852s import os 13852s import sys 13852s sys.path = {repr(sys.path)} 13852s 13852s def configuration(parent_name='',top_path=None): 13852s from numpy.distutils.misc_util import Configuration 13852s config = Configuration('', parent_name, top_path) 13852s {config_code} 13852s return config 13852s 13852s if __name__ == "__main__": 13852s from numpy.distutils.core import setup 13852s setup(configuration=configuration) 13852s """ 13852s script = os.path.join(d, get_temp_module_name() + ".py") 13852s dst_sources.append(script) 13852s with open(script, "wb") as f: 13852s f.write(asbytes(code)) 13852s 13852s # Build 13852s cwd = os.getcwd() 13852s try: 13852s os.chdir(d) 13852s cmd = [sys.executable, script, "build_ext", "-i"] 13852s p = subprocess.Popen(cmd, 13852s stdout=subprocess.PIPE, 13852s stderr=subprocess.STDOUT) 13852s out, err = p.communicate() 13852s if p.returncode != 0: 13852s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13852s (cmd[4:], asstr(out))) 13852s E RuntimeError: Running distutils build failed: [] 13852s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13852s E 13852s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13852s E of the deprecation of `distutils` itself. It will be removed for 13852s E Python >= 3.12. For older Python versions it will remain present. 13852s E It is recommended to use `setuptools < 60.0` for those Python versions. 13852s E For more details, see: 13852s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13852s E 13852s E 13852s E from numpy.distutils.core import setup 13852s E running build_ext 13852s E running build_src 13852s E INFO: build_src 13852s E INFO: building extension "test_array_from_pyobj_ext" sources 13852s E INFO: build_src: building npy-pkg config files 13852s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13852s E !! 13852s E 13852s E ******************************************************************************** 13852s E Please avoid running ``setup.py`` directly. 13852s E Instead, use pypa/build, pypa/installer or other 13852s E standards-based tools. 13852s E 13852s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13852s E ******************************************************************************** 13852s E 13852s E !! 13852s E self.initialize_options() 13852s E INFO: customize UnixCCompiler 13852s E INFO: customize UnixCCompiler using build_ext 13852s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/tmp 13852s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/usr 13852s E creating /tmp/tmppq19o2st/usr/lib 13852s E creating /tmp/tmppq19o2st/usr/lib/python3 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=native' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-O3' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-Werror' 13852s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13852s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-vfpv4' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=armv8.2-a+fp16' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13852s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13852s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13852s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13852s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13852s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13852s E 9 | # include_next 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E 13852s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13852s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13852s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13852s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13852s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13852s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13852s E INFO: building 'test_array_from_pyobj_ext' extension 13852s E INFO: compiling C sources 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13852s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13852s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13852s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13852s E 14 | #include 13852s E | ^~~~~~~~~~ 13852s E In file included from fortranobject.c:2: 13852s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13852s E 7 | #include 13852s E | ^~~~~~~~~~ 13852s E compilation terminated. 13852s E compilation terminated. 13852s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13852s E INFO: 13852s E ########### EXT COMPILER OPTIMIZATION ########### 13852s E INFO: Platform : 13852s E Architecture: armhf 13852s E Compiler : gcc 13852s E 13852s E CPU baseline : 13852s E Requested : 'min' 13852s E Enabled : none 13852s E Flags : none 13852s E Extra checks: none 13852s E 13852s E CPU dispatch : 13852s E Requested : 'max -xop -fma4' 13852s E Enabled : none 13852s E Generated : none 13852s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13852s 13852s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13852s d = '/tmp/tmpjj8q074z' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s err = None 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s kw = {} 13852s module_name = 'test_array_from_pyobj_ext' 13852s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13852s p = 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13852s __ ERROR at setup of TestSharedMemory.test_inplace_from_casttype[CLONGDOUBLE] __ 13852s 13852s def setup_module(): 13852s """ 13852s Build the required testing extension module 13852s 13852s """ 13852s global wrap 13852s 13852s # Check compiler availability first 13852s if not util.has_c_compiler(): 13852s pytest.skip("No C compiler available") 13852s 13852s if wrap is None: 13852s config_code = """ 13852s config.add_extension('test_array_from_pyobj_ext', 13852s sources=['wrapmodule.c', 'fortranobject.c'], 13852s define_macros=[]) 13852s """ 13852s d = os.path.dirname(__file__) 13852s src = [ 13852s util.getpath("tests", "src", "array_from_pyobj", "wrapmodule.c"), 13852s util.getpath("src", "fortranobject.c"), 13852s util.getpath("src", "fortranobject.h"), 13852s ] 13852s > wrap = util.build_module_distutils(src, config_code, 13852s "test_array_from_pyobj_ext") 13852s 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s d = '/usr/lib/python3/dist-packages/numpy/f2py/tests' 13852s src = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/test_array_from_pyobj.py:45: 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:77: in wrapper 13852s memo[key] = func(*a, **kw) 13852s a = ([PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/...module.c', 'fortranobject.c'],\n define_macros=[])\n ", 'test_array_from_pyobj_ext') 13852s func = 13852s key = '(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/usr...'fortranobject.c\'],\\n define_macros=[])\\n ", \'test_array_from_pyobj_ext\'), {})' 13852s kw = {} 13852s memo = {'(([PosixPath(\'/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c\'), PosixPath(\'/us...lush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n')} 13852s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13852s 13852s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13852s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13852s module_name = 'test_array_from_pyobj_ext', kw = {}, d = '/tmp/tmpjj8q074z' 13852s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13852s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13852s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13852s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13852s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13852s 13852s @_memoize 13852s def build_module_distutils(source_files, config_code, module_name, **kw): 13852s """ 13852s Build a module via distutils and import it. 13852s 13852s """ 13852s d = get_module_dir() 13852s 13852s # Copy files 13852s dst_sources = [] 13852s for fn in source_files: 13852s if not os.path.isfile(fn): 13852s raise RuntimeError("%s is not a file" % fn) 13852s dst = os.path.join(d, os.path.basename(fn)) 13852s shutil.copyfile(fn, dst) 13852s dst_sources.append(dst) 13852s 13852s # Build script 13852s config_code = textwrap.dedent(config_code).replace("\n", "\n ") 13852s 13852s code = fr""" 13852s import os 13852s import sys 13852s sys.path = {repr(sys.path)} 13852s 13852s def configuration(parent_name='',top_path=None): 13852s from numpy.distutils.misc_util import Configuration 13852s config = Configuration('', parent_name, top_path) 13852s {config_code} 13852s return config 13852s 13852s if __name__ == "__main__": 13852s from numpy.distutils.core import setup 13852s setup(configuration=configuration) 13852s """ 13852s script = os.path.join(d, get_temp_module_name() + ".py") 13852s dst_sources.append(script) 13852s with open(script, "wb") as f: 13852s f.write(asbytes(code)) 13852s 13852s # Build 13852s cwd = os.getcwd() 13852s try: 13852s os.chdir(d) 13852s cmd = [sys.executable, script, "build_ext", "-i"] 13852s p = subprocess.Popen(cmd, 13852s stdout=subprocess.PIPE, 13852s stderr=subprocess.STDOUT) 13852s out, err = p.communicate() 13852s if p.returncode != 0: 13852s > raise RuntimeError("Running distutils build failed: %s\n%s" % 13852s (cmd[4:], asstr(out))) 13852s E RuntimeError: Running distutils build failed: [] 13852s E /tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: 13852s E 13852s E `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 13852s E of the deprecation of `distutils` itself. It will be removed for 13852s E Python >= 3.12. For older Python versions it will remain present. 13852s E It is recommended to use `setuptools < 60.0` for those Python versions. 13852s E For more details, see: 13852s E https://numpy.org/devdocs/reference/distutils_status_migration.html 13852s E 13852s E 13852s E from numpy.distutils.core import setup 13852s E running build_ext 13852s E running build_src 13852s E INFO: build_src 13852s E INFO: building extension "test_array_from_pyobj_ext" sources 13852s E INFO: build_src: building npy-pkg config files 13852s E /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13852s E !! 13852s E 13852s E ******************************************************************************** 13852s E Please avoid running ``setup.py`` directly. 13852s E Instead, use pypa/build, pypa/installer or other 13852s E standards-based tools. 13852s E 13852s E See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13852s E ******************************************************************************** 13852s E 13852s E !! 13852s E self.initialize_options() 13852s E INFO: customize UnixCCompiler 13852s E INFO: customize UnixCCompiler using build_ext 13852s E INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/tmp 13852s E creating /tmp/tmppq19o2st/tmp/tmppq19o2st 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E creating /tmp/tmppq19o2st/usr 13852s E creating /tmp/tmppq19o2st/usr/lib 13852s E creating /tmp/tmppq19o2st/usr/lib/python3 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils 13852s E creating /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-march=native' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-O3' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-Werror' 13852s E INFO: CCompilerOpt.__init__[1786] : check requested baseline 13852s E INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon' 13852s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 13852s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 13852s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13852s E 13852s E INFO: compile options: '-I/usr/include/python3.12 -c' 13852s E extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 13853s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.o.d -mfpu=neon-fp16 -mfp16-format=ieee -Werror) failed with exit status 1 output -> 13853s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13853s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13853s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon_fp16.c:4: 13853s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13853s E 9 | # include_next 13853s E | ^~~~~~~~~~ 13853s E compilation terminated. 13853s E 13853s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13853s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 13853s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13853s E 13853s E INFO: compile options: '-I/usr/include/python3.12 -c' 13853s E extra options: '-mfpu=neon -Werror' 13853s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.o.d -mfpu=neon -Werror) failed with exit status 1 output -> 13853s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13853s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13853s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_neon.c:4: 13853s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13853s E 9 | # include_next 13853s E | ^~~~~~~~~~ 13853s E compilation terminated. 13853s E 13853s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13853s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 13853s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13853s E 13853s E INFO: compile options: '-I/usr/include/python3.12 -c' 13853s E extra options: '-mfpu=neon-vfpv4' 13853s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 13853s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13853s E 13853s E INFO: compile options: '-I/usr/include/python3.12 -c' 13853s E extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 13853s E INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 13853s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13853s E 13853s E INFO: compile options: '-I/usr/include/python3.12 -c' 13853s E extra options: '-march=armv8.2-a+fp16' 13853s E INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 13853s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13853s E 13853s E INFO: compile options: '-I/usr/include/python3.12 -c' 13853s E extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 13853s E WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/include/python3.12 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c -o /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o -MMD -MF /tmp/tmppq19o2st/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.o.d -mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror) failed with exit status 1 output -> 13853s E In file included from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_fp16.h:34, 13853s E from /usr/lib/gcc/arm-linux-gnueabihf/13/include/arm_neon.h:41, 13853s E from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_asimdhp.c:4: 13853s E /usr/lib/gcc/arm-linux-gnueabihf/13/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory 13853s E 9 | # include_next 13853s E | ^~~~~~~~~~ 13853s E compilation terminated. 13853s E 13853s E WARN: CCompilerOpt.feature_test[1567] : testing failed 13853s E INFO: CCompilerOpt.__init__[1811] : initialize targets groups 13853s E INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 13853s E INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (XOP NEON VXE AVX512F FMA4 SSE42 ASIMD VX (AVX2 FMA3) VSX4 VXE2 VSX3 SSE2 VSX AVX512_SKX VSX2) not part of baseline or dispatch-able features 13853s E INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 13853s E WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 13853s E INFO: building 'test_array_from_pyobj_ext' extension 13853s E INFO: compiling C sources 13853s E INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 13853s E 13853s E INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 13853s E INFO: arm-linux-gnueabihf-gcc: fortranobject.c 13853s E INFO: arm-linux-gnueabihf-gcc: wrapmodule.c 13853s E wrapmodule.c:14:10: fatal error: Python.h: No such file or directory 13853s E 14 | #include 13853s E | ^~~~~~~~~~ 13853s E In file included from fortranobject.c:2: 13853s E fortranobject.h:7:10: fatal error: Python.h: No such file or directory 13853s E 7 | #include 13853s E | ^~~~~~~~~~ 13853s E compilation terminated. 13853s E compilation terminated. 13853s E error: Command "arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c wrapmodule.c -o build/temp.linux-armv7l-cpython-312/wrapmodule.o -MMD -MF build/temp.linux-armv7l-cpython-312/wrapmodule.o.d" failed with exit status 1 13853s E INFO: 13853s E ########### EXT COMPILER OPTIMIZATION ########### 13853s E INFO: Platform : 13853s E Architecture: armhf 13853s E Compiler : gcc 13853s E 13853s E CPU baseline : 13853s E Requested : 'min' 13853s E Enabled : none 13853s E Flags : none 13853s E Extra checks: none 13853s E 13853s E CPU dispatch : 13853s E Requested : 'max -xop -fma4' 13853s E Enabled : none 13853s E Generated : none 13853s E INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 13853s 13853s cmd = ['/usr/bin/python3.12', '/tmp/tmpjj8q074z/_test_ext_module_5403.py', 'build_ext', '-i'] 13853s code = '\nimport os\nimport sys\nsys.path = [\'/tmp/tmpjj8q074z\', \'/usr/lib/python3/dist-packages\', \'\', \'/usr/lib/pytho...\nif __name__ == "__main__":\n from numpy.distutils.core import setup\n setup(configuration=configuration)\n ' 13853s config_code = "\n config.add_extension('test_array_from_pyobj_ext',\n sources=['wrapmodule.c', 'fortranobject.c'],\n define_macros=[])\n " 13853s cwd = '/tmp/autopkgtest.b6ixTN/autopkgtest_tmp' 13853s d = '/tmp/tmpjj8q074z' 13853s dst = '/tmp/tmpjj8q074z/fortranobject.h' 13853s dst_sources = ['/tmp/tmpjj8q074z/wrapmodule.c', '/tmp/tmpjj8q074z/fortranobject.c', '/tmp/tmpjj8q074z/fortranobject.h', '/tmp/tmpjj8q074z/_test_ext_module_5403.py'] 13853s err = None 13853s f = <_io.BufferedWriter name='/tmp/tmpjj8q074z/_test_ext_module_5403.py'> 13853s fn = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13853s kw = {} 13853s module_name = 'test_array_from_pyobj_ext' 13853s out = b'/tmp/tmpjj8q074z/_test_ext_module_5403.py:17: DeprecationWarning: \n\n `numpy.distutils` is deprecated since NumPy ..._flush[857] : write cache to path -> /tmp/tmpjj8q074z/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py\n' 13853s p = 13853s script = '/tmp/tmpjj8q074z/_test_ext_module_5403.py' 13853s source_files = [PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c'), PosixPath('/usr/lib/p...-packages/numpy/f2py/src/fortranobject.c'), PosixPath('/usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h')] 13853s 13853s /usr/lib/python3/dist-packages/numpy/f2py/tests/util.py:313: RuntimeError 13853s =================================== FAILURES =================================== 13853s _______________________ Test_ARM_Features.test_features ________________________ 13853s 13853s self = 13853s 13853s def test_features(self): 13853s self.load_flags() 13853s for gname, features in self.features_groups.items(): 13853s test_features = [self.cpu_have(f) for f in features] 13853s > assert_features_equal(__cpu_features__.get(gname), all(test_features), gname) 13853s E AssertionError: Failure Detection 13853s E NAME: 'NEON_FP16' 13853s E ACTUAL: True 13853s E DESIRED: False 13853s E 13853s E ########################################### 13853s E ### Extra debugging information 13853s E ########################################### 13853s E ------------------------------------------- 13853s E --- NumPy Detections 13853s E ------------------------------------------- 13853s E {MMX: False, SSE: False, SSE2: False, SSE3: False, SSSE3: False, SSE41: False, POPCNT: False, SSE42: False, AVX: False, F16C: False, XOP: False, FMA4: False, FMA3: False, AVX2: False, AVX512F: False, AVX512CD: False, AVX512ER: False, AVX512PF: False, AVX5124FMAPS: False, AVX5124VNNIW: False, AVX512VPOPCNTDQ: False, AVX512VL: False, AVX512BW: False, AVX512DQ: False, AVX512VNNI: False, AVX512IFMA: False, AVX512VBMI: False, AVX512VBMI2: False, AVX512BITALG: False, AVX512_KNL: False, AVX512_KNM: False, AVX512_SKX: False, AVX512_CLX: False, AVX512_CNL: False, AVX512_ICL: False, VSX: False, VSX2: False, VSX3: False, VSX4: False, VX: False, VXE: False, VXE2: False, NEON: True, NEON_FP16: True, NEON_VFPV4: True, ASIMD: True, FPHP: False, ASIMDHP: False, ASIMDDP: False, ASIMDFHM: False} 13853s E ------------------------------------------- 13853s E --- SYS / CPUINFO 13853s E ------------------------------------------- 13853s E .... 13853s E ------------------------------------------- 13853s E --- SYS / AUXV 13853s E ------------------------------------------- 13853s E AT_HWCAP: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm 13853s E AT_PAGESZ: 4096 13853s E AT_CLKTCK: 100 13853s E AT_PHDR: 0xbca034 13853s E AT_PHENT: 32 13853s E AT_PHNUM: 9 13853s E AT_BASE: 0xf7aa5000 13853s E AT_FLAGS: 0x0 13853s E AT_ENTRY: 0xbcaf05 13853s E AT_UID: 0 13853s E AT_EUID: 0 13853s E AT_GID: 0 13853s E AT_EGID: 0 13853s E AT_SECURE: 0 13853s E AT_RANDOM: 0xffaa159c 13853s E AT_HWCAP2: aes pmull sha1 sha2 crc32 13853s E AT_EXECFN: /bin/true 13853s E AT_PLATFORM: v8l 13853s 13853s features = ['NEON', 'HALF'] 13853s gname = 'NEON_FP16' 13853s self = 13853s test_features = [False, False] 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_cpu_features.py:64: AssertionError 13853s ________________ TestDateTime.test_datetime_as_string_timezone _________________ 13853s 13853s self = 13853s 13853s @pytest.mark.skipif(not _has_pytz, reason="The pytz module is not available.") 13853s def test_datetime_as_string_timezone(self): 13853s # timezone='local' vs 'UTC' 13853s a = np.datetime64('2010-03-15T06:30', 'm') 13853s assert_equal(np.datetime_as_string(a), 13853s '2010-03-15T06:30') 13853s assert_equal(np.datetime_as_string(a, timezone='naive'), 13853s '2010-03-15T06:30') 13853s assert_equal(np.datetime_as_string(a, timezone='UTC'), 13853s '2010-03-15T06:30Z') 13853s assert_(np.datetime_as_string(a, timezone='local') != 13853s '2010-03-15T06:30') 13853s 13853s b = np.datetime64('2010-02-15T06:30', 'm') 13853s 13853s > assert_equal(np.datetime_as_string(a, timezone=tz('US/Central')), 13853s '2010-03-15T01:30-0500') 13853s 13853s a = numpy.datetime64('2010-03-15T06:30') 13853s b = numpy.datetime64('2010-02-15T06:30') 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_datetime.py:1860: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s zone = 'US/Central' 13853s 13853s def timezone(zone): 13853s r''' Return a datetime.tzinfo implementation for the given timezone 13853s 13853s >>> from datetime import datetime, timedelta 13853s >>> utc = timezone('UTC') 13853s >>> eastern = timezone('US/Eastern') 13853s >>> eastern.zone 13853s 'US/Eastern' 13853s >>> timezone(unicode('US/Eastern')) is eastern 13853s True 13853s >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc) 13853s >>> loc_dt = utc_dt.astimezone(eastern) 13853s >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)' 13853s >>> loc_dt.strftime(fmt) 13853s '2002-10-27 01:00:00 EST (-0500)' 13853s >>> (loc_dt - timedelta(minutes=10)).strftime(fmt) 13853s '2002-10-27 00:50:00 EST (-0500)' 13853s >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt) 13853s '2002-10-27 01:50:00 EDT (-0400)' 13853s >>> (loc_dt + timedelta(minutes=10)).strftime(fmt) 13853s '2002-10-27 01:10:00 EST (-0500)' 13853s 13853s Raises UnknownTimeZoneError if passed an unknown zone. 13853s 13853s >>> try: 13853s ... timezone('Asia/Shangri-La') 13853s ... except UnknownTimeZoneError: 13853s ... print('Unknown') 13853s Unknown 13853s 13853s >>> try: 13853s ... timezone(unicode('\N{TRADE MARK SIGN}')) 13853s ... except UnknownTimeZoneError: 13853s ... print('Unknown') 13853s Unknown 13853s 13853s ''' 13853s if zone is None: 13853s raise UnknownTimeZoneError(None) 13853s 13853s if zone.upper() == 'UTC': 13853s return utc 13853s 13853s try: 13853s zone = ascii(zone) 13853s except UnicodeEncodeError: 13853s # All valid timezones are ASCII 13853s raise UnknownTimeZoneError(zone) 13853s 13853s zone = _case_insensitive_zone_lookup(_unmunge_zone(zone)) 13853s if zone not in _tzinfo_cache: 13853s if zone in all_timezones_set: # noqa 13853s fp = open_resource(zone) 13853s try: 13853s _tzinfo_cache[zone] = build_tzinfo(zone, fp) 13853s finally: 13853s fp.close() 13853s else: 13853s > raise UnknownTimeZoneError(zone) 13853s E pytz.exceptions.UnknownTimeZoneError: 'US/Central' 13853s 13853s zone = 'US/Central' 13853s 13853s /usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError 13853s _____________________ TestDatetime64Timezone.test_datetime _____________________ 13853s 13853s self = 13853s 13853s @pytest.mark.skipif(not _has_pytz, 13853s reason="The pytz module is not available.") 13853s def test_datetime(self): 13853s > tz = pytz.timezone('US/Eastern') 13853s 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_deprecations.py:231: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s zone = 'US/Eastern' 13853s 13853s def timezone(zone): 13853s r''' Return a datetime.tzinfo implementation for the given timezone 13853s 13853s >>> from datetime import datetime, timedelta 13853s >>> utc = timezone('UTC') 13853s >>> eastern = timezone('US/Eastern') 13853s >>> eastern.zone 13853s 'US/Eastern' 13853s >>> timezone(unicode('US/Eastern')) is eastern 13853s True 13853s >>> utc_dt = datetime(2002, 10, 27, 6, 0, 0, tzinfo=utc) 13853s >>> loc_dt = utc_dt.astimezone(eastern) 13853s >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)' 13853s >>> loc_dt.strftime(fmt) 13853s '2002-10-27 01:00:00 EST (-0500)' 13853s >>> (loc_dt - timedelta(minutes=10)).strftime(fmt) 13853s '2002-10-27 00:50:00 EST (-0500)' 13853s >>> eastern.normalize(loc_dt - timedelta(minutes=10)).strftime(fmt) 13853s '2002-10-27 01:50:00 EDT (-0400)' 13853s >>> (loc_dt + timedelta(minutes=10)).strftime(fmt) 13853s '2002-10-27 01:10:00 EST (-0500)' 13853s 13853s Raises UnknownTimeZoneError if passed an unknown zone. 13853s 13853s >>> try: 13853s ... timezone('Asia/Shangri-La') 13853s ... except UnknownTimeZoneError: 13853s ... print('Unknown') 13853s Unknown 13853s 13853s >>> try: 13853s ... timezone(unicode('\N{TRADE MARK SIGN}')) 13853s ... except UnknownTimeZoneError: 13853s ... print('Unknown') 13853s Unknown 13853s 13853s ''' 13853s if zone is None: 13853s raise UnknownTimeZoneError(None) 13853s 13853s if zone.upper() == 'UTC': 13853s return utc 13853s 13853s try: 13853s zone = ascii(zone) 13853s except UnicodeEncodeError: 13853s # All valid timezones are ASCII 13853s raise UnknownTimeZoneError(zone) 13853s 13853s zone = _case_insensitive_zone_lookup(_unmunge_zone(zone)) 13853s if zone not in _tzinfo_cache: 13853s if zone in all_timezones_set: # noqa 13853s fp = open_resource(zone) 13853s try: 13853s _tzinfo_cache[zone] = build_tzinfo(zone, fp) 13853s finally: 13853s fp.close() 13853s else: 13853s > raise UnknownTimeZoneError(zone) 13853s E pytz.exceptions.UnknownTimeZoneError: 'US/Eastern' 13853s 13853s zone = 'US/Eastern' 13853s 13853s /usr/lib/python3/dist-packages/pytz/__init__.py:201: UnknownTimeZoneError 13853s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[ones-1-] _ 13853s 13853s self = 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s count = 6, singleton = 13853s creation_func = , creation_obj = 1 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 13853s pytest.param(np.empty, None, 13853s # None is probably used for too many things 13853s marks=pytest.mark.skip("unreliable due to python's behaviour")), 13853s (np.ones, 1), 13853s (np.zeros, 0)]) 13853s def test_structured_object_create_delete(self, dt, pat, count, singleton, 13853s creation_func, creation_obj): 13853s """Structured object reference counting in creation and deletion""" 13853s # The test assumes that 0, 1, and None are singletons. 13853s gc.collect() 13853s before = sys.getrefcount(creation_obj) 13853s arr = creation_func(3, dt) 13853s 13853s now = sys.getrefcount(creation_obj) 13853s > assert now - before == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s arr = array([([[1, 1, 1], [1, 1, 1]],), ([[1, 1, 1], [1, 1, 1]],), 13853s ([[1, 1, 1], [1, 1, 1]],)], dtype=[('b', 'O', (2, 3))]) 13853s before = 1073741823 13853s count = 6 13853s creation_func = 13853s creation_obj = 1 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s now = 1073741823 13853s pat = ([[, , ], [, , ]],) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[ones-1-] _ 13853s 13853s self = 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s count = 6, singleton = 13853s creation_func = , creation_obj = 1 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 13853s pytest.param(np.empty, None, 13853s # None is probably used for too many things 13853s marks=pytest.mark.skip("unreliable due to python's behaviour")), 13853s (np.ones, 1), 13853s (np.zeros, 0)]) 13853s def test_structured_object_create_delete(self, dt, pat, count, singleton, 13853s creation_func, creation_obj): 13853s """Structured object reference counting in creation and deletion""" 13853s # The test assumes that 0, 1, and None are singletons. 13853s gc.collect() 13853s before = sys.getrefcount(creation_obj) 13853s arr = creation_func(3, dt) 13853s 13853s now = sys.getrefcount(creation_obj) 13853s > assert now - before == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s arr = array([(1, [[1, 1, 1], [1, 1, 1]]), (1, [[1, 1, 1], [1, 1, 1]]), 13853s (1, [[1, 1, 1], [1, 1, 1]])], 13853s dtype=[('a', ' 13853s creation_obj = 1 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[ones-1-] _ 13853s 13853s self = 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s count = 6, singleton = 13853s creation_func = , creation_obj = 1 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 13853s pytest.param(np.empty, None, 13853s # None is probably used for too many things 13853s marks=pytest.mark.skip("unreliable due to python's behaviour")), 13853s (np.ones, 1), 13853s (np.zeros, 0)]) 13853s def test_structured_object_create_delete(self, dt, pat, count, singleton, 13853s creation_func, creation_obj): 13853s """Structured object reference counting in creation and deletion""" 13853s # The test assumes that 0, 1, and None are singletons. 13853s gc.collect() 13853s before = sys.getrefcount(creation_obj) 13853s arr = creation_func(3, dt) 13853s 13853s now = sys.getrefcount(creation_obj) 13853s > assert now - before == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s arr = array([(1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]]), 13853s (1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1..., (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]])], 13853s dtype=[('a', ' 13853s creation_obj = 1 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[ones-1-] _ 13853s 13853s self = 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s count = 12, singleton = 13853s creation_func = , creation_obj = 1 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 13853s pytest.param(np.empty, None, 13853s # None is probably used for too many things 13853s marks=pytest.mark.skip("unreliable due to python's behaviour")), 13853s (np.ones, 1), 13853s (np.zeros, 0)]) 13853s def test_structured_object_create_delete(self, dt, pat, count, singleton, 13853s creation_func, creation_obj): 13853s """Structured object reference counting in creation and deletion""" 13853s # The test assumes that 0, 1, and None are singletons. 13853s gc.collect() 13853s before = sys.getrefcount(creation_obj) 13853s arr = creation_func(3, dt) 13853s 13853s now = sys.getrefcount(creation_obj) 13853s > assert now - before == count * 3 13853s E assert (1073741823 - 1073741823) == (12 * 3) 13853s 13853s arr = array([(1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]]), 13853s (1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1...), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]])], 13853s dtype=[('a', ' 13853s creation_obj = 1 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[zeros-0-] _ 13853s 13853s self = 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s count = 6, singleton = 13853s creation_func = , creation_obj = 0 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 13853s pytest.param(np.empty, None, 13853s # None is probably used for too many things 13853s marks=pytest.mark.skip("unreliable due to python's behaviour")), 13853s (np.ones, 1), 13853s (np.zeros, 0)]) 13853s def test_structured_object_create_delete(self, dt, pat, count, singleton, 13853s creation_func, creation_obj): 13853s """Structured object reference counting in creation and deletion""" 13853s # The test assumes that 0, 1, and None are singletons. 13853s gc.collect() 13853s before = sys.getrefcount(creation_obj) 13853s arr = creation_func(3, dt) 13853s 13853s now = sys.getrefcount(creation_obj) 13853s > assert now - before == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s arr = array([([[0, 0, 0], [0, 0, 0]],), ([[0, 0, 0], [0, 0, 0]],), 13853s ([[0, 0, 0], [0, 0, 0]],)], dtype=[('b', 'O', (2, 3))]) 13853s before = 1073741823 13853s count = 6 13853s creation_func = 13853s creation_obj = 0 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s now = 1073741823 13853s pat = ([[, , ], [, , ]],) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[zeros-0-] _ 13853s 13853s self = 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s count = 6, singleton = 13853s creation_func = , creation_obj = 0 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 13853s pytest.param(np.empty, None, 13853s # None is probably used for too many things 13853s marks=pytest.mark.skip("unreliable due to python's behaviour")), 13853s (np.ones, 1), 13853s (np.zeros, 0)]) 13853s def test_structured_object_create_delete(self, dt, pat, count, singleton, 13853s creation_func, creation_obj): 13853s """Structured object reference counting in creation and deletion""" 13853s # The test assumes that 0, 1, and None are singletons. 13853s gc.collect() 13853s before = sys.getrefcount(creation_obj) 13853s arr = creation_func(3, dt) 13853s 13853s now = sys.getrefcount(creation_obj) 13853s > assert now - before == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s arr = array([(0, [[0, 0, 0], [0, 0, 0]]), (0, [[0, 0, 0], [0, 0, 0]]), 13853s (0, [[0, 0, 0], [0, 0, 0]])], 13853s dtype=[('a', ' 13853s creation_obj = 0 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[zeros-0-] _ 13853s 13853s self = 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s count = 6, singleton = 13853s creation_func = , creation_obj = 0 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 13853s pytest.param(np.empty, None, 13853s # None is probably used for too many things 13853s marks=pytest.mark.skip("unreliable due to python's behaviour")), 13853s (np.ones, 1), 13853s (np.zeros, 0)]) 13853s def test_structured_object_create_delete(self, dt, pat, count, singleton, 13853s creation_func, creation_obj): 13853s """Structured object reference counting in creation and deletion""" 13853s # The test assumes that 0, 1, and None are singletons. 13853s gc.collect() 13853s before = sys.getrefcount(creation_obj) 13853s arr = creation_func(3, dt) 13853s 13853s now = sys.getrefcount(creation_obj) 13853s > assert now - before == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s arr = array([(0, [[(0, 0), (0, 0), (0, 0)], [(0, 0), (0, 0), (0, 0)]]), 13853s (0, [[(0, 0), (0, 0), (0, 0)], [(0, 0), (0, 0..., (0, 0), (0, 0)], [(0, 0), (0, 0), (0, 0)]])], 13853s dtype=[('a', ' 13853s creation_obj = 0 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_create_delete[zeros-0-] _ 13853s 13853s self = 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s count = 12, singleton = 13853s creation_func = , creation_obj = 0 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize(["creation_func", "creation_obj"], [ 13853s pytest.param(np.empty, None, 13853s # None is probably used for too many things 13853s marks=pytest.mark.skip("unreliable due to python's behaviour")), 13853s (np.ones, 1), 13853s (np.zeros, 0)]) 13853s def test_structured_object_create_delete(self, dt, pat, count, singleton, 13853s creation_func, creation_obj): 13853s """Structured object reference counting in creation and deletion""" 13853s # The test assumes that 0, 1, and None are singletons. 13853s gc.collect() 13853s before = sys.getrefcount(creation_obj) 13853s arr = creation_func(3, dt) 13853s 13853s now = sys.getrefcount(creation_obj) 13853s > assert now - before == count * 3 13853s E assert (1073741823 - 1073741823) == (12 * 3) 13853s 13853s arr = array([(0, [[(0, 0), (0, 0), (0, 0)], [(0, 0), (0, 0), (0, 0)]]), 13853s (0, [[(0, 0), (0, 0), (0, 0)], [(0, 0), (0, 0...), (0, 0), (0, 0)], [(0, 0), (0, 0), (0, 0)]])], 13853s dtype=[('a', ' 13853s creation_obj = 0 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:744: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_item_setting[] _ 13853s 13853s self = 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s def test_structured_object_item_setting(self, dt, pat, count, singleton): 13853s """Structured object reference counting for simple item setting""" 13853s one = 1 13853s 13853s gc.collect() 13853s before = sys.getrefcount(singleton) 13853s arr = np.array([pat] * 3, dt) 13853s assert sys.getrefcount(singleton) - before == count * 3 13853s # Fill with `1` and check that it was replaced correctly: 13853s before2 = sys.getrefcount(one) 13853s arr[...] = one 13853s after2 = sys.getrefcount(one) 13853s > assert after2 - before2 == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s after2 = 1073741823 13853s arr = array([([[1, 1, 1], [1, 1, 1]],), ([[1, 1, 1], [1, 1, 1]],), 13853s ([[1, 1, 1], [1, 1, 1]],)], dtype=[('b', 'O', (2, 3))]) 13853s before = 22 13853s before2 = 1073741823 13853s count = 6 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s one = 1 13853s pat = ([[, , ], [, , ]],) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:763: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_item_setting[] _ 13853s 13853s self = 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s def test_structured_object_item_setting(self, dt, pat, count, singleton): 13853s """Structured object reference counting for simple item setting""" 13853s one = 1 13853s 13853s gc.collect() 13853s before = sys.getrefcount(singleton) 13853s arr = np.array([pat] * 3, dt) 13853s assert sys.getrefcount(singleton) - before == count * 3 13853s # Fill with `1` and check that it was replaced correctly: 13853s before2 = sys.getrefcount(one) 13853s arr[...] = one 13853s after2 = sys.getrefcount(one) 13853s > assert after2 - before2 == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s after2 = 1073741823 13853s arr = array([(1, [[1, 1, 1], [1, 1, 1]]), (1, [[1, 1, 1], [1, 1, 1]]), 13853s (1, [[1, 1, 1], [1, 1, 1]])], 13853s dtype=[('a', ', , ], [, , ]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:763: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_item_setting[] _ 13853s 13853s self = 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s def test_structured_object_item_setting(self, dt, pat, count, singleton): 13853s """Structured object reference counting for simple item setting""" 13853s one = 1 13853s 13853s gc.collect() 13853s before = sys.getrefcount(singleton) 13853s arr = np.array([pat] * 3, dt) 13853s assert sys.getrefcount(singleton) - before == count * 3 13853s # Fill with `1` and check that it was replaced correctly: 13853s before2 = sys.getrefcount(one) 13853s arr[...] = one 13853s after2 = sys.getrefcount(one) 13853s > assert after2 - before2 == count * 3 13853s E assert (1073741823 - 1073741823) == (6 * 3) 13853s 13853s after2 = 1073741823 13853s arr = array([(1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]]), 13853s (1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1..., (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]])], 13853s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:763: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_item_setting[] _ 13853s 13853s self = 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s count = 12, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s def test_structured_object_item_setting(self, dt, pat, count, singleton): 13853s """Structured object reference counting for simple item setting""" 13853s one = 1 13853s 13853s gc.collect() 13853s before = sys.getrefcount(singleton) 13853s arr = np.array([pat] * 3, dt) 13853s assert sys.getrefcount(singleton) - before == count * 3 13853s # Fill with `1` and check that it was replaced correctly: 13853s before2 = sys.getrefcount(one) 13853s arr[...] = one 13853s after2 = sys.getrefcount(one) 13853s > assert after2 - before2 == count * 3 13853s E assert (1073741823 - 1073741823) == (12 * 3) 13853s 13853s after2 = 1073741823 13853s arr = array([(1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]]), 13853s (1, [[(1, 1), (1, 1), (1, 1)], [(1, 1), (1, 1...), (1, 1), (1, 1)], [(1, 1), (1, 1), (1, 1)]])], 13853s dtype=[('a', ', ), (, , ), (, )]]) 13853s self = 13853s singleton = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:763: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape0-index0-2-] _ 13853s 13853s self = 13853s shape = (3,), index = ([0, 2],), items_changed = 2 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],), 13853s ([[-4, -4, -4], [-4, -4, -4]],)], dtype=[('b', 'O', (2, 3))]) 13853s before_val0 = 1073741823 13853s before_val1 = 1073741823 13853s count = 6 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s index = ([0, 2],) 13853s items_changed = 2 13853s part = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 13853s dtype=[('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s self = 13853s shape = (3,) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape0-index0-2-] _ 13853s 13853s self = 13853s shape = (3,), index = ([0, 2],), items_changed = 2 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([(-4, [[-4, -4, -4], [-4, -4, -4]]), 13853s (-4, [[-4, -4, -4], [-4, -4, -4]]), 13853s (-4, [[-4, -4, -4], [-4, -4, -4]])], 13853s dtype=[('a', ', , ], [, , ]]) 13853s self = 13853s shape = (3,) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape0-index0-2-] _ 13853s 13853s self = 13853s shape = (3,), index = ([0, 2],), items_changed = 2 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 13853s (-4, [[(-4, -4), (-4, -4), (-4, ..., (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])], 13853s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s self = 13853s shape = (3,) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape0-index0-2-] _ 13853s 13853s self = 13853s shape = (3,), index = ([0, 2],), items_changed = 2 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s count = 12, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (12 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 13853s (-4, [[(-4, -4), (-4, -4), (-4, ...), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])], 13853s dtype=[('a', ', ), (, , ), (, )]]) 13853s self = 13853s shape = (3,) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape1-index1-4-] _ 13853s 13853s self = 13853s shape = (3, 2), index = ([0, 2], slice(None, None, None)), items_changed = 4 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 4) 13853s 13853s after_val0 = 1073741823 13853s arr = array([[([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 13853s [([[-4, -4, -4], [-4, -4, -4]],), ([... -4]],)], 13853s [([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)]], 13853s dtype=[('b', 'O', (2, 3))]) 13853s before_val0 = 1073741823 13853s before_val1 = 1073741823 13853s count = 6 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s index = ([0, 2], slice(None, None, None)) 13853s items_changed = 4 13853s part = array([[([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 13853s [([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)]], 13853s dtype=[('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s self = 13853s shape = (3, 2) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape1-index1-4-] _ 13853s 13853s self = 13853s shape = (3, 2), index = ([0, 2], slice(None, None, None)), items_changed = 4 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 4) 13853s 13853s after_val0 = 1073741823 13853s arr = array([[(-4, [[-4, -4, -4], [-4, -4, -4]]), 13853s (-4, [[-4, -4, -4], [-4, -4, -4]])], 13853s [(-4, [[-4, -4, -4], [... -4, -4], [-4, -4, -4]]), 13853s (-4, [[-4, -4, -4], [-4, -4, -4]])]], 13853s dtype=[('a', ', , ], [, , ]]) 13853s self = 13853s shape = (3, 2) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape1-index1-4-] _ 13853s 13853s self = 13853s shape = (3, 2), index = ([0, 2], slice(None, None, None)), items_changed = 4 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 4) 13853s 13853s after_val0 = 1073741823 13853s arr = array([[(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 13853s (-4, [[(-4, -4), (-4, -4), (-4... (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])]], 13853s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s self = 13853s shape = (3, 2) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape1-index1-4-] _ 13853s 13853s self = 13853s shape = (3, 2), index = ([0, 2], slice(None, None, None)), items_changed = 4 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s count = 12, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (12 * 4) 13853s 13853s after_val0 = 1073741823 13853s arr = array([[(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 13853s (-4, [[(-4, -4), (-4, -4), (-4..., (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])]], 13853s dtype=[('a', ', ), (, , ), (, )]]) 13853s self = 13853s shape = (3, 2) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape2-index2-2-] _ 13853s 13853s self = 13853s shape = (3, 2), index = ([0, 2], [1]), items_changed = 2 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([[([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 13853s [([[-4, -4, -4], [-4, -4, -4]],), ([... -4]],)], 13853s [([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)]], 13853s dtype=[('b', 'O', (2, 3))]) 13853s before_val0 = 1073741823 13853s before_val1 = 1073741823 13853s count = 6 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s index = ([0, 2], [1]) 13853s items_changed = 2 13853s part = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 13853s dtype=[('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s self = 13853s shape = (3, 2) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape2-index2-2-] _ 13853s 13853s self = 13853s shape = (3, 2), index = ([0, 2], [1]), items_changed = 2 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([[(-4, [[-4, -4, -4], [-4, -4, -4]]), 13853s (-4, [[-4, -4, -4], [-4, -4, -4]])], 13853s [(-4, [[-4, -4, -4], [... -4, -4], [-4, -4, -4]]), 13853s (-4, [[-4, -4, -4], [-4, -4, -4]])]], 13853s dtype=[('a', ', , ], [, , ]]) 13853s self = 13853s shape = (3, 2) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape2-index2-2-] _ 13853s 13853s self = 13853s shape = (3, 2), index = ([0, 2], [1]), items_changed = 2 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([[(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 13853s (-4, [[(-4, -4), (-4, -4), (-4... (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])]], 13853s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s self = 13853s shape = (3, 2) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape2-index2-2-] _ 13853s 13853s self = 13853s shape = (3, 2), index = ([0, 2], [1]), items_changed = 2 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s count = 12, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (12 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([[(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 13853s (-4, [[(-4, -4), (-4, -4), (-4..., (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])]], 13853s dtype=[('a', ', ), (, , ), (, )]]) 13853s self = 13853s shape = (3, 2) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape3-index3-2-] _ 13853s 13853s self = 13853s shape = (3,), index = [True, False, True], items_changed = 2 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],), 13853s ([[-4, -4, -4], [-4, -4, -4]],)], dtype=[('b', 'O', (2, 3))]) 13853s before_val0 = 1073741823 13853s before_val1 = 1073741823 13853s count = 6 13853s dt = dtype([('b', 'O', (2, 3))]) 13853s index = [True, False, True] 13853s items_changed = 2 13853s part = array([([[-4, -4, -4], [-4, -4, -4]],), ([[-4, -4, -4], [-4, -4, -4]],)], 13853s dtype=[('b', 'O', (2, 3))]) 13853s pat = ([[, , ], [, , ]],) 13853s self = 13853s shape = (3,) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape3-index3-2-] _ 13853s 13853s self = 13853s shape = (3,), index = [True, False, True], items_changed = 2 13853s dt = dtype([('a', ', , ], [, , ]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([(-4, [[-4, -4, -4], [-4, -4, -4]]), 13853s (-4, [[-4, -4, -4], [-4, -4, -4]]), 13853s (-4, [[-4, -4, -4], [-4, -4, -4]])], 13853s dtype=[('a', ', , ], [, , ]]) 13853s self = 13853s shape = (3,) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape3-index3-2-] _ 13853s 13853s self = 13853s shape = (3,), index = [True, False, True], items_changed = 2 13853s dt = dtype([('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s count = 6, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (6 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 13853s (-4, [[(-4, -4), (-4, -4), (-4, ..., (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])], 13853s dtype=[('a', ', 0), (, 0), (, 0)], [(, 0), (, 0), (, 0)]]) 13853s self = 13853s shape = (3,) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _ TestStructuredObjectRefcounting.test_structured_object_indexing[shape3-index3-2-] _ 13853s 13853s self = 13853s shape = (3,), index = [True, False, True], items_changed = 2 13853s dt = dtype([('a', ', ), (, , ), (, )]]) 13853s count = 12, singleton = 13853s 13853s @pytest.mark.parametrize(['dt', 'pat', 'count', 'singleton'], 13853s iter_struct_object_dtypes()) 13853s @pytest.mark.parametrize( 13853s ['shape', 'index', 'items_changed'], 13853s [((3,), ([0, 2],), 2), 13853s ((3, 2), ([0, 2], slice(None)), 4), 13853s ((3, 2), ([0, 2], [1]), 2), 13853s ((3,), ([True, False, True]), 2)]) 13853s def test_structured_object_indexing(self, shape, index, items_changed, 13853s dt, pat, count, singleton): 13853s """Structured object reference counting for advanced indexing.""" 13853s # Use two small negative values (should be singletons, but less likely 13853s # to run into race-conditions). This failed in some threaded envs 13853s # When using 0 and 1. If it fails again, should remove all explicit 13853s # checks, and rely on `pytest-leaks` reference count checker only. 13853s val0 = -4 13853s val1 = -5 13853s 13853s arr = np.full(shape, val0, dt) 13853s 13853s gc.collect() 13853s before_val0 = sys.getrefcount(val0) 13853s before_val1 = sys.getrefcount(val1) 13853s # Test item getting: 13853s part = arr[index] 13853s after_val0 = sys.getrefcount(val0) 13853s > assert after_val0 - before_val0 == count * items_changed 13853s E assert (1073741823 - 1073741823) == (12 * 2) 13853s 13853s after_val0 = 1073741823 13853s arr = array([(-4, [[(-4, -4), (-4, -4), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]]), 13853s (-4, [[(-4, -4), (-4, -4), (-4, ...), (-4, -4)], [(-4, -4), (-4, -4), (-4, -4)]])], 13853s dtype=[('a', ', ), (, , ), (, )]]) 13853s self = 13853s shape = (3,) 13853s singleton = 13853s val0 = -4 13853s val1 = -5 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_dtype.py:795: AssertionError 13853s _____________ TestRegression.test_structured_arrays_with_objects2 ______________ 13853s 13853s self = 13853s 13853s @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts") 13853s def test_structured_arrays_with_objects2(self): 13853s # Ticket #1299 second test 13853s stra = 'aaaa' 13853s strb = 'bbbb' 13853s numb = sys.getrefcount(strb) 13853s numa = sys.getrefcount(stra) 13853s x = np.array([[(0, stra), (1, strb)]], 'i8,O') 13853s x[x.nonzero()] = x.ravel()[:1] 13853s assert_(sys.getrefcount(strb) == numb) 13853s > assert_(sys.getrefcount(stra) == numa + 2) 13853s E AssertionError 13853s 13853s numa = 1073741823 13853s numb = 1073741823 13853s self = 13853s stra = 'aaaa' 13853s strb = 'bbbb' 13853s x = array([[(0, 'aaaa'), (0, 'aaaa')]], dtype=[('f0', ' 13853s 13853s @requires_memory(6 * 1024**3) 13853s def test_identityless_reduction_huge_array(self): 13853s # Regression test for gh-20921 (copying identity incorrectly failed) 13853s > arr = np.zeros((2, 2**31), 'uint8') 13853s E ValueError: Maximum allowed dimension exceeded 13853s 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_ufunc.py:1619: ValueError 13853s __ TestSpecialFloats.test_unary_spurious_fpexception[data16-escape16-f-sqrt] ___ 13853s 13853s self = 13853s ufunc = , dtype = 'f', data = [0.5, 0.5, 0.5, inf] 13853s escape = [, , , , , , ...] 13853s 13853s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 13853s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 13853s @pytest.mark.parametrize("data, escape", ( 13853s ([0.03], LTONE_INVALID_ERR), 13853s ([0.03]*32, LTONE_INVALID_ERR), 13853s # neg 13853s ([-1.0], NEG_INVALID_ERR), 13853s ([-1.0]*32, NEG_INVALID_ERR), 13853s # flat 13853s ([1.0], ONE_INVALID_ERR), 13853s ([1.0]*32, ONE_INVALID_ERR), 13853s # zero 13853s ([0.0], BYZERO_ERR), 13853s ([0.0]*32, BYZERO_ERR), 13853s ([-0.0], BYZERO_ERR), 13853s ([-0.0]*32, BYZERO_ERR), 13853s # nan 13853s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 13853s ([np.nan], []), 13853s ([np.nan]*32, []), 13853s # inf 13853s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 13853s ([np.inf], INF_INVALID_ERR), 13853s ([np.inf]*32, INF_INVALID_ERR), 13853s # ninf 13853s ([0.5, 0.5, 0.5, -np.inf], 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, -np.inf]*32, 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s )) 13853s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 13853s if escape and ufunc in escape: 13853s return 13853s # FIXME: NAN raises FP invalid exception: 13853s # - ceil/float16 on MSVC:32-bit 13853s # - spacing/float16 on almost all platforms 13853s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 13853s return 13853s array = np.array(data, dtype=dtype) 13853s > with assert_no_warnings(): 13853s 13853s array = array([0.5, 0.5, 0.5, inf], dtype=float32) 13853s data = [0.5, 0.5, 0.5, inf] 13853s dtype = 'f' 13853s escape = [, , , , , , ...] 13853s self = 13853s ufunc = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = , typ = None 13853s value = None, traceback = None 13853s 13853s def __exit__(self, typ, value, traceback): 13853s if typ is None: 13853s try: 13853s > next(self.gen) 13853s E AssertionError: Got warnings: [] 13853s 13853s self = 13853s traceback = None 13853s typ = None 13853s value = None 13853s 13853s /usr/lib/python3.12/contextlib.py:144: AssertionError 13853s __ TestSpecialFloats.test_unary_spurious_fpexception[data17-escape17-f-sqrt] ___ 13853s 13853s self = 13853s ufunc = , dtype = 'f', data = [0.5, 0.5, 0.5, inf, 0.5, 0.5, ...] 13853s escape = [, , , , , , ...] 13853s 13853s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 13853s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 13853s @pytest.mark.parametrize("data, escape", ( 13853s ([0.03], LTONE_INVALID_ERR), 13853s ([0.03]*32, LTONE_INVALID_ERR), 13853s # neg 13853s ([-1.0], NEG_INVALID_ERR), 13853s ([-1.0]*32, NEG_INVALID_ERR), 13853s # flat 13853s ([1.0], ONE_INVALID_ERR), 13853s ([1.0]*32, ONE_INVALID_ERR), 13853s # zero 13853s ([0.0], BYZERO_ERR), 13853s ([0.0]*32, BYZERO_ERR), 13853s ([-0.0], BYZERO_ERR), 13853s ([-0.0]*32, BYZERO_ERR), 13853s # nan 13853s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 13853s ([np.nan], []), 13853s ([np.nan]*32, []), 13853s # inf 13853s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 13853s ([np.inf], INF_INVALID_ERR), 13853s ([np.inf]*32, INF_INVALID_ERR), 13853s # ninf 13853s ([0.5, 0.5, 0.5, -np.inf], 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, -np.inf]*32, 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s )) 13853s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 13853s if escape and ufunc in escape: 13853s return 13853s # FIXME: NAN raises FP invalid exception: 13853s # - ceil/float16 on MSVC:32-bit 13853s # - spacing/float16 on almost all platforms 13853s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 13853s return 13853s array = np.array(data, dtype=dtype) 13853s > with assert_no_warnings(): 13853s 13853s array = array([0.5, 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5, 13853s 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5,... 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5, 13853s 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf, 0.5, 0.5, 0.5, inf], 13853s dtype=float32) 13853s data = [0.5, 0.5, 0.5, inf, 0.5, 0.5, ...] 13853s dtype = 'f' 13853s escape = [, , , , , , ...] 13853s self = 13853s ufunc = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = , typ = None 13853s value = None, traceback = None 13853s 13853s def __exit__(self, typ, value, traceback): 13853s if typ is None: 13853s try: 13853s > next(self.gen) 13853s E AssertionError: Got warnings: [] 13853s 13853s self = 13853s traceback = None 13853s typ = None 13853s value = None 13853s 13853s /usr/lib/python3.12/contextlib.py:144: AssertionError 13853s __ TestSpecialFloats.test_unary_spurious_fpexception[data18-escape18-f-sqrt] ___ 13853s 13853s self = 13853s ufunc = , dtype = 'f', data = [inf, 1.0, 1.0, 1.0] 13853s escape = [, , , , , , ...] 13853s 13853s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 13853s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 13853s @pytest.mark.parametrize("data, escape", ( 13853s ([0.03], LTONE_INVALID_ERR), 13853s ([0.03]*32, LTONE_INVALID_ERR), 13853s # neg 13853s ([-1.0], NEG_INVALID_ERR), 13853s ([-1.0]*32, NEG_INVALID_ERR), 13853s # flat 13853s ([1.0], ONE_INVALID_ERR), 13853s ([1.0]*32, ONE_INVALID_ERR), 13853s # zero 13853s ([0.0], BYZERO_ERR), 13853s ([0.0]*32, BYZERO_ERR), 13853s ([-0.0], BYZERO_ERR), 13853s ([-0.0]*32, BYZERO_ERR), 13853s # nan 13853s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 13853s ([np.nan], []), 13853s ([np.nan]*32, []), 13853s # inf 13853s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 13853s ([np.inf], INF_INVALID_ERR), 13853s ([np.inf]*32, INF_INVALID_ERR), 13853s # ninf 13853s ([0.5, 0.5, 0.5, -np.inf], 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, -np.inf]*32, 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s )) 13853s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 13853s if escape and ufunc in escape: 13853s return 13853s # FIXME: NAN raises FP invalid exception: 13853s # - ceil/float16 on MSVC:32-bit 13853s # - spacing/float16 on almost all platforms 13853s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 13853s return 13853s array = np.array(data, dtype=dtype) 13853s > with assert_no_warnings(): 13853s 13853s array = array([inf, 1., 1., 1.], dtype=float32) 13853s data = [inf, 1.0, 1.0, 1.0] 13853s dtype = 'f' 13853s escape = [, , , , , , ...] 13853s self = 13853s ufunc = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = , typ = None 13853s value = None, traceback = None 13853s 13853s def __exit__(self, typ, value, traceback): 13853s if typ is None: 13853s try: 13853s > next(self.gen) 13853s E AssertionError: Got warnings: [] 13853s 13853s self = 13853s traceback = None 13853s typ = None 13853s value = None 13853s 13853s /usr/lib/python3.12/contextlib.py:144: AssertionError 13853s __ TestSpecialFloats.test_unary_spurious_fpexception[data19-escape19-f-sqrt] ___ 13853s 13853s self = 13853s ufunc = , dtype = 'f', data = [inf, 1.0, 1.0, 1.0, inf, 1.0, ...] 13853s escape = [, , , , , , ...] 13853s 13853s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 13853s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 13853s @pytest.mark.parametrize("data, escape", ( 13853s ([0.03], LTONE_INVALID_ERR), 13853s ([0.03]*32, LTONE_INVALID_ERR), 13853s # neg 13853s ([-1.0], NEG_INVALID_ERR), 13853s ([-1.0]*32, NEG_INVALID_ERR), 13853s # flat 13853s ([1.0], ONE_INVALID_ERR), 13853s ([1.0]*32, ONE_INVALID_ERR), 13853s # zero 13853s ([0.0], BYZERO_ERR), 13853s ([0.0]*32, BYZERO_ERR), 13853s ([-0.0], BYZERO_ERR), 13853s ([-0.0]*32, BYZERO_ERR), 13853s # nan 13853s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 13853s ([np.nan], []), 13853s ([np.nan]*32, []), 13853s # inf 13853s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 13853s ([np.inf], INF_INVALID_ERR), 13853s ([np.inf]*32, INF_INVALID_ERR), 13853s # ninf 13853s ([0.5, 0.5, 0.5, -np.inf], 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, -np.inf]*32, 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s )) 13853s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 13853s if escape and ufunc in escape: 13853s return 13853s # FIXME: NAN raises FP invalid exception: 13853s # - ceil/float16 on MSVC:32-bit 13853s # - spacing/float16 on almost all platforms 13853s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 13853s return 13853s array = np.array(data, dtype=dtype) 13853s > with assert_no_warnings(): 13853s 13853s array = array([inf, 1., 1., 1., inf, 1., 1., 1., inf, 1., 1., 1., inf, 13853s 1., 1., 1., inf, 1., 1., 1., inf,... 1., 1., inf, 1., 1., 1., inf, 13853s 1., 1., 1., inf, 1., 1., 1., inf, 1., 1., 1.], 13853s dtype=float32) 13853s data = [inf, 1.0, 1.0, 1.0, inf, 1.0, ...] 13853s dtype = 'f' 13853s escape = [, , , , , , ...] 13853s self = 13853s ufunc = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = , typ = None 13853s value = None, traceback = None 13853s 13853s def __exit__(self, typ, value, traceback): 13853s if typ is None: 13853s try: 13853s > next(self.gen) 13853s E AssertionError: Got warnings: [] 13853s 13853s self = 13853s traceback = None 13853s typ = None 13853s value = None 13853s 13853s /usr/lib/python3.12/contextlib.py:144: AssertionError 13853s __ TestSpecialFloats.test_unary_spurious_fpexception[data20-escape20-f-sqrt] ___ 13853s 13853s self = 13853s ufunc = , dtype = 'f', data = [inf] 13853s escape = [, , , , , , ...] 13853s 13853s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 13853s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 13853s @pytest.mark.parametrize("data, escape", ( 13853s ([0.03], LTONE_INVALID_ERR), 13853s ([0.03]*32, LTONE_INVALID_ERR), 13853s # neg 13853s ([-1.0], NEG_INVALID_ERR), 13853s ([-1.0]*32, NEG_INVALID_ERR), 13853s # flat 13853s ([1.0], ONE_INVALID_ERR), 13853s ([1.0]*32, ONE_INVALID_ERR), 13853s # zero 13853s ([0.0], BYZERO_ERR), 13853s ([0.0]*32, BYZERO_ERR), 13853s ([-0.0], BYZERO_ERR), 13853s ([-0.0]*32, BYZERO_ERR), 13853s # nan 13853s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 13853s ([np.nan], []), 13853s ([np.nan]*32, []), 13853s # inf 13853s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 13853s ([np.inf], INF_INVALID_ERR), 13853s ([np.inf]*32, INF_INVALID_ERR), 13853s # ninf 13853s ([0.5, 0.5, 0.5, -np.inf], 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, -np.inf]*32, 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s )) 13853s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 13853s if escape and ufunc in escape: 13853s return 13853s # FIXME: NAN raises FP invalid exception: 13853s # - ceil/float16 on MSVC:32-bit 13853s # - spacing/float16 on almost all platforms 13853s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 13853s return 13853s array = np.array(data, dtype=dtype) 13853s > with assert_no_warnings(): 13853s 13853s array = array([inf], dtype=float32) 13853s data = [inf] 13853s dtype = 'f' 13853s escape = [, , , , , , ...] 13853s self = 13853s ufunc = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = , typ = None 13853s value = None, traceback = None 13853s 13853s def __exit__(self, typ, value, traceback): 13853s if typ is None: 13853s try: 13853s > next(self.gen) 13853s E AssertionError: Got warnings: [] 13853s 13853s self = 13853s traceback = None 13853s typ = None 13853s value = None 13853s 13853s /usr/lib/python3.12/contextlib.py:144: AssertionError 13853s __ TestSpecialFloats.test_unary_spurious_fpexception[data21-escape21-f-sqrt] ___ 13853s 13853s self = 13853s ufunc = , dtype = 'f', data = [inf, inf, inf, inf, inf, inf, ...] 13853s escape = [, , , , , , ...] 13853s 13853s @pytest.mark.parametrize("ufunc", UFUNCS_UNARY_FP) 13853s @pytest.mark.parametrize("dtype", ('e', 'f', 'd')) 13853s @pytest.mark.parametrize("data, escape", ( 13853s ([0.03], LTONE_INVALID_ERR), 13853s ([0.03]*32, LTONE_INVALID_ERR), 13853s # neg 13853s ([-1.0], NEG_INVALID_ERR), 13853s ([-1.0]*32, NEG_INVALID_ERR), 13853s # flat 13853s ([1.0], ONE_INVALID_ERR), 13853s ([1.0]*32, ONE_INVALID_ERR), 13853s # zero 13853s ([0.0], BYZERO_ERR), 13853s ([0.0]*32, BYZERO_ERR), 13853s ([-0.0], BYZERO_ERR), 13853s ([-0.0]*32, BYZERO_ERR), 13853s # nan 13853s ([0.5, 0.5, 0.5, np.nan], LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.nan]*32, LTONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0], ONE_INVALID_ERR), 13853s ([np.nan, 1.0, 1.0, 1.0]*32, ONE_INVALID_ERR), 13853s ([np.nan], []), 13853s ([np.nan]*32, []), 13853s # inf 13853s ([0.5, 0.5, 0.5, np.inf], INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, np.inf]*32, INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0], INF_INVALID_ERR), 13853s ([np.inf, 1.0, 1.0, 1.0]*32, INF_INVALID_ERR), 13853s ([np.inf], INF_INVALID_ERR), 13853s ([np.inf]*32, INF_INVALID_ERR), 13853s # ninf 13853s ([0.5, 0.5, 0.5, -np.inf], 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([0.5, 0.5, 0.5, -np.inf]*32, 13853s NEG_INVALID_ERR + INF_INVALID_ERR + LTONE_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf, 1.0, 1.0, 1.0]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf], NEG_INVALID_ERR + INF_INVALID_ERR), 13853s ([-np.inf]*32, NEG_INVALID_ERR + INF_INVALID_ERR), 13853s )) 13853s def test_unary_spurious_fpexception(self, ufunc, dtype, data, escape): 13853s if escape and ufunc in escape: 13853s return 13853s # FIXME: NAN raises FP invalid exception: 13853s # - ceil/float16 on MSVC:32-bit 13853s # - spacing/float16 on almost all platforms 13853s if ufunc in (np.spacing, np.ceil) and dtype == 'e': 13853s return 13853s array = np.array(data, dtype=dtype) 13853s > with assert_no_warnings(): 13853s 13853s array = array([inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, 13853s inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, 13853s inf, inf, inf, inf, inf, inf], dtype=float32) 13853s data = [inf, inf, inf, inf, inf, inf, ...] 13853s dtype = 'f' 13853s escape = [, , , , , , ...] 13853s self = 13853s ufunc = 13853s 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_umath.py:1689: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = , typ = None 13853s value = None, traceback = None 13853s 13853s def __exit__(self, typ, value, traceback): 13853s if typ is None: 13853s try: 13853s > next(self.gen) 13853s E AssertionError: Got warnings: [] 13853s 13853s self = 13853s traceback = None 13853s typ = None 13853s value = None 13853s 13853s /usr/lib/python3.12/contextlib.py:144: AssertionError 13853s _____________________________ test_huge_header[r] ______________________________ 13853s 13853s tmpdir = local('/tmp/pytest-of-root/pytest-1/test_huge_header_r_0') 13853s mmap_mode = 'r' 13853s 13853s @pytest.mark.parametrize("mmap_mode", ["r", None]) 13853s def test_huge_header(tmpdir, mmap_mode): 13853s f = os.path.join(tmpdir, f'large_header.npy') 13853s arr = np.array(1, dtype="i,"*10000+"i") 13853s 13853s with pytest.warns(UserWarning, match=".*format 2.0"): 13853s np.save(f, arr) 13853s 13853s with pytest.raises(ValueError, match="Header.*large"): 13853s np.load(f, mmap_mode=mmap_mode) 13853s 13853s with pytest.raises(ValueError, match="Header.*large"): 13853s np.load(f, mmap_mode=mmap_mode, max_header_size=20000) 13853s 13853s > res = np.load(f, mmap_mode=mmap_mode, allow_pickle=True) 13853s 13853s arr = <[MemoryError() raised in repr()] ndarray object at 0xcdfe43e0> 13853s f = '/tmp/pytest-of-root/pytest-1/test_huge_header_r_0/large_header.npy' 13853s mmap_mode = 'r' 13853s tmpdir = local('/tmp/pytest-of-root/pytest-1/test_huge_header_r_0') 13853s 13853s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:725: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/lib/npyio.py:429: in load 13853s return format.open_memmap(file, mode=mmap_mode, 13853s N = 6 13853s _ZIP_PREFIX = b'PK\x03\x04' 13853s _ZIP_SUFFIX = b'PK\x05\x06' 13853s allow_pickle = True 13853s encoding = 'ASCII' 13853s fid = <_io.BufferedReader name='/tmp/pytest-of-root/pytest-1/test_huge_header_r_0/large_header.npy'> 13853s file = '/tmp/pytest-of-root/pytest-1/test_huge_header_r_0/large_header.npy' 13853s fix_imports = True 13853s magic = b'\x93NUMPY' 13853s max_header_size = 18446744073709551616 13853s mmap_mode = 'r' 13853s own_fid = True 13853s pickle_kwargs = {'encoding': 'ASCII', 'fix_imports': True} 13853s stack = 13853s /usr/lib/python3/dist-packages/numpy/lib/format.py:920: in open_memmap 13853s shape, fortran_order, dtype = _read_array_header( 13853s dtype = None 13853s filename = '/tmp/pytest-of-root/pytest-1/test_huge_header_r_0/large_header.npy' 13853s fortran_order = False 13853s fp = <_io.BufferedReader name='/tmp/pytest-of-root/pytest-1/test_huge_header_r_0/large_header.npy'> 13853s max_header_size = 18446744073709551616 13853s mode = 'r' 13853s shape = None 13853s version = (2, 0) 13853s /usr/lib/python3/dist-packages/numpy/lib/format.py:627: in _read_array_header 13853s header = _filter_header(header) 13853s encoding = 'latin1' 13853s fp = <_io.BufferedReader name='/tmp/pytest-of-root/pytest-1/test_huge_header_r_0/large_header.npy'> 13853s header = "{'descr': [('f0', ' 13853s version = (2, 0) 13853s /usr/lib/python3/dist-packages/numpy/lib/format.py:580: in _filter_header 13853s for token in tokenize.generate_tokens(StringIO(s).readline): 13853s StringIO = 13853s last_token_was_number = False 13853s s = "{'descr': [('f0', ' 13853s token_string = "' 13853s tokens = [<[MemoryError() raised in repr()] TokenInfo object at 0xcdf548b8>, <[MemoryError() raised in repr()] TokenInfo object...sed in repr()] TokenInfo object at 0xcdf549d0>, <[MemoryError() raised in repr()] TokenInfo object at 0xcdf54a08>, ...] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s source = 13853s encoding = None, extra_tokens = True 13853s 13853s def _generate_tokens_from_c_tokenizer(source, encoding=None, extra_tokens=False): 13853s """Tokenize a source reading Python code as unicode strings using the internal C tokenizer""" 13853s if encoding is None: 13853s it = _tokenize.TokenizerIter(source, extra_tokens=extra_tokens) 13853s else: 13853s it = _tokenize.TokenizerIter(source, encoding=encoding, extra_tokens=extra_tokens) 13853s try: 13853s > for info in it: 13853s E MemoryError 13853s 13853s encoding = None 13853s extra_tokens = True 13853s info = (3, "' 13853s source = 13853s 13853s /usr/lib/python3.12/tokenize.py:537: MemoryError 13853s ____________________________ test_huge_header[None] ____________________________ 13853s 13853s tmpdir = local('/tmp/pytest-of-root/pytest-1/test_huge_header_None_0') 13853s mmap_mode = None 13853s 13853s @pytest.mark.parametrize("mmap_mode", ["r", None]) 13853s def test_huge_header(tmpdir, mmap_mode): 13853s f = os.path.join(tmpdir, f'large_header.npy') 13853s arr = np.array(1, dtype="i,"*10000+"i") 13853s 13853s with pytest.warns(UserWarning, match=".*format 2.0"): 13853s > np.save(f, arr) 13853s 13853s arr = <[MemoryError() raised in repr()] ndarray object at 0xd77db3a0> 13853s f = '/tmp/pytest-of-root/pytest-1/test_huge_header_None_0/large_header.npy' 13853s mmap_mode = None 13853s tmpdir = local('/tmp/pytest-of-root/pytest-1/test_huge_header_None_0') 13853s 13853s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:717: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s <__array_function__ internals>:200: in save 13853s ??? 13853s args = ('/tmp/pytest-of-root/pytest-1/test_huge_header_None_0/large_header.npy', <[MemoryError() raised in repr()] ndarray object at 0xd77db3a0>) 13853s dispatcher = 13853s implementation = 13853s kwargs = {} 13853s public_api = 13853s relevant_args = (<[MemoryError() raised in repr()] ndarray object at 0xd77db3a0>,) 13853s /usr/lib/python3/dist-packages/numpy/lib/npyio.py:522: in save 13853s format.write_array(fid, arr, allow_pickle=allow_pickle, 13853s allow_pickle = True 13853s arr = <[MemoryError() raised in repr()] ndarray object at 0xd77db3a0> 13853s fid = <_io.BufferedWriter name='/tmp/pytest-of-root/pytest-1/test_huge_header_None_0/large_header.npy'> 13853s file = '/tmp/pytest-of-root/pytest-1/test_huge_header_None_0/large_header.npy' 13853s file_ctx = <_io.BufferedWriter name='/tmp/pytest-of-root/pytest-1/test_huge_header_None_0/large_header.npy'> 13853s fix_imports = True 13853s /usr/lib/python3/dist-packages/numpy/lib/format.py:695: in write_array 13853s _write_array_header(fp, header_data_from_array_1_0(array), version) 13853s allow_pickle = True 13853s array = <[MemoryError() raised in repr()] ndarray object at 0xd77db3a0> 13853s fp = <_io.BufferedWriter name='/tmp/pytest-of-root/pytest-1/test_huge_header_None_0/large_header.npy'> 13853s pickle_kwargs = {'fix_imports': True} 13853s version = None 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s fp = <_io.BufferedWriter name='/tmp/pytest-of-root/pytest-1/test_huge_header_None_0/large_header.npy'> 13853s d = {'descr': [('f0', ' header.append("'%s': %s, " % (key, repr(value))) 13853s E MemoryError 13853s 13853s d = {'descr': [('f0', ' 13853s header = ['{'] 13853s key = 'descr' 13853s value = [('f0', ' with pytest.warns(UserWarning, match=".*format 2.0"): 13853s E Failed: DID NOT WARN. No warnings of type (,) were emitted. 13853s E Emitted warnings: []. 13853s 13853s arr = <[MemoryError() raised in repr()] ndarray object at 0xd77db3a0> 13853s f = '/tmp/pytest-of-root/pytest-1/test_huge_header_None_0/large_header.npy' 13853s mmap_mode = None 13853s tmpdir = local('/tmp/pytest-of-root/pytest-1/test_huge_header_None_0') 13853s 13853s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:716: Failed 13853s _____________________________ test_huge_header_npz _____________________________ 13853s 13853s tmpdir = local('/tmp/pytest-of-root/pytest-1/test_huge_header_npz0') 13853s 13853s def test_huge_header_npz(tmpdir): 13853s f = os.path.join(tmpdir, f'large_header.npz') 13853s arr = np.array(1, dtype="i,"*10000+"i") 13853s 13853s with pytest.warns(UserWarning, match=".*format 2.0"): 13853s > np.savez(f, arr=arr) 13853s 13853s arr = <[MemoryError() raised in repr()] ndarray object at 0xce272530> 13853s f = '/tmp/pytest-of-root/pytest-1/test_huge_header_npz0/large_header.npz' 13853s tmpdir = local('/tmp/pytest-of-root/pytest-1/test_huge_header_npz0') 13853s 13853s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:736: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s <__array_function__ internals>:200: in savez 13853s ??? 13853s args = ('/tmp/pytest-of-root/pytest-1/test_huge_header_npz0/large_header.npz',) 13853s dispatcher = 13853s implementation = 13853s kwargs = {'arr': <[MemoryError() raised in repr()] ndarray object at 0xce272530>} 13853s public_api = 13853s relevant_args = 13853s /usr/lib/python3/dist-packages/numpy/lib/npyio.py:615: in savez 13853s _savez(file, args, kwds, False) 13853s args = () 13853s file = '/tmp/pytest-of-root/pytest-1/test_huge_header_npz0/large_header.npz' 13853s kwds = {'arr': <[MemoryError() raised in repr()] ndarray object at 0xce272530>} 13853s /usr/lib/python3/dist-packages/numpy/lib/npyio.py:719: in _savez 13853s format.write_array(fid, val, 13853s allow_pickle = True 13853s args = () 13853s compress = False 13853s compression = 0 13853s fid = 13853s file = '/tmp/pytest-of-root/pytest-1/test_huge_header_npz0/large_header.npz' 13853s fname = 'arr.npy' 13853s key = 'arr' 13853s kwds = {'arr': <[MemoryError() raised in repr()] ndarray object at 0xce272530>} 13853s namedict = {'arr': <[MemoryError() raised in repr()] ndarray object at 0xce272530>} 13853s pickle_kwargs = None 13853s val = <[MemoryError() raised in repr()] ndarray object at 0xce272530> 13853s zipf = 13853s zipfile = 13853s /usr/lib/python3/dist-packages/numpy/lib/format.py:695: in write_array 13853s _write_array_header(fp, header_data_from_array_1_0(array), version) 13853s allow_pickle = True 13853s array = <[MemoryError() raised in repr()] ndarray object at 0xce272530> 13853s fp = 13853s pickle_kwargs = None 13853s version = None 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s fp = 13853s d = {'descr': [('f0', ' header.append("'%s': %s, " % (key, repr(value))) 13853s E MemoryError 13853s 13853s d = {'descr': [('f0', ' 13853s header = ['{'] 13853s key = 'descr' 13853s value = [('f0', ' with pytest.warns(UserWarning, match=".*format 2.0"): 13853s E Failed: DID NOT WARN. No warnings of type (,) were emitted. 13853s E Emitted warnings: []. 13853s 13853s arr = <[MemoryError() raised in repr()] ndarray object at 0xce272530> 13853s f = '/tmp/pytest-of-root/pytest-1/test_huge_header_npz0/large_header.npz' 13853s tmpdir = local('/tmp/pytest-of-root/pytest-1/test_huge_header_npz0') 13853s 13853s /usr/lib/python3/dist-packages/numpy/lib/tests/test_format.py:735: Failed 13853s ____________________________ TestThread.test_normal ____________________________ 13853s 13853s self = 13853s 13853s def test_normal(self): 13853s def gen_random(state, out): 13853s out[...] = state.normal(size=10000) 13853s 13853s > self.check_function(gen_random, sz=(10000,)) 13853s 13853s gen_random = .gen_random at 0xc6a6da78> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2488: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2471: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc6a6da78> 13853s out1 = array([[-8.22131316e+032, -8.22131316e+032, -5.31742429e+057, ..., 13853s -4.58886634e+057, -1.67458140e+177, -4.5887...06774725e+057, -5.06745990e+057, -5.06779514e+057, ..., 13853s -5.30712784e+057, 5.30498953e-313, 5.51718911e-313]]) 13853s out2 = array([[-1.32963948e+34, -1.32963948e+34, 5.84417372e-06, ..., 13853s 4.38234653e-06, 2.68020121e-05, 2.34097504e... [ 1.62430673e-08, 6.60565960e-03, 5.32697525e-07, ..., 13853s 6.51825824e-05, 2.98448483e-08, 3.37085044e-04]]) 13853s self = 13853s sz = (10000,) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s _____________________________ TestThread.test_exp ______________________________ 13853s 13853s self = 13853s 13853s def test_exp(self): 13853s def gen_random(state, out): 13853s out[...] = state.exponential(scale=np.ones((100, 1000))) 13853s 13853s > self.check_function(gen_random, sz=(100, 1000)) 13853s 13853s gen_random = .gen_random at 0xc6989b68> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2494: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2471: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc6989b68> 13853s out1 = array([[[-2.21605792e+268, -2.06282394e+108, -5.60742686e-001, ..., 13853s -1.32284117e+000, 1.78204946e+000, -7.74...206839e+000, 4.96333744e-001, 7.82184636e-001, ..., 13853s 9.48029622e-002, -5.96842692e-001, -1.48551801e+000]]]) 13853s out2 = array([[[-2.21605792e+268, -2.06282394e+108, 1.66082508e+000, ..., 13853s -1.83093054e+000, -1.50804414e+000, 8.26...036337e+000, -2.92297915e+000, 3.13500806e+000, ..., 13853s 2.00911681e+000, -2.44119032e+000, -2.54260692e+000]]]) 13853s self = 13853s sz = (100, 1000) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s _________________________ TestThread.test_multinomial __________________________ 13853s 13853s self = 13853s 13853s def test_multinomial(self): 13853s def gen_random(state, out): 13853s out[...] = state.multinomial(10, [1 / 6.] * 6, size=10000) 13853s 13853s > self.check_function(gen_random, sz=(10000, 6)) 13853s 13853s gen_random = .gen_random at 0xc6989d48> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2500: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_generator_mt19937.py:2471: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc6989d48> 13853s out1 = array([[[-2.21605792e+268, -2.06282394e+108, 1.14826839e+000, 13853s 1.44420075e-001, -2.93052226e+000, -9.8931234... nan, nan, nan, 13853s nan, nan, nan]]]) 13853s out2 = array([[[-2.21605792e+268, -2.06282394e+108, nan, 13853s nan, nan, ... nan, nan, nan, 13853s nan, nan, nan]]]) 13853s self = 13853s sz = (10000, 6) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s ____________________________ TestThread.test_normal ____________________________ 13853s 13853s self = 13853s 13853s def test_normal(self): 13853s def gen_random(state, out): 13853s out[...] = state.normal(size=10000) 13853s > self.check_function(gen_random, sz=(10000,)) 13853s 13853s gen_random = .gen_random at 0xc69822a8> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1649: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1633: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc69822a8> 13853s out1 = array([[-8.22131356e+032, -8.22131316e+032, 4.24399158e-314, ..., 13853s 8.48798317e-314, 1.06099790e-313, 4.2439...48539705e-313, 1.27319747e-313, 1.06099790e-313, ..., 13853s -5.30712784e+057, 5.30498953e-313, 5.51718911e-313]]) 13853s out2 = array([[-1.54070975e+113, -8.22131316e+032, 1.69759663e-313, ..., 13853s 3.18299369e-313, 2.33419537e-313, 2.5463...48539705e-313, 1.69759663e-313, 1.48539705e-313, ..., 13853s 6.51825824e-005, 2.98448483e-008, 3.37085044e-004]]) 13853s self = 13853s sz = (10000,) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s _____________________________ TestThread.test_exp ______________________________ 13853s 13853s self = 13853s 13853s def test_exp(self): 13853s def gen_random(state, out): 13853s out[...] = state.exponential(scale=np.ones((100, 1000))) 13853s > self.check_function(gen_random, sz=(100, 1000)) 13853s 13853s gen_random = .gen_random at 0xc6fc4898> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1654: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1633: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc6fc4898> 13853s out1 = array([[[-2.21605792e+268, -2.06282394e+108, 8.39005564e-001, ..., 13853s 2.61123001e+000, 1.62678072e+000, -2.90...818867e+000, 9.36725317e-001, -2.14075818e+000, ..., 13853s 1.29133336e+000, 3.02561398e+000, -2.37134271e+000]]]) 13853s out2 = array([[[-2.21605792e+268, -2.06282394e+108, -2.26520104e+000, ..., 13853s -2.14701974e+000, -7.75839719e-002, 1.26...175314e+000, -5.00629052e-001, -3.10023598e+000, ..., 13853s 9.67742619e-001, -2.71145358e+000, 2.56708720e+000]]]) 13853s self = 13853s sz = (100, 1000) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s _________________________ TestThread.test_multinomial __________________________ 13853s 13853s self = 13853s 13853s def test_multinomial(self): 13853s def gen_random(state, out): 13853s out[...] = state.multinomial(10, [1/6.]*6, size=10000) 13853s > self.check_function(gen_random, sz=(10000, 6)) 13853s 13853s gen_random = .gen_random at 0xc6fcb238> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1659: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_random.py:1633: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc6fcb238> 13853s out1 = array([[[-2.21605792e+268, -2.06282394e+108, -6.22008142e-001, 13853s 8.16676094e-001, 2.90582142e+000, 1.7848426... nan, nan, nan, 13853s nan, nan, nan]]]) 13853s out2 = array([[[-2.21605792e+268, -2.06282394e+108, nan, 13853s nan, nan, ... nan, nan, nan, 13853s nan, nan, nan]]]) 13853s self = 13853s sz = (10000, 6) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s ____________________________ TestThread.test_normal ____________________________ 13853s 13853s self = 13853s 13853s def test_normal(self): 13853s def gen_random(state, out): 13853s out[...] = state.normal(size=10000) 13853s 13853s > self.check_function(gen_random, sz=(10000,)) 13853s 13853s gen_random = .gen_random at 0xc6d6c200> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1929: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1912: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc6d6c200> 13853s out1 = array([[-8.22131316e+032, -8.22131316e+032, 2.97079411e-313, ..., 13853s 6.36598738e-314, 1.48539705e-313, 1.2731...69759663e-313, 2.33419537e-313, 4.24399158e-314, ..., 13853s -5.30712784e+057, 5.30498953e-313, 5.51718911e-313]]) 13853s out2 = array([[-1.54070966e+113, -2.61716562e+033, 1.69759663e-313, ..., 13853s 3.18299369e-313, 2.33419537e-313, 2.5463...48539705e-313, 1.69759663e-313, 1.48539705e-313, ..., 13853s 6.51825824e-005, 2.98448483e-008, 3.37085044e-004]]) 13853s self = 13853s sz = (10000,) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s _____________________________ TestThread.test_exp ______________________________ 13853s 13853s self = 13853s 13853s def test_exp(self): 13853s def gen_random(state, out): 13853s out[...] = state.exponential(scale=np.ones((100, 1000))) 13853s 13853s > self.check_function(gen_random, sz=(100, 1000)) 13853s 13853s gen_random = .gen_random at 0xc6c30f10> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1935: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1912: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc6c30f10> 13853s out1 = array([[[ 1.12123869e-260, 1.12123869e-260, 8.39005564e-001, ..., 13853s 2.61123001e+000, 1.62678072e+000, -2.90...818867e+000, 9.36725317e-001, -2.14075818e+000, ..., 13853s 1.29133336e+000, 3.02561398e+000, -2.37134271e+000]]]) 13853s out2 = array([[[-2.21448342e+268, 0.00000000e+000, -2.26520104e+000, ..., 13853s -2.14701974e+000, -7.75839719e-002, 1.26...175314e+000, -5.00629052e-001, -3.10023598e+000, ..., 13853s 9.67742619e-001, -2.71145358e+000, 2.56708720e+000]]]) 13853s self = 13853s sz = (100, 1000) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s _________________________ TestThread.test_multinomial __________________________ 13853s 13853s self = 13853s 13853s def test_multinomial(self): 13853s def gen_random(state, out): 13853s out[...] = state.multinomial(10, [1 / 6.] * 6, size=10000) 13853s 13853s > self.check_function(gen_random, sz=(10000, 6)) 13853s 13853s gen_random = .gen_random at 0xc6e428e8> 13853s self = 13853s 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1941: 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s /usr/lib/python3/dist-packages/numpy/random/tests/test_randomstate.py:1912: in check_function 13853s [x.start() for x in t] 13853s Thread = 13853s function = .gen_random at 0xc6e428e8> 13853s out1 = array([[[-2.21605792e+268, -2.06282394e+108, 8.39005564e-001, 13853s 1.68867393e+000, -1.27292806e+000, -4.2733497... 2.26916781e+000, 1.77821589e+000, -3.14037119e+000, 13853s -1.58843649e+000, -2.54999449e+000, -2.76415385e+000]]]) 13853s out2 = array([[[-2.21605792e+268, -2.06282394e+108, -2.93280788e+000, 13853s -1.83734627e-001, -6.84612567e-001, -6.5691810... 1.68545252e+000, -1.94819402e+000, -1.17099355e+000, 13853s 2.01120079e+000, -7.27195403e-001, 1.65788208e+000]]]) 13853s self = 13853s sz = (10000, 6) 13853s t = [, , , ] 13853s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13853s 13853s self = 13853s 13853s def start(self): 13853s """Start the thread's activity. 13853s 13853s It must be called at most once per thread object. It arranges for the 13853s object's run() method to be invoked in a separate thread of control. 13853s 13853s This method will raise a RuntimeError if called more than once on the 13853s same thread object. 13853s 13853s """ 13853s if not self._initialized: 13853s raise RuntimeError("thread.__init__() not called") 13853s 13853s if self._started.is_set(): 13853s raise RuntimeError("threads can only be started once") 13853s 13853s with _active_limbo_lock: 13853s _limbo[self] = self 13853s try: 13853s > _start_new_thread(self._bootstrap, ()) 13853s E RuntimeError: can't start new thread 13853s 13853s self = 13853s 13853s /usr/lib/python3.12/threading.py:992: RuntimeError 13853s =============================== warnings summary =============================== 13853s ../../../usr/lib/python3/dist-packages/numpy/conftest.py:33 13853s /usr/lib/python3/dist-packages/numpy/conftest.py:33: HypothesisDeprecationWarning: `Healthcheck.all()` is deprecated; use `list(HealthCheck)` instead. 13853s The `hypothesis codemod` command-line tool can automatically refactor your code to fix this warning. 13853s suppress_health_check=hypothesis.HealthCheck.all(), 13853s 13853s ../../../usr/lib/python3/dist-packages/setuptools/_distutils/msvccompiler.py:66 13853s /usr/lib/python3/dist-packages/setuptools/_distutils/msvccompiler.py:66: DeprecationWarning: msvccompiler is deprecated and slated to be removed in the future. Please discontinue use or file an issue with pypa/distutils describing your use case. 13853s warnings.warn( 13853s 13853s ../../../usr/lib/python3/dist-packages/_pytest/mark/structures.py:357 13853s ../../../usr/lib/python3/dist-packages/_pytest/mark/structures.py:357 13853s /usr/lib/python3/dist-packages/_pytest/mark/structures.py:357: PytestRemovedIn9Warning: Marks applied to fixtures have no effect 13853s See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function 13853s store_mark(func, self.mark) 13853s 13853s core/tests/test_mem_policy.py::test_set_policy 13853s /usr/lib/python3/dist-packages/setuptools/sandbox.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html 13853s import pkg_resources 13853s 13853s core/tests/test_numeric.py::TestNonarrayArgs::test_dunder_round_edgecases[2147483647--1] 13853s /usr/lib/python3/dist-packages/numpy/core/tests/test_numeric.py:198: RuntimeWarning: invalid value encountered in cast 13853s assert_equal(round(val, ndigits), round(np.int32(val), ndigits)) 13853s 13853s distutils/tests/test_fcompiler_gnu.py: 10 warnings 13853s /usr/lib/python3/dist-packages/numpy/distutils/fcompiler/gnu.py:276: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 13853s if LooseVersion(v) >= "4": 13853s 13853s distutils/tests/test_fcompiler_gnu.py: 10 warnings 13853s /usr/lib/python3/dist-packages/setuptools/_distutils/version.py:345: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 13853s other = LooseVersion(other) 13853s 13853s f2py/tests/test_f2py2e.py::test_debugcapi_bld 13853s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 13853s !! 13853s 13853s ******************************************************************************** 13853s Please avoid running ``setup.py`` directly. 13853s Instead, use pypa/build, pypa/installer or other 13853s standards-based tools. 13853s 13853s See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 13853s ******************************************************************************** 13853s 13853s !! 13853s self.initialize_options() 13853s 13853s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 13853s =========================== short test summary info ============================ 13853s FAILED core/tests/test_cpu_features.py::Test_ARM_Features::test_features - As... 13853s FAILED core/tests/test_datetime.py::TestDateTime::test_datetime_as_string_timezone 13853s FAILED core/tests/test_deprecations.py::TestDatetime64Timezone::test_datetime 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[ones-1-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[ones-1-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[ones-1-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[ones-1-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[zeros-0-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[zeros-0-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[zeros-0-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_create_delete[zeros-0-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_item_setting[] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_item_setting[] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_item_setting[] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_item_setting[] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape0-index0-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape0-index0-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape0-index0-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape0-index0-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape1-index1-4-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape1-index1-4-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape1-index1-4-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape1-index1-4-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape2-index2-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape2-index2-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape2-index2-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape2-index2-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape3-index3-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape3-index3-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape3-index3-2-] 13853s FAILED core/tests/test_dtype.py::TestStructuredObjectRefcounting::test_structured_object_indexing[shape3-index3-2-] 13853s FAILED core/tests/test_regression.py::TestRegression::test_structured_arrays_with_objects2 13853s FAILED core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array 13853s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data16-escape16-f-sqrt] 13853s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data17-escape17-f-sqrt] 13853s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data18-escape18-f-sqrt] 13853s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data19-escape19-f-sqrt] 13853s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data20-escape20-f-sqrt] 13853s FAILED core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception[data21-escape21-f-sqrt] 13853s FAILED lib/tests/test_format.py::test_huge_header[r] - MemoryError 13853s FAILED lib/tests/test_format.py::test_huge_header[None] - Failed: DID NOT WAR... 13853s FAILED lib/tests/test_format.py::test_huge_header_npz - Failed: DID NOT WARN.... 13853s FAILED random/tests/test_generator_mt19937.py::TestThread::test_normal - Runt... 13853s FAILED random/tests/test_generator_mt19937.py::TestThread::test_exp - Runtime... 13853s FAILED random/tests/test_generator_mt19937.py::TestThread::test_multinomial 13853s FAILED random/tests/test_random.py::TestThread::test_normal - RuntimeError: c... 13853s FAILED random/tests/test_random.py::TestThread::test_exp - RuntimeError: can'... 13853s FAILED random/tests/test_random.py::TestThread::test_multinomial - RuntimeErr... 13853s FAILED random/tests/test_randomstate.py::TestThread::test_normal - RuntimeErr... 13853s FAILED random/tests/test_randomstate.py::TestThread::test_exp - RuntimeError:... 13853s FAILED random/tests/test_randomstate.py::TestThread::test_multinomial - Runti... 13853s ERROR core/tests/test_mem_policy.py::test_set_policy - RuntimeError: could no... 13853s ERROR core/tests/test_mem_policy.py::test_default_policy_singleton - RuntimeE... 13853s ERROR core/tests/test_mem_policy.py::test_policy_propagation - RuntimeError: ... 13853s ERROR core/tests/test_mem_policy.py::test_context_locality - RuntimeError: co... 13853s ERROR core/tests/test_mem_policy.py::test_thread_locality - RuntimeError: cou... 13853s ERROR core/tests/test_mem_policy.py::test_switch_owner[0] - RuntimeError: cou... 13853s ERROR core/tests/test_mem_policy.py::test_switch_owner[1] - RuntimeError: cou... 13853s ERROR core/tests/test_mem_policy.py::test_switch_owner[None] - RuntimeError: ... 13853s ERROR core/tests/test_mem_policy.py::test_owner_is_base - RuntimeError: could... 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestIntent::test_in_out - RuntimeE... 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BOOL-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[BOOL] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[BYTE-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[BYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UBYTE-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[UBYTE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[SHORT-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[SHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[USHORT-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[USHORT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[INT-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[INT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[UINT-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[UINT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONG-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[LONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONG-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[ULONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGLONG-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[LONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[ULONGLONG-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[ULONGLONG] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[FLOAT-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[FLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[DOUBLE-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[DOUBLE] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-2seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-2seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-2seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-2seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-23seq-C-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-23seq-C-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-23seq-F-w] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CFLOAT-23seq-F-ro] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[CFLOAT] 13853s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[CFLOAT] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[CFLOAT] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[CFLOAT] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[CFLOAT] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[CFLOAT] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[CFLOAT] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[CFLOAT] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[CFLOAT] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-2seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-2seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-2seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-2seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-23seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-23seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-23seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING1-23seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[STRING1] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-2seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-2seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-2seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-2seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-23seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-23seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-23seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[STRING5-23seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[STRING5] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-2seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-2seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-2seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-2seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-23seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-23seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-23seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CHARACTER-23seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[CHARACTER] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-2seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-2seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-2seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-2seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-23seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-23seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-23seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[LONGDOUBLE-23seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[LONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-2seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-2seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-2seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-2seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-23seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-23seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-23seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CDOUBLE-23seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[CDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-2seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-2seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-2seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-2seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-23seq-C-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-23seq-C-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-23seq-F-w] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_nocopy[CLONGDOUBLE-23seq-F-ro] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inout_2seq[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_inout_23seq[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_inout_23seq[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_copy_from_2casttype[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23seq[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_23casttype[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_in_from_23casttype[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_in_from_23casttype[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_f_copy_in_from_23casttype[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_c_copy_in_from_23casttype[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_cache_from_2casttype_failure[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_cache_hidden[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_hidden[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_none[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_2seq[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_optional_from_23seq[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace[CLONGDOUBLE] 13854s ERROR f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_inplace_from_casttype[CLONGDOUBLE] 13854s = 51 failed, 25040 passed, 1227 skipped, 1315 deselected, 32 xfailed, 5 xpassed, 27 warnings, 590 errors in 1331.45s (0:22:11) = 13861s autopkgtest [19:03:05]: test openblas: -----------------------] 13911s openblas PASS 13911s autopkgtest [19:03:55]: test openblas: - - - - - - - - - - results - - - - - - - - - - 13916s autopkgtest [19:04:00]: test atlas: preparing testbed 13977s autopkgtest [19:05:01]: testbed dpkg architecture: armhf 13979s autopkgtest [19:05:03]: testbed apt version: 2.7.12 13979s autopkgtest [19:05:03]: @@@@@@@@@@@@@@@@@@@@ test bed setup 13982s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 13982s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 13982s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [52.7 kB] 13982s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3789 kB] 13985s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [493 kB] 13986s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf Packages [596 kB] 13986s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf c-n-f Metadata [2492 B] 13986s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf Packages [1372 B] 13986s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf c-n-f Metadata [116 B] 13986s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf Packages [3682 kB] 13989s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf c-n-f Metadata [7776 B] 13989s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf Packages [35.6 kB] 13989s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf c-n-f Metadata [116 B] 13996s Fetched 8784 kB in 8s (1101 kB/s) 13997s Reading package lists... 14005s Get:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease [117 kB] 14005s Get:2 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf Packages [596 kB] 14006s Get:3 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf c-n-f Metadata [2492 B] 14006s Get:4 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf Packages [3682 kB] 14006s Get:5 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf c-n-f Metadata [7776 B] 14006s Get:6 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf Packages [1372 B] 14006s Get:7 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf c-n-f Metadata [116 B] 14006s Get:8 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf Packages [35.6 kB] 14006s Get:9 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf c-n-f Metadata [116 B] 14014s Fetched 4443 kB in 2s (1808 kB/s) 14015s Reading package lists... 14024s tee: /proc/self/fd/2: Permission denied 14062s Hit:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease 14062s Hit:2 http://ftpmaster.internal/ubuntu noble InRelease 14062s Hit:3 http://ports.ubuntu.com/ubuntu-ports noble InRelease 14062s Hit:4 http://ftpmaster.internal/ubuntu noble-updates InRelease 14062s Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease 14062s Hit:6 http://ftpmaster.internal/ubuntu noble-security InRelease 14062s Hit:7 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease 14062s Hit:8 http://ftpmaster.internal/ubuntu noble-proposed InRelease 14062s Hit:9 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease 14068s Reading package lists... 14068s Reading package lists... 14069s Building dependency tree... 14069s Reading state information... 14071s Calculating upgrade... 14072s The following packages were automatically installed and are no longer required: 14072s libatasmart4 libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 14072s libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 libblockdev-swap3 14072s libblockdev-utils3 libblockdev3 libbytesize-common libbytesize1 libnspr4 14072s libnss3 libnvme1t64 libpolkit-agent-1-0 libvolume-key1 14072s linux-headers-6.8.0-11 python3-lib2to3 14072s Use 'apt autoremove' to remove them. 14074s The following packages will be REMOVED: 14074s libapt-pkg6.0 libarchive13 libatm1 libcurl3-gnutls libcurl4 libdb5.3 libelf1 14074s libext2fs2 libgdbm-compat4 libgdbm6 libglib2.0-0 libgnutls30 libgpgme11 14074s libhogweed6 libmagic1 libnetplan0 libnettle8 libnpth0 libnvme1 libparted2 14074s libpcap0.8 libperl5.38 libpng16-16 libpsl5 libreadline8 libreiserfscore0 14074s libssl3 libtirpc3 libudisks2-0 libuv1 linux-headers-6.8.0-11-generic 14074s linux-headers-generic python3-distutils udisks2 14074s The following NEW packages will be installed: 14074s libapt-pkg6.0t64 libarchive13t64 libatm1t64 libcurl3t64-gnutls libcurl4t64 14074s libdb5.3t64 libelf1t64 libext2fs2t64 libgdbm-compat4t64 libgdbm6t64 14074s libglib2.0-0t64 libgnutls30t64 libgpgme11t64 libhogweed6t64 libmagic1t64 14074s libnetplan1 libnettle8t64 libnpth0t64 libnvme1t64 libparted2t64 14074s libpcap0.8t64 libperl5.38t64 libpng16-16t64 libpsl5t64 libreadline8t64 14074s libreiserfscore0t64 libssl3t64 libtirpc3t64 libuv1t64 xdg-user-dirs 14074s The following packages have been kept back: 14074s multipath-tools 14074s The following packages will be upgraded: 14074s apparmor apt apt-utils bind9-dnsutils bind9-host bind9-libs binutils 14074s binutils-arm-linux-gnueabihf binutils-common bolt bsdextrautils bsdutils 14074s btrfs-progs coreutils cryptsetup-bin curl dbus dbus-bin dbus-daemon 14074s dbus-session-bus-common dbus-system-bus-common dbus-user-session debianutils 14074s dhcpcd-base dirmngr dmsetup dpkg dpkg-dev e2fsprogs e2fsprogs-l10n eject 14074s fdisk file ftp fwupd gawk gcc-13-base gcc-14-base gir1.2-girepository-2.0 14074s gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client 14074s gpgconf gpgsm gpgv groff-base ibverbs-providers inetutils-telnet info 14074s initramfs-tools initramfs-tools-bin initramfs-tools-core install-info 14074s iproute2 jq keyboxd kmod kpartx krb5-locales libapparmor1 libaudit-common 14074s libaudit1 libbinutils libblkid1 libblockdev-crypto3 libblockdev-fs3 14074s libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 14074s libblockdev-swap3 libblockdev-utils3 libblockdev3 libbpf1 libbrotli1 libbsd0 14074s libc-bin libc6 libcap-ng0 libcom-err2 libcryptsetup12 libctf-nobfd0 libctf0 14074s libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl 14074s libevent-core-2.1-7 libexpat1 libfdisk1 libfido2-1 libftdi1-2 libfwupd2 14074s libgcc-s1 libgirepository-1.0-1 libglib2.0-data libgssapi-krb5-2 14074s libgudev-1.0-0 libgusb2 libibverbs1 libjcat1 libjq1 libjson-glib-1.0-0 14074s libjson-glib-1.0-common libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 14074s libldap-common libldap2 liblocale-gettext-perl liblzma5 libmagic-mgc 14074s libmbim-glib4 libmbim-proxy libmm-glib0 libmount1 libnghttp2-14 libnsl2 14074s libnss-systemd libpam-modules libpam-modules-bin libpam-runtime 14074s libpam-systemd libpam0g libplymouth5 libpolkit-agent-1-0 14074s libpolkit-gobject-1-0 libpython3-stdlib libpython3.11-minimal 14074s libpython3.11-stdlib libpython3.12-minimal libpython3.12-stdlib libqmi-glib5 14074s libqmi-proxy libqrtr-glib0 librtmp1 libsasl2-2 libsasl2-modules 14074s libsasl2-modules-db libseccomp2 libselinux1 libsemanage-common libsemanage2 14074s libsframe1 libslang2 libsmartcols1 libsqlite3-0 libss2 libssh-4 libstdc++6 14074s libsystemd-shared libsystemd0 libtext-charwidth-perl libtext-iconv-perl 14074s libtirpc-common libudev1 libusb-1.0-0 libuuid1 libvolume-key1 libxml2 14074s libxmlb2 libxmuu1 locales logsave lshw lsof man-db mount mtr-tiny 14074s netplan-generator netplan.io openssh-client openssh-server 14074s openssh-sftp-server openssl parted perl perl-base perl-modules-5.38 14075s pinentry-curses plymouth plymouth-theme-ubuntu-text psmisc python-apt-common 14075s python3 python3-apt python3-cryptography python3-dbus python3-gdbm 14075s python3-gi python3-lib2to3 python3-markupsafe python3-minimal 14075s python3-netplan python3-openssl python3-pkg-resources python3-pyrsistent 14075s python3-setuptools python3-typing-extensions python3-yaml python3.11 14075s python3.11-minimal python3.12 python3.12-minimal readline-common rsync 14075s shared-mime-info sudo systemd systemd-dev systemd-resolved systemd-sysv 14075s systemd-timesyncd tcpdump telnet tnftp ubuntu-minimal ubuntu-pro-client 14075s ubuntu-pro-client-l10n ubuntu-standard udev usb.ids util-linux uuid-runtime 14075s vim-common vim-tiny wget xxd xz-utils zlib1g 14075s 235 upgraded, 30 newly installed, 34 to remove and 1 not upgraded. 14075s Need to get 91.2 MB of archives. 14075s After this operation, 8988 kB disk space will be freed. 14075s Get:1 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdutils armhf 1:2.39.3-9ubuntu2 [102 kB] 14075s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-14-base armhf 14-20240315-1ubuntu1 [47.0 kB] 14075s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-s1 armhf 14-20240315-1ubuntu1 [41.5 kB] 14075s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++6 armhf 14-20240315-1ubuntu1 [714 kB] 14076s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6 armhf 2.39-0ubuntu6 [2827 kB] 14076s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssl armhf 3.0.13-0ubuntu2 [975 kB] 14077s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g armhf 1:1.3.dfsg-3.1ubuntu1 [49.2 kB] 14077s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2build6 [51.3 kB] 14077s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12 armhf 3.12.2-4build3 [645 kB] 14077s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1 armhf 2.6.1-2 [65.9 kB] 14077s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-minimal armhf 3.12.2-4build3 [1942 kB] 14077s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-stdlib armhf 3.12.2-4build3 [1906 kB] 14078s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-minimal armhf 3.12.2-4build3 [816 kB] 14078s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf parted armhf 3.6-3.1build2 [39.4 kB] 14078s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblkid1 armhf 2.39.3-9ubuntu2 [160 kB] 14078s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libselinux1 armhf 3.5-2build3 [70.5 kB] 14078s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-dev all 255.4-1ubuntu5 [103 kB] 14078s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-timesyncd armhf 255.4-1ubuntu5 [36.0 kB] 14078s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-session-bus-common all 1.14.10-4ubuntu2 [80.3 kB] 14078s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit-common all 1:3.1.2-2.1 [5674 B] 14078s Get:21 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcap-ng0 armhf 0.8.4-2build1 [13.5 kB] 14078s Get:22 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit1 armhf 1:3.1.2-2.1 [44.3 kB] 14078s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam0g armhf 1.5.3-5ubuntu3 [62.0 kB] 14078s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblzma5 armhf 5.6.0-0.2 [117 kB] 14078s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap2 armhf 2.6.7+dfsg-1~exp1ubuntu6 [172 kB] 14078s Get:26 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-0t64 armhf 2.79.3-3ubuntu5 [1414 kB] 14079s Get:27 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libvolume-key1 armhf 0.3.12-7build1 [38.4 kB] 14079s Get:28 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgpgme11t64 armhf 1.18.0-4.1ubuntu3 [120 kB] 14079s Get:29 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjcat1 armhf 0.2.0-2build2 [30.4 kB] 14079s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libarchive13t64 armhf 3.7.2-1.1ubuntu1 [330 kB] 14079s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fwupd armhf 1.9.15-1 [4349 kB] 14080s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client-l10n armhf 31.2 [19.4 kB] 14080s Get:33 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client armhf 31.2 [216 kB] 14080s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11 armhf 3.11.8-1build4 [589 kB] 14080s Get:35 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11-minimal armhf 3.11.8-1build4 [1795 kB] 14080s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-minimal armhf 3.11.8-1build4 [826 kB] 14080s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-4ubuntu4 [19.2 kB] 14080s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-iconv-perl armhf 1.7-8build2 [12.7 kB] 14081s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-charwidth-perl armhf 0.04-11build2 [8962 B] 14081s Get:40 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-base armhf 5.38.2-3.2 [1671 kB] 14081s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblocale-gettext-perl armhf 1.07-6ubuntu3 [15.0 kB] 14081s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-modules-5.38 all 5.38.2-3.2 [3110 kB] 14081s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gdbm armhf 3.12.2-3ubuntu2 [17.1 kB] 14081s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf man-db armhf 2.12.0-3build4 [1196 kB] 14082s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm6t64 armhf 1.23-5.1 [30.3 kB] 14082s Get:46 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm-compat4t64 armhf 1.23-5.1 [6208 B] 14082s Get:47 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libperl5.38t64 armhf 5.38.2-3.2 [4101 kB] 14083s Get:48 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl armhf 5.38.2-3.2 [231 kB] 14083s Get:49 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdb5.3t64 armhf 5.3.28+dfsg2-5build1 [661 kB] 14083s Get:50 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-stdlib armhf 3.11.8-1build4 [1810 kB] 14083s Get:51 http://ftpmaster.internal/ubuntu noble-proposed/main armhf keyboxd armhf 2.4.4-2ubuntu15 [111 kB] 14083s Get:52 http://ftpmaster.internal/ubuntu noble/main armhf libnpth0t64 armhf 1.6-3.1 [6940 B] 14083s Get:53 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgv armhf 2.4.4-2ubuntu15 [224 kB] 14083s Get:54 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg armhf 2.4.4-2ubuntu15 [524 kB] 14083s Get:55 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-wks-client armhf 2.4.4-2ubuntu15 [87.4 kB] 14083s Get:56 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-utils armhf 2.4.4-2ubuntu15 [158 kB] 14083s Get:57 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-agent armhf 2.4.4-2ubuntu15 [235 kB] 14083s Get:58 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgsm armhf 2.4.4-2ubuntu15 [241 kB] 14083s Get:59 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreadline8t64 armhf 8.2-3.1 [129 kB] 14083s Get:60 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gawk armhf 1:5.2.1-2build2 [415 kB] 14084s Get:61 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fdisk armhf 2.39.3-9ubuntu2 [135 kB] 14084s Get:62 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgconf armhf 2.4.4-2ubuntu15 [115 kB] 14084s Get:63 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dirmngr armhf 2.4.4-2ubuntu15 [346 kB] 14084s Get:64 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg all 2.4.4-2ubuntu15 [359 kB] 14084s Get:65 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-apt armhf 2.7.6build1 [162 kB] 14084s Get:66 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt-utils armhf 2.7.13ubuntu1 [210 kB] 14084s Get:67 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapt-pkg6.0t64 armhf 2.7.13ubuntu1 [986 kB] 14084s Get:68 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnettle8t64 armhf 3.9.1-2.2 [187 kB] 14084s Get:69 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libhogweed6t64 armhf 3.9.1-2.2 [187 kB] 14084s Get:70 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgnutls30t64 armhf 3.8.3-1.1ubuntu2 [1046 kB] 14084s Get:71 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt armhf 2.7.13ubuntu1 [1367 kB] 14085s Get:72 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl3t64-gnutls armhf 8.5.0-2ubuntu7 [290 kB] 14085s Get:73 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfwupd2 armhf 1.9.15-1 [123 kB] 14085s Get:74 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpsl5t64 armhf 0.21.2-1.1 [55.7 kB] 14085s Get:75 http://ftpmaster.internal/ubuntu noble-proposed/main armhf wget armhf 1.21.4-1ubuntu2 [317 kB] 14085s Get:76 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tnftp armhf 20230507-2build1 [98.6 kB] 14085s Get:77 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpcap0.8t64 armhf 1.10.4-4.1ubuntu1 [137 kB] 14085s Get:78 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tcpdump armhf 4.99.4-3ubuntu2 [425 kB] 14085s Get:79 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd-shared armhf 255.4-1ubuntu5 [2009 kB] 14085s Get:80 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-resolved armhf 255.4-1ubuntu5 [289 kB] 14085s Get:81 http://ftpmaster.internal/ubuntu noble-proposed/main armhf sudo armhf 1.9.15p5-3ubuntu3 [936 kB] 14086s Get:82 http://ftpmaster.internal/ubuntu noble-proposed/main armhf rsync armhf 3.2.7-1build1 [413 kB] 14086s Get:83 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-cryptography armhf 41.0.7-4build2 [788 kB] 14086s Get:84 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-sftp-server armhf 1:9.6p1-3ubuntu10 [35.5 kB] 14086s Get:85 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-client armhf 1:9.6p1-3ubuntu10 [890 kB] 14086s Get:86 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-server armhf 1:9.6p1-3ubuntu10 [503 kB] 14086s Get:87 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssl3t64 armhf 3.0.13-0ubuntu2 [1558 kB] 14086s Get:88 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libudev1 armhf 255.4-1ubuntu5 [166 kB] 14086s Get:89 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd armhf 255.4-1ubuntu5 [3502 kB] 14087s Get:90 http://ftpmaster.internal/ubuntu noble-proposed/main armhf udev armhf 255.4-1ubuntu5 [1852 kB] 14087s Get:91 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-sysv armhf 255.4-1ubuntu5 [11.9 kB] 14087s Get:92 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnss-systemd armhf 255.4-1ubuntu5 [148 kB] 14087s Get:93 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-systemd armhf 255.4-1ubuntu5 [216 kB] 14087s Get:94 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd0 armhf 255.4-1ubuntu5 [410 kB] 14087s Get:95 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules-bin armhf 1.5.3-5ubuntu3 [47.0 kB] 14087s Get:96 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules armhf 1.5.3-5ubuntu3 [261 kB] 14087s Get:97 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-runtime all 1.5.3-5ubuntu3 [40.8 kB] 14087s Get:98 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-user-session armhf 1.14.10-4ubuntu2 [9962 B] 14087s Get:99 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapparmor1 armhf 4.0.0-beta3-0ubuntu2 [45.0 kB] 14088s Get:100 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-bin armhf 1.14.10-4ubuntu2 [37.1 kB] 14088s Get:101 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-system-bus-common all 1.14.10-4ubuntu2 [81.5 kB] 14088s Get:102 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus armhf 1.14.10-4ubuntu2 [28.1 kB] 14088s Get:103 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-daemon armhf 1.14.10-4ubuntu2 [109 kB] 14088s Get:104 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdbus-1-3 armhf 1.14.10-4ubuntu2 [190 kB] 14088s Get:105 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kmod armhf 31+20240202-2ubuntu4 [91.8 kB] 14088s Get:106 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkmod2 armhf 31+20240202-2ubuntu4 [44.9 kB] 14088s Get:107 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmount1 armhf 2.39.3-9ubuntu2 [171 kB] 14088s Get:108 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libseccomp2 armhf 2.5.5-1ubuntu2 [49.5 kB] 14088s Get:109 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuuid1 armhf 2.39.3-9ubuntu2 [34.4 kB] 14088s Get:110 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcryptsetup12 armhf 2:2.7.0-1ubuntu2 [238 kB] 14088s Get:111 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfdisk1 armhf 2.39.3-9ubuntu2 [196 kB] 14088s Get:112 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mount armhf 2.39.3-9ubuntu2 [134 kB] 14088s Get:113 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdevmapper1.02.1 armhf 2:1.02.185-3ubuntu2 [135 kB] 14088s Get:114 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libparted2t64 armhf 3.6-3.1build2 [143 kB] 14088s Get:115 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsqlite3-0 armhf 3.45.1-1ubuntu1 [599 kB] 14089s Get:116 http://ftpmaster.internal/ubuntu noble-proposed/main armhf pinentry-curses armhf 1.2.1-3ubuntu4 [36.7 kB] 14089s Get:117 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsmartcols1 armhf 2.39.3-9ubuntu2 [117 kB] 14089s Get:118 http://ftpmaster.internal/ubuntu noble-proposed/main armhf readline-common all 8.2-3.1 [56.4 kB] 14089s Get:119 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-yaml armhf 6.0.1-2build1 [117 kB] 14089s Get:120 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python-apt-common all 2.7.6build1 [19.8 kB] 14089s Get:121 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-setuptools all 68.1.2-2ubuntu1 [396 kB] 14089s Get:122 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pkg-resources all 68.1.2-2ubuntu1 [168 kB] 14089s Get:123 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg armhf 1.22.6ubuntu4 [1229 kB] 14089s Get:124 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-minimal armhf 3.12.2-0ubuntu1 [27.1 kB] 14089s Get:125 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3 armhf 3.12.2-0ubuntu1 [24.1 kB] 14089s Get:126 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-stdlib armhf 3.12.2-0ubuntu1 [9802 B] 14089s Get:127 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdextrautils armhf 2.39.3-9ubuntu2 [78.7 kB] 14089s Get:128 http://ftpmaster.internal/ubuntu noble-proposed/main armhf groff-base armhf 1.23.0-3build1 [946 kB] 14089s Get:129 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-2 armhf 2.1.28+dfsg1-4ubuntu4 [49.7 kB] 14089s Get:130 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-common all 1.8.0-2build1 [4210 B] 14089s Get:131 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-0 armhf 1.8.0-2build1 [61.2 kB] 14089s Get:132 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxml2 armhf 2.9.14+dfsg-1.3ubuntu2 [595 kB] 14090s Get:133 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgudev-1.0-0 armhf 1:238-3ubuntu2 [13.6 kB] 14090s Get:134 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libusb-1.0-0 armhf 2:1.0.27-1 [48.7 kB] 14090s Get:135 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgusb2 armhf 0.4.8-1build1 [34.6 kB] 14090s Get:136 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-proxy armhf 1.31.2-0ubuntu2 [5748 B] 14090s Get:137 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-glib4 armhf 1.31.2-0ubuntu2 [216 kB] 14090s Get:138 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmm-glib0 armhf 1.23.4-0ubuntu1 [214 kB] 14090s Get:139 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-agent-1-0 armhf 124-1ubuntu1 [15.3 kB] 14090s Get:140 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-gobject-1-0 armhf 124-1ubuntu1 [44.1 kB] 14090s Get:141 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-proxy armhf 1.35.2-0ubuntu1 [5732 B] 14090s Get:142 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqrtr-glib0 armhf 1.2.2-1ubuntu3 [15.4 kB] 14090s Get:143 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-glib5 armhf 1.35.2-0ubuntu1 [908 kB] 14090s Get:144 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmlb2 armhf 0.3.15-1build1 [57.0 kB] 14090s Get:145 http://ftpmaster.internal/ubuntu noble-proposed/main armhf shared-mime-info armhf 2.4-1build1 [470 kB] 14090s Get:146 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbrotli1 armhf 1.1.0-2build1 [319 kB] 14090s Get:147 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgssapi-krb5-2 armhf 1.20.1-5.1build3 [119 kB] 14090s Get:148 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5-3 armhf 1.20.1-5.1build3 [321 kB] 14090s Get:149 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5support0 armhf 1.20.1-5.1build3 [31.4 kB] 14090s Get:150 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libk5crypto3 armhf 1.20.1-5.1build3 [78.6 kB] 14090s Get:151 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcom-err2 armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 14090s Get:152 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnghttp2-14 armhf 1.59.0-1build1 [68.1 kB] 14090s Get:153 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssh-4 armhf 0.10.6-2build1 [169 kB] 14090s Get:154 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libibverbs1 armhf 50.0-2build1 [57.9 kB] 14090s Get:155 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfido2-1 armhf 1.14.0-1build1 [75.8 kB] 14090s Get:156 http://ftpmaster.internal/ubuntu noble-proposed/main armhf coreutils armhf 9.4-3ubuntu3 [1280 kB] 14090s Get:157 http://ftpmaster.internal/ubuntu noble-proposed/main armhf debianutils armhf 5.17 [88.9 kB] 14090s Get:158 http://ftpmaster.internal/ubuntu noble-proposed/main armhf util-linux armhf 2.39.3-9ubuntu2 [1216 kB] 14090s Get:159 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-bin armhf 2.39-0ubuntu6 [530 kB] 14090s Get:160 http://ftpmaster.internal/ubuntu noble-proposed/main armhf curl armhf 8.5.0-2ubuntu7 [219 kB] 14090s Get:161 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl4t64 armhf 8.5.0-2ubuntu7 [296 kB] 14090s Get:162 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbpf1 armhf 1:1.3.0-2build1 [146 kB] 14090s Get:163 http://ftpmaster.internal/ubuntu noble-proposed/main armhf iproute2 armhf 6.1.0-1ubuntu5 [1060 kB] 14091s Get:164 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libelf1t64 armhf 0.190-1.1build2 [49.9 kB] 14091s Get:165 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lsof armhf 4.95.0-1build2 [248 kB] 14091s Get:166 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnsl2 armhf 1.3.0-3build2 [36.5 kB] 14091s Get:167 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc-common all 1.3.4+ds-1.1 [8018 B] 14091s Get:168 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc3t64 armhf 1.3.4+ds-1.1 [73.2 kB] 14091s Get:169 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-utils3 armhf 3.1.0-1build1 [16.9 kB] 14091s Get:170 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-fs3 armhf 3.1.0-1build1 [34.4 kB] 14091s Get:171 http://ftpmaster.internal/ubuntu noble-proposed/main armhf logsave armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 14091s Get:172 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-minimal armhf 1.536build1 [10.7 kB] 14091s Get:173 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools all 0.142ubuntu22 [9056 B] 14091s Get:174 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-core all 0.142ubuntu22 [50.0 kB] 14091s Get:175 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs-l10n all 1.47.0-2.4~exp1ubuntu2 [5996 B] 14091s Get:176 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libext2fs2t64 armhf 1.47.0-2.4~exp1ubuntu2 [201 kB] 14091s Get:177 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs armhf 1.47.0-2.4~exp1ubuntu2 [571 kB] 14091s Get:178 http://ftpmaster.internal/ubuntu noble-proposed/main armhf btrfs-progs armhf 6.6.3-1.1build1 [852 kB] 14091s Get:179 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dhcpcd-base armhf 1:10.0.6-1ubuntu2 [186 kB] 14091s Get:180 http://ftpmaster.internal/ubuntu noble-proposed/main armhf eject armhf 2.39.3-9ubuntu2 [43.2 kB] 14091s Get:181 http://ftpmaster.internal/ubuntu noble-proposed/main armhf locales all 2.39-0ubuntu6 [4232 kB] 14091s Get:182 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnetplan1 armhf 1.0-1 [113 kB] 14091s Get:183 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-netplan armhf 1.0-1 [22.5 kB] 14091s Get:184 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan-generator armhf 1.0-1 [58.7 kB] 14091s Get:185 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dbus armhf 1.3.2-5build2 [94.7 kB] 14091s Get:186 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan.io armhf 1.0-1 [64.3 kB] 14091s Get:187 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-tiny armhf 2:9.1.0016-1ubuntu5 [665 kB] 14091s Get:188 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-common all 2:9.1.0016-1ubuntu5 [385 kB] 14091s Get:189 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-bin armhf 0.142ubuntu22 [20.1 kB] 14091s Get:190 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreiserfscore0t64 armhf 1:3.6.27-7.1 [66.2 kB] 14091s Get:191 http://ftpmaster.internal/ubuntu noble-proposed/main armhf file armhf 1:5.45-3 [21.1 kB] 14091s Get:192 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic-mgc armhf 1:5.45-3 [307 kB] 14091s Get:193 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic1t64 armhf 1:5.45-3 [81.4 kB] 14091s Get:194 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-nvme3 armhf 3.1.0-1build1 [17.5 kB] 14091s Get:195 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnvme1t64 armhf 1.8-3 [67.5 kB] 14091s Get:196 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libplymouth5 armhf 24.004.60-1ubuntu5 [140 kB] 14092s Get:197 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpng16-16t64 armhf 1.6.43-3 [166 kB] 14092s Get:198 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-host armhf 1:9.18.24-0ubuntu3 [47.4 kB] 14092s Get:199 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-dnsutils armhf 1:9.18.24-0ubuntu3 [149 kB] 14092s Get:200 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-libs armhf 1:9.18.24-0ubuntu3 [1148 kB] 14092s Get:201 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuv1t64 armhf 1.48.0-1.1 [82.9 kB] 14092s Get:202 http://ftpmaster.internal/ubuntu noble-proposed/main armhf uuid-runtime armhf 2.39.3-9ubuntu2 [41.7 kB] 14092s Get:203 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdebconfclient0 armhf 0.271ubuntu2 [10.8 kB] 14092s Get:204 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage-common all 3.5-1build4 [10.1 kB] 14092s Get:205 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage2 armhf 3.5-1build4 [84.5 kB] 14092s Get:206 http://ftpmaster.internal/ubuntu noble-proposed/main armhf install-info armhf 7.1-3build1 [60.5 kB] 14092s Get:207 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-base armhf 13.2.0-19ubuntu1 [47.7 kB] 14092s Get:208 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libss2 armhf 1.47.0-2.4~exp1ubuntu2 [14.7 kB] 14092s Get:209 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dmsetup armhf 2:1.02.185-3ubuntu2 [81.1 kB] 14092s Get:210 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-girepository-2.0 armhf 1.79.1-1ubuntu6 [24.8 kB] 14092s Get:211 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-glib-2.0 armhf 2.79.3-3ubuntu5 [182 kB] 14092s Get:212 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgirepository-1.0-1 armhf 1.79.1-1ubuntu6 [106 kB] 14092s Get:213 http://ftpmaster.internal/ubuntu noble-proposed/main armhf krb5-locales all 1.20.1-5.1build3 [13.8 kB] 14092s Get:214 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbsd0 armhf 0.12.1-1 [36.6 kB] 14092s Get:215 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-data all 2.79.3-3ubuntu5 [46.6 kB] 14092s Get:216 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libslang2 armhf 2.3.3-3build1 [478 kB] 14093s Get:217 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gi armhf 3.47.0-3build1 [219 kB] 14093s Get:218 http://ftpmaster.internal/ubuntu noble/main armhf xdg-user-dirs armhf 0.18-1 [17.3 kB] 14093s Get:219 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xxd armhf 2:9.1.0016-1ubuntu5 [62.4 kB] 14093s Get:220 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apparmor armhf 4.0.0-beta3-0ubuntu2 [562 kB] 14093s Get:221 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ftp all 20230507-2build1 [4724 B] 14093s Get:222 http://ftpmaster.internal/ubuntu noble-proposed/main armhf inetutils-telnet armhf 2:2.5-3ubuntu3 [90.7 kB] 14093s Get:223 http://ftpmaster.internal/ubuntu noble-proposed/main armhf info armhf 7.1-3build1 [127 kB] 14093s Get:224 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmuu1 armhf 2:1.1.3-3build1 [8004 B] 14093s Get:225 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lshw armhf 02.19.git.2021.06.19.996aaad9c7-2build2 [310 kB] 14093s Get:226 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mtr-tiny armhf 0.95-1.1build1 [51.7 kB] 14093s Get:227 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth-theme-ubuntu-text armhf 24.004.60-1ubuntu5 [9826 B] 14093s Get:228 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth armhf 24.004.60-1ubuntu5 [143 kB] 14093s Get:229 http://ftpmaster.internal/ubuntu noble-proposed/main armhf psmisc armhf 23.7-1 [176 kB] 14093s Get:230 http://ftpmaster.internal/ubuntu noble-proposed/main armhf telnet all 0.17+2.5-3ubuntu3 [3682 B] 14093s Get:231 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xz-utils armhf 5.6.0-0.2 [271 kB] 14094s Get:232 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-standard armhf 1.536build1 [10.7 kB] 14094s Get:233 http://ftpmaster.internal/ubuntu noble-proposed/main armhf usb.ids all 2024.03.18-1 [223 kB] 14094s Get:234 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libctf-nobfd0 armhf 2.42-4ubuntu1 [88.0 kB] 14094s Get:235 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libctf0 armhf 2.42-4ubuntu1 [87.7 kB] 14094s Get:236 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils-arm-linux-gnueabihf armhf 2.42-4ubuntu1 [2925 kB] 14094s Get:237 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbinutils armhf 2.42-4ubuntu1 [464 kB] 14095s Get:238 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils armhf 2.42-4ubuntu1 [3078 B] 14095s Get:239 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils-common armhf 2.42-4ubuntu1 [217 kB] 14095s Get:240 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsframe1 armhf 2.42-4ubuntu1 [13.1 kB] 14095s Get:241 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bolt armhf 0.9.6-2build1 [138 kB] 14095s Get:242 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cryptsetup-bin armhf 2:2.7.0-1ubuntu2 [214 kB] 14095s Get:243 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg-dev all 1.22.6ubuntu4 [1074 kB] 14095s Get:244 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdpkg-perl all 1.22.6ubuntu4 [268 kB] 14095s Get:245 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-l10n all 2.4.4-2ubuntu15 [65.8 kB] 14095s Get:246 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ibverbs-providers armhf 50.0-2build1 [27.4 kB] 14095s Get:247 http://ftpmaster.internal/ubuntu noble-proposed/main armhf jq armhf 1.7.1-3 [65.2 kB] 14095s Get:248 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjq1 armhf 1.7.1-3 [156 kB] 14095s Get:249 http://ftpmaster.internal/ubuntu noble/main armhf libatm1t64 armhf 1:2.5.1-5.1 [20.0 kB] 14095s Get:250 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-crypto3 armhf 3.1.0-1build1 [20.3 kB] 14095s Get:251 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-loop3 armhf 3.1.0-1build1 [6502 B] 14095s Get:252 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-mdraid3 armhf 3.1.0-1build1 [13.3 kB] 14095s Get:253 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-part3 armhf 3.1.0-1build1 [16.4 kB] 14095s Get:254 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-swap3 armhf 3.1.0-1build1 [8894 B] 14095s Get:255 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev3 armhf 3.1.0-1build1 [42.9 kB] 14095s Get:256 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libevent-core-2.1-7 armhf 2.1.12-stable-9build1 [82.3 kB] 14095s Get:257 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libftdi1-2 armhf 1.5-6build4 [25.7 kB] 14095s Get:258 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap-common all 2.6.7+dfsg-1~exp1ubuntu6 [31.3 kB] 14095s Get:259 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules armhf 2.1.28+dfsg1-4ubuntu4 [61.4 kB] 14095s Get:260 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-lib2to3 all 3.12.2-3ubuntu2 [79.3 kB] 14095s Get:261 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-markupsafe armhf 2.1.5-1build1 [12.1 kB] 14095s Get:262 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-openssl all 24.0.0-4 [47.9 kB] 14095s Get:263 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pyrsistent armhf 0.20.0-1build1 [53.0 kB] 14095s Get:264 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-typing-extensions all 4.10.0-1 [60.7 kB] 14095s Get:265 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kpartx armhf 0.9.4-5ubuntu5 [31.4 kB] 14099s Preconfiguring packages ... 14099s Fetched 91.2 MB in 21s (4426 kB/s) 14100s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 14100s Preparing to unpack .../bsdutils_1%3a2.39.3-9ubuntu2_armhf.deb ... 14100s Unpacking bsdutils (1:2.39.3-9ubuntu2) over (1:2.39.3-6ubuntu2) ... 14100s Setting up bsdutils (1:2.39.3-9ubuntu2) ... 14100s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 14100s Preparing to unpack .../gcc-14-base_14-20240315-1ubuntu1_armhf.deb ... 14100s Unpacking gcc-14-base:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 14100s Setting up gcc-14-base:armhf (14-20240315-1ubuntu1) ... 14100s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 14100s Preparing to unpack .../libgcc-s1_14-20240315-1ubuntu1_armhf.deb ... 14100s Unpacking libgcc-s1:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 14100s Setting up libgcc-s1:armhf (14-20240315-1ubuntu1) ... 14100s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 14100s Preparing to unpack .../libstdc++6_14-20240315-1ubuntu1_armhf.deb ... 14100s Unpacking libstdc++6:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 14101s Setting up libstdc++6:armhf (14-20240315-1ubuntu1) ... 14101s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 14101s Preparing to unpack .../libc6_2.39-0ubuntu6_armhf.deb ... 14101s Unpacking libc6:armhf (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 14102s Setting up libc6:armhf (2.39-0ubuntu6) ... 14103s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 14103s Preparing to unpack .../openssl_3.0.13-0ubuntu2_armhf.deb ... 14103s Unpacking openssl (3.0.13-0ubuntu2) over (3.0.10-1ubuntu4) ... 14103s Preparing to unpack .../zlib1g_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 14103s Unpacking zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) over (1:1.3.dfsg-3ubuntu1) ... 14103s Setting up zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) ... 14104s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 14104s Preparing to unpack .../0-librtmp1_2.4+20151223.gitfa8646d.1-2build6_armhf.deb ... 14104s Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) over (2.4+20151223.gitfa8646d.1-2build4) ... 14104s Preparing to unpack .../1-python3.12_3.12.2-4build3_armhf.deb ... 14104s Unpacking python3.12 (3.12.2-4build3) over (3.12.2-1) ... 14104s Preparing to unpack .../2-libexpat1_2.6.1-2_armhf.deb ... 14104s Unpacking libexpat1:armhf (2.6.1-2) over (2.6.0-1) ... 14104s Preparing to unpack .../3-python3.12-minimal_3.12.2-4build3_armhf.deb ... 14104s Unpacking python3.12-minimal (3.12.2-4build3) over (3.12.2-1) ... 14104s Preparing to unpack .../4-libpython3.12-stdlib_3.12.2-4build3_armhf.deb ... 14104s Unpacking libpython3.12-stdlib:armhf (3.12.2-4build3) over (3.12.2-1) ... 14105s Preparing to unpack .../5-libpython3.12-minimal_3.12.2-4build3_armhf.deb ... 14105s Unpacking libpython3.12-minimal:armhf (3.12.2-4build3) over (3.12.2-1) ... 14106s Preparing to unpack .../6-parted_3.6-3.1build2_armhf.deb ... 14106s Unpacking parted (3.6-3.1build2) over (3.6-3) ... 14106s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 14106s Removing libparted2:armhf (3.6-3) ... 14106s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14106s Preparing to unpack .../libblkid1_2.39.3-9ubuntu2_armhf.deb ... 14106s Unpacking libblkid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14106s Setting up libblkid1:armhf (2.39.3-9ubuntu2) ... 14106s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14106s Preparing to unpack .../libselinux1_3.5-2build3_armhf.deb ... 14106s Unpacking libselinux1:armhf (3.5-2build3) over (3.5-2build1) ... 14107s Setting up libselinux1:armhf (3.5-2build3) ... 14107s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14107s Preparing to unpack .../systemd-dev_255.4-1ubuntu5_all.deb ... 14107s Unpacking systemd-dev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14107s Preparing to unpack .../systemd-timesyncd_255.4-1ubuntu5_armhf.deb ... 14107s Unpacking systemd-timesyncd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14107s Preparing to unpack .../dbus-session-bus-common_1.14.10-4ubuntu2_all.deb ... 14107s Unpacking dbus-session-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 14107s Preparing to unpack .../libaudit-common_1%3a3.1.2-2.1_all.deb ... 14107s Unpacking libaudit-common (1:3.1.2-2.1) over (1:3.1.2-2) ... 14107s Setting up libaudit-common (1:3.1.2-2.1) ... 14107s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14107s Preparing to unpack .../libcap-ng0_0.8.4-2build1_armhf.deb ... 14107s Unpacking libcap-ng0:armhf (0.8.4-2build1) over (0.8.4-2) ... 14107s Setting up libcap-ng0:armhf (0.8.4-2build1) ... 14108s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14108s Preparing to unpack .../libaudit1_1%3a3.1.2-2.1_armhf.deb ... 14108s Unpacking libaudit1:armhf (1:3.1.2-2.1) over (1:3.1.2-2) ... 14108s Setting up libaudit1:armhf (1:3.1.2-2.1) ... 14108s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14108s Preparing to unpack .../libpam0g_1.5.3-5ubuntu3_armhf.deb ... 14108s Unpacking libpam0g:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 14108s Setting up libpam0g:armhf (1.5.3-5ubuntu3) ... 14109s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14109s Preparing to unpack .../liblzma5_5.6.0-0.2_armhf.deb ... 14109s Unpacking liblzma5:armhf (5.6.0-0.2) over (5.4.5-0.3) ... 14109s Setting up liblzma5:armhf (5.6.0-0.2) ... 14109s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14109s Preparing to unpack .../libldap2_2.6.7+dfsg-1~exp1ubuntu6_armhf.deb ... 14109s Unpacking libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 14109s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 14109s Removing udisks2 (2.10.1-1ubuntu2) ... 14110s dpkg: libglib2.0-0:armhf: dependency problems, but removing anyway as you requested: 14110s shared-mime-info depends on libglib2.0-0 (>= 2.75.3). 14110s python3-gi depends on libglib2.0-0 (>= 2.77.0). 14110s python3-dbus depends on libglib2.0-0 (>= 2.16.0). 14110s netplan.io depends on libglib2.0-0 (>= 2.70.0). 14110s netplan-generator depends on libglib2.0-0 (>= 2.70.0). 14110s libxmlb2:armhf depends on libglib2.0-0 (>= 2.54.0). 14110s libvolume-key1:armhf depends on libglib2.0-0 (>= 2.18.0). 14110s libudisks2-0:armhf depends on libglib2.0-0 (>= 2.75.3). 14110s libqrtr-glib0:armhf depends on libglib2.0-0 (>= 2.56). 14110s libqmi-proxy depends on libglib2.0-0 (>= 2.30.0). 14110s libqmi-glib5:armhf depends on libglib2.0-0 (>= 2.54.0). 14110s libpolkit-gobject-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 14110s libpolkit-agent-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 14110s libnetplan0:armhf depends on libglib2.0-0 (>= 2.75.3). 14110s libmm-glib0:armhf depends on libglib2.0-0 (>= 2.62.0). 14110s libmbim-proxy depends on libglib2.0-0 (>= 2.56). 14110s libmbim-glib4:armhf depends on libglib2.0-0 (>= 2.56). 14110s libjson-glib-1.0-0:armhf depends on libglib2.0-0 (>= 2.75.3). 14110s libjcat1:armhf depends on libglib2.0-0 (>= 2.75.3). 14110s libgusb2:armhf depends on libglib2.0-0 (>= 2.75.3). 14110s libgudev-1.0-0:armhf depends on libglib2.0-0 (>= 2.38.0). 14110s libgirepository-1.0-1:armhf depends on libglib2.0-0 (>= 2.79.0). 14110s libfwupd2:armhf depends on libglib2.0-0 (>= 2.79.0). 14110s libblockdev3:armhf depends on libglib2.0-0 (>= 2.42.2). 14110s libblockdev-utils3:armhf depends on libglib2.0-0 (>= 2.75.3). 14110s libblockdev-swap3:armhf depends on libglib2.0-0 (>= 2.42.2). 14110s libblockdev-part3:armhf depends on libglib2.0-0 (>= 2.42.2). 14110s libblockdev-nvme3:armhf depends on libglib2.0-0 (>= 2.42.2). 14110s libblockdev-mdraid3:armhf depends on libglib2.0-0 (>= 2.42.2). 14110s libblockdev-loop3:armhf depends on libglib2.0-0 (>= 2.42.2). 14110s libblockdev-fs3:armhf depends on libglib2.0-0 (>= 2.42.2). 14110s libblockdev-crypto3:armhf depends on libglib2.0-0 (>= 2.42.2). 14110s gir1.2-glib-2.0:armhf depends on libglib2.0-0 (= 2.79.2-1~ubuntu1). 14110s fwupd depends on libglib2.0-0 (>= 2.79.0). 14110s bolt depends on libglib2.0-0 (>= 2.56.0). 14110s 14110s Removing libglib2.0-0:armhf (2.79.2-1~ubuntu1) ... 14110s Selecting previously unselected package libglib2.0-0t64:armhf. 14110s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58560 files and directories currently installed.) 14110s Preparing to unpack .../libglib2.0-0t64_2.79.3-3ubuntu5_armhf.deb ... 14110s libglib2.0-0t64.preinst: Removing /var/lib/dpkg/info/libglib2.0-0:armhf.postrm to avoid loss of /usr/share/glib-2.0/schemas/gschemas.compiled... 14110s removed '/var/lib/dpkg/info/libglib2.0-0:armhf.postrm' 14110s Unpacking libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 14110s Preparing to unpack .../libvolume-key1_0.3.12-7build1_armhf.deb ... 14110s Unpacking libvolume-key1:armhf (0.3.12-7build1) over (0.3.12-5build2) ... 14110s dpkg: libgpgme11:armhf: dependency problems, but removing anyway as you requested: 14110s libjcat1:armhf depends on libgpgme11 (>= 1.2.0). 14110s 14110s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58585 files and directories currently installed.) 14110s Removing libgpgme11:armhf (1.18.0-4ubuntu1) ... 14110s Selecting previously unselected package libgpgme11t64:armhf. 14111s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58579 files and directories currently installed.) 14111s Preparing to unpack .../libgpgme11t64_1.18.0-4.1ubuntu3_armhf.deb ... 14111s Unpacking libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 14111s Preparing to unpack .../libjcat1_0.2.0-2build2_armhf.deb ... 14111s Unpacking libjcat1:armhf (0.2.0-2build2) over (0.2.0-2) ... 14111s dpkg: libarchive13:armhf: dependency problems, but removing anyway as you requested: 14111s fwupd depends on libarchive13 (>= 3.2.1). 14111s 14111s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58586 files and directories currently installed.) 14111s Removing libarchive13:armhf (3.7.2-1ubuntu2) ... 14111s Selecting previously unselected package libarchive13t64:armhf. 14111s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58580 files and directories currently installed.) 14111s Preparing to unpack .../00-libarchive13t64_3.7.2-1.1ubuntu1_armhf.deb ... 14111s Unpacking libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 14111s Preparing to unpack .../01-fwupd_1.9.15-1_armhf.deb ... 14112s Unpacking fwupd (1.9.15-1) over (1.9.14-1) ... 14112s Preparing to unpack .../02-ubuntu-pro-client-l10n_31.2_armhf.deb ... 14112s Unpacking ubuntu-pro-client-l10n (31.2) over (31.1) ... 14112s Preparing to unpack .../03-ubuntu-pro-client_31.2_armhf.deb ... 14113s Unpacking ubuntu-pro-client (31.2) over (31.1) ... 14113s Preparing to unpack .../04-python3.11_3.11.8-1build4_armhf.deb ... 14114s Unpacking python3.11 (3.11.8-1build4) over (3.11.8-1) ... 14114s Preparing to unpack .../05-python3.11-minimal_3.11.8-1build4_armhf.deb ... 14114s Unpacking python3.11-minimal (3.11.8-1build4) over (3.11.8-1) ... 14114s Preparing to unpack .../06-libpython3.11-minimal_3.11.8-1build4_armhf.deb ... 14114s Unpacking libpython3.11-minimal:armhf (3.11.8-1build4) over (3.11.8-1) ... 14115s Preparing to unpack .../07-libsasl2-modules-db_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 14115s Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 14115s Preparing to unpack .../08-libtext-iconv-perl_1.7-8build2_armhf.deb ... 14115s Unpacking libtext-iconv-perl:armhf (1.7-8build2) over (1.7-8build1) ... 14115s Preparing to unpack .../09-libtext-charwidth-perl_0.04-11build2_armhf.deb ... 14115s Unpacking libtext-charwidth-perl:armhf (0.04-11build2) over (0.04-11build1) ... 14115s Preparing to unpack .../10-perl-base_5.38.2-3.2_armhf.deb ... 14115s Unpacking perl-base (5.38.2-3.2) over (5.38.2-3) ... 14116s Setting up perl-base (5.38.2-3.2) ... 14116s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 14116s Preparing to unpack .../liblocale-gettext-perl_1.07-6ubuntu3_armhf.deb ... 14116s Unpacking liblocale-gettext-perl (1.07-6ubuntu3) over (1.07-6build1) ... 14116s Preparing to unpack .../perl-modules-5.38_5.38.2-3.2_all.deb ... 14116s Unpacking perl-modules-5.38 (5.38.2-3.2) over (5.38.2-3) ... 14118s Preparing to unpack .../python3-gdbm_3.12.2-3ubuntu2_armhf.deb ... 14118s Unpacking python3-gdbm:armhf (3.12.2-3ubuntu2) over (3.11.5-1) ... 14118s Preparing to unpack .../man-db_2.12.0-3build4_armhf.deb ... 14118s Unpacking man-db (2.12.0-3build4) over (2.12.0-3) ... 14119s dpkg: libgdbm-compat4:armhf: dependency problems, but removing anyway as you requested: 14119s libperl5.38:armhf depends on libgdbm-compat4 (>= 1.18-3). 14119s 14119s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 14119s Removing libgdbm-compat4:armhf (1.23-5) ... 14119s dpkg: libgdbm6:armhf: dependency problems, but removing anyway as you requested: 14119s libperl5.38:armhf depends on libgdbm6 (>= 1.21). 14119s 14119s Removing libgdbm6:armhf (1.23-5) ... 14119s Selecting previously unselected package libgdbm6t64:armhf. 14119s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58577 files and directories currently installed.) 14119s Preparing to unpack .../libgdbm6t64_1.23-5.1_armhf.deb ... 14119s Unpacking libgdbm6t64:armhf (1.23-5.1) ... 14119s Selecting previously unselected package libgdbm-compat4t64:armhf. 14119s Preparing to unpack .../libgdbm-compat4t64_1.23-5.1_armhf.deb ... 14119s Unpacking libgdbm-compat4t64:armhf (1.23-5.1) ... 14119s dpkg: libperl5.38:armhf: dependency problems, but removing anyway as you requested: 14119s perl depends on libperl5.38 (= 5.38.2-3). 14119s 14119s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 14119s Removing libperl5.38:armhf (5.38.2-3) ... 14120s Selecting previously unselected package libperl5.38t64:armhf. 14120s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58070 files and directories currently installed.) 14120s Preparing to unpack .../libperl5.38t64_5.38.2-3.2_armhf.deb ... 14120s Unpacking libperl5.38t64:armhf (5.38.2-3.2) ... 14120s Preparing to unpack .../perl_5.38.2-3.2_armhf.deb ... 14120s Unpacking perl (5.38.2-3.2) over (5.38.2-3) ... 14120s dpkg: libdb5.3:armhf: dependency problems, but removing anyway as you requested: 14120s libpython3.11-stdlib:armhf depends on libdb5.3. 14120s libpam-modules:armhf depends on libdb5.3. 14120s iproute2 depends on libdb5.3. 14120s apt-utils depends on libdb5.3. 14120s 14121s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 14121s Removing libdb5.3:armhf (5.3.28+dfsg2-4) ... 14121s Selecting previously unselected package libdb5.3t64:armhf. 14121s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58583 files and directories currently installed.) 14121s Preparing to unpack .../libdb5.3t64_5.3.28+dfsg2-5build1_armhf.deb ... 14121s Unpacking libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 14121s Preparing to unpack .../libpython3.11-stdlib_3.11.8-1build4_armhf.deb ... 14121s Unpacking libpython3.11-stdlib:armhf (3.11.8-1build4) over (3.11.8-1) ... 14121s Preparing to unpack .../keyboxd_2.4.4-2ubuntu15_armhf.deb ... 14121s Unpacking keyboxd (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14122s dpkg: libnpth0:armhf: dependency problems, but removing anyway as you requested: 14122s gpgv depends on libnpth0 (>= 0.90). 14122s gpgsm depends on libnpth0 (>= 0.90). 14122s gpg-agent depends on libnpth0 (>= 0.90). 14122s gpg depends on libnpth0 (>= 0.90). 14122s dirmngr depends on libnpth0 (>= 0.90). 14122s 14122s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 14122s Removing libnpth0:armhf (1.6-3build2) ... 14122s Selecting previously unselected package libnpth0t64:armhf. 14122s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58582 files and directories currently installed.) 14122s Preparing to unpack .../libnpth0t64_1.6-3.1_armhf.deb ... 14122s Unpacking libnpth0t64:armhf (1.6-3.1) ... 14122s Setting up libnpth0t64:armhf (1.6-3.1) ... 14122s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 14122s Preparing to unpack .../gpgv_2.4.4-2ubuntu15_armhf.deb ... 14122s Unpacking gpgv (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14122s Setting up gpgv (2.4.4-2ubuntu15) ... 14122s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 14122s Preparing to unpack .../gpg_2.4.4-2ubuntu15_armhf.deb ... 14122s Unpacking gpg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14123s Preparing to unpack .../gpg-wks-client_2.4.4-2ubuntu15_armhf.deb ... 14123s Unpacking gpg-wks-client (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14123s Preparing to unpack .../gnupg-utils_2.4.4-2ubuntu15_armhf.deb ... 14123s Unpacking gnupg-utils (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14123s Preparing to unpack .../gpg-agent_2.4.4-2ubuntu15_armhf.deb ... 14123s Unpacking gpg-agent (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14123s Preparing to unpack .../gpgsm_2.4.4-2ubuntu15_armhf.deb ... 14123s Unpacking gpgsm (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14123s dpkg: libreadline8:armhf: dependency problems, but removing anyway as you requested: 14123s gpgconf depends on libreadline8 (>= 6.0). 14123s gawk depends on libreadline8 (>= 6.0). 14123s fdisk depends on libreadline8 (>= 6.0). 14123s 14123s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 14123s Removing libreadline8:armhf (8.2-3) ... 14123s Selecting previously unselected package libreadline8t64:armhf. 14123s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58576 files and directories currently installed.) 14123s Preparing to unpack .../libreadline8t64_8.2-3.1_armhf.deb ... 14123s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8 to /lib/arm-linux-gnueabihf/libhistory.so.8.usr-is-merged by libreadline8t64' 14123s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8.2 to /lib/arm-linux-gnueabihf/libhistory.so.8.2.usr-is-merged by libreadline8t64' 14123s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8 to /lib/arm-linux-gnueabihf/libreadline.so.8.usr-is-merged by libreadline8t64' 14123s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8.2 to /lib/arm-linux-gnueabihf/libreadline.so.8.2.usr-is-merged by libreadline8t64' 14123s Unpacking libreadline8t64:armhf (8.2-3.1) ... 14124s Setting up libreadline8t64:armhf (8.2-3.1) ... 14124s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 14124s Preparing to unpack .../0-gawk_1%3a5.2.1-2build2_armhf.deb ... 14124s Unpacking gawk (1:5.2.1-2build2) over (1:5.2.1-2) ... 14124s Preparing to unpack .../1-fdisk_2.39.3-9ubuntu2_armhf.deb ... 14124s Unpacking fdisk (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14124s Preparing to unpack .../2-gpgconf_2.4.4-2ubuntu15_armhf.deb ... 14124s Unpacking gpgconf (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14125s Preparing to unpack .../3-dirmngr_2.4.4-2ubuntu15_armhf.deb ... 14125s Unpacking dirmngr (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14125s Preparing to unpack .../4-gnupg_2.4.4-2ubuntu15_all.deb ... 14125s Unpacking gnupg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14125s Preparing to unpack .../5-python3-apt_2.7.6build1_armhf.deb ... 14125s Unpacking python3-apt (2.7.6build1) over (2.7.6) ... 14125s Preparing to unpack .../6-apt-utils_2.7.13ubuntu1_armhf.deb ... 14125s Unpacking apt-utils (2.7.13ubuntu1) over (2.7.12) ... 14126s dpkg: libapt-pkg6.0:armhf: dependency problems, but removing anyway as you requested: 14126s apt depends on libapt-pkg6.0 (>= 2.7.12). 14126s 14126s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58594 files and directories currently installed.) 14126s Removing libapt-pkg6.0:armhf (2.7.12) ... 14126s dpkg: libnettle8:armhf: dependency problems, but removing anyway as you requested: 14126s libhogweed6:armhf depends on libnettle8. 14126s libgnutls30:armhf depends on libnettle8 (>= 3.9~). 14126s libcurl3-gnutls:armhf depends on libnettle8. 14126s 14126s Removing libnettle8:armhf (3.9.1-2) ... 14126s Selecting previously unselected package libapt-pkg6.0t64:armhf. 14126s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58538 files and directories currently installed.) 14126s Preparing to unpack .../libapt-pkg6.0t64_2.7.13ubuntu1_armhf.deb ... 14126s Unpacking libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 14126s Setting up libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 14126s Selecting previously unselected package libnettle8t64:armhf. 14126s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 14126s Preparing to unpack .../libnettle8t64_3.9.1-2.2_armhf.deb ... 14126s Unpacking libnettle8t64:armhf (3.9.1-2.2) ... 14127s Setting up libnettle8t64:armhf (3.9.1-2.2) ... 14127s dpkg: libhogweed6:armhf: dependency problems, but removing anyway as you requested: 14127s libgnutls30:armhf depends on libhogweed6 (>= 3.6). 14127s 14127s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 14127s Removing libhogweed6:armhf (3.9.1-2) ... 14127s Selecting previously unselected package libhogweed6t64:armhf. 14127s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58591 files and directories currently installed.) 14127s Preparing to unpack .../libhogweed6t64_3.9.1-2.2_armhf.deb ... 14127s Unpacking libhogweed6t64:armhf (3.9.1-2.2) ... 14127s Setting up libhogweed6t64:armhf (3.9.1-2.2) ... 14127s dpkg: libgnutls30:armhf: dependency problems, but removing anyway as you requested: 14127s libcurl3-gnutls:armhf depends on libgnutls30 (>= 3.8.2). 14127s apt depends on libgnutls30 (>= 3.8.1). 14127s 14127s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58597 files and directories currently installed.) 14127s Removing libgnutls30:armhf (3.8.3-1ubuntu1) ... 14127s Selecting previously unselected package libgnutls30t64:armhf. 14127s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 14127s Preparing to unpack .../libgnutls30t64_3.8.3-1.1ubuntu2_armhf.deb ... 14127s Unpacking libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 14128s Setting up libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 14128s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 14128s Preparing to unpack .../apt_2.7.13ubuntu1_armhf.deb ... 14128s Unpacking apt (2.7.13ubuntu1) over (2.7.12) ... 14128s Setting up apt (2.7.13ubuntu1) ... 14130s dpkg: libcurl3-gnutls:armhf: dependency problems, but removing anyway as you requested: 14130s libfwupd2:armhf depends on libcurl3-gnutls (>= 7.63.0). 14130s 14130s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 14130s Removing libcurl3-gnutls:armhf (8.5.0-2ubuntu2) ... 14130s Selecting previously unselected package libcurl3t64-gnutls:armhf. 14130s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58609 files and directories currently installed.) 14130s Preparing to unpack .../libcurl3t64-gnutls_8.5.0-2ubuntu7_armhf.deb ... 14130s Unpacking libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 14130s Preparing to unpack .../libfwupd2_1.9.15-1_armhf.deb ... 14130s Unpacking libfwupd2:armhf (1.9.15-1) over (1.9.14-1) ... 14130s dpkg: libpsl5:armhf: dependency problems, but removing anyway as you requested: 14130s wget depends on libpsl5 (>= 0.16.0). 14130s libcurl4:armhf depends on libpsl5 (>= 0.16.0). 14130s 14131s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 14131s Removing libpsl5:armhf (0.21.2-1build1) ... 14131s Selecting previously unselected package libpsl5t64:armhf. 14131s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58611 files and directories currently installed.) 14131s Preparing to unpack .../libpsl5t64_0.21.2-1.1_armhf.deb ... 14131s Unpacking libpsl5t64:armhf (0.21.2-1.1) ... 14131s Preparing to unpack .../wget_1.21.4-1ubuntu2_armhf.deb ... 14131s Unpacking wget (1.21.4-1ubuntu2) over (1.21.4-1ubuntu1) ... 14131s Preparing to unpack .../tnftp_20230507-2build1_armhf.deb ... 14131s Unpacking tnftp (20230507-2build1) over (20230507-2) ... 14131s dpkg: libpcap0.8:armhf: dependency problems, but removing anyway as you requested: 14131s tcpdump depends on libpcap0.8 (>= 1.9.1). 14131s 14131s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58617 files and directories currently installed.) 14131s Removing libpcap0.8:armhf (1.10.4-4ubuntu3) ... 14131s Selecting previously unselected package libpcap0.8t64:armhf. 14131s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58606 files and directories currently installed.) 14131s Preparing to unpack .../0-libpcap0.8t64_1.10.4-4.1ubuntu1_armhf.deb ... 14131s Unpacking libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 14131s Preparing to unpack .../1-tcpdump_4.99.4-3ubuntu2_armhf.deb ... 14131s Unpacking tcpdump (4.99.4-3ubuntu2) over (4.99.4-3ubuntu1) ... 14131s Preparing to unpack .../2-libsystemd-shared_255.4-1ubuntu5_armhf.deb ... 14131s Unpacking libsystemd-shared:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14132s Preparing to unpack .../3-systemd-resolved_255.4-1ubuntu5_armhf.deb ... 14132s Unpacking systemd-resolved (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14132s Preparing to unpack .../4-sudo_1.9.15p5-3ubuntu3_armhf.deb ... 14132s Unpacking sudo (1.9.15p5-3ubuntu3) over (1.9.15p5-3ubuntu1) ... 14132s Preparing to unpack .../5-rsync_3.2.7-1build1_armhf.deb ... 14132s Unpacking rsync (3.2.7-1build1) over (3.2.7-1) ... 14132s Preparing to unpack .../6-python3-cryptography_41.0.7-4build2_armhf.deb ... 14132s Unpacking python3-cryptography (41.0.7-4build2) over (41.0.7-3) ... 14133s Preparing to unpack .../7-openssh-sftp-server_1%3a9.6p1-3ubuntu10_armhf.deb ... 14133s Unpacking openssh-sftp-server (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 14133s Preparing to unpack .../8-openssh-client_1%3a9.6p1-3ubuntu10_armhf.deb ... 14133s Unpacking openssh-client (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 14133s Preparing to unpack .../9-openssh-server_1%3a9.6p1-3ubuntu10_armhf.deb ... 14133s Unpacking openssh-server (1:9.6p1-3ubuntu10) over (1:9.6p1-3ubuntu2) ... 14134s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 14134s Removing linux-headers-generic (6.8.0-11.11+1) ... 14134s Removing linux-headers-6.8.0-11-generic (6.8.0-11.11) ... 14135s dpkg: libssl3:armhf: dependency problems, but removing anyway as you requested: 14135s systemd depends on libssl3 (>= 3.0.0). 14135s libssh-4:armhf depends on libssl3 (>= 3.0.0). 14135s libsasl2-modules:armhf depends on libssl3 (>= 3.0.0). 14135s libsasl2-2:armhf depends on libssl3 (>= 3.0.0). 14135s libnvme1 depends on libssl3 (>= 3.0.0). 14135s libkrb5-3:armhf depends on libssl3 (>= 3.0.0). 14135s libkmod2:armhf depends on libssl3 (>= 3.0.0). 14135s libfido2-1:armhf depends on libssl3 (>= 3.0.0). 14135s libcurl4:armhf depends on libssl3 (>= 3.0.0). 14135s libcryptsetup12:armhf depends on libssl3 (>= 3.0.0). 14135s kmod depends on libssl3 (>= 3.0.0). 14135s dhcpcd-base depends on libssl3 (>= 3.0.0). 14135s bind9-libs:armhf depends on libssl3 (>= 3.0.0). 14135s 14136s Removing libssl3:armhf (3.0.10-1ubuntu4) ... 14136s Selecting previously unselected package libssl3t64:armhf. 14136s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47465 files and directories currently installed.) 14136s Preparing to unpack .../libssl3t64_3.0.13-0ubuntu2_armhf.deb ... 14136s Unpacking libssl3t64:armhf (3.0.13-0ubuntu2) ... 14136s Setting up libssl3t64:armhf (3.0.13-0ubuntu2) ... 14136s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 14136s Preparing to unpack .../libudev1_255.4-1ubuntu5_armhf.deb ... 14136s Unpacking libudev1:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14136s Setting up libudev1:armhf (255.4-1ubuntu5) ... 14136s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 14136s Preparing to unpack .../systemd_255.4-1ubuntu5_armhf.deb ... 14136s Unpacking systemd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14137s Preparing to unpack .../udev_255.4-1ubuntu5_armhf.deb ... 14137s Unpacking udev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14138s Preparing to unpack .../libsystemd0_255.4-1ubuntu5_armhf.deb ... 14138s Unpacking libsystemd0:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14138s Setting up libsystemd0:armhf (255.4-1ubuntu5) ... 14138s Setting up libsystemd-shared:armhf (255.4-1ubuntu5) ... 14138s Setting up systemd-dev (255.4-1ubuntu5) ... 14138s Setting up systemd (255.4-1ubuntu5) ... 14140s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 14140s Preparing to unpack .../systemd-sysv_255.4-1ubuntu5_armhf.deb ... 14140s Unpacking systemd-sysv (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14140s Preparing to unpack .../libnss-systemd_255.4-1ubuntu5_armhf.deb ... 14140s Unpacking libnss-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14140s Preparing to unpack .../libpam-systemd_255.4-1ubuntu5_armhf.deb ... 14140s Unpacking libpam-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 14140s Preparing to unpack .../libpam-modules-bin_1.5.3-5ubuntu3_armhf.deb ... 14140s Unpacking libpam-modules-bin (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 14140s Setting up libpam-modules-bin (1.5.3-5ubuntu3) ... 14141s pam_namespace.service is a disabled or a static unit not running, not starting it. 14141s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47478 files and directories currently installed.) 14141s Preparing to unpack .../libpam-modules_1.5.3-5ubuntu3_armhf.deb ... 14141s Unpacking libpam-modules:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 14142s Setting up libpam-modules:armhf (1.5.3-5ubuntu3) ... 14142s Installing new version of config file /etc/security/namespace.init ... 14142s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 14142s Preparing to unpack .../libpam-runtime_1.5.3-5ubuntu3_all.deb ... 14142s Unpacking libpam-runtime (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 14142s Setting up libpam-runtime (1.5.3-5ubuntu3) ... 14142s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 14142s Preparing to unpack .../0-dbus-user-session_1.14.10-4ubuntu2_armhf.deb ... 14142s Unpacking dbus-user-session (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 14143s Preparing to unpack .../1-libapparmor1_4.0.0-beta3-0ubuntu2_armhf.deb ... 14143s Unpacking libapparmor1:armhf (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 14143s Preparing to unpack .../2-dbus-bin_1.14.10-4ubuntu2_armhf.deb ... 14143s Unpacking dbus-bin (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 14143s Preparing to unpack .../3-dbus-system-bus-common_1.14.10-4ubuntu2_all.deb ... 14143s Unpacking dbus-system-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 14143s Preparing to unpack .../4-dbus_1.14.10-4ubuntu2_armhf.deb ... 14143s Unpacking dbus (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 14143s Preparing to unpack .../5-dbus-daemon_1.14.10-4ubuntu2_armhf.deb ... 14143s Unpacking dbus-daemon (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 14143s Preparing to unpack .../6-libdbus-1-3_1.14.10-4ubuntu2_armhf.deb ... 14143s Unpacking libdbus-1-3:armhf (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 14143s Preparing to unpack .../7-kmod_31+20240202-2ubuntu4_armhf.deb ... 14143s Unpacking kmod (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 14143s dpkg: warning: unable to delete old directory '/lib/modprobe.d': Directory not empty 14143s Preparing to unpack .../8-libkmod2_31+20240202-2ubuntu4_armhf.deb ... 14143s Unpacking libkmod2:armhf (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 14143s Preparing to unpack .../9-libmount1_2.39.3-9ubuntu2_armhf.deb ... 14143s Unpacking libmount1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14143s Setting up libmount1:armhf (2.39.3-9ubuntu2) ... 14144s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 14144s Preparing to unpack .../libseccomp2_2.5.5-1ubuntu2_armhf.deb ... 14144s Unpacking libseccomp2:armhf (2.5.5-1ubuntu2) over (2.5.5-1ubuntu1) ... 14144s Setting up libseccomp2:armhf (2.5.5-1ubuntu2) ... 14144s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 14144s Preparing to unpack .../libuuid1_2.39.3-9ubuntu2_armhf.deb ... 14144s Unpacking libuuid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14144s Setting up libuuid1:armhf (2.39.3-9ubuntu2) ... 14144s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47475 files and directories currently installed.) 14144s Preparing to unpack .../0-libcryptsetup12_2%3a2.7.0-1ubuntu2_armhf.deb ... 14144s Unpacking libcryptsetup12:armhf (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 14144s Preparing to unpack .../1-libfdisk1_2.39.3-9ubuntu2_armhf.deb ... 14144s Unpacking libfdisk1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14144s Preparing to unpack .../2-mount_2.39.3-9ubuntu2_armhf.deb ... 14144s Unpacking mount (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14144s Preparing to unpack .../3-libdevmapper1.02.1_2%3a1.02.185-3ubuntu2_armhf.deb ... 14144s Unpacking libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 14145s Selecting previously unselected package libparted2t64:armhf. 14145s Preparing to unpack .../4-libparted2t64_3.6-3.1build2_armhf.deb ... 14145s Unpacking libparted2t64:armhf (3.6-3.1build2) ... 14145s Preparing to unpack .../5-libsqlite3-0_3.45.1-1ubuntu1_armhf.deb ... 14145s Unpacking libsqlite3-0:armhf (3.45.1-1ubuntu1) over (3.45.1-1) ... 14145s Preparing to unpack .../6-pinentry-curses_1.2.1-3ubuntu4_armhf.deb ... 14145s Unpacking pinentry-curses (1.2.1-3ubuntu4) over (1.2.1-3ubuntu1) ... 14145s Preparing to unpack .../7-libsmartcols1_2.39.3-9ubuntu2_armhf.deb ... 14145s Unpacking libsmartcols1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14145s Setting up libsmartcols1:armhf (2.39.3-9ubuntu2) ... 14145s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47482 files and directories currently installed.) 14145s Preparing to unpack .../0-readline-common_8.2-3.1_all.deb ... 14145s Unpacking readline-common (8.2-3.1) over (8.2-3) ... 14145s Preparing to unpack .../1-python3-yaml_6.0.1-2build1_armhf.deb ... 14146s Unpacking python3-yaml (6.0.1-2build1) over (6.0.1-2) ... 14146s Preparing to unpack .../2-python-apt-common_2.7.6build1_all.deb ... 14146s Unpacking python-apt-common (2.7.6build1) over (2.7.6) ... 14146s Preparing to unpack .../3-python3-setuptools_68.1.2-2ubuntu1_all.deb ... 14146s Unpacking python3-setuptools (68.1.2-2ubuntu1) over (68.1.2-2) ... 14147s Preparing to unpack .../4-python3-pkg-resources_68.1.2-2ubuntu1_all.deb ... 14147s Unpacking python3-pkg-resources (68.1.2-2ubuntu1) over (68.1.2-2) ... 14147s Preparing to unpack .../5-dpkg_1.22.6ubuntu4_armhf.deb ... 14147s Unpacking dpkg (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 14148s Setting up dpkg (1.22.6ubuntu4) ... 14149s Setting up libpython3.12-minimal:armhf (3.12.2-4build3) ... 14149s Setting up libexpat1:armhf (2.6.1-2) ... 14149s Setting up python3.12-minimal (3.12.2-4build3) ... 14152s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 14152s Preparing to unpack .../python3-minimal_3.12.2-0ubuntu1_armhf.deb ... 14152s Unpacking python3-minimal (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 14152s Setting up python3-minimal (3.12.2-0ubuntu1) ... 14152s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 14152s Preparing to unpack .../00-python3_3.12.2-0ubuntu1_armhf.deb ... 14153s Unpacking python3 (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 14153s Preparing to unpack .../01-libpython3-stdlib_3.12.2-0ubuntu1_armhf.deb ... 14153s Unpacking libpython3-stdlib:armhf (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 14153s Preparing to unpack .../02-bsdextrautils_2.39.3-9ubuntu2_armhf.deb ... 14153s Unpacking bsdextrautils (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14153s Preparing to unpack .../03-groff-base_1.23.0-3build1_armhf.deb ... 14153s Unpacking groff-base (1.23.0-3build1) over (1.23.0-3) ... 14153s Preparing to unpack .../04-libsasl2-2_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 14153s Unpacking libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 14153s Preparing to unpack .../05-libjson-glib-1.0-common_1.8.0-2build1_all.deb ... 14153s Unpacking libjson-glib-1.0-common (1.8.0-2build1) over (1.8.0-2) ... 14153s Preparing to unpack .../06-libjson-glib-1.0-0_1.8.0-2build1_armhf.deb ... 14153s Unpacking libjson-glib-1.0-0:armhf (1.8.0-2build1) over (1.8.0-2) ... 14154s Preparing to unpack .../07-libxml2_2.9.14+dfsg-1.3ubuntu2_armhf.deb ... 14154s Unpacking libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) over (2.9.14+dfsg-1.3ubuntu1) ... 14154s Preparing to unpack .../08-libgudev-1.0-0_1%3a238-3ubuntu2_armhf.deb ... 14154s Unpacking libgudev-1.0-0:armhf (1:238-3ubuntu2) over (1:238-3) ... 14154s Preparing to unpack .../09-libusb-1.0-0_2%3a1.0.27-1_armhf.deb ... 14154s Unpacking libusb-1.0-0:armhf (2:1.0.27-1) over (2:1.0.26-1) ... 14154s Preparing to unpack .../10-libgusb2_0.4.8-1build1_armhf.deb ... 14154s Unpacking libgusb2:armhf (0.4.8-1build1) over (0.4.8-1) ... 14154s Preparing to unpack .../11-libmbim-proxy_1.31.2-0ubuntu2_armhf.deb ... 14154s Unpacking libmbim-proxy (1.31.2-0ubuntu2) over (1.30.0-1) ... 14154s Preparing to unpack .../12-libmbim-glib4_1.31.2-0ubuntu2_armhf.deb ... 14154s Unpacking libmbim-glib4:armhf (1.31.2-0ubuntu2) over (1.30.0-1) ... 14154s Preparing to unpack .../13-libmm-glib0_1.23.4-0ubuntu1_armhf.deb ... 14154s Unpacking libmm-glib0:armhf (1.23.4-0ubuntu1) over (1.22.0-3) ... 14155s Preparing to unpack .../14-libpolkit-agent-1-0_124-1ubuntu1_armhf.deb ... 14155s Unpacking libpolkit-agent-1-0:armhf (124-1ubuntu1) over (124-1) ... 14155s Preparing to unpack .../15-libpolkit-gobject-1-0_124-1ubuntu1_armhf.deb ... 14155s Unpacking libpolkit-gobject-1-0:armhf (124-1ubuntu1) over (124-1) ... 14155s Preparing to unpack .../16-libqmi-proxy_1.35.2-0ubuntu1_armhf.deb ... 14155s Unpacking libqmi-proxy (1.35.2-0ubuntu1) over (1.34.0-2) ... 14155s Preparing to unpack .../17-libqrtr-glib0_1.2.2-1ubuntu3_armhf.deb ... 14155s Unpacking libqrtr-glib0:armhf (1.2.2-1ubuntu3) over (1.2.2-1ubuntu2) ... 14155s Preparing to unpack .../18-libqmi-glib5_1.35.2-0ubuntu1_armhf.deb ... 14155s Unpacking libqmi-glib5:armhf (1.35.2-0ubuntu1) over (1.34.0-2) ... 14156s Preparing to unpack .../19-libxmlb2_0.3.15-1build1_armhf.deb ... 14156s Unpacking libxmlb2:armhf (0.3.15-1build1) over (0.3.15-1) ... 14156s Preparing to unpack .../20-shared-mime-info_2.4-1build1_armhf.deb ... 14156s Unpacking shared-mime-info (2.4-1build1) over (2.4-1) ... 14156s Preparing to unpack .../21-libbrotli1_1.1.0-2build1_armhf.deb ... 14156s Unpacking libbrotli1:armhf (1.1.0-2build1) over (1.1.0-2) ... 14156s Preparing to unpack .../22-libgssapi-krb5-2_1.20.1-5.1build3_armhf.deb ... 14156s Unpacking libgssapi-krb5-2:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 14156s Preparing to unpack .../23-libkrb5-3_1.20.1-5.1build3_armhf.deb ... 14156s Unpacking libkrb5-3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 14156s Preparing to unpack .../24-libkrb5support0_1.20.1-5.1build3_armhf.deb ... 14156s Unpacking libkrb5support0:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 14156s Preparing to unpack .../25-libk5crypto3_1.20.1-5.1build3_armhf.deb ... 14157s Unpacking libk5crypto3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 14157s Preparing to unpack .../26-libcom-err2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 14157s Unpacking libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 14157s Preparing to unpack .../27-libnghttp2-14_1.59.0-1build1_armhf.deb ... 14157s Unpacking libnghttp2-14:armhf (1.59.0-1build1) over (1.59.0-1) ... 14157s Preparing to unpack .../28-libssh-4_0.10.6-2build1_armhf.deb ... 14157s Unpacking libssh-4:armhf (0.10.6-2build1) over (0.10.6-2) ... 14157s Preparing to unpack .../29-libibverbs1_50.0-2build1_armhf.deb ... 14157s Unpacking libibverbs1:armhf (50.0-2build1) over (50.0-2) ... 14157s Preparing to unpack .../30-libfido2-1_1.14.0-1build1_armhf.deb ... 14157s Unpacking libfido2-1:armhf (1.14.0-1build1) over (1.14.0-1) ... 14157s Preparing to unpack .../31-coreutils_9.4-3ubuntu3_armhf.deb ... 14157s Unpacking coreutils (9.4-3ubuntu3) over (9.4-2ubuntu4) ... 14158s Setting up coreutils (9.4-3ubuntu3) ... 14158s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 14158s Preparing to unpack .../debianutils_5.17_armhf.deb ... 14158s Unpacking debianutils (5.17) over (5.16) ... 14158s Setting up debianutils (5.17) ... 14158s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 14158s Preparing to unpack .../util-linux_2.39.3-9ubuntu2_armhf.deb ... 14158s Unpacking util-linux (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14159s Setting up util-linux (2.39.3-9ubuntu2) ... 14160s fstrim.service is a disabled or a static unit not running, not starting it. 14160s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 14161s Preparing to unpack .../libc-bin_2.39-0ubuntu6_armhf.deb ... 14161s Unpacking libc-bin (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 14161s Setting up libc-bin (2.39-0ubuntu6) ... 14161s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47481 files and directories currently installed.) 14161s Removing libatm1:armhf (1:2.5.1-5) ... 14161s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 14161s Preparing to unpack .../curl_8.5.0-2ubuntu7_armhf.deb ... 14161s Unpacking curl (8.5.0-2ubuntu7) over (8.5.0-2ubuntu2) ... 14161s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 14161s Removing libcurl4:armhf (8.5.0-2ubuntu2) ... 14162s Selecting previously unselected package libcurl4t64:armhf. 14162s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47471 files and directories currently installed.) 14162s Preparing to unpack .../libcurl4t64_8.5.0-2ubuntu7_armhf.deb ... 14162s Unpacking libcurl4t64:armhf (8.5.0-2ubuntu7) ... 14162s Preparing to unpack .../libbpf1_1%3a1.3.0-2build1_armhf.deb ... 14162s Unpacking libbpf1:armhf (1:1.3.0-2build1) over (1:1.3.0-2) ... 14162s Preparing to unpack .../iproute2_6.1.0-1ubuntu5_armhf.deb ... 14162s Unpacking iproute2 (6.1.0-1ubuntu5) over (6.1.0-1ubuntu2) ... 14163s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47477 files and directories currently installed.) 14163s Removing libelf1:armhf (0.190-1) ... 14163s Selecting previously unselected package libelf1t64:armhf. 14163s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47472 files and directories currently installed.) 14163s Preparing to unpack .../libelf1t64_0.190-1.1build2_armhf.deb ... 14163s Unpacking libelf1t64:armhf (0.190-1.1build2) ... 14163s Preparing to unpack .../lsof_4.95.0-1build2_armhf.deb ... 14163s Unpacking lsof (4.95.0-1build2) over (4.95.0-1build1) ... 14163s Preparing to unpack .../libnsl2_1.3.0-3build2_armhf.deb ... 14163s Unpacking libnsl2:armhf (1.3.0-3build2) over (1.3.0-3) ... 14163s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47477 files and directories currently installed.) 14163s Removing libtirpc3:armhf (1.3.4+ds-1build1) ... 14164s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47471 files and directories currently installed.) 14164s Preparing to unpack .../0-libtirpc-common_1.3.4+ds-1.1_all.deb ... 14164s Unpacking libtirpc-common (1.3.4+ds-1.1) over (1.3.4+ds-1build1) ... 14164s Selecting previously unselected package libtirpc3t64:armhf. 14164s Preparing to unpack .../1-libtirpc3t64_1.3.4+ds-1.1_armhf.deb ... 14164s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3 to /lib/arm-linux-gnueabihf/libtirpc.so.3.usr-is-merged by libtirpc3t64' 14164s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0 to /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' 14164s Unpacking libtirpc3t64:armhf (1.3.4+ds-1.1) ... 14164s Preparing to unpack .../2-libblockdev-utils3_3.1.0-1build1_armhf.deb ... 14164s Unpacking libblockdev-utils3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14164s Preparing to unpack .../3-libblockdev-fs3_3.1.0-1build1_armhf.deb ... 14164s Unpacking libblockdev-fs3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14164s Preparing to unpack .../4-logsave_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 14164s Unpacking logsave (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 14164s Preparing to unpack .../5-ubuntu-minimal_1.536build1_armhf.deb ... 14164s Unpacking ubuntu-minimal (1.536build1) over (1.536) ... 14164s Preparing to unpack .../6-initramfs-tools_0.142ubuntu22_all.deb ... 14165s Unpacking initramfs-tools (0.142ubuntu22) over (0.142ubuntu20) ... 14165s Preparing to unpack .../7-initramfs-tools-core_0.142ubuntu22_all.deb ... 14165s Unpacking initramfs-tools-core (0.142ubuntu22) over (0.142ubuntu20) ... 14165s Preparing to unpack .../8-e2fsprogs-l10n_1.47.0-2.4~exp1ubuntu2_all.deb ... 14165s Unpacking e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 14165s dpkg: libext2fs2:armhf: dependency problems, but removing anyway as you requested: 14165s e2fsprogs depends on libext2fs2 (= 1.47.0-2ubuntu1). 14165s btrfs-progs depends on libext2fs2 (>= 1.42). 14165s 14165s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47483 files and directories currently installed.) 14165s Removing libext2fs2:armhf (1.47.0-2ubuntu1) ... 14165s Selecting previously unselected package libext2fs2t64:armhf. 14165s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47476 files and directories currently installed.) 14165s Preparing to unpack .../libext2fs2t64_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 14165s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2 to /lib/arm-linux-gnueabihf/libe2p.so.2.usr-is-merged by libext2fs2t64' 14166s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2.3 to /lib/arm-linux-gnueabihf/libe2p.so.2.3.usr-is-merged by libext2fs2t64' 14166s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2 to /lib/arm-linux-gnueabihf/libext2fs.so.2.usr-is-merged by libext2fs2t64' 14166s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2.4 to /lib/arm-linux-gnueabihf/libext2fs.so.2.4.usr-is-merged by libext2fs2t64' 14166s Unpacking libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 14166s Setting up libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) ... 14166s Setting up libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 14166s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47492 files and directories currently installed.) 14166s Preparing to unpack .../00-e2fsprogs_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 14166s Unpacking e2fsprogs (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 14166s Preparing to unpack .../01-btrfs-progs_6.6.3-1.1build1_armhf.deb ... 14166s Unpacking btrfs-progs (6.6.3-1.1build1) over (6.6.3-1.1) ... 14166s Preparing to unpack .../02-dhcpcd-base_1%3a10.0.6-1ubuntu2_armhf.deb ... 14166s Unpacking dhcpcd-base (1:10.0.6-1ubuntu2) over (1:10.0.6-1ubuntu1) ... 14166s Preparing to unpack .../03-eject_2.39.3-9ubuntu2_armhf.deb ... 14166s Unpacking eject (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14166s Preparing to unpack .../04-locales_2.39-0ubuntu6_all.deb ... 14167s Unpacking locales (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 14167s Selecting previously unselected package libnetplan1:armhf. 14167s Preparing to unpack .../05-libnetplan1_1.0-1_armhf.deb ... 14167s Unpacking libnetplan1:armhf (1.0-1) ... 14167s Preparing to unpack .../06-python3-netplan_1.0-1_armhf.deb ... 14167s Unpacking python3-netplan (1.0-1) over (0.107.1-3) ... 14167s Preparing to unpack .../07-netplan-generator_1.0-1_armhf.deb ... 14167s Adding 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 14167s Unpacking netplan-generator (1.0-1) over (0.107.1-3) ... 14167s Preparing to unpack .../08-python3-dbus_1.3.2-5build2_armhf.deb ... 14168s Unpacking python3-dbus (1.3.2-5build2) over (1.3.2-5build1) ... 14168s Preparing to unpack .../09-netplan.io_1.0-1_armhf.deb ... 14168s Unpacking netplan.io (1.0-1) over (0.107.1-3) ... 14168s Preparing to unpack .../10-vim-tiny_2%3a9.1.0016-1ubuntu5_armhf.deb ... 14168s Unpacking vim-tiny (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 14168s Preparing to unpack .../11-vim-common_2%3a9.1.0016-1ubuntu5_all.deb ... 14168s Unpacking vim-common (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 14168s Preparing to unpack .../12-initramfs-tools-bin_0.142ubuntu22_armhf.deb ... 14168s Unpacking initramfs-tools-bin (0.142ubuntu22) over (0.142ubuntu20) ... 14168s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47496 files and directories currently installed.) 14168s Removing libreiserfscore0 (1:3.6.27-7) ... 14168s Selecting previously unselected package libreiserfscore0t64. 14168s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 14168s Preparing to unpack .../libreiserfscore0t64_1%3a3.6.27-7.1_armhf.deb ... 14168s Unpacking libreiserfscore0t64 (1:3.6.27-7.1) ... 14169s Preparing to unpack .../file_1%3a5.45-3_armhf.deb ... 14169s Unpacking file (1:5.45-3) over (1:5.45-2) ... 14169s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47497 files and directories currently installed.) 14169s Removing libmagic1:armhf (1:5.45-2) ... 14169s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47487 files and directories currently installed.) 14169s Preparing to unpack .../libmagic-mgc_1%3a5.45-3_armhf.deb ... 14169s Unpacking libmagic-mgc (1:5.45-3) over (1:5.45-2) ... 14169s Selecting previously unselected package libmagic1t64:armhf. 14169s Preparing to unpack .../libmagic1t64_1%3a5.45-3_armhf.deb ... 14169s Unpacking libmagic1t64:armhf (1:5.45-3) ... 14169s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47498 files and directories currently installed.) 14169s Removing libnetplan0:armhf (0.107.1-3) ... 14169s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47494 files and directories currently installed.) 14169s Preparing to unpack .../libblockdev-nvme3_3.1.0-1build1_armhf.deb ... 14169s Unpacking libblockdev-nvme3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47494 files and directories currently installed.) 14170s Removing libnvme1 (1.8-2) ... 14170s Selecting previously unselected package libnvme1t64. 14170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47487 files and directories currently installed.) 14170s Preparing to unpack .../libnvme1t64_1.8-3_armhf.deb ... 14170s Unpacking libnvme1t64 (1.8-3) ... 14170s Preparing to unpack .../libplymouth5_24.004.60-1ubuntu5_armhf.deb ... 14170s Unpacking libplymouth5:armhf (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 14170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47495 files and directories currently installed.) 14170s Removing libpng16-16:armhf (1.6.43-1) ... 14170s Selecting previously unselected package libpng16-16t64:armhf. 14170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47485 files and directories currently installed.) 14170s Preparing to unpack .../libpng16-16t64_1.6.43-3_armhf.deb ... 14170s Unpacking libpng16-16t64:armhf (1.6.43-3) ... 14170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47496 files and directories currently installed.) 14170s Removing libudisks2-0:armhf (2.10.1-1ubuntu2) ... 14170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 14170s Preparing to unpack .../bind9-host_1%3a9.18.24-0ubuntu3_armhf.deb ... 14170s Unpacking bind9-host (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 14170s Preparing to unpack .../bind9-dnsutils_1%3a9.18.24-0ubuntu3_armhf.deb ... 14170s Unpacking bind9-dnsutils (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 14171s Preparing to unpack .../bind9-libs_1%3a9.18.24-0ubuntu3_armhf.deb ... 14171s Unpacking bind9-libs:armhf (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 14171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47491 files and directories currently installed.) 14171s Removing libuv1:armhf (1.48.0-1) ... 14171s Selecting previously unselected package libuv1t64:armhf. 14171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47486 files and directories currently installed.) 14171s Preparing to unpack .../libuv1t64_1.48.0-1.1_armhf.deb ... 14171s Unpacking libuv1t64:armhf (1.48.0-1.1) ... 14171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47492 files and directories currently installed.) 14171s Removing python3-distutils (3.11.5-1) ... 14171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 14171s Preparing to unpack .../uuid-runtime_2.39.3-9ubuntu2_armhf.deb ... 14171s Unpacking uuid-runtime (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 14171s Preparing to unpack .../libdebconfclient0_0.271ubuntu2_armhf.deb ... 14171s Unpacking libdebconfclient0:armhf (0.271ubuntu2) over (0.271ubuntu1) ... 14171s Setting up libdebconfclient0:armhf (0.271ubuntu2) ... 14171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 14171s Preparing to unpack .../libsemanage-common_3.5-1build4_all.deb ... 14171s Unpacking libsemanage-common (3.5-1build4) over (3.5-1build2) ... 14172s Setting up libsemanage-common (3.5-1build4) ... 14172s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 14172s Preparing to unpack .../libsemanage2_3.5-1build4_armhf.deb ... 14172s Unpacking libsemanage2:armhf (3.5-1build4) over (3.5-1build2) ... 14172s Setting up libsemanage2:armhf (3.5-1build4) ... 14172s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 14172s Preparing to unpack .../install-info_7.1-3build1_armhf.deb ... 14172s Unpacking install-info (7.1-3build1) over (7.1-3) ... 14172s Setting up install-info (7.1-3build1) ... 14172s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47437 files and directories currently installed.) 14172s Preparing to unpack .../00-gcc-13-base_13.2.0-19ubuntu1_armhf.deb ... 14172s Unpacking gcc-13-base:armhf (13.2.0-19ubuntu1) over (13.2.0-17ubuntu2) ... 14172s Preparing to unpack .../01-libss2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 14172s Unpacking libss2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 14172s Preparing to unpack .../02-dmsetup_2%3a1.02.185-3ubuntu2_armhf.deb ... 14172s Unpacking dmsetup (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 14172s Preparing to unpack .../03-gir1.2-girepository-2.0_1.79.1-1ubuntu6_armhf.deb ... 14172s Unpacking gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 14173s Preparing to unpack .../04-gir1.2-glib-2.0_2.79.3-3ubuntu5_armhf.deb ... 14173s Unpacking gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 14173s Preparing to unpack .../05-libgirepository-1.0-1_1.79.1-1ubuntu6_armhf.deb ... 14173s Unpacking libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 14173s Preparing to unpack .../06-krb5-locales_1.20.1-5.1build3_all.deb ... 14173s Unpacking krb5-locales (1.20.1-5.1build3) over (1.20.1-5build1) ... 14173s Preparing to unpack .../07-libbsd0_0.12.1-1_armhf.deb ... 14173s Unpacking libbsd0:armhf (0.12.1-1) over (0.11.8-1) ... 14173s Preparing to unpack .../08-libglib2.0-data_2.79.3-3ubuntu5_all.deb ... 14173s Unpacking libglib2.0-data (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 14173s Preparing to unpack .../09-libslang2_2.3.3-3build1_armhf.deb ... 14173s Unpacking libslang2:armhf (2.3.3-3build1) over (2.3.3-3) ... 14173s Preparing to unpack .../10-python3-gi_3.47.0-3build1_armhf.deb ... 14173s Unpacking python3-gi (3.47.0-3build1) over (3.47.0-3) ... 14173s Selecting previously unselected package xdg-user-dirs. 14173s Preparing to unpack .../11-xdg-user-dirs_0.18-1_armhf.deb ... 14173s Unpacking xdg-user-dirs (0.18-1) ... 14173s Preparing to unpack .../12-xxd_2%3a9.1.0016-1ubuntu5_armhf.deb ... 14173s Unpacking xxd (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 14174s Preparing to unpack .../13-apparmor_4.0.0-beta3-0ubuntu2_armhf.deb ... 14175s Unpacking apparmor (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 14176s Preparing to unpack .../14-ftp_20230507-2build1_all.deb ... 14176s Unpacking ftp (20230507-2build1) over (20230507-2) ... 14176s Preparing to unpack .../15-inetutils-telnet_2%3a2.5-3ubuntu3_armhf.deb ... 14176s Unpacking inetutils-telnet (2:2.5-3ubuntu3) over (2:2.5-3ubuntu1) ... 14176s Preparing to unpack .../16-info_7.1-3build1_armhf.deb ... 14176s Unpacking info (7.1-3build1) over (7.1-3) ... 14176s Preparing to unpack .../17-libxmuu1_2%3a1.1.3-3build1_armhf.deb ... 14176s Unpacking libxmuu1:armhf (2:1.1.3-3build1) over (2:1.1.3-3) ... 14176s Preparing to unpack .../18-lshw_02.19.git.2021.06.19.996aaad9c7-2build2_armhf.deb ... 14176s Unpacking lshw (02.19.git.2021.06.19.996aaad9c7-2build2) over (02.19.git.2021.06.19.996aaad9c7-2build1) ... 14177s Preparing to unpack .../19-mtr-tiny_0.95-1.1build1_armhf.deb ... 14177s Unpacking mtr-tiny (0.95-1.1build1) over (0.95-1.1) ... 14177s Preparing to unpack .../20-plymouth-theme-ubuntu-text_24.004.60-1ubuntu5_armhf.deb ... 14177s Unpacking plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 14177s Preparing to unpack .../21-plymouth_24.004.60-1ubuntu5_armhf.deb ... 14177s Unpacking plymouth (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 14177s Preparing to unpack .../22-psmisc_23.7-1_armhf.deb ... 14177s Unpacking psmisc (23.7-1) over (23.6-2) ... 14177s Preparing to unpack .../23-telnet_0.17+2.5-3ubuntu3_all.deb ... 14177s Unpacking telnet (0.17+2.5-3ubuntu3) over (0.17+2.5-3ubuntu1) ... 14177s Preparing to unpack .../24-xz-utils_5.6.0-0.2_armhf.deb ... 14177s Unpacking xz-utils (5.6.0-0.2) over (5.4.5-0.3) ... 14177s Preparing to unpack .../25-ubuntu-standard_1.536build1_armhf.deb ... 14177s Unpacking ubuntu-standard (1.536build1) over (1.536) ... 14178s Preparing to unpack .../26-usb.ids_2024.03.18-1_all.deb ... 14178s Unpacking usb.ids (2024.03.18-1) over (2024.01.30-1) ... 14178s Preparing to unpack .../27-libctf-nobfd0_2.42-4ubuntu1_armhf.deb ... 14178s Unpacking libctf-nobfd0:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 14178s Preparing to unpack .../28-libctf0_2.42-4ubuntu1_armhf.deb ... 14178s Unpacking libctf0:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 14178s Preparing to unpack .../29-binutils-arm-linux-gnueabihf_2.42-4ubuntu1_armhf.deb ... 14178s Unpacking binutils-arm-linux-gnueabihf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 14178s Preparing to unpack .../30-libbinutils_2.42-4ubuntu1_armhf.deb ... 14178s Unpacking libbinutils:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 14178s Preparing to unpack .../31-binutils_2.42-4ubuntu1_armhf.deb ... 14178s Unpacking binutils (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 14178s Preparing to unpack .../32-binutils-common_2.42-4ubuntu1_armhf.deb ... 14178s Unpacking binutils-common:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 14178s Preparing to unpack .../33-libsframe1_2.42-4ubuntu1_armhf.deb ... 14178s Unpacking libsframe1:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 14178s Preparing to unpack .../34-bolt_0.9.6-2build1_armhf.deb ... 14178s Unpacking bolt (0.9.6-2build1) over (0.9.6-2) ... 14179s Preparing to unpack .../35-cryptsetup-bin_2%3a2.7.0-1ubuntu2_armhf.deb ... 14179s Unpacking cryptsetup-bin (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 14179s Preparing to unpack .../36-dpkg-dev_1.22.6ubuntu4_all.deb ... 14179s Unpacking dpkg-dev (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 14179s Preparing to unpack .../37-libdpkg-perl_1.22.6ubuntu4_all.deb ... 14179s Unpacking libdpkg-perl (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 14180s Preparing to unpack .../38-gnupg-l10n_2.4.4-2ubuntu15_all.deb ... 14180s Unpacking gnupg-l10n (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 14180s Preparing to unpack .../39-ibverbs-providers_50.0-2build1_armhf.deb ... 14180s Unpacking ibverbs-providers:armhf (50.0-2build1) over (50.0-2) ... 14180s Preparing to unpack .../40-jq_1.7.1-3_armhf.deb ... 14180s Unpacking jq (1.7.1-3) over (1.7.1-2) ... 14180s Preparing to unpack .../41-libjq1_1.7.1-3_armhf.deb ... 14180s Unpacking libjq1:armhf (1.7.1-3) over (1.7.1-2) ... 14180s Selecting previously unselected package libatm1t64:armhf. 14180s Preparing to unpack .../42-libatm1t64_1%3a2.5.1-5.1_armhf.deb ... 14180s Unpacking libatm1t64:armhf (1:2.5.1-5.1) ... 14180s Preparing to unpack .../43-libblockdev-crypto3_3.1.0-1build1_armhf.deb ... 14180s Unpacking libblockdev-crypto3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14180s Preparing to unpack .../44-libblockdev-loop3_3.1.0-1build1_armhf.deb ... 14180s Unpacking libblockdev-loop3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14180s Preparing to unpack .../45-libblockdev-mdraid3_3.1.0-1build1_armhf.deb ... 14180s Unpacking libblockdev-mdraid3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14180s Preparing to unpack .../46-libblockdev-part3_3.1.0-1build1_armhf.deb ... 14180s Unpacking libblockdev-part3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14180s Preparing to unpack .../47-libblockdev-swap3_3.1.0-1build1_armhf.deb ... 14180s Unpacking libblockdev-swap3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14181s Preparing to unpack .../48-libblockdev3_3.1.0-1build1_armhf.deb ... 14181s Unpacking libblockdev3:armhf (3.1.0-1build1) over (3.1.0-1) ... 14181s Preparing to unpack .../49-libevent-core-2.1-7_2.1.12-stable-9build1_armhf.deb ... 14181s Unpacking libevent-core-2.1-7:armhf (2.1.12-stable-9build1) over (2.1.12-stable-9) ... 14181s Preparing to unpack .../50-libftdi1-2_1.5-6build4_armhf.deb ... 14181s Unpacking libftdi1-2:armhf (1.5-6build4) over (1.5-6build3) ... 14181s Preparing to unpack .../51-libldap-common_2.6.7+dfsg-1~exp1ubuntu6_all.deb ... 14181s Unpacking libldap-common (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 14181s Preparing to unpack .../52-libsasl2-modules_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 14181s Unpacking libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 14181s Preparing to unpack .../53-python3-lib2to3_3.12.2-3ubuntu2_all.deb ... 14181s Unpacking python3-lib2to3 (3.12.2-3ubuntu2) over (3.11.5-1) ... 14181s Preparing to unpack .../54-python3-markupsafe_2.1.5-1build1_armhf.deb ... 14181s Unpacking python3-markupsafe (2.1.5-1build1) over (2.1.5-1) ... 14181s Preparing to unpack .../55-python3-openssl_24.0.0-4_all.deb ... 14182s Unpacking python3-openssl (24.0.0-4) over (23.2.0-1) ... 14182s Preparing to unpack .../56-python3-pyrsistent_0.20.0-1build1_armhf.deb ... 14182s Unpacking python3-pyrsistent:armhf (0.20.0-1build1) over (0.20.0-1) ... 14182s Preparing to unpack .../57-python3-typing-extensions_4.10.0-1_all.deb ... 14182s Unpacking python3-typing-extensions (4.10.0-1) over (4.9.0-1) ... 14182s Preparing to unpack .../58-kpartx_0.9.4-5ubuntu5_armhf.deb ... 14182s Unpacking kpartx (0.9.4-5ubuntu5) over (0.9.4-5ubuntu3) ... 14182s Setting up pinentry-curses (1.2.1-3ubuntu4) ... 14182s Setting up libtext-iconv-perl:armhf (1.7-8build2) ... 14182s Setting up libtext-charwidth-perl:armhf (0.04-11build2) ... 14182s Setting up libibverbs1:armhf (50.0-2build1) ... 14182s Setting up systemd-sysv (255.4-1ubuntu5) ... 14182s Setting up libapparmor1:armhf (4.0.0-beta3-0ubuntu2) ... 14182s Setting up libatm1t64:armhf (1:2.5.1-5.1) ... 14182s Setting up libgdbm6t64:armhf (1.23-5.1) ... 14182s Setting up bsdextrautils (2.39.3-9ubuntu2) ... 14182s Setting up libgdbm-compat4t64:armhf (1.23-5.1) ... 14182s Setting up xdg-user-dirs (0.18-1) ... 14182s Setting up ibverbs-providers:armhf (50.0-2build1) ... 14183s Setting up libmagic-mgc (1:5.45-3) ... 14183s Setting up gawk (1:5.2.1-2build2) ... 14183s Setting up psmisc (23.7-1) ... 14183s Setting up libjq1:armhf (1.7.1-3) ... 14183s Setting up libtirpc-common (1.3.4+ds-1.1) ... 14183s Setting up libbrotli1:armhf (1.1.0-2build1) ... 14183s Setting up libsqlite3-0:armhf (3.45.1-1ubuntu1) ... 14183s Setting up libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) ... 14183s Setting up libuv1t64:armhf (1.48.0-1.1) ... 14183s Setting up libmagic1t64:armhf (1:5.45-3) ... 14183s Setting up binutils-common:armhf (2.42-4ubuntu1) ... 14183s Setting up libpsl5t64:armhf (0.21.2-1.1) ... 14183s Setting up libnghttp2-14:armhf (1.59.0-1build1) ... 14183s Setting up libreiserfscore0t64 (1:3.6.27-7.1) ... 14183s Setting up libctf-nobfd0:armhf (2.42-4ubuntu1) ... 14183s Setting up libnss-systemd:armhf (255.4-1ubuntu5) ... 14183s Setting up krb5-locales (1.20.1-5.1build3) ... 14183s Setting up file (1:5.45-3) ... 14183s Setting up lshw (02.19.git.2021.06.19.996aaad9c7-2build2) ... 14183s Setting up locales (2.39-0ubuntu6) ... 14184s Generating locales (this might take a while)... 14190s en_US.UTF-8... done 14190s Generation complete. 14190s Setting up libldap-common (2.6.7+dfsg-1~exp1ubuntu6) ... 14190s Setting up xxd (2:9.1.0016-1ubuntu5) ... 14190s Setting up libsframe1:armhf (2.42-4ubuntu1) ... 14190s Setting up libelf1t64:armhf (0.190-1.1build2) ... 14190s Setting up libkrb5support0:armhf (1.20.1-5.1build3) ... 14190s Setting up eject (2.39.3-9ubuntu2) ... 14190s Setting up apparmor (4.0.0-beta3-0ubuntu2) ... 14190s Installing new version of config file /etc/apparmor.d/abstractions/authentication ... 14190s Installing new version of config file /etc/apparmor.d/abstractions/crypto ... 14190s Installing new version of config file /etc/apparmor.d/abstractions/kde-open5 ... 14190s Installing new version of config file /etc/apparmor.d/abstractions/openssl ... 14190s Installing new version of config file /etc/apparmor.d/code ... 14190s Installing new version of config file /etc/apparmor.d/firefox ... 14191s apparmor_parser: Unable to replace "lsb_release". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14191s 14191s apparmor_parser: Unable to replace "kmod". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14191s 14191s apparmor_parser: Unable to replace "nvidia_modprobe". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14191s 14193s sysctl: cannot stat /proc/sys/kernel/apparmor_restrict_unprivileged_userns: No such file or directory 14193s Reloading AppArmor profiles 14193s /sbin/apparmor_parser: Unable to replace "1password". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "Discord". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "MongoDB Compass". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "brave". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "buildah". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "cam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "busybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "ch-run". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "ch-checkns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "chrome". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "vscode". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "crun". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "devhelp". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "element-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "epiphany". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "evolution". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "firefox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "flatpak". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "github-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "goldendict". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "geary". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "ipa_verify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "kchmviewer". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lc-compliance". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "libcamerify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "keybase". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "linux-sandbox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "loupe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lxc-attach". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lxc-create". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lxc-destroy". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lxc-execute". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lxc-stop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lxc-usernsexec". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lxc-unshare". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "mmdebstrap". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "msedge". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "nautilus". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "notepadqq". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "obsidian". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "opam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "pageedit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "opera". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "podman". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "polypane". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "qcam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "qmapshack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "rpm". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "rootlesskit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "privacybrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "runc". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "rssguard". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "plasmashell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "qutebrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-adduser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-checkpackages". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-clean". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-destroychroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-createchroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-hold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-distupgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-shell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-unhold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-update". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-upgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-abort". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "sbuild-apt". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "scide". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "signal-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "slack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "surfshark". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "slirp4netns". /sbin/apparmor_parser: Unable to replace "systemd-coredump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "thunderbird". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "steam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "trinity". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "tup". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "toybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "tuxedo-control-center". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "lsb_release". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "userbindmount". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "stress-ng". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "uwsgi-core". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "unprivileged_userns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "vdens". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "kmod". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "nvidia_modprobe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "vivaldi-bin". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "wpcom". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "virtiofsd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "vpnns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "unix-chkpwd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "/usr/bin/man". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "rsyslogd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "ubuntu_pro_apt_news". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s /sbin/apparmor_parser: Unable to replace "tcpdump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14193s 14193s Error: At least one profile failed to load 14193s Setting up libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 14193s No schema files found: doing nothing. 14193s Setting up libglib2.0-data (2.79.3-3ubuntu5) ... 14193s Setting up vim-common (2:9.1.0016-1ubuntu5) ... 14193s Setting up gcc-13-base:armhf (13.2.0-19ubuntu1) ... 14193s Setting up libqrtr-glib0:armhf (1.2.2-1ubuntu3) ... 14193s Setting up libslang2:armhf (2.3.3-3build1) ... 14193s Setting up libnvme1t64 (1.8-3) ... 14193s Setting up mtr-tiny (0.95-1.1build1) ... 14193s Setting up gnupg-l10n (2.4.4-2ubuntu15) ... 14193s Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) ... 14193s Setting up libdbus-1-3:armhf (1.14.10-4ubuntu2) ... 14193s Setting up xz-utils (5.6.0-0.2) ... 14193s Setting up perl-modules-5.38 (5.38.2-3.2) ... 14193s Setting up libpng16-16t64:armhf (1.6.43-3) ... 14193s Setting up systemd-timesyncd (255.4-1ubuntu5) ... 14194s Setting up libevent-core-2.1-7:armhf (2.1.12-stable-9build1) ... 14194s Setting up libss2:armhf (1.47.0-2.4~exp1ubuntu2) ... 14194s Setting up usb.ids (2024.03.18-1) ... 14194s Setting up sudo (1.9.15p5-3ubuntu3) ... 14194s Setting up dhcpcd-base (1:10.0.6-1ubuntu2) ... 14194s Setting up gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) ... 14194s Setting up libk5crypto3:armhf (1.20.1-5.1build3) ... 14194s Setting up logsave (1.47.0-2.4~exp1ubuntu2) ... 14194s Setting up libfdisk1:armhf (2.39.3-9ubuntu2) ... 14194s Setting up libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 14194s Setting up libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) ... 14194s Setting up python-apt-common (2.7.6build1) ... 14194s Setting up mount (2.39.3-9ubuntu2) ... 14194s Setting up dmsetup (2:1.02.185-3ubuntu2) ... 14194s Setting up uuid-runtime (2.39.3-9ubuntu2) ... 14198s uuidd.service is a disabled or a static unit not running, not starting it. 14198s Setting up libmm-glib0:armhf (1.23.4-0ubuntu1) ... 14198s Setting up groff-base (1.23.0-3build1) ... 14198s Setting up libplymouth5:armhf (24.004.60-1ubuntu5) ... 14198s Setting up dbus-session-bus-common (1.14.10-4ubuntu2) ... 14198s Setting up jq (1.7.1-3) ... 14198s Setting up gpgconf (2.4.4-2ubuntu15) ... 14198s Setting up libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 14198s Setting up libcryptsetup12:armhf (2:2.7.0-1ubuntu2) ... 14198s Setting up libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) ... 14198s Setting up libjson-glib-1.0-common (1.8.0-2build1) ... 14198s Setting up libkrb5-3:armhf (1.20.1-5.1build3) ... 14198s Setting up libpython3.11-minimal:armhf (3.11.8-1build4) ... 14198s Setting up libusb-1.0-0:armhf (2:1.0.27-1) ... 14198s Setting up libperl5.38t64:armhf (5.38.2-3.2) ... 14198s Setting up tnftp (20230507-2build1) ... 14198s Setting up libbinutils:armhf (2.42-4ubuntu1) ... 14198s Setting up dbus-system-bus-common (1.14.10-4ubuntu2) ... 14198s Setting up libfido2-1:armhf (1.14.0-1build1) ... 14198s Setting up openssl (3.0.13-0ubuntu2) ... 14198s Setting up libbsd0:armhf (0.12.1-1) ... 14198s Setting up readline-common (8.2-3.1) ... 14198s Setting up libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) ... 14198s Setting up libxmuu1:armhf (2:1.1.3-3build1) ... 14198s Setting up dbus-bin (1.14.10-4ubuntu2) ... 14198s Setting up info (7.1-3build1) ... 14198s Setting up liblocale-gettext-perl (1.07-6ubuntu3) ... 14198s Setting up gpg (2.4.4-2ubuntu15) ... 14198s Setting up libgudev-1.0-0:armhf (1:238-3ubuntu2) ... 14198s Setting up libpolkit-gobject-1-0:armhf (124-1ubuntu1) ... 14198s Setting up libbpf1:armhf (1:1.3.0-2build1) ... 14198s Setting up libmbim-glib4:armhf (1.31.2-0ubuntu2) ... 14198s Setting up rsync (3.2.7-1build1) ... 14198s rsync.service is a disabled or a static unit not running, not starting it. 14198s Setting up libkmod2:armhf (31+20240202-2ubuntu4) ... 14198s Setting up bolt (0.9.6-2build1) ... 14199s bolt.service is a disabled or a static unit not running, not starting it. 14199s Setting up gnupg-utils (2.4.4-2ubuntu15) ... 14199s Setting up initramfs-tools-bin (0.142ubuntu22) ... 14199s Setting up libctf0:armhf (2.42-4ubuntu1) ... 14199s Setting up cryptsetup-bin (2:2.7.0-1ubuntu2) ... 14199s Setting up python3.11-minimal (3.11.8-1build4) ... 14201s Setting up tcpdump (4.99.4-3ubuntu2) ... 14201s apparmor_parser: Unable to replace "tcpdump". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14201s 14201s Setting up apt-utils (2.7.13ubuntu1) ... 14201s Setting up gpg-agent (2.4.4-2ubuntu15) ... 14203s Setting up libpython3.12-stdlib:armhf (3.12.2-4build3) ... 14203s Setting up wget (1.21.4-1ubuntu2) ... 14203s Setting up libxmlb2:armhf (0.3.15-1build1) ... 14203s Setting up btrfs-progs (6.6.3-1.1build1) ... 14203s Setting up libpython3.11-stdlib:armhf (3.11.8-1build4) ... 14203s Setting up python3.12 (3.12.2-4build3) ... 14206s Setting up gpgsm (2.4.4-2ubuntu15) ... 14206s Setting up inetutils-telnet (2:2.5-3ubuntu3) ... 14206s Setting up e2fsprogs (1.47.0-2.4~exp1ubuntu2) ... 14206s update-initramfs: deferring update (trigger activated) 14208s e2scrub_all.service is a disabled or a static unit not running, not starting it. 14208s Setting up libparted2t64:armhf (3.6-3.1build2) ... 14208s Setting up dbus-daemon (1.14.10-4ubuntu2) ... 14208s Setting up libmbim-proxy (1.31.2-0ubuntu2) ... 14208s Setting up vim-tiny (2:9.1.0016-1ubuntu5) ... 14208s Setting up kmod (31+20240202-2ubuntu4) ... 14209s Setting up libnetplan1:armhf (1.0-1) ... 14209s Setting up man-db (2.12.0-3build4) ... 14209s Updating database of manual pages ... 14212s apparmor_parser: Unable to replace "/usr/bin/man". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14212s 14213s man-db.service is a disabled or a static unit not running, not starting it. 14213s Setting up fdisk (2.39.3-9ubuntu2) ... 14213s Setting up libjson-glib-1.0-0:armhf (1.8.0-2build1) ... 14213s Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) ... 14213s Setting up libftdi1-2:armhf (1.5-6build4) ... 14213s Setting up perl (5.38.2-3.2) ... 14213s Setting up gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) ... 14213s Setting up dbus (1.14.10-4ubuntu2) ... 14213s A reboot is required to replace the running dbus-daemon. 14213s Please reboot the system when convenient. 14214s Setting up shared-mime-info (2.4-1build1) ... 14215s Setting up libblockdev-utils3:armhf (3.1.0-1build1) ... 14215s Setting up libgssapi-krb5-2:armhf (1.20.1-5.1build3) ... 14215s Setting up udev (255.4-1ubuntu5) ... 14216s Setting up ftp (20230507-2build1) ... 14216s Setting up keyboxd (2.4.4-2ubuntu15) ... 14217s Setting up libdpkg-perl (1.22.6ubuntu4) ... 14217s Setting up libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) ... 14217s Setting up libssh-4:armhf (0.10.6-2build1) ... 14217s Setting up libblockdev-nvme3:armhf (3.1.0-1build1) ... 14217s Setting up libblockdev-fs3:armhf (3.1.0-1build1) ... 14217s Setting up kpartx (0.9.4-5ubuntu5) ... 14217s Setting up libpam-systemd:armhf (255.4-1ubuntu5) ... 14217s Setting up libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 14217s Setting up libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 14217s Setting up netplan-generator (1.0-1) ... 14217s Removing 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 14217s Setting up initramfs-tools-core (0.142ubuntu22) ... 14217s Setting up binutils-arm-linux-gnueabihf (2.42-4ubuntu1) ... 14217s Setting up libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 14217s Setting up libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) ... 14217s Setting up libpython3-stdlib:armhf (3.12.2-0ubuntu1) ... 14217s Setting up systemd-resolved (255.4-1ubuntu5) ... 14219s Setting up python3.11 (3.11.8-1build4) ... 14222s Setting up telnet (0.17+2.5-3ubuntu3) ... 14222s Setting up initramfs-tools (0.142ubuntu22) ... 14222s update-initramfs: deferring update (trigger activated) 14222s Setting up libblockdev-mdraid3:armhf (3.1.0-1build1) ... 14222s Setting up libcurl4t64:armhf (8.5.0-2ubuntu7) ... 14222s Setting up bind9-libs:armhf (1:9.18.24-0ubuntu3) ... 14222s Setting up libtirpc3t64:armhf (1.3.4+ds-1.1) ... 14222s Setting up e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) ... 14222s Setting up libblockdev-swap3:armhf (3.1.0-1build1) ... 14222s Setting up plymouth (24.004.60-1ubuntu5) ... 14222s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 14222s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 14223s Setting up iproute2 (6.1.0-1ubuntu5) ... 14224s Setting up openssh-client (1:9.6p1-3ubuntu10) ... 14224s Setting up libgusb2:armhf (0.4.8-1build1) ... 14224s Setting up libblockdev-loop3:armhf (3.1.0-1build1) ... 14224s Setting up libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 14224s Setting up parted (3.6-3.1build2) ... 14224s Setting up libqmi-glib5:armhf (1.35.2-0ubuntu1) ... 14224s Setting up python3 (3.12.2-0ubuntu1) ... 14225s Setting up binutils (2.42-4ubuntu1) ... 14225s Setting up python3-markupsafe (2.1.5-1build1) ... 14225s Setting up libblockdev3:armhf (3.1.0-1build1) ... 14225s Setting up libjcat1:armhf (0.2.0-2build2) ... 14225s Setting up dpkg-dev (1.22.6ubuntu4) ... 14225s Setting up libblockdev-part3:armhf (3.1.0-1build1) ... 14225s Setting up dirmngr (2.4.4-2ubuntu15) ... 14226s Setting up dbus-user-session (1.14.10-4ubuntu2) ... 14226s Setting up plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) ... 14226s update-initramfs: deferring update (trigger activated) 14226s Setting up python3-cryptography (41.0.7-4build2) ... 14226s Setting up python3-gi (3.47.0-3build1) ... 14227s Setting up python3-typing-extensions (4.10.0-1) ... 14227s Setting up lsof (4.95.0-1build2) ... 14227s Setting up python3-pyrsistent:armhf (0.20.0-1build1) ... 14228s Setting up libnsl2:armhf (1.3.0-3build2) ... 14228s Setting up gnupg (2.4.4-2ubuntu15) ... 14228s Setting up python3-netplan (1.0-1) ... 14228s Setting up curl (8.5.0-2ubuntu7) ... 14228s Setting up libvolume-key1:armhf (0.3.12-7build1) ... 14228s Setting up bind9-host (1:9.18.24-0ubuntu3) ... 14228s Setting up python3-lib2to3 (3.12.2-3ubuntu2) ... 14229s Setting up python3-pkg-resources (68.1.2-2ubuntu1) ... 14230s Setting up openssh-sftp-server (1:9.6p1-3ubuntu10) ... 14230s Setting up python3-dbus (1.3.2-5build2) ... 14230s Setting up python3-setuptools (68.1.2-2ubuntu1) ... 14232s Setting up gpg-wks-client (2.4.4-2ubuntu15) ... 14232s Setting up openssh-server (1:9.6p1-3ubuntu10) ... 14232s Replacing config file /etc/ssh/sshd_config with new version 14235s Created symlink /etc/systemd/system/ssh.service.requires/ssh.socket → /usr/lib/systemd/system/ssh.socket. 14239s Setting up libblockdev-crypto3:armhf (3.1.0-1build1) ... 14239s Setting up python3-gdbm:armhf (3.12.2-3ubuntu2) ... 14239s Setting up python3-apt (2.7.6build1) ... 14239s Setting up python3-openssl (24.0.0-4) ... 14240s Setting up libfwupd2:armhf (1.9.15-1) ... 14240s Setting up python3-yaml (6.0.1-2build1) ... 14240s Setting up libqmi-proxy (1.35.2-0ubuntu1) ... 14240s Setting up netplan.io (1.0-1) ... 14240s Setting up bind9-dnsutils (1:9.18.24-0ubuntu3) ... 14240s Setting up ubuntu-pro-client (31.2) ... 14241s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 14241s 14244s Setting up fwupd (1.9.15-1) ... 14245s fwupd-offline-update.service is a disabled or a static unit not running, not starting it. 14245s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 14245s fwupd.service is a disabled or a static unit not running, not starting it. 14246s Setting up ubuntu-pro-client-l10n (31.2) ... 14246s Setting up ubuntu-minimal (1.536build1) ... 14246s Setting up ubuntu-standard (1.536build1) ... 14246s Processing triggers for libc-bin (2.39-0ubuntu6) ... 14246s Processing triggers for ufw (0.36.2-5) ... 14246s Processing triggers for install-info (7.1-3build1) ... 14246s Processing triggers for initramfs-tools (0.142ubuntu22) ... 14250s Reading package lists... 14251s Building dependency tree... 14251s Reading state information... 14253s The following packages will be REMOVED: 14253s libatasmart4* libblockdev-crypto3* libblockdev-fs3* libblockdev-loop3* 14253s libblockdev-mdraid3* libblockdev-nvme3* libblockdev-part3* 14253s libblockdev-swap3* libblockdev-utils3* libblockdev3* libbytesize-common* 14253s libbytesize1* libnspr4* libnss3* libnvme1t64* libpolkit-agent-1-0* 14253s libvolume-key1* linux-headers-6.8.0-11* python3-lib2to3* 14254s 0 upgraded, 0 newly installed, 19 to remove and 1 not upgraded. 14254s After this operation, 89.7 MB disk space will be freed. 14254s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47405 files and directories currently installed.) 14254s Removing libatasmart4:armhf (0.19-5build2) ... 14254s Removing libblockdev-crypto3:armhf (3.1.0-1build1) ... 14254s Removing libblockdev-fs3:armhf (3.1.0-1build1) ... 14254s Removing libblockdev-loop3:armhf (3.1.0-1build1) ... 14254s Removing libblockdev-mdraid3:armhf (3.1.0-1build1) ... 14254s Removing libblockdev-nvme3:armhf (3.1.0-1build1) ... 14254s Removing libblockdev-part3:armhf (3.1.0-1build1) ... 14254s Removing libblockdev-swap3:armhf (3.1.0-1build1) ... 14254s Removing libblockdev3:armhf (3.1.0-1build1) ... 14254s Removing libblockdev-utils3:armhf (3.1.0-1build1) ... 14254s Removing libbytesize1:armhf (2.10-1ubuntu1) ... 14254s Removing libbytesize-common (2.10-1ubuntu1) ... 14254s Removing libvolume-key1:armhf (0.3.12-7build1) ... 14254s Removing libnss3:armhf (2:3.98-1) ... 14254s Removing libnspr4:armhf (2:4.35-1.1) ... 14254s Removing libnvme1t64 (1.8-3) ... 14255s Removing libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 14255s Removing linux-headers-6.8.0-11 (6.8.0-11.11) ... 14258s Removing python3-lib2to3 (3.12.2-3ubuntu2) ... 14258s Processing triggers for libc-bin (2.39-0ubuntu6) ... 14258s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 27134 files and directories currently installed.) 14258s Purging configuration files for libblockdev3:armhf (3.1.0-1build1) ... 14261s autopkgtest [19:09:45]: rebooting testbed after setup commands that affected boot 14350s Reading package lists... 14351s Building dependency tree... 14351s Reading state information... 14352s Starting pkgProblemResolver with broken count: 0 14353s Starting 2 pkgProblemResolver with broken count: 0 14353s Done 14354s The following additional packages will be installed: 14354s cpp cpp-13 cpp-13-arm-linux-gnueabihf cpp-arm-linux-gnueabihf gcc gcc-13 14354s gcc-13-arm-linux-gnueabihf gcc-arm-linux-gnueabihf libasan8 libatlas3-base 14354s libatomic1 libblas3 libcc1-0 libgcc-13-dev libgfortran5 libgomp1 libisl23 14354s liblapack3 libmpc3 libubsan1 python3-all python3-dateutil python3-hypothesis 14354s python3-iniconfig python3-numpy python3-packaging python3-pluggy 14354s python3-pytest python3-sortedcontainers 14354s Suggested packages: 14354s cpp-doc gcc-13-locales cpp-13-doc gcc-multilib manpages-dev autoconf 14354s automake libtool flex bison gdb gcc-doc gcc-13-doc gdb-arm-linux-gnueabihf 14354s python-hypothesis-doc gfortran python3-dev python-sortedcontainers-doc 14354s Recommended packages: 14354s libc6-dev | libc-dev libc6-dev libc-dev python3-click 14354s The following NEW packages will be installed: 14354s autopkgtest-satdep cpp cpp-13 cpp-13-arm-linux-gnueabihf 14354s cpp-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 14354s gcc-arm-linux-gnueabihf libasan8 libatlas3-base libatomic1 libblas3 libcc1-0 14354s libgcc-13-dev libgfortran5 libgomp1 libisl23 liblapack3 libmpc3 libubsan1 14354s python3-all python3-dateutil python3-hypothesis python3-iniconfig 14354s python3-numpy python3-packaging python3-pluggy python3-pytest 14354s python3-sortedcontainers 14355s 0 upgraded, 30 newly installed, 0 to remove and 1 not upgraded. 14355s Need to get 41.4 MB/41.4 MB of archives. 14355s After this operation, 116 MB of additional disk space will be used. 14355s Get:1 /tmp/autopkgtest.b6ixTN/3-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [776 B] 14355s Get:2 http://ftpmaster.internal/ubuntu noble/main armhf libisl23 armhf 0.26-3 [595 kB] 14355s Get:3 http://ftpmaster.internal/ubuntu noble/main armhf libmpc3 armhf 1.3.1-1 [46.4 kB] 14355s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [8753 kB] 14358s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13 armhf 13.2.0-19ubuntu1 [1036 B] 14358s Get:6 http://ftpmaster.internal/ubuntu noble/main armhf cpp-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [5320 B] 14358s Get:7 http://ftpmaster.internal/ubuntu noble/main armhf cpp armhf 4:13.2.0-7ubuntu1 [22.4 kB] 14358s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcc1-0 armhf 14-20240315-1ubuntu1 [39.0 kB] 14358s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgomp1 armhf 14-20240315-1ubuntu1 [125 kB] 14358s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libatomic1 armhf 14-20240315-1ubuntu1 [7824 B] 14358s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libasan8 armhf 14-20240315-1ubuntu1 [2941 kB] 14359s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libubsan1 armhf 14-20240315-1ubuntu1 [1152 kB] 14359s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-13-dev armhf 13.2.0-19ubuntu1 [900 kB] 14360s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [16.8 MB] 14364s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13 armhf 13.2.0-19ubuntu1 [448 kB] 14364s Get:16 http://ftpmaster.internal/ubuntu noble/main armhf gcc-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [1220 B] 14364s Get:17 http://ftpmaster.internal/ubuntu noble/main armhf gcc armhf 4:13.2.0-7ubuntu1 [5022 B] 14364s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgfortran5 armhf 14-20240315-1ubuntu1 [312 kB] 14364s Get:19 http://ftpmaster.internal/ubuntu noble/universe armhf libatlas3-base armhf 3.10.3-13ubuntu1 [2640 kB] 14364s Get:20 http://ftpmaster.internal/ubuntu noble/main armhf libblas3 armhf 3.12.0-3 [123 kB] 14365s Get:21 http://ftpmaster.internal/ubuntu noble/main armhf liblapack3 armhf 3.12.0-3 [2085 kB] 14365s Get:22 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-all armhf 3.12.2-0ubuntu1 [886 B] 14365s Get:23 http://ftpmaster.internal/ubuntu noble/main armhf python3-dateutil all 2.8.2-3 [79.2 kB] 14365s Get:24 http://ftpmaster.internal/ubuntu noble/main armhf python3-sortedcontainers all 2.4.0-2 [27.6 kB] 14365s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf python3-hypothesis all 6.98.15-1 [311 kB] 14365s Get:26 http://ftpmaster.internal/ubuntu noble/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 14365s Get:27 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-numpy armhf 1:1.24.2-3ubuntu1 [3610 kB] 14366s Get:28 http://ftpmaster.internal/ubuntu noble/main armhf python3-packaging all 23.2-1 [40.6 kB] 14366s Get:29 http://ftpmaster.internal/ubuntu noble/universe armhf python3-pluggy all 1.4.0-1 [20.4 kB] 14366s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf python3-pytest all 8.0.2-1 [248 kB] 14367s Fetched 41.4 MB in 11s (3620 kB/s) 14367s Selecting previously unselected package libisl23:armhf. 14368s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 27130 files and directories currently installed.) 14368s Preparing to unpack .../00-libisl23_0.26-3_armhf.deb ... 14368s Unpacking libisl23:armhf (0.26-3) ... 14368s Selecting previously unselected package libmpc3:armhf. 14368s Preparing to unpack .../01-libmpc3_1.3.1-1_armhf.deb ... 14368s Unpacking libmpc3:armhf (1.3.1-1) ... 14368s Selecting previously unselected package cpp-13-arm-linux-gnueabihf. 14368s Preparing to unpack .../02-cpp-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 14368s Unpacking cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 14369s Selecting previously unselected package cpp-13. 14369s Preparing to unpack .../03-cpp-13_13.2.0-19ubuntu1_armhf.deb ... 14369s Unpacking cpp-13 (13.2.0-19ubuntu1) ... 14369s Selecting previously unselected package cpp-arm-linux-gnueabihf. 14369s Preparing to unpack .../04-cpp-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 14369s Unpacking cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 14369s Selecting previously unselected package cpp. 14369s Preparing to unpack .../05-cpp_4%3a13.2.0-7ubuntu1_armhf.deb ... 14369s Unpacking cpp (4:13.2.0-7ubuntu1) ... 14369s Selecting previously unselected package libcc1-0:armhf. 14369s Preparing to unpack .../06-libcc1-0_14-20240315-1ubuntu1_armhf.deb ... 14369s Unpacking libcc1-0:armhf (14-20240315-1ubuntu1) ... 14369s Selecting previously unselected package libgomp1:armhf. 14369s Preparing to unpack .../07-libgomp1_14-20240315-1ubuntu1_armhf.deb ... 14369s Unpacking libgomp1:armhf (14-20240315-1ubuntu1) ... 14369s Selecting previously unselected package libatomic1:armhf. 14369s Preparing to unpack .../08-libatomic1_14-20240315-1ubuntu1_armhf.deb ... 14369s Unpacking libatomic1:armhf (14-20240315-1ubuntu1) ... 14369s Selecting previously unselected package libasan8:armhf. 14369s Preparing to unpack .../09-libasan8_14-20240315-1ubuntu1_armhf.deb ... 14369s Unpacking libasan8:armhf (14-20240315-1ubuntu1) ... 14370s Selecting previously unselected package libubsan1:armhf. 14370s Preparing to unpack .../10-libubsan1_14-20240315-1ubuntu1_armhf.deb ... 14370s Unpacking libubsan1:armhf (14-20240315-1ubuntu1) ... 14370s Selecting previously unselected package libgcc-13-dev:armhf. 14370s Preparing to unpack .../11-libgcc-13-dev_13.2.0-19ubuntu1_armhf.deb ... 14370s Unpacking libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 14370s Selecting previously unselected package gcc-13-arm-linux-gnueabihf. 14370s Preparing to unpack .../12-gcc-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 14370s Unpacking gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 14371s Selecting previously unselected package gcc-13. 14371s Preparing to unpack .../13-gcc-13_13.2.0-19ubuntu1_armhf.deb ... 14371s Unpacking gcc-13 (13.2.0-19ubuntu1) ... 14371s Selecting previously unselected package gcc-arm-linux-gnueabihf. 14371s Preparing to unpack .../14-gcc-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 14371s Unpacking gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 14371s Selecting previously unselected package gcc. 14371s Preparing to unpack .../15-gcc_4%3a13.2.0-7ubuntu1_armhf.deb ... 14371s Unpacking gcc (4:13.2.0-7ubuntu1) ... 14371s Selecting previously unselected package libgfortran5:armhf. 14371s Preparing to unpack .../16-libgfortran5_14-20240315-1ubuntu1_armhf.deb ... 14371s Unpacking libgfortran5:armhf (14-20240315-1ubuntu1) ... 14371s Selecting previously unselected package libatlas3-base:armhf. 14371s Preparing to unpack .../17-libatlas3-base_3.10.3-13ubuntu1_armhf.deb ... 14371s Unpacking libatlas3-base:armhf (3.10.3-13ubuntu1) ... 14371s Selecting previously unselected package libblas3:armhf. 14371s Preparing to unpack .../18-libblas3_3.12.0-3_armhf.deb ... 14371s Unpacking libblas3:armhf (3.12.0-3) ... 14372s Selecting previously unselected package liblapack3:armhf. 14372s Preparing to unpack .../19-liblapack3_3.12.0-3_armhf.deb ... 14372s Unpacking liblapack3:armhf (3.12.0-3) ... 14372s Selecting previously unselected package python3-all. 14372s Preparing to unpack .../20-python3-all_3.12.2-0ubuntu1_armhf.deb ... 14372s Unpacking python3-all (3.12.2-0ubuntu1) ... 14372s Selecting previously unselected package python3-dateutil. 14372s Preparing to unpack .../21-python3-dateutil_2.8.2-3_all.deb ... 14372s Unpacking python3-dateutil (2.8.2-3) ... 14372s Selecting previously unselected package python3-sortedcontainers. 14372s Preparing to unpack .../22-python3-sortedcontainers_2.4.0-2_all.deb ... 14372s Unpacking python3-sortedcontainers (2.4.0-2) ... 14372s Selecting previously unselected package python3-hypothesis. 14372s Preparing to unpack .../23-python3-hypothesis_6.98.15-1_all.deb ... 14372s Unpacking python3-hypothesis (6.98.15-1) ... 14372s Selecting previously unselected package python3-iniconfig. 14372s Preparing to unpack .../24-python3-iniconfig_1.1.1-2_all.deb ... 14372s Unpacking python3-iniconfig (1.1.1-2) ... 14372s Selecting previously unselected package python3-numpy. 14372s Preparing to unpack .../25-python3-numpy_1%3a1.24.2-3ubuntu1_armhf.deb ... 14372s Unpacking python3-numpy (1:1.24.2-3ubuntu1) ... 14373s Selecting previously unselected package python3-packaging. 14373s Preparing to unpack .../26-python3-packaging_23.2-1_all.deb ... 14373s Unpacking python3-packaging (23.2-1) ... 14373s Selecting previously unselected package python3-pluggy. 14373s Preparing to unpack .../27-python3-pluggy_1.4.0-1_all.deb ... 14373s Unpacking python3-pluggy (1.4.0-1) ... 14373s Selecting previously unselected package python3-pytest. 14373s Preparing to unpack .../28-python3-pytest_8.0.2-1_all.deb ... 14373s Unpacking python3-pytest (8.0.2-1) ... 14374s Selecting previously unselected package autopkgtest-satdep. 14374s Preparing to unpack .../29-3-autopkgtest-satdep.deb ... 14374s Unpacking autopkgtest-satdep (0) ... 14374s Setting up python3-iniconfig (1.1.1-2) ... 14374s Setting up python3-all (3.12.2-0ubuntu1) ... 14374s Setting up python3-sortedcontainers (2.4.0-2) ... 14375s Setting up libgomp1:armhf (14-20240315-1ubuntu1) ... 14375s Setting up libblas3:armhf (3.12.0-3) ... 14375s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 14375s Setting up python3-packaging (23.2-1) ... 14375s Setting up libmpc3:armhf (1.3.1-1) ... 14375s Setting up libatomic1:armhf (14-20240315-1ubuntu1) ... 14375s Setting up libgfortran5:armhf (14-20240315-1ubuntu1) ... 14375s Setting up python3-pluggy (1.4.0-1) ... 14376s Setting up libubsan1:armhf (14-20240315-1ubuntu1) ... 14376s Setting up libasan8:armhf (14-20240315-1ubuntu1) ... 14376s Setting up python3-dateutil (2.8.2-3) ... 14376s Setting up libisl23:armhf (0.26-3) ... 14376s Setting up libcc1-0:armhf (14-20240315-1ubuntu1) ... 14376s Setting up liblapack3:armhf (3.12.0-3) ... 14376s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 14376s Setting up libatlas3-base:armhf (3.10.3-13ubuntu1) ... 14376s update-alternatives: using /usr/lib/arm-linux-gnueabihf/atlas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 14376s update-alternatives: using /usr/lib/arm-linux-gnueabihf/atlas/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 14376s Setting up cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 14376s Setting up python3-pytest (8.0.2-1) ... 14378s Setting up python3-hypothesis (6.98.15-1) ... 14379s Setting up python3-numpy (1:1.24.2-3ubuntu1) ... 14386s Setting up libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 14386s Setting up cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 14386s Setting up cpp-13 (13.2.0-19ubuntu1) ... 14386s Setting up gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 14386s Setting up gcc-13 (13.2.0-19ubuntu1) ... 14386s Setting up cpp (4:13.2.0-7ubuntu1) ... 14386s Setting up gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 14386s Setting up gcc (4:13.2.0-7ubuntu1) ... 14386s Setting up autopkgtest-satdep (0) ... 14386s Processing triggers for man-db (2.12.0-3build4) ... 14388s Processing triggers for libc-bin (2.39-0ubuntu6) ... 14405s (Reading database ... 28692 files and directories currently installed.) 14405s Removing autopkgtest-satdep (0) ... 14424s autopkgtest [19:12:28]: test atlas: [----------------------- 14427s === python3.12 === 14428s /usr/lib/python3/dist-packages/numpy/_pytesttester.py:143: DeprecationWarning: 14428s 14428s `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 14428s of the deprecation of `distutils` itself. It will be removed for 14428s Python >= 3.12. For older Python versions it will remain present. 14428s It is recommended to use `setuptools < 60.0` for those Python versions. 14428s For more details, see: 14428s https://numpy.org/devdocs/reference/distutils_status_migration.html 14428s 14428s 14428s from numpy.distutils import cpuinfo 14464s NumPy version 1.24.2 14464s NumPy relaxed strides checking option: True 14464s NumPy CPU features: NEON* NEON_FP16* NEON_VFPV4* ASIMD* ASIMDHP? ASIMDDP? ASIMDFHM? 14464s ============================= test session starts ============================== 14464s platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.4.0 14464s rootdir: /tmp/autopkgtest.b6ixTN/autopkgtest_tmp 14464s plugins: hypothesis-6.98.15 14464s collected 28260 items / 1315 deselected / 26945 selected 14464s 14467s array_api/tests/test_array_object.py ........................ [ 0%] 14467s array_api/tests/test_creation_functions.py .............. [ 0%] 14467s array_api/tests/test_data_type_functions.py .... [ 0%] 14467s array_api/tests/test_elementwise_functions.py .. [ 0%] 14470s array_api/tests/test_set_functions.py .. [ 0%] 14470s array_api/tests/test_sorting_functions.py .... [ 0%] 14470s array_api/tests/test_validation.py ... [ 0%] 14470s compat/tests/test_compat.py . [ 0%] 14470s core/tests/test__exceptions.py ........... [ 0%] 14470s core/tests/test_abc.py ..... [ 0%] 14470s core/tests/test_api.py ................................................. [ 0%] 14471s ............ [ 0%] 14471s core/tests/test_argparse.py ..... [ 0%] 14472s core/tests/test_array_coercion.py ...................................... [ 0%] 14472s .......................x................................................ [ 0%] 14473s ........................................................................ [ 1%] 14473s .s.......... [ 1%] 14473s core/tests/test_arraymethod.py ........................................s [ 1%] 14473s [ 1%] 14475s core/tests/test_arrayprint.py ..x....................................... [ 1%] 14475s .... [ 1%] 14475s core/tests/test_casting_floatingpoint_errors.py ........................ [ 1%] 14476s ........................................................................ [ 1%] 14476s ........................................................................ [ 2%] 14476s .............. [ 2%] 14477s core/tests/test_casting_unittests.py ................................... [ 2%] 14477s ........................................................................ [ 2%] 14478s ........................................................................ [ 2%] 14478s ........................................................................ [ 3%] 14478s .................................... [ 3%] 14478s core/tests/test_conversion_utils.py ........................... [ 3%] 14478s core/tests/test_cpu_dispatcher.py . [ 3%] 14478s core/tests/test_cpu_features.py sssF [ 3%] 14479s core/tests/test_custom_dtypes.py ............................. [ 3%] 14479s core/tests/test_cython.py ssssss [ 3%] 14479s core/tests/test_datetime.py ............................................ [ 3%] 14479s ........................................................................ [ 3%] 14480s ...........F............................................................ [ 4%] 14481s ...........................................x..........x..x..........x... [ 4%] 14481s [ 4%] 14481s core/tests/test_defchararray.py ........................................ [ 4%] 14481s ........................................... [ 4%] 14482s core/tests/test_deprecations.py .....F.................................. [ 4%] 14482s .................ssssssss............................................... [ 5%] 14483s ................................ [ 5%] 14483s core/tests/test_dlpack.py .............................................. [ 5%] 14483s ............ [ 5%] 14483s core/tests/test_dtype.py ............................................... [ 5%] 14501s ............................................ssssFFFFFFFFFFFFFFFFFFFFFFFF [ 6%] 14510s FFFF.................................................................... [ 6%] 14510s ........................................................................ [ 6%] 14510s ........................................................................ [ 6%] 14511s ........................................................................ [ 7%] 14511s ........................................................................ [ 7%] 14512s ........................................................................ [ 7%] 14512s ........................................................................ [ 7%] 14513s ........................................................................ [ 8%] 14513s ........................................................................ [ 8%] 14513s ........................................................................ [ 8%] 14514s ........................................................................ [ 8%] 14514s ........................................................................ [ 9%] 14514s ..............................s [ 9%] 14519s core/tests/test_einsum.py .............................................. [ 9%] 14519s .................. [ 9%] 14519s core/tests/test_errstate.py .... [ 9%] 14521s core/tests/test_extint128.py ............ [ 9%] 14522s core/tests/test_function_base.py .............................. [ 9%] 14522s core/tests/test_getlimits.py .............. [ 9%] 14523s core/tests/test_half.py ..................................... [ 9%] 14523s core/tests/test_hashtable.py ......... [ 9%] 14523s core/tests/test_indexerrors.py ........ [ 9%] 14523s core/tests/test_indexing.py ............................................ [ 10%] 14525s ....................................... [ 10%] 14525s core/tests/test_item_selection.py ..... [ 10%] 14525s core/tests/test_longdouble.py .s.....................sssssss.... [ 10%] 14525s core/tests/test_machar.py . [ 10%] 14533s core/tests/test_mem_overlap.py .................. [ 10%] 14536s core/tests/test_mem_policy.py EEEEEEEEE [ 10%] 14536s core/tests/test_memmap.py ................... [ 10%] 14536s core/tests/test_multiarray.py .......................................... [ 10%] 14537s ..............................s......................................... [ 11%] 14542s .............xx......................................................... [ 11%] 14542s ........................................................................ [ 11%] 14543s ........................................................................ [ 11%] 14547s .............................s.......................................... [ 12%] 14547s ........................................................................ [ 12%] 14548s ........................................................................ [ 12%] 14549s ........................................................................ [ 12%] 14552s ........................................................................ [ 13%] 14555s ........................................................................ [ 13%] 14556s ..............................................................s.s.s.s.s. [ 13%] 14557s s.....s.s.....s.s.s.s.......s.s.s.s..................................... [ 13%] 14558s ........................................................................ [ 14%] 14559s ........................................................................ [ 14%] 14560s ........................................................................ [ 14%] 14562s ........................................................................ [ 15%] 14571s ........................................................................ [ 15%] 14575s ........................................................................ [ 15%] 14575s ........................ [ 15%] 14576s core/tests/test_nditer.py .............................................. [ 15%] 14576s ........................................................................ [ 16%] 14576s ........................................................................ [ 16%] 14577s ........................................................................ [ 16%] 14577s ........................................................................ [ 16%] 14577s ........................................................................ [ 17%] 14578s ........................................................................ [ 17%] 14578s ........................................................................ [ 17%] 14579s ........................................................................ [ 17%] 14579s ........................................................................ [ 18%] 14581s ........................................................................ [ 18%] 14582s ................................... [ 18%] 14582s core/tests/test_nep50_promotions.py .......................... [ 18%] 14583s core/tests/test_numeric.py ..............................x...x.......... [ 18%] 14584s ........................................................................ [ 19%] 14584s ........................................................................ [ 19%] 14587s ..........................................................xx............ [ 19%] 14591s ........................................................................ [ 19%] 14592s .................... [ 20%] 14592s core/tests/test_numerictypes.py ........................................ [ 20%] 14592s ........................................................................ [ 20%] 14592s ...... [ 20%] 14592s core/tests/test_overrides.py ........................................... [ 20%] 14593s ........................................................................ [ 20%] 14593s ........... [ 20%] 14593s core/tests/test_print.py ...................sss [ 21%] 14593s core/tests/test_protocols.py .. [ 21%] 14593s core/tests/test_records.py ......................................... [ 21%] 14593s core/tests/test_regression.py .......................................... [ 21%] 14594s ........................................................................ [ 21%] 14594s ................................................F....................... [ 21%] 14599s ........................................................................ [ 22%] 14599s ......s..s.............................................................. [ 22%] 14600s ........................................................................ [ 22%] 14600s ............ [ 22%] 14600s core/tests/test_scalar_ctors.py ........................................ [ 22%] 14600s ........................................................................ [ 23%] 14600s .................................................. [ 23%] 14600s core/tests/test_scalar_methods.py ............................s......... [ 23%] 14601s ................................................................sss..... [ 23%] 14601s ...... [ 23%] 14601s core/tests/test_scalarbuffer.py ........................................ [ 23%] 14601s ...................................... [ 24%] 14601s core/tests/test_scalarinherit.py ..... [ 24%] 14605s core/tests/test_scalarmath.py .........................ss............... [ 24%] 14606s ........................................................................ [ 24%] 14606s ........................................................................ [ 24%] 14607s ......................ssssss............................................ [ 25%] 14607s ........................................................................ [ 25%] 14607s ...... [ 25%] 14607s core/tests/test_scalarprint.py .....s [ 25%] 14607s core/tests/test_shape_base.py .......................................... [ 25%] 14608s ........................................................................ [ 25%] 14608s ........................................................................ [ 26%] 14608s ........................ [ 26%] 14608s core/tests/test_simd.py ................................................ [ 26%] 14609s ........................................................................ [ 26%] 14609s ..............................ssssssssssssssssssssssssssssssssssssssssss [ 26%] 14609s .s...................................................................... [ 27%] 14610s ........................................................................ [ 27%] 14610s ........................................................................ [ 27%] 14611s ........................................................................ [ 27%] 14612s ........................................................................ [ 28%] 14613s ......................................ssssssssssssssssssssssssssssssssss [ 28%] 14613s ssssssssss.............................................................. [ 28%] 14613s ........................................................................ [ 28%] 14614s ................ssssssssssssssssssssssssssssssssssssssssss.s............ [ 29%] 14614s ........................................................................ [ 29%] 14614s ........................................................................ [ 29%] 14615s ........................................................................ [ 30%] 14616s ........................................................................ [ 30%] 14617s ........................................................................ [ 30%] 14617s ........................ssssssssssssssssssssssssssssssssssssssssssssssss [ 30%] 14617s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 14617s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 14618s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 14618s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 31%] 14618s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 14618s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 14618s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 14619s ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] 14619s ssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 33%] 14619s core/tests/test_simd_module.py .................................... [ 33%] 14623s core/tests/test_strings.py ............................................. [ 33%] 14628s ........................................................................ [ 33%] 14628s ................. [ 33%] 14629s core/tests/test_ufunc.py ............................................... [ 33%] 14629s ........................................................................ [ 34%] 14631s .........................F.............................................. [ 34%] 14631s ........................................................................ [ 34%] 14632s ........................................................................ [ 35%] 14632s ........................................................................ [ 35%] 14634s ..................................................xxxxxxx............. [ 35%] 14634s core/tests/test_umath.py ............................................... [ 35%] 14635s ........................................................................ [ 36%] 14636s ........................................................................ [ 36%] 14638s ........................................................................ [ 36%] 14642s ........................................................................ [ 36%] 14644s ........................................................................ [ 37%] 14645s ........................................................................ [ 37%] 14646s ........................................................................ [ 37%] 14646s ........................................................................ [ 37%] 14647s ........................................................................ [ 38%] 14647s ........................................................................ [ 38%] 14648s ........................................................................ [ 38%] 14648s ........................................................................ [ 38%] 14649s ........................................................................ [ 39%] 14649s ........................................................................ [ 39%] 14650s ........................................................................ [ 39%] 14650s ........................................................................ [ 40%] 14651s ........................................................................ [ 40%] 14651s ........................................................................ [ 40%] 14652s ........................................................................ [ 40%] 14652s ........................................................................ [ 41%] 14653s ........................................................................ [ 41%] 14653s ........................................................................ [ 41%] 14654s ........................................................................ [ 41%] 14654s ........................................................................ [ 42%] 14655s ........................................................................ [ 42%] 14655s ........................................................................ [ 42%] 14656s ........................................................................ [ 42%] 14656s ........................................................................ [ 43%] 14657s ........................................................................ [ 43%] 14657s ........................................................................ [ 43%] 14658s ........................................................................ [ 44%] 14658s ........................................................................ [ 44%] 14658s ........................................................................ [ 44%] 14659s ............................................................F........... [ 44%] 14660s ........................................................................ [ 45%] 14661s ....................................F................................... [ 45%] 14661s ........................................................................ [ 45%] 14662s ............F........................................................... [ 45%] 14663s ............................................................F........... [ 46%] 14664s ........................................................................ [ 46%] 14664s ....................................F................................... [ 46%] 14665s ........................................................................ [ 46%] 14666s ............F........................................................... [ 47%] 14666s ........................................................................ [ 47%] 14667s ........................................................................ [ 47%] 14667s ........................................................................ [ 48%] 14668s ........................................................................ [ 48%] 14668s ........................................................................ [ 48%] 14668s ........................................................................ [ 48%] 14669s ........................................................................ [ 49%] 14670s ........................................................................ [ 49%] 14670s ........................................................................ [ 49%] 14671s ........................................................................ [ 49%] 14674s ........................................................................ [ 50%] 14677s ........................................................................ [ 50%] 14678s ............s...s....................................................... [ 50%] 14680s ........................................................................ [ 50%] 14681s ........s............................................................... [ 51%] 14682s ........................................................................ [ 51%] 14683s ...........................................ssssssssssssss............... [ 51%] 14684s ........................................................................ [ 52%] 14684s ......................................... [ 52%] 14685s core/tests/test_umath_accuracy.py s..................................... [ 52%] 14685s ... [ 52%] 14685s core/tests/test_umath_complex.py ..s............s....................... [ 52%] 14685s ........................................................................ [ 52%] 14686s ........................................................................ [ 53%] 14686s ........................................................................ [ 53%] 14687s ........................................................................ [ 53%] 14687s ...... [ 53%] 14687s core/tests/test_unicode.py ............................................. [ 53%] 14687s ............................... [ 53%] 14690s distutils/tests/test_ccompiler_opt.py .................................. [ 53%] 14695s ........................................................................ [ 54%] 14699s ........................................................................ [ 54%] 14702s ........................................................................ [ 54%] 14702s ....................... [ 54%] 14702s distutils/tests/test_ccompiler_opt_conf.py . [ 54%] 14703s distutils/tests/test_exec_command.py ... [ 54%] 14703s distutils/tests/test_fcompiler.py . [ 54%] 14703s distutils/tests/test_fcompiler_gnu.py .... [ 54%] 14703s distutils/tests/test_fcompiler_intel.py .. [ 54%] 14703s distutils/tests/test_fcompiler_nagfor.py . [ 54%] 14703s distutils/tests/test_from_template.py . [ 54%] 14703s distutils/tests/test_log.py .... [ 54%] 14704s distutils/tests/test_mingw32ccompiler.py s [ 54%] 14704s distutils/tests/test_misc_util.py ....... [ 54%] 14704s distutils/tests/test_npy_pkg_config.py .... [ 54%] 14705s distutils/tests/test_shell_utils.py sssssssssssssss...............ssssss [ 55%] 14705s sssssssss............... [ 55%] 14705s distutils/tests/test_system_info.py ....ss.. [ 55%] 14707s f2py/tests/test_abstract_interface.py ss [ 55%] 14714s f2py/tests/test_array_from_pyobj.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 14738s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 14777s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%] 14828s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 14893s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 14975s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 15080s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 56%] 15195s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 57%] 15267s EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 57%] 15268s f2py/tests/test_block_docstring.py s [ 57%] 15268s f2py/tests/test_callback.py ssssssssssssssss [ 57%] 15268s f2py/tests/test_character.py sssssssssssssssssssssssssssssssssssssssssss [ 57%] 15268s [ 57%] 15268s f2py/tests/test_common.py s [ 57%] 15268s f2py/tests/test_compile_function.py sssssss [ 57%] 15268s f2py/tests/test_crackfortran.py s.....sss....ssssssssssssssssss......s [ 57%] 15268s f2py/tests/test_docs.py sss [ 57%] 15268s f2py/tests/test_f2cmap.py s [ 57%] 15270s f2py/tests/test_f2py2e.py ..x.............x.........x.................. [ 57%] 15270s f2py/tests/test_kind.py s [ 57%] 15270s f2py/tests/test_mixed.py ss [ 57%] 15270s f2py/tests/test_module_doc.py s [ 57%] 15270s f2py/tests/test_quoted_character.py s [ 58%] 15270s f2py/tests/test_regression.py . [ 58%] 15270s f2py/tests/test_return_character.py sssssssssssssss [ 58%] 15270s f2py/tests/test_return_complex.py ssssssssssssssss [ 58%] 15270s f2py/tests/test_return_integer.py ssssssssssssssssssss [ 58%] 15270s f2py/tests/test_return_real.py ssssssssssssssssssss [ 58%] 15270s f2py/tests/test_semicolon_split.py ss [ 58%] 15270s f2py/tests/test_string.py sss [ 58%] 15270s f2py/tests/test_symbolic.py ........... [ 58%] 15271s f2py/tests/test_value_attrspec.py s [ 58%] 15272s fft/tests/test_helper.py ........ [ 58%] 15273s fft/tests/test_pocketfft.py ............................................ [ 58%] 15275s .................................... [ 58%] 15275s lib/tests/test__datasource.py .......................... [ 58%] 15275s lib/tests/test__iotools.py ........................ [ 58%] 15275s lib/tests/test__version.py ........ [ 58%] 15275s lib/tests/test_arraypad.py ............................................. [ 59%] 15276s ..................................x..................................... [ 59%] 15276s ........................................................................ [ 59%] 15277s ........................................................................ [ 59%] 15277s ........................................................................ [ 60%] 15278s ........................................................................ [ 60%] 15278s ........................................................................ [ 60%] 15278s ........................................................................ [ 60%] 15278s ................................... [ 61%] 15279s lib/tests/test_arraysetops.py .......................................... [ 61%] 15279s ................................ [ 61%] 15279s lib/tests/test_arrayterator.py . [ 61%] 15279s lib/tests/test_financial_expired.py . [ 61%] 15332s lib/tests/test_format.py .....................FFF................. [ 61%] 15333s lib/tests/test_function_base.py ........................................ [ 61%] 15334s ........................................................................ [ 61%] 15356s .............................................x.......................... [ 62%] 15357s ........................................................................ [ 62%] 15357s ........................................................................ [ 62%] 15357s ........................................................................ [ 62%] 15358s ........................................................................ [ 63%] 15358s ........................................................................ [ 63%] 15359s ........................................................................ [ 63%] 15359s ........................................................................ [ 64%] 15360s ........................................................................ [ 64%] 15363s ......................................X................................. [ 64%] 15363s ................................... [ 64%] 15366s lib/tests/test_histograms.py ........................................... [ 64%] 15366s .............. [ 64%] 15367s lib/tests/test_index_tricks.py ......................................... [ 65%] 15367s ...... [ 65%] 15368s lib/tests/test_io.py ................................................... [ 65%] 15369s ........................................................................ [ 65%] 15370s ........................................................................ [ 65%] 15381s .... [ 65%] 15381s lib/tests/test_loadtxt.py .............................................. [ 65%] 15382s ........................................................................ [ 66%] 15383s ........................................................................ [ 66%] 15383s .......................x...x.............s.....x........................ [ 66%] 15385s .................. [ 66%] 15385s lib/tests/test_mixins.py ........... [ 66%] 15385s lib/tests/test_nanfunctions.py .....................ss.ss.ss.ss.ss.ss.ss [ 67%] 15386s ..........................................ss.ss.ss.ss.ss.ss.ss.......... [ 67%] 15386s ........................................................................ [ 67%] 15387s ........................................................................ [ 67%] 15387s ........................................................................ [ 68%] 15388s ........................................................................ [ 68%] 15388s ........................................................................ [ 68%] 15389s ........................................................................ [ 68%] 15389s ........................................................................ [ 69%] 15391s ........................................................................ [ 69%] 15392s ........................................................................ [ 69%] 15393s ..............................ss.ss.ss.ss.ss.ss.ss...................... [ 69%] 15394s .....................ss.ss.ss.ss.ss.ss.ss............................... [ 70%] 15394s ........ss.ss.ss.ss.ss.ss.ss............................................ [ 70%] 15398s ........................................................................ [ 70%] 15399s ..ss.ss.ss.ss.ss.ss.ss.............................ss.ss.ss.ss.ss.ss.ss. [ 71%] 15399s ......................... [ 71%] 15401s lib/tests/test_packbits.py ............................................. [ 71%] 15402s ........................................................................ [ 71%] 15403s ........................................................................ [ 71%] 15404s ........................................................................ [ 72%] 15405s ................... [ 72%] 15405s lib/tests/test_polynomial.py ..................................... [ 72%] 15406s lib/tests/test_recfunctions.py ......................................... [ 72%] 15406s .......... [ 72%] 15408s lib/tests/test_regression.py ........................... [ 72%] 15408s lib/tests/test_shape_base.py ..............................s............ [ 72%] 15409s ................................. [ 72%] 15409s lib/tests/test_stride_tricks.py .......................... [ 72%] 15410s lib/tests/test_twodim_base.py ..................................... [ 73%] 15410s lib/tests/test_type_check.py ........................................... [ 73%] 15410s ......... [ 73%] 15410s lib/tests/test_ufunclike.py ...... [ 73%] 15413s lib/tests/test_utils.py ................. [ 73%] 15413s linalg/tests/test_deprecations.py . [ 73%] 15419s linalg/tests/test_linalg.py ............................................ [ 73%] 15429s ..x..................................................................... [ 73%] 15430s ........................................................................ [ 74%] 15432s ........................................................................ [ 74%] 15436s ........................................................................ [ 74%] 15438s .....................F........................sx [ 74%] 15438s linalg/tests/test_regression.py ......... [ 74%] 15439s ma/tests/test_core.py .................................................. [ 75%] 15441s ........................................................................ [ 75%] 15442s ........................................................................ [ 75%] 15444s ........................................................................ [ 75%] 15445s ........................................................................ [ 76%] 15447s ........................................................................ [ 76%] 15448s ........................................................................ [ 76%] 15449s ........................................................................ [ 76%] 15451s ........................................................................ [ 77%] 15452s ........................................................................ [ 77%] 15454s ........................................................................ [ 77%] 15455s ........................................................................ [ 77%] 15456s ........................................................................ [ 78%] 15458s ........................................................................ [ 78%] 15459s ........................................................................ [ 78%] 15461s ........................................................................ [ 79%] 15462s ........................................................................ [ 79%] 15464s ........................................................................ [ 79%] 15465s ........................................................................ [ 79%] 15466s ........................................................................ [ 80%] 15468s ........................................................................ [ 80%] 15469s ........................................................................ [ 80%] 15471s ........................................................................ [ 80%] 15473s ........................................................................ [ 81%] 15475s ........................................................................ [ 81%] 15477s ........................................................................ [ 81%] 15479s ........................................................................ [ 81%] 15481s ........................................................................ [ 82%] 15482s ........................................................................ [ 82%] 15484s ........................................................................ [ 82%] 15485s ........................................................................ [ 83%] 15487s ........................................................................ [ 83%] 15488s ........................................................................ [ 83%] 15490s ........................................................................ [ 83%] 15491s ........................................................................ [ 84%] 15492s ........................................................................ [ 84%] 15494s ........................................................................ [ 84%] 15495s ........................................................................ [ 84%] 15497s ........................................................................ [ 85%] 15498s ........................................................................ [ 85%] 15499s ........................................................................ [ 85%] 15501s ........................................................................ [ 86%] 15502s ........................................................................ [ 86%] 15503s ........................................................................ [ 86%] 15505s ........................................................................ [ 86%] 15506s ........................................................................ [ 87%] 15508s ........................................................................ [ 87%] 15510s ........................................................................ [ 87%] 15511s ........................................................................ [ 87%] 15513s ........................................................................ [ 88%] 15515s ........................................................................ [ 88%] 15519s ........................................................................ [ 88%] 15525s ........................................xx.............................. [ 88%] 15526s ........................................................................ [ 89%] 15527s ........................................................................ [ 89%] 15528s ........................................................................ [ 89%] 15528s ......................................................... [ 89%] 15528s ma/tests/test_deprecations.py ..... [ 89%] 15530s ma/tests/test_extras.py ................................................ [ 90%] 15532s ................................................... [ 90%] 15533s ma/tests/test_mrecords.py ........................ [ 90%] 15534s ma/tests/test_old_ma.py ......................................... [ 90%] 15534s ma/tests/test_regression.py ............. [ 90%] 15535s ma/tests/test_subclassing.py ............... [ 90%] 15535s matrixlib/tests/test_defmatrix.py ...................................... [ 90%] 15536s ..... [ 90%] 15536s matrixlib/tests/test_interaction.py ....................... [ 90%] 15536s matrixlib/tests/test_masked_matrix.py .............. [ 90%] 15537s matrixlib/tests/test_matrix_linalg.py .................................. [ 91%] 15541s .................................................................... [ 91%] 15541s matrixlib/tests/test_multiarray.py .. [ 91%] 15541s matrixlib/tests/test_numeric.py .. [ 91%] 15541s matrixlib/tests/test_regression.py .... [ 91%] 15542s polynomial/tests/test_chebyshev.py ..................................... [ 91%] 15542s .... [ 91%] 15542s polynomial/tests/test_classes.py ....................................... [ 91%] 15544s ........................................................................ [ 91%] 15546s ........................................................................ [ 92%] 15547s ...................................................... [ 92%] 15548s polynomial/tests/test_hermite.py .................................. [ 92%] 15549s polynomial/tests/test_hermite_e.py .................................. [ 92%] 15550s polynomial/tests/test_laguerre.py .................................. [ 92%] 15551s polynomial/tests/test_legendre.py ...................................... [ 92%] 15551s [ 92%] 15552s polynomial/tests/test_polynomial.py ................................... [ 93%] 15552s polynomial/tests/test_polyutils.py ......... [ 93%] 15553s polynomial/tests/test_printing.py ...................................... [ 93%] 15553s ..................................... [ 93%] 15553s polynomial/tests/test_symbol.py ........................................ [ 93%] 15553s ............ [ 93%] 15554s random/tests/test_direct.py ..............s................s............ [ 93%] 15555s .....s.................s.................s.... [ 93%] 15555s random/tests/test_extending.py ss [ 93%] 15555s random/tests/test_generator_mt19937.py ................................. [ 94%] 15559s ........................................................................ [ 94%] 15561s ........................................................................ [ 94%] 15563s ........................................................................ [ 94%] 24425s ...........................autopkgtest [21:59:09]: ERROR: timed out on command "su -s /bin/bash root -c set -e; exec /tmp/autopkgtest.b6ixTN/wrapper.sh --artifacts=/tmp/autopkgtest.b6ixTN/atlas-artifacts --chdir=/tmp/autopkgtest.b6ixTN/build.5ku/src --env=AUTOPKGTEST_TESTBED_ARCH=armhf --env=AUTOPKGTEST_TEST_ARCH=armhf --env=DEB_BUILD_OPTIONS=parallel=8 --env=DEBIAN_FRONTEND=noninteractive --env=LANG=C.UTF-8 --unset-env=LANGUAGE --unset-env=LC_ADDRESS --unset-env=LC_ALL --unset-env=LC_COLLATE --unset-env=LC_CTYPE --unset-env=LC_IDENTIFICATION --unset-env=LC_MEASUREMENT --unset-env=LC_MESSAGES --unset-env=LC_MONETARY --unset-env=LC_NAME --unset-env=LC_NUMERIC --unset-env=LC_PAPER --unset-env=LC_TELEPHONE --unset-env=LC_TIME --script-pid-file=/tmp/autopkgtest_script_pid --source-profile --stderr=/tmp/autopkgtest.b6ixTN/atlas-stderr --stdout=/tmp/autopkgtest.b6ixTN/atlas-stdout --tmp=/tmp/autopkgtest.b6ixTN/autopkgtest_tmp --env=AUTOPKGTEST_NORMAL_USER=ubuntu --env=ADT_NORMAL_USER=ubuntu '--env=ADT_TEST_TRIGGERS=python3.12/3.12.2-4build3 db5.3/5.3.28+dfsg2-5build1 openssl/3.0.13-0ubuntu2 readline/8.2-3.1' --make-executable=/tmp/autopkgtest.b6ixTN/build.5ku/src/debian/tests/atlas -- /tmp/autopkgtest.b6ixTN/build.5ku/src/debian/tests/atlas" (kind: test) 24425s autopkgtest [21:59:09]: test atlas: -----------------------] 24429s atlas FAIL timed out 24429s autopkgtest [21:59:13]: test atlas: - - - - - - - - - - results - - - - - - - - - - 24434s autopkgtest [21:59:18]: test f2py: preparing testbed 24502s autopkgtest [22:00:26]: testbed dpkg architecture: armhf 24504s autopkgtest [22:00:28]: testbed apt version: 2.7.12 24504s autopkgtest [22:00:28]: @@@@@@@@@@@@@@@@@@@@ test bed setup 24506s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 24507s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [493 kB] 24507s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3757 kB] 24509s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [52.7 kB] 24509s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 24509s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf Packages [601 kB] 24509s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf c-n-f Metadata [2492 B] 24509s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf Packages [1372 B] 24509s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf c-n-f Metadata [116 B] 24509s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf Packages [3693 kB] 24511s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf c-n-f Metadata [7776 B] 24511s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf Packages [35.6 kB] 24511s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf c-n-f Metadata [116 B] 24519s Fetched 8768 kB in 6s (1586 kB/s) 24520s Reading package lists... 24526s Get:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease [117 kB] 24527s Get:2 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf Packages [601 kB] 24527s Get:3 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf c-n-f Metadata [2492 B] 24527s Get:4 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf Packages [3693 kB] 24528s Get:5 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf c-n-f Metadata [7776 B] 24528s Get:6 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf Packages [1372 B] 24528s Get:7 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf c-n-f Metadata [116 B] 24528s Get:8 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf Packages [35.6 kB] 24528s Get:9 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf c-n-f Metadata [116 B] 24537s Fetched 4459 kB in 3s (1776 kB/s) 24538s Reading package lists... 24548s tee: /proc/self/fd/2: Permission denied 24581s Hit:1 http://ftpmaster.internal/ubuntu noble InRelease 24581s Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease 24581s Hit:3 http://ports.ubuntu.com/ubuntu-ports noble InRelease 24581s Hit:4 http://ftpmaster.internal/ubuntu noble-updates InRelease 24581s Hit:5 http://ftpmaster.internal/ubuntu noble-security InRelease 24581s Hit:6 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease 24581s Hit:7 http://ftpmaster.internal/ubuntu noble-proposed InRelease 24581s Hit:8 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease 24582s Hit:9 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease 24589s Reading package lists... 24590s Reading package lists... 24591s Building dependency tree... 24591s Reading state information... 24593s Calculating upgrade... 24595s The following packages were automatically installed and are no longer required: 24595s libatasmart4 libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 24595s libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 libblockdev-swap3 24595s libblockdev-utils3 libblockdev3 libbytesize-common libbytesize1 libnspr4 24595s libnss3 libnvme1t64 libpolkit-agent-1-0 libvolume-key1 24595s linux-headers-6.8.0-11 python3-lib2to3 24595s Use 'apt autoremove' to remove them. 24598s The following packages will be REMOVED: 24598s libapt-pkg6.0 libarchive13 libatm1 libcurl3-gnutls libcurl4 libdb5.3 libelf1 24598s libext2fs2 libgdbm-compat4 libgdbm6 libglib2.0-0 libgnutls30 libgpgme11 24598s libhogweed6 libmagic1 libnetplan0 libnettle8 libnpth0 libnvme1 libparted2 24598s libpcap0.8 libperl5.38 libpng16-16 libpsl5 libreadline8 libreiserfscore0 24598s libssl3 libtirpc3 libudisks2-0 libuv1 linux-headers-6.8.0-11-generic 24598s python3-distutils udisks2 24598s The following NEW packages will be installed: 24598s libapt-pkg6.0t64 libarchive13t64 libatm1t64 libcurl3t64-gnutls libcurl4t64 24598s libdb5.3t64 libelf1t64 libext2fs2t64 libgdbm-compat4t64 libgdbm6t64 24598s libglib2.0-0t64 libgnutls30t64 libgpgme11t64 libhogweed6t64 libmagic1t64 24598s libnetplan1 libnettle8t64 libnpth0t64 libnvme1t64 libparted2t64 24598s libpcap0.8t64 libperl5.38t64 libpng16-16t64 libpsl5t64 libreadline8t64 24598s libreiserfscore0t64 libssl3t64 libtirpc3t64 libuv1t64 linux-headers-6.8.0-20 24598s linux-headers-6.8.0-20-generic xdg-user-dirs 24598s The following packages have been kept back: 24598s multipath-tools 24598s The following packages will be upgraded: 24598s apparmor apt apt-utils bind9-dnsutils bind9-host bind9-libs binutils 24598s binutils-arm-linux-gnueabihf binutils-common bolt bsdextrautils bsdutils 24598s btrfs-progs coreutils cryptsetup-bin curl dbus dbus-bin dbus-daemon 24598s dbus-session-bus-common dbus-system-bus-common dbus-user-session debianutils 24598s dhcpcd-base dirmngr dmsetup dpkg dpkg-dev e2fsprogs e2fsprogs-l10n eject 24598s fdisk file ftp fwupd gawk gcc-13-base gcc-14-base gir1.2-girepository-2.0 24598s gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client 24598s gpgconf gpgsm gpgv groff-base ibverbs-providers inetutils-telnet info 24598s initramfs-tools initramfs-tools-bin initramfs-tools-core install-info 24598s iproute2 jq keyboxd kmod kpartx krb5-locales libapparmor1 libaudit-common 24598s libaudit1 libbinutils libblkid1 libblockdev-crypto3 libblockdev-fs3 24598s libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 24598s libblockdev-swap3 libblockdev-utils3 libblockdev3 libbpf1 libbrotli1 libbsd0 24598s libc-bin libc6 libcap-ng0 libcom-err2 libcryptsetup12 libctf-nobfd0 libctf0 24598s libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl 24598s libevent-core-2.1-7 libexpat1 libfdisk1 libfido2-1 libftdi1-2 libfwupd2 24598s libgcc-s1 libgirepository-1.0-1 libglib2.0-data libgssapi-krb5-2 24598s libgudev-1.0-0 libgusb2 libibverbs1 libjcat1 libjq1 libjson-glib-1.0-0 24598s libjson-glib-1.0-common libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 24598s libldap-common libldap2 liblocale-gettext-perl liblzma5 libmagic-mgc 24598s libmbim-glib4 libmbim-proxy libmm-glib0 libmount1 libnghttp2-14 libnsl2 24598s libnss-systemd libpam-modules libpam-modules-bin libpam-runtime 24598s libpam-systemd libpam0g libplymouth5 libpolkit-agent-1-0 24598s libpolkit-gobject-1-0 libpython3-stdlib libpython3.11-minimal 24598s libpython3.11-stdlib libpython3.12-minimal libpython3.12-stdlib libqmi-glib5 24598s libqmi-proxy libqrtr-glib0 librtmp1 libsasl2-2 libsasl2-modules 24598s libsasl2-modules-db libseccomp2 libselinux1 libsemanage-common libsemanage2 24598s libsframe1 libslang2 libsmartcols1 libsqlite3-0 libss2 libssh-4 libstdc++6 24598s libsystemd-shared libsystemd0 libtext-charwidth-perl libtext-iconv-perl 24598s libtirpc-common libudev1 libusb-1.0-0 libuuid1 libvolume-key1 libxml2 24598s libxmlb2 libxmuu1 linux-headers-generic locales logsave lshw lsof man-db 24598s mount mtr-tiny netplan-generator netplan.io openssh-client openssh-server 24598s openssh-sftp-server openssl parted perl perl-base perl-modules-5.38 24598s pinentry-curses plymouth plymouth-theme-ubuntu-text psmisc python-apt-common 24598s python3 python3-apt python3-cryptography python3-dbus python3-gdbm 24598s python3-gi python3-lib2to3 python3-markupsafe python3-minimal 24598s python3-netplan python3-openssl python3-pkg-resources python3-pyrsistent 24598s python3-setuptools python3-typing-extensions python3-yaml python3.11 24598s python3.11-minimal python3.12 python3.12-minimal readline-common rsync 24598s shared-mime-info sudo systemd systemd-dev systemd-resolved systemd-sysv 24598s systemd-timesyncd tcpdump telnet tnftp ubuntu-minimal ubuntu-pro-client 24598s ubuntu-pro-client-l10n ubuntu-standard udev usb.ids util-linux uuid-runtime 24598s vim-common vim-tiny wget xxd xz-utils zlib1g 24598s 236 upgraded, 32 newly installed, 33 to remove and 1 not upgraded. 24598s Need to get 106 MB of archives. 24598s After this operation, 82.8 MB of additional disk space will be used. 24598s Get:1 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdutils armhf 1:2.39.3-9ubuntu2 [102 kB] 24598s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-14-base armhf 14-20240315-1ubuntu1 [47.0 kB] 24598s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-s1 armhf 14-20240315-1ubuntu1 [41.5 kB] 24598s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++6 armhf 14-20240315-1ubuntu1 [714 kB] 24599s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6 armhf 2.39-0ubuntu6 [2827 kB] 24600s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssl armhf 3.0.13-0ubuntu2 [975 kB] 24600s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g armhf 1:1.3.dfsg-3.1ubuntu1 [49.2 kB] 24600s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2build6 [51.3 kB] 24600s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12 armhf 3.12.2-4build3 [645 kB] 24601s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1 armhf 2.6.1-2 [65.9 kB] 24601s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-minimal armhf 3.12.2-4build3 [1942 kB] 24601s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-stdlib armhf 3.12.2-4build3 [1906 kB] 24601s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-minimal armhf 3.12.2-4build3 [816 kB] 24602s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf parted armhf 3.6-3.1build2 [39.4 kB] 24602s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblkid1 armhf 2.39.3-9ubuntu2 [160 kB] 24602s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libselinux1 armhf 3.5-2build3 [70.5 kB] 24602s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-dev all 255.4-1ubuntu5 [103 kB] 24602s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-timesyncd armhf 255.4-1ubuntu5 [36.0 kB] 24602s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-session-bus-common all 1.14.10-4ubuntu2 [80.3 kB] 24602s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit-common all 1:3.1.2-2.1 [5674 B] 24602s Get:21 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcap-ng0 armhf 0.8.4-2build1 [13.5 kB] 24602s Get:22 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit1 armhf 1:3.1.2-2.1 [44.3 kB] 24602s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam0g armhf 1.5.3-5ubuntu3 [62.0 kB] 24602s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblzma5 armhf 5.6.0-0.2 [117 kB] 24602s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap2 armhf 2.6.7+dfsg-1~exp1ubuntu6 [172 kB] 24602s Get:26 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-0t64 armhf 2.79.3-3ubuntu5 [1414 kB] 24602s Get:27 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libvolume-key1 armhf 0.3.12-7build1 [38.4 kB] 24602s Get:28 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgpgme11t64 armhf 1.18.0-4.1ubuntu3 [120 kB] 24602s Get:29 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjcat1 armhf 0.2.0-2build2 [30.4 kB] 24602s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libarchive13t64 armhf 3.7.2-1.1ubuntu1 [330 kB] 24602s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fwupd armhf 1.9.15-1 [4349 kB] 24603s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client-l10n armhf 31.2 [19.4 kB] 24603s Get:33 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client armhf 31.2 [216 kB] 24603s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11 armhf 3.11.8-1build4 [589 kB] 24603s Get:35 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11-minimal armhf 3.11.8-1build4 [1795 kB] 24603s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-minimal armhf 3.11.8-1build4 [826 kB] 24603s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-4ubuntu4 [19.2 kB] 24603s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-iconv-perl armhf 1.7-8build2 [12.7 kB] 24603s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-charwidth-perl armhf 0.04-11build2 [8962 B] 24603s Get:40 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-base armhf 5.38.2-3.2 [1671 kB] 24603s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblocale-gettext-perl armhf 1.07-6ubuntu3 [15.0 kB] 24603s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-modules-5.38 all 5.38.2-3.2 [3110 kB] 24603s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gdbm armhf 3.12.2-3ubuntu2 [17.1 kB] 24603s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf man-db armhf 2.12.0-3build4 [1196 kB] 24603s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm6t64 armhf 1.23-5.1 [30.3 kB] 24603s Get:46 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm-compat4t64 armhf 1.23-5.1 [6208 B] 24603s Get:47 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libperl5.38t64 armhf 5.38.2-3.2 [4101 kB] 24604s Get:48 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl armhf 5.38.2-3.2 [231 kB] 24604s Get:49 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdb5.3t64 armhf 5.3.28+dfsg2-5build1 [661 kB] 24604s Get:50 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-stdlib armhf 3.11.8-1build4 [1810 kB] 24604s Get:51 http://ftpmaster.internal/ubuntu noble-proposed/main armhf keyboxd armhf 2.4.4-2ubuntu15 [111 kB] 24604s Get:52 http://ftpmaster.internal/ubuntu noble/main armhf libnpth0t64 armhf 1.6-3.1 [6940 B] 24604s Get:53 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgv armhf 2.4.4-2ubuntu15 [224 kB] 24604s Get:54 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg armhf 2.4.4-2ubuntu15 [524 kB] 24604s Get:55 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-wks-client armhf 2.4.4-2ubuntu15 [87.4 kB] 24604s Get:56 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-utils armhf 2.4.4-2ubuntu15 [158 kB] 24604s Get:57 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-agent armhf 2.4.4-2ubuntu15 [235 kB] 24604s Get:58 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgsm armhf 2.4.4-2ubuntu15 [241 kB] 24604s Get:59 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreadline8t64 armhf 8.2-3.1 [129 kB] 24604s Get:60 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gawk armhf 1:5.2.1-2build2 [415 kB] 24604s Get:61 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fdisk armhf 2.39.3-9ubuntu2 [135 kB] 24604s Get:62 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgconf armhf 2.4.4-2ubuntu15 [115 kB] 24604s Get:63 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dirmngr armhf 2.4.4-2ubuntu15 [346 kB] 24604s Get:64 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg all 2.4.4-2ubuntu15 [359 kB] 24604s Get:65 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-apt armhf 2.7.6build1 [162 kB] 24604s Get:66 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt-utils armhf 2.7.13ubuntu1 [210 kB] 24604s Get:67 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapt-pkg6.0t64 armhf 2.7.13ubuntu1 [986 kB] 24604s Get:68 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnettle8t64 armhf 3.9.1-2.2 [187 kB] 24604s Get:69 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libhogweed6t64 armhf 3.9.1-2.2 [187 kB] 24604s Get:70 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgnutls30t64 armhf 3.8.3-1.1ubuntu2 [1046 kB] 24604s Get:71 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt armhf 2.7.13ubuntu1 [1367 kB] 24604s Get:72 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl3t64-gnutls armhf 8.5.0-2ubuntu7 [290 kB] 24604s Get:73 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfwupd2 armhf 1.9.15-1 [123 kB] 24604s Get:74 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpsl5t64 armhf 0.21.2-1.1 [55.7 kB] 24604s Get:75 http://ftpmaster.internal/ubuntu noble-proposed/main armhf wget armhf 1.21.4-1ubuntu2 [317 kB] 24604s Get:76 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tnftp armhf 20230507-2build1 [98.6 kB] 24604s Get:77 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpcap0.8t64 armhf 1.10.4-4.1ubuntu1 [137 kB] 24604s Get:78 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tcpdump armhf 4.99.4-3ubuntu2 [425 kB] 24604s Get:79 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd-shared armhf 255.4-1ubuntu5 [2009 kB] 24604s Get:80 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-resolved armhf 255.4-1ubuntu5 [289 kB] 24604s Get:81 http://ftpmaster.internal/ubuntu noble-proposed/main armhf sudo armhf 1.9.15p5-3ubuntu3 [936 kB] 24605s Get:82 http://ftpmaster.internal/ubuntu noble-proposed/main armhf rsync armhf 3.2.7-1build1 [413 kB] 24605s Get:83 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-cryptography armhf 41.0.7-4build2 [788 kB] 24605s Get:84 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-sftp-server armhf 1:9.6p1-3ubuntu11 [35.5 kB] 24605s Get:85 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-client armhf 1:9.6p1-3ubuntu11 [890 kB] 24605s Get:86 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-server armhf 1:9.6p1-3ubuntu11 [503 kB] 24605s Get:87 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-6.8.0-20 all 6.8.0-20.20 [13.6 MB] 24606s Get:88 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-6.8.0-20-generic armhf 6.8.0-20.20 [1287 kB] 24606s Get:89 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-generic armhf 6.8.0-20.20+1 [9610 B] 24606s Get:90 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssl3t64 armhf 3.0.13-0ubuntu2 [1558 kB] 24606s Get:91 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libudev1 armhf 255.4-1ubuntu5 [166 kB] 24606s Get:92 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd armhf 255.4-1ubuntu5 [3502 kB] 24606s Get:93 http://ftpmaster.internal/ubuntu noble-proposed/main armhf udev armhf 255.4-1ubuntu5 [1852 kB] 24606s Get:94 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-sysv armhf 255.4-1ubuntu5 [11.9 kB] 24606s Get:95 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnss-systemd armhf 255.4-1ubuntu5 [148 kB] 24606s Get:96 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-systemd armhf 255.4-1ubuntu5 [216 kB] 24606s Get:97 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd0 armhf 255.4-1ubuntu5 [410 kB] 24606s Get:98 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules-bin armhf 1.5.3-5ubuntu3 [47.0 kB] 24606s Get:99 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules armhf 1.5.3-5ubuntu3 [261 kB] 24606s Get:100 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-runtime all 1.5.3-5ubuntu3 [40.8 kB] 24606s Get:101 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-user-session armhf 1.14.10-4ubuntu2 [9962 B] 24606s Get:102 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapparmor1 armhf 4.0.0-beta3-0ubuntu2 [45.0 kB] 24606s Get:103 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-bin armhf 1.14.10-4ubuntu2 [37.1 kB] 24606s Get:104 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-system-bus-common all 1.14.10-4ubuntu2 [81.5 kB] 24607s Get:105 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus armhf 1.14.10-4ubuntu2 [28.1 kB] 24607s Get:106 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-daemon armhf 1.14.10-4ubuntu2 [109 kB] 24607s Get:107 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdbus-1-3 armhf 1.14.10-4ubuntu2 [190 kB] 24607s Get:108 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kmod armhf 31+20240202-2ubuntu4 [91.8 kB] 24607s Get:109 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkmod2 armhf 31+20240202-2ubuntu4 [44.9 kB] 24607s Get:110 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmount1 armhf 2.39.3-9ubuntu2 [171 kB] 24607s Get:111 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libseccomp2 armhf 2.5.5-1ubuntu2 [49.5 kB] 24607s Get:112 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuuid1 armhf 2.39.3-9ubuntu2 [34.4 kB] 24607s Get:113 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcryptsetup12 armhf 2:2.7.0-1ubuntu2 [238 kB] 24607s Get:114 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfdisk1 armhf 2.39.3-9ubuntu2 [196 kB] 24607s Get:115 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mount armhf 2.39.3-9ubuntu2 [134 kB] 24607s Get:116 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdevmapper1.02.1 armhf 2:1.02.185-3ubuntu2 [135 kB] 24607s Get:117 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libparted2t64 armhf 3.6-3.1build2 [143 kB] 24607s Get:118 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsqlite3-0 armhf 3.45.1-1ubuntu1 [599 kB] 24608s Get:119 http://ftpmaster.internal/ubuntu noble-proposed/main armhf pinentry-curses armhf 1.2.1-3ubuntu4 [36.7 kB] 24608s Get:120 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsmartcols1 armhf 2.39.3-9ubuntu2 [117 kB] 24608s Get:121 http://ftpmaster.internal/ubuntu noble-proposed/main armhf readline-common all 8.2-3.1 [56.4 kB] 24608s Get:122 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-yaml armhf 6.0.1-2build1 [117 kB] 24608s Get:123 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python-apt-common all 2.7.6build1 [19.8 kB] 24608s Get:124 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-setuptools all 68.1.2-2ubuntu1 [396 kB] 24608s Get:125 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pkg-resources all 68.1.2-2ubuntu1 [168 kB] 24608s Get:126 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg armhf 1.22.6ubuntu4 [1229 kB] 24608s Get:127 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-minimal armhf 3.12.2-0ubuntu1 [27.1 kB] 24608s Get:128 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3 armhf 3.12.2-0ubuntu1 [24.1 kB] 24608s Get:129 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-stdlib armhf 3.12.2-0ubuntu1 [9802 B] 24608s Get:130 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdextrautils armhf 2.39.3-9ubuntu2 [78.7 kB] 24608s Get:131 http://ftpmaster.internal/ubuntu noble-proposed/main armhf groff-base armhf 1.23.0-3build1 [946 kB] 24608s Get:132 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-2 armhf 2.1.28+dfsg1-4ubuntu4 [49.7 kB] 24608s Get:133 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-common all 1.8.0-2build1 [4210 B] 24608s Get:134 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-0 armhf 1.8.0-2build1 [61.2 kB] 24608s Get:135 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxml2 armhf 2.9.14+dfsg-1.3ubuntu2 [595 kB] 24609s Get:136 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgudev-1.0-0 armhf 1:238-3ubuntu2 [13.6 kB] 24609s Get:137 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libusb-1.0-0 armhf 2:1.0.27-1 [48.7 kB] 24609s Get:138 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgusb2 armhf 0.4.8-1build1 [34.6 kB] 24609s Get:139 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-proxy armhf 1.31.2-0ubuntu2 [5748 B] 24609s Get:140 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-glib4 armhf 1.31.2-0ubuntu2 [216 kB] 24609s Get:141 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmm-glib0 armhf 1.23.4-0ubuntu1 [214 kB] 24609s Get:142 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-agent-1-0 armhf 124-1ubuntu1 [15.3 kB] 24609s Get:143 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-gobject-1-0 armhf 124-1ubuntu1 [44.1 kB] 24609s Get:144 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-proxy armhf 1.35.2-0ubuntu1 [5732 B] 24609s Get:145 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqrtr-glib0 armhf 1.2.2-1ubuntu3 [15.4 kB] 24609s Get:146 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-glib5 armhf 1.35.2-0ubuntu1 [908 kB] 24609s Get:147 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmlb2 armhf 0.3.15-1build1 [57.0 kB] 24609s Get:148 http://ftpmaster.internal/ubuntu noble-proposed/main armhf shared-mime-info armhf 2.4-1build1 [470 kB] 24609s Get:149 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbrotli1 armhf 1.1.0-2build1 [319 kB] 24609s Get:150 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgssapi-krb5-2 armhf 1.20.1-5.1build3 [119 kB] 24609s Get:151 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5-3 armhf 1.20.1-5.1build3 [321 kB] 24609s Get:152 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5support0 armhf 1.20.1-5.1build3 [31.4 kB] 24609s Get:153 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libk5crypto3 armhf 1.20.1-5.1build3 [78.6 kB] 24609s Get:154 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcom-err2 armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 24609s Get:155 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnghttp2-14 armhf 1.59.0-1build1 [68.1 kB] 24609s Get:156 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssh-4 armhf 0.10.6-2build1 [169 kB] 24609s Get:157 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libibverbs1 armhf 50.0-2build1 [57.9 kB] 24609s Get:158 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfido2-1 armhf 1.14.0-1build1 [75.8 kB] 24609s Get:159 http://ftpmaster.internal/ubuntu noble-proposed/main armhf coreutils armhf 9.4-3ubuntu3 [1280 kB] 24609s Get:160 http://ftpmaster.internal/ubuntu noble-proposed/main armhf debianutils armhf 5.17 [88.9 kB] 24609s Get:161 http://ftpmaster.internal/ubuntu noble-proposed/main armhf util-linux armhf 2.39.3-9ubuntu2 [1216 kB] 24610s Get:162 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-bin armhf 2.39-0ubuntu6 [530 kB] 24610s Get:163 http://ftpmaster.internal/ubuntu noble-proposed/main armhf curl armhf 8.5.0-2ubuntu7 [219 kB] 24610s Get:164 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl4t64 armhf 8.5.0-2ubuntu7 [296 kB] 24610s Get:165 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbpf1 armhf 1:1.3.0-2build1 [146 kB] 24610s Get:166 http://ftpmaster.internal/ubuntu noble-proposed/main armhf iproute2 armhf 6.1.0-1ubuntu5 [1060 kB] 24610s Get:167 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libelf1t64 armhf 0.190-1.1build2 [49.9 kB] 24610s Get:168 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lsof armhf 4.95.0-1build2 [248 kB] 24610s Get:169 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnsl2 armhf 1.3.0-3build2 [36.5 kB] 24610s Get:170 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc-common all 1.3.4+ds-1.1 [8018 B] 24610s Get:171 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc3t64 armhf 1.3.4+ds-1.1 [73.2 kB] 24610s Get:172 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-utils3 armhf 3.1.0-1build1 [16.9 kB] 24610s Get:173 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-fs3 armhf 3.1.0-1build1 [34.4 kB] 24610s Get:174 http://ftpmaster.internal/ubuntu noble-proposed/main armhf logsave armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 24610s Get:175 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-minimal armhf 1.536build1 [10.7 kB] 24610s Get:176 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools all 0.142ubuntu22 [9056 B] 24610s Get:177 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-core all 0.142ubuntu22 [50.0 kB] 24610s Get:178 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs-l10n all 1.47.0-2.4~exp1ubuntu2 [5996 B] 24610s Get:179 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libext2fs2t64 armhf 1.47.0-2.4~exp1ubuntu2 [201 kB] 24610s Get:180 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs armhf 1.47.0-2.4~exp1ubuntu2 [571 kB] 24610s Get:181 http://ftpmaster.internal/ubuntu noble-proposed/main armhf btrfs-progs armhf 6.6.3-1.1build1 [852 kB] 24610s Get:182 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dhcpcd-base armhf 1:10.0.6-1ubuntu2 [186 kB] 24610s Get:183 http://ftpmaster.internal/ubuntu noble-proposed/main armhf eject armhf 2.39.3-9ubuntu2 [43.2 kB] 24611s Get:184 http://ftpmaster.internal/ubuntu noble-proposed/main armhf locales all 2.39-0ubuntu6 [4232 kB] 24611s Get:185 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnetplan1 armhf 1.0-1 [113 kB] 24611s Get:186 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-netplan armhf 1.0-1 [22.5 kB] 24611s Get:187 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan-generator armhf 1.0-1 [58.7 kB] 24611s Get:188 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dbus armhf 1.3.2-5build2 [94.7 kB] 24611s Get:189 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan.io armhf 1.0-1 [64.3 kB] 24611s Get:190 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-tiny armhf 2:9.1.0016-1ubuntu5 [665 kB] 24611s Get:191 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-common all 2:9.1.0016-1ubuntu5 [385 kB] 24612s Get:192 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-bin armhf 0.142ubuntu22 [20.1 kB] 24612s Get:193 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreiserfscore0t64 armhf 1:3.6.27-7.1 [66.2 kB] 24612s Get:194 http://ftpmaster.internal/ubuntu noble-proposed/main armhf file armhf 1:5.45-3 [21.1 kB] 24612s Get:195 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic-mgc armhf 1:5.45-3 [307 kB] 24612s Get:196 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic1t64 armhf 1:5.45-3 [81.4 kB] 24612s Get:197 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-nvme3 armhf 3.1.0-1build1 [17.5 kB] 24612s Get:198 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnvme1t64 armhf 1.8-3 [67.5 kB] 24612s Get:199 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libplymouth5 armhf 24.004.60-1ubuntu5 [140 kB] 24612s Get:200 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpng16-16t64 armhf 1.6.43-3 [166 kB] 24612s Get:201 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-host armhf 1:9.18.24-0ubuntu3 [47.4 kB] 24612s Get:202 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-dnsutils armhf 1:9.18.24-0ubuntu3 [149 kB] 24612s Get:203 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-libs armhf 1:9.18.24-0ubuntu3 [1148 kB] 24613s Get:204 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuv1t64 armhf 1.48.0-1.1 [82.9 kB] 24613s Get:205 http://ftpmaster.internal/ubuntu noble-proposed/main armhf uuid-runtime armhf 2.39.3-9ubuntu2 [41.7 kB] 24613s Get:206 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdebconfclient0 armhf 0.271ubuntu2 [10.8 kB] 24613s Get:207 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage-common all 3.5-1build4 [10.1 kB] 24613s Get:208 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage2 armhf 3.5-1build4 [84.5 kB] 24613s Get:209 http://ftpmaster.internal/ubuntu noble-proposed/main armhf install-info armhf 7.1-3build1 [60.5 kB] 24613s Get:210 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-base armhf 13.2.0-19ubuntu1 [47.7 kB] 24613s Get:211 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libss2 armhf 1.47.0-2.4~exp1ubuntu2 [14.7 kB] 24613s Get:212 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dmsetup armhf 2:1.02.185-3ubuntu2 [81.1 kB] 24613s Get:213 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-girepository-2.0 armhf 1.79.1-1ubuntu6 [24.8 kB] 24613s Get:214 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-glib-2.0 armhf 2.79.3-3ubuntu5 [182 kB] 24613s Get:215 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgirepository-1.0-1 armhf 1.79.1-1ubuntu6 [106 kB] 24613s Get:216 http://ftpmaster.internal/ubuntu noble-proposed/main armhf krb5-locales all 1.20.1-5.1build3 [13.8 kB] 24613s Get:217 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbsd0 armhf 0.12.1-1 [36.6 kB] 24613s Get:218 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-data all 2.79.3-3ubuntu5 [46.6 kB] 24613s Get:219 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libslang2 armhf 2.3.3-3build1 [478 kB] 24613s Get:220 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gi armhf 3.47.0-3build1 [219 kB] 24613s Get:221 http://ftpmaster.internal/ubuntu noble/main armhf xdg-user-dirs armhf 0.18-1 [17.3 kB] 24613s Get:222 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xxd armhf 2:9.1.0016-1ubuntu5 [62.4 kB] 24613s Get:223 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apparmor armhf 4.0.0-beta3-0ubuntu2 [562 kB] 24614s Get:224 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ftp all 20230507-2build1 [4724 B] 24614s Get:225 http://ftpmaster.internal/ubuntu noble-proposed/main armhf inetutils-telnet armhf 2:2.5-3ubuntu3 [90.7 kB] 24614s Get:226 http://ftpmaster.internal/ubuntu noble-proposed/main armhf info armhf 7.1-3build1 [127 kB] 24614s Get:227 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmuu1 armhf 2:1.1.3-3build1 [8004 B] 24614s Get:228 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lshw armhf 02.19.git.2021.06.19.996aaad9c7-2build2 [310 kB] 24614s Get:229 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mtr-tiny armhf 0.95-1.1build1 [51.7 kB] 24614s Get:230 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth-theme-ubuntu-text armhf 24.004.60-1ubuntu5 [9826 B] 24614s Get:231 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth armhf 24.004.60-1ubuntu5 [143 kB] 24614s Get:232 http://ftpmaster.internal/ubuntu noble-proposed/main armhf psmisc armhf 23.7-1 [176 kB] 24614s Get:233 http://ftpmaster.internal/ubuntu noble-proposed/main armhf telnet all 0.17+2.5-3ubuntu3 [3682 B] 24614s Get:234 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xz-utils armhf 5.6.0-0.2 [271 kB] 24614s Get:235 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-standard armhf 1.536build1 [10.7 kB] 24614s Get:236 http://ftpmaster.internal/ubuntu noble-proposed/main armhf usb.ids all 2024.03.18-1 [223 kB] 24614s Get:237 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libctf-nobfd0 armhf 2.42-4ubuntu1 [88.0 kB] 24614s Get:238 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libctf0 armhf 2.42-4ubuntu1 [87.7 kB] 24614s Get:239 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils-arm-linux-gnueabihf armhf 2.42-4ubuntu1 [2925 kB] 24615s Get:240 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbinutils armhf 2.42-4ubuntu1 [464 kB] 24615s Get:241 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils armhf 2.42-4ubuntu1 [3078 B] 24615s Get:242 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils-common armhf 2.42-4ubuntu1 [217 kB] 24615s Get:243 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsframe1 armhf 2.42-4ubuntu1 [13.1 kB] 24615s Get:244 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bolt armhf 0.9.6-2build1 [138 kB] 24615s Get:245 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cryptsetup-bin armhf 2:2.7.0-1ubuntu2 [214 kB] 24615s Get:246 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg-dev all 1.22.6ubuntu4 [1074 kB] 24615s Get:247 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdpkg-perl all 1.22.6ubuntu4 [268 kB] 24615s Get:248 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-l10n all 2.4.4-2ubuntu15 [65.8 kB] 24615s Get:249 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ibverbs-providers armhf 50.0-2build1 [27.4 kB] 24615s Get:250 http://ftpmaster.internal/ubuntu noble-proposed/main armhf jq armhf 1.7.1-3 [65.2 kB] 24615s Get:251 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjq1 armhf 1.7.1-3 [156 kB] 24615s Get:252 http://ftpmaster.internal/ubuntu noble/main armhf libatm1t64 armhf 1:2.5.1-5.1 [20.0 kB] 24615s Get:253 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-crypto3 armhf 3.1.0-1build1 [20.3 kB] 24615s Get:254 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-loop3 armhf 3.1.0-1build1 [6502 B] 24615s Get:255 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-mdraid3 armhf 3.1.0-1build1 [13.3 kB] 24615s Get:256 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-part3 armhf 3.1.0-1build1 [16.4 kB] 24615s Get:257 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-swap3 armhf 3.1.0-1build1 [8894 B] 24615s Get:258 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev3 armhf 3.1.0-1build1 [42.9 kB] 24615s Get:259 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libevent-core-2.1-7 armhf 2.1.12-stable-9build1 [82.3 kB] 24615s Get:260 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libftdi1-2 armhf 1.5-6build4 [25.7 kB] 24615s Get:261 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap-common all 2.6.7+dfsg-1~exp1ubuntu6 [31.3 kB] 24615s Get:262 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules armhf 2.1.28+dfsg1-4ubuntu4 [61.4 kB] 24615s Get:263 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-lib2to3 all 3.12.2-3ubuntu2 [79.3 kB] 24615s Get:264 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-markupsafe armhf 2.1.5-1build1 [12.1 kB] 24615s Get:265 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-openssl all 24.0.0-4 [47.9 kB] 24615s Get:266 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pyrsistent armhf 0.20.0-1build1 [53.0 kB] 24615s Get:267 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-typing-extensions all 4.10.0-1 [60.7 kB] 24615s Get:268 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kpartx armhf 0.9.4-5ubuntu5 [31.4 kB] 24620s Preconfiguring packages ... 24621s Fetched 106 MB in 18s (6045 kB/s) 24622s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 24622s Preparing to unpack .../bsdutils_1%3a2.39.3-9ubuntu2_armhf.deb ... 24622s Unpacking bsdutils (1:2.39.3-9ubuntu2) over (1:2.39.3-6ubuntu2) ... 24622s Setting up bsdutils (1:2.39.3-9ubuntu2) ... 24622s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 24622s Preparing to unpack .../gcc-14-base_14-20240315-1ubuntu1_armhf.deb ... 24622s Unpacking gcc-14-base:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 24622s Setting up gcc-14-base:armhf (14-20240315-1ubuntu1) ... 24622s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 24622s Preparing to unpack .../libgcc-s1_14-20240315-1ubuntu1_armhf.deb ... 24622s Unpacking libgcc-s1:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 24623s Setting up libgcc-s1:armhf (14-20240315-1ubuntu1) ... 24623s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 24623s Preparing to unpack .../libstdc++6_14-20240315-1ubuntu1_armhf.deb ... 24623s Unpacking libstdc++6:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 24623s Setting up libstdc++6:armhf (14-20240315-1ubuntu1) ... 24623s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 24623s Preparing to unpack .../libc6_2.39-0ubuntu6_armhf.deb ... 24624s Unpacking libc6:armhf (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 24625s Setting up libc6:armhf (2.39-0ubuntu6) ... 24627s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 24627s Preparing to unpack .../openssl_3.0.13-0ubuntu2_armhf.deb ... 24627s Unpacking openssl (3.0.13-0ubuntu2) over (3.0.10-1ubuntu4) ... 24628s Preparing to unpack .../zlib1g_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 24628s Unpacking zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) over (1:1.3.dfsg-3ubuntu1) ... 24628s Setting up zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) ... 24628s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 24628s Preparing to unpack .../0-librtmp1_2.4+20151223.gitfa8646d.1-2build6_armhf.deb ... 24628s Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) over (2.4+20151223.gitfa8646d.1-2build4) ... 24628s Preparing to unpack .../1-python3.12_3.12.2-4build3_armhf.deb ... 24629s Unpacking python3.12 (3.12.2-4build3) over (3.12.2-1) ... 24629s Preparing to unpack .../2-libexpat1_2.6.1-2_armhf.deb ... 24629s Unpacking libexpat1:armhf (2.6.1-2) over (2.6.0-1) ... 24629s Preparing to unpack .../3-python3.12-minimal_3.12.2-4build3_armhf.deb ... 24629s Unpacking python3.12-minimal (3.12.2-4build3) over (3.12.2-1) ... 24629s Preparing to unpack .../4-libpython3.12-stdlib_3.12.2-4build3_armhf.deb ... 24629s Unpacking libpython3.12-stdlib:armhf (3.12.2-4build3) over (3.12.2-1) ... 24630s Preparing to unpack .../5-libpython3.12-minimal_3.12.2-4build3_armhf.deb ... 24631s Unpacking libpython3.12-minimal:armhf (3.12.2-4build3) over (3.12.2-1) ... 24631s Preparing to unpack .../6-parted_3.6-3.1build2_armhf.deb ... 24631s Unpacking parted (3.6-3.1build2) over (3.6-3) ... 24632s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 24632s Removing libparted2:armhf (3.6-3) ... 24632s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24632s Preparing to unpack .../libblkid1_2.39.3-9ubuntu2_armhf.deb ... 24632s Unpacking libblkid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24632s Setting up libblkid1:armhf (2.39.3-9ubuntu2) ... 24633s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24633s Preparing to unpack .../libselinux1_3.5-2build3_armhf.deb ... 24633s Unpacking libselinux1:armhf (3.5-2build3) over (3.5-2build1) ... 24633s Setting up libselinux1:armhf (3.5-2build3) ... 24633s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24633s Preparing to unpack .../systemd-dev_255.4-1ubuntu5_all.deb ... 24633s Unpacking systemd-dev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24633s Preparing to unpack .../systemd-timesyncd_255.4-1ubuntu5_armhf.deb ... 24633s Unpacking systemd-timesyncd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24634s Preparing to unpack .../dbus-session-bus-common_1.14.10-4ubuntu2_all.deb ... 24634s Unpacking dbus-session-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 24634s Preparing to unpack .../libaudit-common_1%3a3.1.2-2.1_all.deb ... 24634s Unpacking libaudit-common (1:3.1.2-2.1) over (1:3.1.2-2) ... 24634s Setting up libaudit-common (1:3.1.2-2.1) ... 24634s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24634s Preparing to unpack .../libcap-ng0_0.8.4-2build1_armhf.deb ... 24634s Unpacking libcap-ng0:armhf (0.8.4-2build1) over (0.8.4-2) ... 24634s Setting up libcap-ng0:armhf (0.8.4-2build1) ... 24634s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24634s Preparing to unpack .../libaudit1_1%3a3.1.2-2.1_armhf.deb ... 24634s Unpacking libaudit1:armhf (1:3.1.2-2.1) over (1:3.1.2-2) ... 24635s Setting up libaudit1:armhf (1:3.1.2-2.1) ... 24635s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24635s Preparing to unpack .../libpam0g_1.5.3-5ubuntu3_armhf.deb ... 24635s Unpacking libpam0g:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 24635s Setting up libpam0g:armhf (1.5.3-5ubuntu3) ... 24635s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24635s Preparing to unpack .../liblzma5_5.6.0-0.2_armhf.deb ... 24635s Unpacking liblzma5:armhf (5.6.0-0.2) over (5.4.5-0.3) ... 24636s Setting up liblzma5:armhf (5.6.0-0.2) ... 24636s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24636s Preparing to unpack .../libldap2_2.6.7+dfsg-1~exp1ubuntu6_armhf.deb ... 24636s Unpacking libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 24636s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 24636s Removing udisks2 (2.10.1-1ubuntu2) ... 24638s dpkg: libglib2.0-0:armhf: dependency problems, but removing anyway as you requested: 24638s shared-mime-info depends on libglib2.0-0 (>= 2.75.3). 24638s python3-gi depends on libglib2.0-0 (>= 2.77.0). 24638s python3-dbus depends on libglib2.0-0 (>= 2.16.0). 24638s netplan.io depends on libglib2.0-0 (>= 2.70.0). 24638s netplan-generator depends on libglib2.0-0 (>= 2.70.0). 24638s libxmlb2:armhf depends on libglib2.0-0 (>= 2.54.0). 24638s libvolume-key1:armhf depends on libglib2.0-0 (>= 2.18.0). 24638s libudisks2-0:armhf depends on libglib2.0-0 (>= 2.75.3). 24638s libqrtr-glib0:armhf depends on libglib2.0-0 (>= 2.56). 24638s libqmi-proxy depends on libglib2.0-0 (>= 2.30.0). 24638s libqmi-glib5:armhf depends on libglib2.0-0 (>= 2.54.0). 24638s libpolkit-gobject-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 24638s libpolkit-agent-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 24638s libnetplan0:armhf depends on libglib2.0-0 (>= 2.75.3). 24638s libmm-glib0:armhf depends on libglib2.0-0 (>= 2.62.0). 24638s libmbim-proxy depends on libglib2.0-0 (>= 2.56). 24638s libmbim-glib4:armhf depends on libglib2.0-0 (>= 2.56). 24638s libjson-glib-1.0-0:armhf depends on libglib2.0-0 (>= 2.75.3). 24638s libjcat1:armhf depends on libglib2.0-0 (>= 2.75.3). 24638s libgusb2:armhf depends on libglib2.0-0 (>= 2.75.3). 24638s libgudev-1.0-0:armhf depends on libglib2.0-0 (>= 2.38.0). 24638s libgirepository-1.0-1:armhf depends on libglib2.0-0 (>= 2.79.0). 24638s libfwupd2:armhf depends on libglib2.0-0 (>= 2.79.0). 24638s libblockdev3:armhf depends on libglib2.0-0 (>= 2.42.2). 24638s libblockdev-utils3:armhf depends on libglib2.0-0 (>= 2.75.3). 24638s libblockdev-swap3:armhf depends on libglib2.0-0 (>= 2.42.2). 24638s libblockdev-part3:armhf depends on libglib2.0-0 (>= 2.42.2). 24638s libblockdev-nvme3:armhf depends on libglib2.0-0 (>= 2.42.2). 24638s libblockdev-mdraid3:armhf depends on libglib2.0-0 (>= 2.42.2). 24638s libblockdev-loop3:armhf depends on libglib2.0-0 (>= 2.42.2). 24638s libblockdev-fs3:armhf depends on libglib2.0-0 (>= 2.42.2). 24638s libblockdev-crypto3:armhf depends on libglib2.0-0 (>= 2.42.2). 24638s gir1.2-glib-2.0:armhf depends on libglib2.0-0 (= 2.79.2-1~ubuntu1). 24638s fwupd depends on libglib2.0-0 (>= 2.79.0). 24638s bolt depends on libglib2.0-0 (>= 2.56.0). 24638s 24638s Removing libglib2.0-0:armhf (2.79.2-1~ubuntu1) ... 24638s Selecting previously unselected package libglib2.0-0t64:armhf. 24638s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58560 files and directories currently installed.) 24638s Preparing to unpack .../libglib2.0-0t64_2.79.3-3ubuntu5_armhf.deb ... 24638s libglib2.0-0t64.preinst: Removing /var/lib/dpkg/info/libglib2.0-0:armhf.postrm to avoid loss of /usr/share/glib-2.0/schemas/gschemas.compiled... 24638s removed '/var/lib/dpkg/info/libglib2.0-0:armhf.postrm' 24638s Unpacking libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 24639s Preparing to unpack .../libvolume-key1_0.3.12-7build1_armhf.deb ... 24639s Unpacking libvolume-key1:armhf (0.3.12-7build1) over (0.3.12-5build2) ... 24639s dpkg: libgpgme11:armhf: dependency problems, but removing anyway as you requested: 24639s libjcat1:armhf depends on libgpgme11 (>= 1.2.0). 24639s 24639s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58585 files and directories currently installed.) 24639s Removing libgpgme11:armhf (1.18.0-4ubuntu1) ... 24639s Selecting previously unselected package libgpgme11t64:armhf. 24639s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58579 files and directories currently installed.) 24639s Preparing to unpack .../libgpgme11t64_1.18.0-4.1ubuntu3_armhf.deb ... 24639s Unpacking libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 24640s Preparing to unpack .../libjcat1_0.2.0-2build2_armhf.deb ... 24640s Unpacking libjcat1:armhf (0.2.0-2build2) over (0.2.0-2) ... 24640s dpkg: libarchive13:armhf: dependency problems, but removing anyway as you requested: 24640s fwupd depends on libarchive13 (>= 3.2.1). 24640s 24640s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58586 files and directories currently installed.) 24640s Removing libarchive13:armhf (3.7.2-1ubuntu2) ... 24640s Selecting previously unselected package libarchive13t64:armhf. 24640s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58580 files and directories currently installed.) 24640s Preparing to unpack .../00-libarchive13t64_3.7.2-1.1ubuntu1_armhf.deb ... 24640s Unpacking libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 24641s Preparing to unpack .../01-fwupd_1.9.15-1_armhf.deb ... 24641s Unpacking fwupd (1.9.15-1) over (1.9.14-1) ... 24642s Preparing to unpack .../02-ubuntu-pro-client-l10n_31.2_armhf.deb ... 24642s Unpacking ubuntu-pro-client-l10n (31.2) over (31.1) ... 24642s Preparing to unpack .../03-ubuntu-pro-client_31.2_armhf.deb ... 24643s Unpacking ubuntu-pro-client (31.2) over (31.1) ... 24643s Preparing to unpack .../04-python3.11_3.11.8-1build4_armhf.deb ... 24644s Unpacking python3.11 (3.11.8-1build4) over (3.11.8-1) ... 24644s Preparing to unpack .../05-python3.11-minimal_3.11.8-1build4_armhf.deb ... 24644s Unpacking python3.11-minimal (3.11.8-1build4) over (3.11.8-1) ... 24644s Preparing to unpack .../06-libpython3.11-minimal_3.11.8-1build4_armhf.deb ... 24644s Unpacking libpython3.11-minimal:armhf (3.11.8-1build4) over (3.11.8-1) ... 24645s Preparing to unpack .../07-libsasl2-modules-db_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 24645s Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 24645s Preparing to unpack .../08-libtext-iconv-perl_1.7-8build2_armhf.deb ... 24645s Unpacking libtext-iconv-perl:armhf (1.7-8build2) over (1.7-8build1) ... 24645s Preparing to unpack .../09-libtext-charwidth-perl_0.04-11build2_armhf.deb ... 24645s Unpacking libtext-charwidth-perl:armhf (0.04-11build2) over (0.04-11build1) ... 24645s Preparing to unpack .../10-perl-base_5.38.2-3.2_armhf.deb ... 24645s Unpacking perl-base (5.38.2-3.2) over (5.38.2-3) ... 24647s Setting up perl-base (5.38.2-3.2) ... 24647s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 24647s Preparing to unpack .../liblocale-gettext-perl_1.07-6ubuntu3_armhf.deb ... 24647s Unpacking liblocale-gettext-perl (1.07-6ubuntu3) over (1.07-6build1) ... 24647s Preparing to unpack .../perl-modules-5.38_5.38.2-3.2_all.deb ... 24647s Unpacking perl-modules-5.38 (5.38.2-3.2) over (5.38.2-3) ... 24650s Preparing to unpack .../python3-gdbm_3.12.2-3ubuntu2_armhf.deb ... 24650s Unpacking python3-gdbm:armhf (3.12.2-3ubuntu2) over (3.11.5-1) ... 24650s Preparing to unpack .../man-db_2.12.0-3build4_armhf.deb ... 24650s Unpacking man-db (2.12.0-3build4) over (2.12.0-3) ... 24650s dpkg: libgdbm-compat4:armhf: dependency problems, but removing anyway as you requested: 24650s libperl5.38:armhf depends on libgdbm-compat4 (>= 1.18-3). 24650s 24650s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 24650s Removing libgdbm-compat4:armhf (1.23-5) ... 24650s dpkg: libgdbm6:armhf: dependency problems, but removing anyway as you requested: 24650s libperl5.38:armhf depends on libgdbm6 (>= 1.21). 24650s 24650s Removing libgdbm6:armhf (1.23-5) ... 24651s Selecting previously unselected package libgdbm6t64:armhf. 24651s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58577 files and directories currently installed.) 24651s Preparing to unpack .../libgdbm6t64_1.23-5.1_armhf.deb ... 24651s Unpacking libgdbm6t64:armhf (1.23-5.1) ... 24651s Selecting previously unselected package libgdbm-compat4t64:armhf. 24651s Preparing to unpack .../libgdbm-compat4t64_1.23-5.1_armhf.deb ... 24651s Unpacking libgdbm-compat4t64:armhf (1.23-5.1) ... 24651s dpkg: libperl5.38:armhf: dependency problems, but removing anyway as you requested: 24651s perl depends on libperl5.38 (= 5.38.2-3). 24651s 24651s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 24651s Removing libperl5.38:armhf (5.38.2-3) ... 24651s Selecting previously unselected package libperl5.38t64:armhf. 24652s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58070 files and directories currently installed.) 24652s Preparing to unpack .../libperl5.38t64_5.38.2-3.2_armhf.deb ... 24652s Unpacking libperl5.38t64:armhf (5.38.2-3.2) ... 24653s Preparing to unpack .../perl_5.38.2-3.2_armhf.deb ... 24653s Unpacking perl (5.38.2-3.2) over (5.38.2-3) ... 24653s dpkg: libdb5.3:armhf: dependency problems, but removing anyway as you requested: 24653s libpython3.11-stdlib:armhf depends on libdb5.3. 24653s libpam-modules:armhf depends on libdb5.3. 24653s iproute2 depends on libdb5.3. 24653s apt-utils depends on libdb5.3. 24653s 24653s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 24653s Removing libdb5.3:armhf (5.3.28+dfsg2-4) ... 24653s Selecting previously unselected package libdb5.3t64:armhf. 24654s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58583 files and directories currently installed.) 24654s Preparing to unpack .../libdb5.3t64_5.3.28+dfsg2-5build1_armhf.deb ... 24654s Unpacking libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 24654s Preparing to unpack .../libpython3.11-stdlib_3.11.8-1build4_armhf.deb ... 24654s Unpacking libpython3.11-stdlib:armhf (3.11.8-1build4) over (3.11.8-1) ... 24655s Preparing to unpack .../keyboxd_2.4.4-2ubuntu15_armhf.deb ... 24655s Unpacking keyboxd (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24655s dpkg: libnpth0:armhf: dependency problems, but removing anyway as you requested: 24655s gpgv depends on libnpth0 (>= 0.90). 24655s gpgsm depends on libnpth0 (>= 0.90). 24655s gpg-agent depends on libnpth0 (>= 0.90). 24655s gpg depends on libnpth0 (>= 0.90). 24655s dirmngr depends on libnpth0 (>= 0.90). 24655s 24655s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 24655s Removing libnpth0:armhf (1.6-3build2) ... 24655s Selecting previously unselected package libnpth0t64:armhf. 24656s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58582 files and directories currently installed.) 24656s Preparing to unpack .../libnpth0t64_1.6-3.1_armhf.deb ... 24656s Unpacking libnpth0t64:armhf (1.6-3.1) ... 24656s Setting up libnpth0t64:armhf (1.6-3.1) ... 24656s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 24656s Preparing to unpack .../gpgv_2.4.4-2ubuntu15_armhf.deb ... 24656s Unpacking gpgv (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24656s Setting up gpgv (2.4.4-2ubuntu15) ... 24656s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 24656s Preparing to unpack .../gpg_2.4.4-2ubuntu15_armhf.deb ... 24656s Unpacking gpg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24656s Preparing to unpack .../gpg-wks-client_2.4.4-2ubuntu15_armhf.deb ... 24656s Unpacking gpg-wks-client (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24656s Preparing to unpack .../gnupg-utils_2.4.4-2ubuntu15_armhf.deb ... 24656s Unpacking gnupg-utils (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24657s Preparing to unpack .../gpg-agent_2.4.4-2ubuntu15_armhf.deb ... 24657s Unpacking gpg-agent (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24657s Preparing to unpack .../gpgsm_2.4.4-2ubuntu15_armhf.deb ... 24657s Unpacking gpgsm (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24657s dpkg: libreadline8:armhf: dependency problems, but removing anyway as you requested: 24657s gpgconf depends on libreadline8 (>= 6.0). 24657s gawk depends on libreadline8 (>= 6.0). 24657s fdisk depends on libreadline8 (>= 6.0). 24657s 24657s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 24657s Removing libreadline8:armhf (8.2-3) ... 24657s Selecting previously unselected package libreadline8t64:armhf. 24657s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58576 files and directories currently installed.) 24657s Preparing to unpack .../libreadline8t64_8.2-3.1_armhf.deb ... 24657s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8 to /lib/arm-linux-gnueabihf/libhistory.so.8.usr-is-merged by libreadline8t64' 24657s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8.2 to /lib/arm-linux-gnueabihf/libhistory.so.8.2.usr-is-merged by libreadline8t64' 24657s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8 to /lib/arm-linux-gnueabihf/libreadline.so.8.usr-is-merged by libreadline8t64' 24657s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8.2 to /lib/arm-linux-gnueabihf/libreadline.so.8.2.usr-is-merged by libreadline8t64' 24657s Unpacking libreadline8t64:armhf (8.2-3.1) ... 24658s Setting up libreadline8t64:armhf (8.2-3.1) ... 24658s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 24658s Preparing to unpack .../0-gawk_1%3a5.2.1-2build2_armhf.deb ... 24658s Unpacking gawk (1:5.2.1-2build2) over (1:5.2.1-2) ... 24658s Preparing to unpack .../1-fdisk_2.39.3-9ubuntu2_armhf.deb ... 24658s Unpacking fdisk (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24659s Preparing to unpack .../2-gpgconf_2.4.4-2ubuntu15_armhf.deb ... 24659s Unpacking gpgconf (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24659s Preparing to unpack .../3-dirmngr_2.4.4-2ubuntu15_armhf.deb ... 24659s Unpacking dirmngr (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24659s Preparing to unpack .../4-gnupg_2.4.4-2ubuntu15_all.deb ... 24659s Unpacking gnupg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24659s Preparing to unpack .../5-python3-apt_2.7.6build1_armhf.deb ... 24660s Unpacking python3-apt (2.7.6build1) over (2.7.6) ... 24660s Preparing to unpack .../6-apt-utils_2.7.13ubuntu1_armhf.deb ... 24660s Unpacking apt-utils (2.7.13ubuntu1) over (2.7.12) ... 24660s dpkg: libapt-pkg6.0:armhf: dependency problems, but removing anyway as you requested: 24660s apt depends on libapt-pkg6.0 (>= 2.7.12). 24660s 24660s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58594 files and directories currently installed.) 24660s Removing libapt-pkg6.0:armhf (2.7.12) ... 24660s dpkg: libnettle8:armhf: dependency problems, but removing anyway as you requested: 24660s libhogweed6:armhf depends on libnettle8. 24660s libgnutls30:armhf depends on libnettle8 (>= 3.9~). 24660s libcurl3-gnutls:armhf depends on libnettle8. 24660s 24660s Removing libnettle8:armhf (3.9.1-2) ... 24660s Selecting previously unselected package libapt-pkg6.0t64:armhf. 24660s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58538 files and directories currently installed.) 24660s Preparing to unpack .../libapt-pkg6.0t64_2.7.13ubuntu1_armhf.deb ... 24660s Unpacking libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 24661s Setting up libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 24661s Selecting previously unselected package libnettle8t64:armhf. 24661s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 24661s Preparing to unpack .../libnettle8t64_3.9.1-2.2_armhf.deb ... 24661s Unpacking libnettle8t64:armhf (3.9.1-2.2) ... 24661s Setting up libnettle8t64:armhf (3.9.1-2.2) ... 24661s dpkg: libhogweed6:armhf: dependency problems, but removing anyway as you requested: 24661s libgnutls30:armhf depends on libhogweed6 (>= 3.6). 24661s 24661s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 24661s Removing libhogweed6:armhf (3.9.1-2) ... 24661s Selecting previously unselected package libhogweed6t64:armhf. 24661s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58591 files and directories currently installed.) 24662s Preparing to unpack .../libhogweed6t64_3.9.1-2.2_armhf.deb ... 24662s Unpacking libhogweed6t64:armhf (3.9.1-2.2) ... 24662s Setting up libhogweed6t64:armhf (3.9.1-2.2) ... 24662s dpkg: libgnutls30:armhf: dependency problems, but removing anyway as you requested: 24662s libcurl3-gnutls:armhf depends on libgnutls30 (>= 3.8.2). 24662s apt depends on libgnutls30 (>= 3.8.1). 24662s 24662s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58597 files and directories currently installed.) 24662s Removing libgnutls30:armhf (3.8.3-1ubuntu1) ... 24662s Selecting previously unselected package libgnutls30t64:armhf. 24662s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 24662s Preparing to unpack .../libgnutls30t64_3.8.3-1.1ubuntu2_armhf.deb ... 24662s Unpacking libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 24662s Setting up libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 24663s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 24663s Preparing to unpack .../apt_2.7.13ubuntu1_armhf.deb ... 24663s Unpacking apt (2.7.13ubuntu1) over (2.7.12) ... 24664s Setting up apt (2.7.13ubuntu1) ... 24666s dpkg: libcurl3-gnutls:armhf: dependency problems, but removing anyway as you requested: 24666s libfwupd2:armhf depends on libcurl3-gnutls (>= 7.63.0). 24666s 24666s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 24666s Removing libcurl3-gnutls:armhf (8.5.0-2ubuntu2) ... 24666s Selecting previously unselected package libcurl3t64-gnutls:armhf. 24667s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58609 files and directories currently installed.) 24667s Preparing to unpack .../libcurl3t64-gnutls_8.5.0-2ubuntu7_armhf.deb ... 24667s Unpacking libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 24667s Preparing to unpack .../libfwupd2_1.9.15-1_armhf.deb ... 24667s Unpacking libfwupd2:armhf (1.9.15-1) over (1.9.14-1) ... 24667s dpkg: libpsl5:armhf: dependency problems, but removing anyway as you requested: 24667s wget depends on libpsl5 (>= 0.16.0). 24667s libcurl4:armhf depends on libpsl5 (>= 0.16.0). 24667s 24667s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 24667s Removing libpsl5:armhf (0.21.2-1build1) ... 24667s Selecting previously unselected package libpsl5t64:armhf. 24668s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58611 files and directories currently installed.) 24668s Preparing to unpack .../libpsl5t64_0.21.2-1.1_armhf.deb ... 24668s Unpacking libpsl5t64:armhf (0.21.2-1.1) ... 24668s Preparing to unpack .../wget_1.21.4-1ubuntu2_armhf.deb ... 24668s Unpacking wget (1.21.4-1ubuntu2) over (1.21.4-1ubuntu1) ... 24668s Preparing to unpack .../tnftp_20230507-2build1_armhf.deb ... 24668s Unpacking tnftp (20230507-2build1) over (20230507-2) ... 24668s dpkg: libpcap0.8:armhf: dependency problems, but removing anyway as you requested: 24668s tcpdump depends on libpcap0.8 (>= 1.9.1). 24668s 24668s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58617 files and directories currently installed.) 24668s Removing libpcap0.8:armhf (1.10.4-4ubuntu3) ... 24668s Selecting previously unselected package libpcap0.8t64:armhf. 24669s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58606 files and directories currently installed.) 24669s Preparing to unpack .../00-libpcap0.8t64_1.10.4-4.1ubuntu1_armhf.deb ... 24669s Unpacking libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 24669s Preparing to unpack .../01-tcpdump_4.99.4-3ubuntu2_armhf.deb ... 24669s Unpacking tcpdump (4.99.4-3ubuntu2) over (4.99.4-3ubuntu1) ... 24669s Preparing to unpack .../02-libsystemd-shared_255.4-1ubuntu5_armhf.deb ... 24669s Unpacking libsystemd-shared:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24669s Preparing to unpack .../03-systemd-resolved_255.4-1ubuntu5_armhf.deb ... 24669s Unpacking systemd-resolved (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24670s Preparing to unpack .../04-sudo_1.9.15p5-3ubuntu3_armhf.deb ... 24670s Unpacking sudo (1.9.15p5-3ubuntu3) over (1.9.15p5-3ubuntu1) ... 24670s Preparing to unpack .../05-rsync_3.2.7-1build1_armhf.deb ... 24670s Unpacking rsync (3.2.7-1build1) over (3.2.7-1) ... 24670s Preparing to unpack .../06-python3-cryptography_41.0.7-4build2_armhf.deb ... 24671s Unpacking python3-cryptography (41.0.7-4build2) over (41.0.7-3) ... 24671s Preparing to unpack .../07-openssh-sftp-server_1%3a9.6p1-3ubuntu11_armhf.deb ... 24671s Unpacking openssh-sftp-server (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 24671s Preparing to unpack .../08-openssh-client_1%3a9.6p1-3ubuntu11_armhf.deb ... 24671s Unpacking openssh-client (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 24672s Preparing to unpack .../09-openssh-server_1%3a9.6p1-3ubuntu11_armhf.deb ... 24672s Unpacking openssh-server (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 24672s Selecting previously unselected package linux-headers-6.8.0-20. 24672s Preparing to unpack .../10-linux-headers-6.8.0-20_6.8.0-20.20_all.deb ... 24672s Unpacking linux-headers-6.8.0-20 (6.8.0-20.20) ... 24693s Selecting previously unselected package linux-headers-6.8.0-20-generic. 24693s Preparing to unpack .../11-linux-headers-6.8.0-20-generic_6.8.0-20.20_armhf.deb ... 24693s Unpacking linux-headers-6.8.0-20-generic (6.8.0-20.20) ... 24698s Preparing to unpack .../12-linux-headers-generic_6.8.0-20.20+1_armhf.deb ... 24698s Unpacking linux-headers-generic (6.8.0-20.20+1) over (6.8.0-11.11+1) ... 24698s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 89769 files and directories currently installed.) 24698s Removing linux-headers-6.8.0-11-generic (6.8.0-11.11) ... 24700s dpkg: libssl3:armhf: dependency problems, but removing anyway as you requested: 24700s systemd depends on libssl3 (>= 3.0.0). 24700s libssh-4:armhf depends on libssl3 (>= 3.0.0). 24700s libsasl2-modules:armhf depends on libssl3 (>= 3.0.0). 24700s libsasl2-2:armhf depends on libssl3 (>= 3.0.0). 24700s libnvme1 depends on libssl3 (>= 3.0.0). 24700s libkrb5-3:armhf depends on libssl3 (>= 3.0.0). 24700s libkmod2:armhf depends on libssl3 (>= 3.0.0). 24700s libfido2-1:armhf depends on libssl3 (>= 3.0.0). 24700s libcurl4:armhf depends on libssl3 (>= 3.0.0). 24700s libcryptsetup12:armhf depends on libssl3 (>= 3.0.0). 24700s kmod depends on libssl3 (>= 3.0.0). 24700s dhcpcd-base depends on libssl3 (>= 3.0.0). 24700s bind9-libs:armhf depends on libssl3 (>= 3.0.0). 24700s 24700s Removing libssl3:armhf (3.0.10-1ubuntu4) ... 24700s Selecting previously unselected package libssl3t64:armhf. 24700s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78619 files and directories currently installed.) 24700s Preparing to unpack .../libssl3t64_3.0.13-0ubuntu2_armhf.deb ... 24700s Unpacking libssl3t64:armhf (3.0.13-0ubuntu2) ... 24700s Setting up libssl3t64:armhf (3.0.13-0ubuntu2) ... 24701s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 24701s Preparing to unpack .../libudev1_255.4-1ubuntu5_armhf.deb ... 24701s Unpacking libudev1:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24701s Setting up libudev1:armhf (255.4-1ubuntu5) ... 24701s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 24701s Preparing to unpack .../systemd_255.4-1ubuntu5_armhf.deb ... 24701s Unpacking systemd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24703s Preparing to unpack .../udev_255.4-1ubuntu5_armhf.deb ... 24703s Unpacking udev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24704s Preparing to unpack .../libsystemd0_255.4-1ubuntu5_armhf.deb ... 24704s Unpacking libsystemd0:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24704s Setting up libsystemd0:armhf (255.4-1ubuntu5) ... 24704s Setting up libsystemd-shared:armhf (255.4-1ubuntu5) ... 24704s Setting up systemd-dev (255.4-1ubuntu5) ... 24704s Setting up systemd (255.4-1ubuntu5) ... 24707s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 24707s Preparing to unpack .../systemd-sysv_255.4-1ubuntu5_armhf.deb ... 24707s Unpacking systemd-sysv (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24707s Preparing to unpack .../libnss-systemd_255.4-1ubuntu5_armhf.deb ... 24707s Unpacking libnss-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24707s Preparing to unpack .../libpam-systemd_255.4-1ubuntu5_armhf.deb ... 24707s Unpacking libpam-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 24707s Preparing to unpack .../libpam-modules-bin_1.5.3-5ubuntu3_armhf.deb ... 24707s Unpacking libpam-modules-bin (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 24708s Setting up libpam-modules-bin (1.5.3-5ubuntu3) ... 24709s pam_namespace.service is a disabled or a static unit not running, not starting it. 24709s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 24709s Preparing to unpack .../libpam-modules_1.5.3-5ubuntu3_armhf.deb ... 24709s Unpacking libpam-modules:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 24710s Setting up libpam-modules:armhf (1.5.3-5ubuntu3) ... 24710s Installing new version of config file /etc/security/namespace.init ... 24710s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 24710s Preparing to unpack .../libpam-runtime_1.5.3-5ubuntu3_all.deb ... 24710s Unpacking libpam-runtime (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 24710s Setting up libpam-runtime (1.5.3-5ubuntu3) ... 24711s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 24711s Preparing to unpack .../0-dbus-user-session_1.14.10-4ubuntu2_armhf.deb ... 24711s Unpacking dbus-user-session (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 24711s Preparing to unpack .../1-libapparmor1_4.0.0-beta3-0ubuntu2_armhf.deb ... 24711s Unpacking libapparmor1:armhf (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 24711s Preparing to unpack .../2-dbus-bin_1.14.10-4ubuntu2_armhf.deb ... 24711s Unpacking dbus-bin (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 24712s Preparing to unpack .../3-dbus-system-bus-common_1.14.10-4ubuntu2_all.deb ... 24712s Unpacking dbus-system-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 24712s Preparing to unpack .../4-dbus_1.14.10-4ubuntu2_armhf.deb ... 24712s Unpacking dbus (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 24712s Preparing to unpack .../5-dbus-daemon_1.14.10-4ubuntu2_armhf.deb ... 24712s Unpacking dbus-daemon (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 24712s Preparing to unpack .../6-libdbus-1-3_1.14.10-4ubuntu2_armhf.deb ... 24712s Unpacking libdbus-1-3:armhf (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 24712s Preparing to unpack .../7-kmod_31+20240202-2ubuntu4_armhf.deb ... 24712s Unpacking kmod (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 24712s dpkg: warning: unable to delete old directory '/lib/modprobe.d': Directory not empty 24712s Preparing to unpack .../8-libkmod2_31+20240202-2ubuntu4_armhf.deb ... 24712s Unpacking libkmod2:armhf (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 24712s Preparing to unpack .../9-libmount1_2.39.3-9ubuntu2_armhf.deb ... 24712s Unpacking libmount1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24713s Setting up libmount1:armhf (2.39.3-9ubuntu2) ... 24713s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 24713s Preparing to unpack .../libseccomp2_2.5.5-1ubuntu2_armhf.deb ... 24713s Unpacking libseccomp2:armhf (2.5.5-1ubuntu2) over (2.5.5-1ubuntu1) ... 24713s Setting up libseccomp2:armhf (2.5.5-1ubuntu2) ... 24713s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 24713s Preparing to unpack .../libuuid1_2.39.3-9ubuntu2_armhf.deb ... 24713s Unpacking libuuid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24714s Setting up libuuid1:armhf (2.39.3-9ubuntu2) ... 24714s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 24714s Preparing to unpack .../0-libcryptsetup12_2%3a2.7.0-1ubuntu2_armhf.deb ... 24714s Unpacking libcryptsetup12:armhf (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 24714s Preparing to unpack .../1-libfdisk1_2.39.3-9ubuntu2_armhf.deb ... 24714s Unpacking libfdisk1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24714s Preparing to unpack .../2-mount_2.39.3-9ubuntu2_armhf.deb ... 24714s Unpacking mount (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24714s Preparing to unpack .../3-libdevmapper1.02.1_2%3a1.02.185-3ubuntu2_armhf.deb ... 24714s Unpacking libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 24714s Selecting previously unselected package libparted2t64:armhf. 24715s Preparing to unpack .../4-libparted2t64_3.6-3.1build2_armhf.deb ... 24715s Unpacking libparted2t64:armhf (3.6-3.1build2) ... 24715s Preparing to unpack .../5-libsqlite3-0_3.45.1-1ubuntu1_armhf.deb ... 24715s Unpacking libsqlite3-0:armhf (3.45.1-1ubuntu1) over (3.45.1-1) ... 24715s Preparing to unpack .../6-pinentry-curses_1.2.1-3ubuntu4_armhf.deb ... 24715s Unpacking pinentry-curses (1.2.1-3ubuntu4) over (1.2.1-3ubuntu1) ... 24715s Preparing to unpack .../7-libsmartcols1_2.39.3-9ubuntu2_armhf.deb ... 24715s Unpacking libsmartcols1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24715s Setting up libsmartcols1:armhf (2.39.3-9ubuntu2) ... 24716s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78636 files and directories currently installed.) 24716s Preparing to unpack .../0-readline-common_8.2-3.1_all.deb ... 24716s Unpacking readline-common (8.2-3.1) over (8.2-3) ... 24716s Preparing to unpack .../1-python3-yaml_6.0.1-2build1_armhf.deb ... 24716s Unpacking python3-yaml (6.0.1-2build1) over (6.0.1-2) ... 24716s Preparing to unpack .../2-python-apt-common_2.7.6build1_all.deb ... 24716s Unpacking python-apt-common (2.7.6build1) over (2.7.6) ... 24716s Preparing to unpack .../3-python3-setuptools_68.1.2-2ubuntu1_all.deb ... 24716s Unpacking python3-setuptools (68.1.2-2ubuntu1) over (68.1.2-2) ... 24717s Preparing to unpack .../4-python3-pkg-resources_68.1.2-2ubuntu1_all.deb ... 24717s Unpacking python3-pkg-resources (68.1.2-2ubuntu1) over (68.1.2-2) ... 24717s Preparing to unpack .../5-dpkg_1.22.6ubuntu4_armhf.deb ... 24717s Unpacking dpkg (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 24718s Setting up dpkg (1.22.6ubuntu4) ... 24719s Setting up libpython3.12-minimal:armhf (3.12.2-4build3) ... 24719s Setting up libexpat1:armhf (2.6.1-2) ... 24719s Setting up python3.12-minimal (3.12.2-4build3) ... 24722s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 24722s Preparing to unpack .../python3-minimal_3.12.2-0ubuntu1_armhf.deb ... 24722s Unpacking python3-minimal (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 24723s Setting up python3-minimal (3.12.2-0ubuntu1) ... 24723s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 24723s Preparing to unpack .../00-python3_3.12.2-0ubuntu1_armhf.deb ... 24724s Unpacking python3 (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 24724s Preparing to unpack .../01-libpython3-stdlib_3.12.2-0ubuntu1_armhf.deb ... 24724s Unpacking libpython3-stdlib:armhf (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 24724s Preparing to unpack .../02-bsdextrautils_2.39.3-9ubuntu2_armhf.deb ... 24724s Unpacking bsdextrautils (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24724s Preparing to unpack .../03-groff-base_1.23.0-3build1_armhf.deb ... 24724s Unpacking groff-base (1.23.0-3build1) over (1.23.0-3) ... 24725s Preparing to unpack .../04-libsasl2-2_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 24725s Unpacking libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 24725s Preparing to unpack .../05-libjson-glib-1.0-common_1.8.0-2build1_all.deb ... 24725s Unpacking libjson-glib-1.0-common (1.8.0-2build1) over (1.8.0-2) ... 24725s Preparing to unpack .../06-libjson-glib-1.0-0_1.8.0-2build1_armhf.deb ... 24725s Unpacking libjson-glib-1.0-0:armhf (1.8.0-2build1) over (1.8.0-2) ... 24725s Preparing to unpack .../07-libxml2_2.9.14+dfsg-1.3ubuntu2_armhf.deb ... 24725s Unpacking libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) over (2.9.14+dfsg-1.3ubuntu1) ... 24726s Preparing to unpack .../08-libgudev-1.0-0_1%3a238-3ubuntu2_armhf.deb ... 24726s Unpacking libgudev-1.0-0:armhf (1:238-3ubuntu2) over (1:238-3) ... 24726s Preparing to unpack .../09-libusb-1.0-0_2%3a1.0.27-1_armhf.deb ... 24726s Unpacking libusb-1.0-0:armhf (2:1.0.27-1) over (2:1.0.26-1) ... 24726s Preparing to unpack .../10-libgusb2_0.4.8-1build1_armhf.deb ... 24726s Unpacking libgusb2:armhf (0.4.8-1build1) over (0.4.8-1) ... 24726s Preparing to unpack .../11-libmbim-proxy_1.31.2-0ubuntu2_armhf.deb ... 24726s Unpacking libmbim-proxy (1.31.2-0ubuntu2) over (1.30.0-1) ... 24726s Preparing to unpack .../12-libmbim-glib4_1.31.2-0ubuntu2_armhf.deb ... 24726s Unpacking libmbim-glib4:armhf (1.31.2-0ubuntu2) over (1.30.0-1) ... 24726s Preparing to unpack .../13-libmm-glib0_1.23.4-0ubuntu1_armhf.deb ... 24726s Unpacking libmm-glib0:armhf (1.23.4-0ubuntu1) over (1.22.0-3) ... 24727s Preparing to unpack .../14-libpolkit-agent-1-0_124-1ubuntu1_armhf.deb ... 24727s Unpacking libpolkit-agent-1-0:armhf (124-1ubuntu1) over (124-1) ... 24727s Preparing to unpack .../15-libpolkit-gobject-1-0_124-1ubuntu1_armhf.deb ... 24727s Unpacking libpolkit-gobject-1-0:armhf (124-1ubuntu1) over (124-1) ... 24727s Preparing to unpack .../16-libqmi-proxy_1.35.2-0ubuntu1_armhf.deb ... 24727s Unpacking libqmi-proxy (1.35.2-0ubuntu1) over (1.34.0-2) ... 24727s Preparing to unpack .../17-libqrtr-glib0_1.2.2-1ubuntu3_armhf.deb ... 24727s Unpacking libqrtr-glib0:armhf (1.2.2-1ubuntu3) over (1.2.2-1ubuntu2) ... 24727s Preparing to unpack .../18-libqmi-glib5_1.35.2-0ubuntu1_armhf.deb ... 24727s Unpacking libqmi-glib5:armhf (1.35.2-0ubuntu1) over (1.34.0-2) ... 24727s Preparing to unpack .../19-libxmlb2_0.3.15-1build1_armhf.deb ... 24727s Unpacking libxmlb2:armhf (0.3.15-1build1) over (0.3.15-1) ... 24727s Preparing to unpack .../20-shared-mime-info_2.4-1build1_armhf.deb ... 24727s Unpacking shared-mime-info (2.4-1build1) over (2.4-1) ... 24728s Preparing to unpack .../21-libbrotli1_1.1.0-2build1_armhf.deb ... 24728s Unpacking libbrotli1:armhf (1.1.0-2build1) over (1.1.0-2) ... 24728s Preparing to unpack .../22-libgssapi-krb5-2_1.20.1-5.1build3_armhf.deb ... 24728s Unpacking libgssapi-krb5-2:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 24728s Preparing to unpack .../23-libkrb5-3_1.20.1-5.1build3_armhf.deb ... 24728s Unpacking libkrb5-3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 24728s Preparing to unpack .../24-libkrb5support0_1.20.1-5.1build3_armhf.deb ... 24728s Unpacking libkrb5support0:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 24728s Preparing to unpack .../25-libk5crypto3_1.20.1-5.1build3_armhf.deb ... 24728s Unpacking libk5crypto3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 24728s Preparing to unpack .../26-libcom-err2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 24728s Unpacking libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 24728s Preparing to unpack .../27-libnghttp2-14_1.59.0-1build1_armhf.deb ... 24728s Unpacking libnghttp2-14:armhf (1.59.0-1build1) over (1.59.0-1) ... 24728s Preparing to unpack .../28-libssh-4_0.10.6-2build1_armhf.deb ... 24728s Unpacking libssh-4:armhf (0.10.6-2build1) over (0.10.6-2) ... 24729s Preparing to unpack .../29-libibverbs1_50.0-2build1_armhf.deb ... 24729s Unpacking libibverbs1:armhf (50.0-2build1) over (50.0-2) ... 24729s Preparing to unpack .../30-libfido2-1_1.14.0-1build1_armhf.deb ... 24729s Unpacking libfido2-1:armhf (1.14.0-1build1) over (1.14.0-1) ... 24729s Preparing to unpack .../31-coreutils_9.4-3ubuntu3_armhf.deb ... 24729s Unpacking coreutils (9.4-3ubuntu3) over (9.4-2ubuntu4) ... 24729s Setting up coreutils (9.4-3ubuntu3) ... 24729s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 24729s Preparing to unpack .../debianutils_5.17_armhf.deb ... 24730s Unpacking debianutils (5.17) over (5.16) ... 24730s Setting up debianutils (5.17) ... 24730s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 24730s Preparing to unpack .../util-linux_2.39.3-9ubuntu2_armhf.deb ... 24730s Unpacking util-linux (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24730s Setting up util-linux (2.39.3-9ubuntu2) ... 24732s fstrim.service is a disabled or a static unit not running, not starting it. 24733s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 24733s Preparing to unpack .../libc-bin_2.39-0ubuntu6_armhf.deb ... 24733s Unpacking libc-bin (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 24733s Setting up libc-bin (2.39-0ubuntu6) ... 24733s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 24733s Removing libatm1:armhf (1:2.5.1-5) ... 24734s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 24734s Preparing to unpack .../curl_8.5.0-2ubuntu7_armhf.deb ... 24734s Unpacking curl (8.5.0-2ubuntu7) over (8.5.0-2ubuntu2) ... 24734s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 24734s Removing libcurl4:armhf (8.5.0-2ubuntu2) ... 24734s Selecting previously unselected package libcurl4t64:armhf. 24734s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78625 files and directories currently installed.) 24734s Preparing to unpack .../libcurl4t64_8.5.0-2ubuntu7_armhf.deb ... 24734s Unpacking libcurl4t64:armhf (8.5.0-2ubuntu7) ... 24734s Preparing to unpack .../libbpf1_1%3a1.3.0-2build1_armhf.deb ... 24734s Unpacking libbpf1:armhf (1:1.3.0-2build1) over (1:1.3.0-2) ... 24734s Preparing to unpack .../iproute2_6.1.0-1ubuntu5_armhf.deb ... 24734s Unpacking iproute2 (6.1.0-1ubuntu5) over (6.1.0-1ubuntu2) ... 24735s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78631 files and directories currently installed.) 24735s Removing libelf1:armhf (0.190-1) ... 24735s Selecting previously unselected package libelf1t64:armhf. 24735s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78626 files and directories currently installed.) 24735s Preparing to unpack .../libelf1t64_0.190-1.1build2_armhf.deb ... 24735s Unpacking libelf1t64:armhf (0.190-1.1build2) ... 24735s Preparing to unpack .../lsof_4.95.0-1build2_armhf.deb ... 24735s Unpacking lsof (4.95.0-1build2) over (4.95.0-1build1) ... 24735s Preparing to unpack .../libnsl2_1.3.0-3build2_armhf.deb ... 24735s Unpacking libnsl2:armhf (1.3.0-3build2) over (1.3.0-3) ... 24736s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78631 files and directories currently installed.) 24736s Removing libtirpc3:armhf (1.3.4+ds-1build1) ... 24736s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78625 files and directories currently installed.) 24736s Preparing to unpack .../0-libtirpc-common_1.3.4+ds-1.1_all.deb ... 24736s Unpacking libtirpc-common (1.3.4+ds-1.1) over (1.3.4+ds-1build1) ... 24736s Selecting previously unselected package libtirpc3t64:armhf. 24736s Preparing to unpack .../1-libtirpc3t64_1.3.4+ds-1.1_armhf.deb ... 24736s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3 to /lib/arm-linux-gnueabihf/libtirpc.so.3.usr-is-merged by libtirpc3t64' 24736s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0 to /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' 24736s Unpacking libtirpc3t64:armhf (1.3.4+ds-1.1) ... 24736s Preparing to unpack .../2-libblockdev-utils3_3.1.0-1build1_armhf.deb ... 24736s Unpacking libblockdev-utils3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24736s Preparing to unpack .../3-libblockdev-fs3_3.1.0-1build1_armhf.deb ... 24736s Unpacking libblockdev-fs3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24736s Preparing to unpack .../4-logsave_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 24736s Unpacking logsave (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 24736s Preparing to unpack .../5-ubuntu-minimal_1.536build1_armhf.deb ... 24736s Unpacking ubuntu-minimal (1.536build1) over (1.536) ... 24736s Preparing to unpack .../6-initramfs-tools_0.142ubuntu22_all.deb ... 24736s Unpacking initramfs-tools (0.142ubuntu22) over (0.142ubuntu20) ... 24737s Preparing to unpack .../7-initramfs-tools-core_0.142ubuntu22_all.deb ... 24737s Unpacking initramfs-tools-core (0.142ubuntu22) over (0.142ubuntu20) ... 24737s Preparing to unpack .../8-e2fsprogs-l10n_1.47.0-2.4~exp1ubuntu2_all.deb ... 24737s Unpacking e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 24737s dpkg: libext2fs2:armhf: dependency problems, but removing anyway as you requested: 24737s e2fsprogs depends on libext2fs2 (= 1.47.0-2ubuntu1). 24737s btrfs-progs depends on libext2fs2 (>= 1.42). 24737s 24737s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78637 files and directories currently installed.) 24737s Removing libext2fs2:armhf (1.47.0-2ubuntu1) ... 24737s Selecting previously unselected package libext2fs2t64:armhf. 24737s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 24738s Preparing to unpack .../libext2fs2t64_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 24738s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2 to /lib/arm-linux-gnueabihf/libe2p.so.2.usr-is-merged by libext2fs2t64' 24738s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2.3 to /lib/arm-linux-gnueabihf/libe2p.so.2.3.usr-is-merged by libext2fs2t64' 24738s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2 to /lib/arm-linux-gnueabihf/libext2fs.so.2.usr-is-merged by libext2fs2t64' 24738s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2.4 to /lib/arm-linux-gnueabihf/libext2fs.so.2.4.usr-is-merged by libext2fs2t64' 24738s Unpacking libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 24738s Setting up libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) ... 24738s Setting up libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 24738s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78646 files and directories currently installed.) 24738s Preparing to unpack .../00-e2fsprogs_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 24738s Unpacking e2fsprogs (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 24738s Preparing to unpack .../01-btrfs-progs_6.6.3-1.1build1_armhf.deb ... 24738s Unpacking btrfs-progs (6.6.3-1.1build1) over (6.6.3-1.1) ... 24738s Preparing to unpack .../02-dhcpcd-base_1%3a10.0.6-1ubuntu2_armhf.deb ... 24738s Unpacking dhcpcd-base (1:10.0.6-1ubuntu2) over (1:10.0.6-1ubuntu1) ... 24739s Preparing to unpack .../03-eject_2.39.3-9ubuntu2_armhf.deb ... 24739s Unpacking eject (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24739s Preparing to unpack .../04-locales_2.39-0ubuntu6_all.deb ... 24739s Unpacking locales (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 24740s Selecting previously unselected package libnetplan1:armhf. 24740s Preparing to unpack .../05-libnetplan1_1.0-1_armhf.deb ... 24740s Unpacking libnetplan1:armhf (1.0-1) ... 24741s Preparing to unpack .../06-python3-netplan_1.0-1_armhf.deb ... 24741s Unpacking python3-netplan (1.0-1) over (0.107.1-3) ... 24741s Preparing to unpack .../07-netplan-generator_1.0-1_armhf.deb ... 24741s Adding 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 24741s Unpacking netplan-generator (1.0-1) over (0.107.1-3) ... 24741s Preparing to unpack .../08-python3-dbus_1.3.2-5build2_armhf.deb ... 24741s Unpacking python3-dbus (1.3.2-5build2) over (1.3.2-5build1) ... 24742s Preparing to unpack .../09-netplan.io_1.0-1_armhf.deb ... 24742s Unpacking netplan.io (1.0-1) over (0.107.1-3) ... 24742s Preparing to unpack .../10-vim-tiny_2%3a9.1.0016-1ubuntu5_armhf.deb ... 24742s Unpacking vim-tiny (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 24742s Preparing to unpack .../11-vim-common_2%3a9.1.0016-1ubuntu5_all.deb ... 24742s Unpacking vim-common (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 24742s Preparing to unpack .../12-initramfs-tools-bin_0.142ubuntu22_armhf.deb ... 24742s Unpacking initramfs-tools-bin (0.142ubuntu22) over (0.142ubuntu20) ... 24743s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78650 files and directories currently installed.) 24743s Removing libreiserfscore0 (1:3.6.27-7) ... 24743s Selecting previously unselected package libreiserfscore0t64. 24743s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 24743s Preparing to unpack .../libreiserfscore0t64_1%3a3.6.27-7.1_armhf.deb ... 24743s Unpacking libreiserfscore0t64 (1:3.6.27-7.1) ... 24743s Preparing to unpack .../file_1%3a5.45-3_armhf.deb ... 24743s Unpacking file (1:5.45-3) over (1:5.45-2) ... 24743s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78651 files and directories currently installed.) 24743s Removing libmagic1:armhf (1:5.45-2) ... 24744s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78641 files and directories currently installed.) 24744s Preparing to unpack .../libmagic-mgc_1%3a5.45-3_armhf.deb ... 24744s Unpacking libmagic-mgc (1:5.45-3) over (1:5.45-2) ... 24744s Selecting previously unselected package libmagic1t64:armhf. 24744s Preparing to unpack .../libmagic1t64_1%3a5.45-3_armhf.deb ... 24744s Unpacking libmagic1t64:armhf (1:5.45-3) ... 24744s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78652 files and directories currently installed.) 24744s Removing libnetplan0:armhf (0.107.1-3) ... 24744s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78648 files and directories currently installed.) 24745s Preparing to unpack .../libblockdev-nvme3_3.1.0-1build1_armhf.deb ... 24745s Unpacking libblockdev-nvme3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24745s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78648 files and directories currently installed.) 24745s Removing libnvme1 (1.8-2) ... 24745s Selecting previously unselected package libnvme1t64. 24745s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78641 files and directories currently installed.) 24745s Preparing to unpack .../libnvme1t64_1.8-3_armhf.deb ... 24745s Unpacking libnvme1t64 (1.8-3) ... 24745s Preparing to unpack .../libplymouth5_24.004.60-1ubuntu5_armhf.deb ... 24745s Unpacking libplymouth5:armhf (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 24746s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78649 files and directories currently installed.) 24746s Removing libpng16-16:armhf (1.6.43-1) ... 24746s Selecting previously unselected package libpng16-16t64:armhf. 24746s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78639 files and directories currently installed.) 24746s Preparing to unpack .../libpng16-16t64_1.6.43-3_armhf.deb ... 24746s Unpacking libpng16-16t64:armhf (1.6.43-3) ... 24747s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78650 files and directories currently installed.) 24747s Removing libudisks2-0:armhf (2.10.1-1ubuntu2) ... 24747s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 24747s Preparing to unpack .../bind9-host_1%3a9.18.24-0ubuntu3_armhf.deb ... 24747s Unpacking bind9-host (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 24747s Preparing to unpack .../bind9-dnsutils_1%3a9.18.24-0ubuntu3_armhf.deb ... 24747s Unpacking bind9-dnsutils (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 24747s Preparing to unpack .../bind9-libs_1%3a9.18.24-0ubuntu3_armhf.deb ... 24747s Unpacking bind9-libs:armhf (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 24749s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 24749s Removing libuv1:armhf (1.48.0-1) ... 24749s Selecting previously unselected package libuv1t64:armhf. 24749s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78640 files and directories currently installed.) 24749s Preparing to unpack .../libuv1t64_1.48.0-1.1_armhf.deb ... 24749s Unpacking libuv1t64:armhf (1.48.0-1.1) ... 24749s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78646 files and directories currently installed.) 24749s Removing python3-distutils (3.11.5-1) ... 24749s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 24749s Preparing to unpack .../uuid-runtime_2.39.3-9ubuntu2_armhf.deb ... 24749s Unpacking uuid-runtime (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 24749s Preparing to unpack .../libdebconfclient0_0.271ubuntu2_armhf.deb ... 24749s Unpacking libdebconfclient0:armhf (0.271ubuntu2) over (0.271ubuntu1) ... 24749s Setting up libdebconfclient0:armhf (0.271ubuntu2) ... 24749s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 24749s Preparing to unpack .../libsemanage-common_3.5-1build4_all.deb ... 24749s Unpacking libsemanage-common (3.5-1build4) over (3.5-1build2) ... 24749s Setting up libsemanage-common (3.5-1build4) ... 24750s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 24750s Preparing to unpack .../libsemanage2_3.5-1build4_armhf.deb ... 24750s Unpacking libsemanage2:armhf (3.5-1build4) over (3.5-1build2) ... 24750s Setting up libsemanage2:armhf (3.5-1build4) ... 24750s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 24750s Preparing to unpack .../install-info_7.1-3build1_armhf.deb ... 24750s Unpacking install-info (7.1-3build1) over (7.1-3) ... 24750s Setting up install-info (7.1-3build1) ... 24751s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 24751s Preparing to unpack .../00-gcc-13-base_13.2.0-19ubuntu1_armhf.deb ... 24751s Unpacking gcc-13-base:armhf (13.2.0-19ubuntu1) over (13.2.0-17ubuntu2) ... 24751s Preparing to unpack .../01-libss2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 24751s Unpacking libss2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 24751s Preparing to unpack .../02-dmsetup_2%3a1.02.185-3ubuntu2_armhf.deb ... 24751s Unpacking dmsetup (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 24751s Preparing to unpack .../03-gir1.2-girepository-2.0_1.79.1-1ubuntu6_armhf.deb ... 24751s Unpacking gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 24751s Preparing to unpack .../04-gir1.2-glib-2.0_2.79.3-3ubuntu5_armhf.deb ... 24751s Unpacking gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 24751s Preparing to unpack .../05-libgirepository-1.0-1_1.79.1-1ubuntu6_armhf.deb ... 24751s Unpacking libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 24751s Preparing to unpack .../06-krb5-locales_1.20.1-5.1build3_all.deb ... 24751s Unpacking krb5-locales (1.20.1-5.1build3) over (1.20.1-5build1) ... 24751s Preparing to unpack .../07-libbsd0_0.12.1-1_armhf.deb ... 24751s Unpacking libbsd0:armhf (0.12.1-1) over (0.11.8-1) ... 24752s Preparing to unpack .../08-libglib2.0-data_2.79.3-3ubuntu5_all.deb ... 24752s Unpacking libglib2.0-data (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 24752s Preparing to unpack .../09-libslang2_2.3.3-3build1_armhf.deb ... 24752s Unpacking libslang2:armhf (2.3.3-3build1) over (2.3.3-3) ... 24752s Preparing to unpack .../10-python3-gi_3.47.0-3build1_armhf.deb ... 24752s Unpacking python3-gi (3.47.0-3build1) over (3.47.0-3) ... 24752s Selecting previously unselected package xdg-user-dirs. 24752s Preparing to unpack .../11-xdg-user-dirs_0.18-1_armhf.deb ... 24752s Unpacking xdg-user-dirs (0.18-1) ... 24753s Preparing to unpack .../12-xxd_2%3a9.1.0016-1ubuntu5_armhf.deb ... 24753s Unpacking xxd (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 24753s Preparing to unpack .../13-apparmor_4.0.0-beta3-0ubuntu2_armhf.deb ... 24755s Unpacking apparmor (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 24757s Preparing to unpack .../14-ftp_20230507-2build1_all.deb ... 24757s Unpacking ftp (20230507-2build1) over (20230507-2) ... 24757s Preparing to unpack .../15-inetutils-telnet_2%3a2.5-3ubuntu3_armhf.deb ... 24757s Unpacking inetutils-telnet (2:2.5-3ubuntu3) over (2:2.5-3ubuntu1) ... 24757s Preparing to unpack .../16-info_7.1-3build1_armhf.deb ... 24757s Unpacking info (7.1-3build1) over (7.1-3) ... 24757s Preparing to unpack .../17-libxmuu1_2%3a1.1.3-3build1_armhf.deb ... 24757s Unpacking libxmuu1:armhf (2:1.1.3-3build1) over (2:1.1.3-3) ... 24757s Preparing to unpack .../18-lshw_02.19.git.2021.06.19.996aaad9c7-2build2_armhf.deb ... 24757s Unpacking lshw (02.19.git.2021.06.19.996aaad9c7-2build2) over (02.19.git.2021.06.19.996aaad9c7-2build1) ... 24758s Preparing to unpack .../19-mtr-tiny_0.95-1.1build1_armhf.deb ... 24758s Unpacking mtr-tiny (0.95-1.1build1) over (0.95-1.1) ... 24758s Preparing to unpack .../20-plymouth-theme-ubuntu-text_24.004.60-1ubuntu5_armhf.deb ... 24758s Unpacking plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 24758s Preparing to unpack .../21-plymouth_24.004.60-1ubuntu5_armhf.deb ... 24758s Unpacking plymouth (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 24758s Preparing to unpack .../22-psmisc_23.7-1_armhf.deb ... 24758s Unpacking psmisc (23.7-1) over (23.6-2) ... 24759s Preparing to unpack .../23-telnet_0.17+2.5-3ubuntu3_all.deb ... 24759s Unpacking telnet (0.17+2.5-3ubuntu3) over (0.17+2.5-3ubuntu1) ... 24759s Preparing to unpack .../24-xz-utils_5.6.0-0.2_armhf.deb ... 24759s Unpacking xz-utils (5.6.0-0.2) over (5.4.5-0.3) ... 24759s Preparing to unpack .../25-ubuntu-standard_1.536build1_armhf.deb ... 24759s Unpacking ubuntu-standard (1.536build1) over (1.536) ... 24759s Preparing to unpack .../26-usb.ids_2024.03.18-1_all.deb ... 24759s Unpacking usb.ids (2024.03.18-1) over (2024.01.30-1) ... 24759s Preparing to unpack .../27-libctf-nobfd0_2.42-4ubuntu1_armhf.deb ... 24759s Unpacking libctf-nobfd0:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 24759s Preparing to unpack .../28-libctf0_2.42-4ubuntu1_armhf.deb ... 24759s Unpacking libctf0:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 24759s Preparing to unpack .../29-binutils-arm-linux-gnueabihf_2.42-4ubuntu1_armhf.deb ... 24759s Unpacking binutils-arm-linux-gnueabihf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 24760s Preparing to unpack .../30-libbinutils_2.42-4ubuntu1_armhf.deb ... 24760s Unpacking libbinutils:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 24760s Preparing to unpack .../31-binutils_2.42-4ubuntu1_armhf.deb ... 24760s Unpacking binutils (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 24760s Preparing to unpack .../32-binutils-common_2.42-4ubuntu1_armhf.deb ... 24760s Unpacking binutils-common:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 24760s Preparing to unpack .../33-libsframe1_2.42-4ubuntu1_armhf.deb ... 24760s Unpacking libsframe1:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 24761s Preparing to unpack .../34-bolt_0.9.6-2build1_armhf.deb ... 24761s Unpacking bolt (0.9.6-2build1) over (0.9.6-2) ... 24761s Preparing to unpack .../35-cryptsetup-bin_2%3a2.7.0-1ubuntu2_armhf.deb ... 24761s Unpacking cryptsetup-bin (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 24761s Preparing to unpack .../36-dpkg-dev_1.22.6ubuntu4_all.deb ... 24761s Unpacking dpkg-dev (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 24761s Preparing to unpack .../37-libdpkg-perl_1.22.6ubuntu4_all.deb ... 24761s Unpacking libdpkg-perl (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 24762s Preparing to unpack .../38-gnupg-l10n_2.4.4-2ubuntu15_all.deb ... 24762s Unpacking gnupg-l10n (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 24762s Preparing to unpack .../39-ibverbs-providers_50.0-2build1_armhf.deb ... 24762s Unpacking ibverbs-providers:armhf (50.0-2build1) over (50.0-2) ... 24762s Preparing to unpack .../40-jq_1.7.1-3_armhf.deb ... 24762s Unpacking jq (1.7.1-3) over (1.7.1-2) ... 24762s Preparing to unpack .../41-libjq1_1.7.1-3_armhf.deb ... 24762s Unpacking libjq1:armhf (1.7.1-3) over (1.7.1-2) ... 24762s Selecting previously unselected package libatm1t64:armhf. 24762s Preparing to unpack .../42-libatm1t64_1%3a2.5.1-5.1_armhf.deb ... 24762s Unpacking libatm1t64:armhf (1:2.5.1-5.1) ... 24762s Preparing to unpack .../43-libblockdev-crypto3_3.1.0-1build1_armhf.deb ... 24762s Unpacking libblockdev-crypto3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24763s Preparing to unpack .../44-libblockdev-loop3_3.1.0-1build1_armhf.deb ... 24763s Unpacking libblockdev-loop3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24763s Preparing to unpack .../45-libblockdev-mdraid3_3.1.0-1build1_armhf.deb ... 24763s Unpacking libblockdev-mdraid3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24763s Preparing to unpack .../46-libblockdev-part3_3.1.0-1build1_armhf.deb ... 24763s Unpacking libblockdev-part3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24763s Preparing to unpack .../47-libblockdev-swap3_3.1.0-1build1_armhf.deb ... 24763s Unpacking libblockdev-swap3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24763s Preparing to unpack .../48-libblockdev3_3.1.0-1build1_armhf.deb ... 24763s Unpacking libblockdev3:armhf (3.1.0-1build1) over (3.1.0-1) ... 24763s Preparing to unpack .../49-libevent-core-2.1-7_2.1.12-stable-9build1_armhf.deb ... 24763s Unpacking libevent-core-2.1-7:armhf (2.1.12-stable-9build1) over (2.1.12-stable-9) ... 24763s Preparing to unpack .../50-libftdi1-2_1.5-6build4_armhf.deb ... 24763s Unpacking libftdi1-2:armhf (1.5-6build4) over (1.5-6build3) ... 24764s Preparing to unpack .../51-libldap-common_2.6.7+dfsg-1~exp1ubuntu6_all.deb ... 24764s Unpacking libldap-common (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 24764s Preparing to unpack .../52-libsasl2-modules_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 24764s Unpacking libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 24764s Preparing to unpack .../53-python3-lib2to3_3.12.2-3ubuntu2_all.deb ... 24764s Unpacking python3-lib2to3 (3.12.2-3ubuntu2) over (3.11.5-1) ... 24764s Preparing to unpack .../54-python3-markupsafe_2.1.5-1build1_armhf.deb ... 24765s Unpacking python3-markupsafe (2.1.5-1build1) over (2.1.5-1) ... 24765s Preparing to unpack .../55-python3-openssl_24.0.0-4_all.deb ... 24765s Unpacking python3-openssl (24.0.0-4) over (23.2.0-1) ... 24765s Preparing to unpack .../56-python3-pyrsistent_0.20.0-1build1_armhf.deb ... 24765s Unpacking python3-pyrsistent:armhf (0.20.0-1build1) over (0.20.0-1) ... 24766s Preparing to unpack .../57-python3-typing-extensions_4.10.0-1_all.deb ... 24766s Unpacking python3-typing-extensions (4.10.0-1) over (4.9.0-1) ... 24766s Preparing to unpack .../58-kpartx_0.9.4-5ubuntu5_armhf.deb ... 24766s Unpacking kpartx (0.9.4-5ubuntu5) over (0.9.4-5ubuntu3) ... 24766s Setting up pinentry-curses (1.2.1-3ubuntu4) ... 24766s Setting up libtext-iconv-perl:armhf (1.7-8build2) ... 24766s Setting up libtext-charwidth-perl:armhf (0.04-11build2) ... 24766s Setting up libibverbs1:armhf (50.0-2build1) ... 24766s Setting up systemd-sysv (255.4-1ubuntu5) ... 24766s Setting up libapparmor1:armhf (4.0.0-beta3-0ubuntu2) ... 24766s Setting up libatm1t64:armhf (1:2.5.1-5.1) ... 24766s Setting up libgdbm6t64:armhf (1.23-5.1) ... 24766s Setting up bsdextrautils (2.39.3-9ubuntu2) ... 24766s Setting up libgdbm-compat4t64:armhf (1.23-5.1) ... 24766s Setting up xdg-user-dirs (0.18-1) ... 24766s Setting up ibverbs-providers:armhf (50.0-2build1) ... 24766s Setting up linux-headers-6.8.0-20 (6.8.0-20.20) ... 24766s Setting up libmagic-mgc (1:5.45-3) ... 24766s Setting up gawk (1:5.2.1-2build2) ... 24766s Setting up psmisc (23.7-1) ... 24766s Setting up libjq1:armhf (1.7.1-3) ... 24766s Setting up libtirpc-common (1.3.4+ds-1.1) ... 24766s Setting up libbrotli1:armhf (1.1.0-2build1) ... 24766s Setting up libsqlite3-0:armhf (3.45.1-1ubuntu1) ... 24766s Setting up libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) ... 24766s Setting up libuv1t64:armhf (1.48.0-1.1) ... 24767s Setting up libmagic1t64:armhf (1:5.45-3) ... 24767s Setting up binutils-common:armhf (2.42-4ubuntu1) ... 24767s Setting up libpsl5t64:armhf (0.21.2-1.1) ... 24767s Setting up libnghttp2-14:armhf (1.59.0-1build1) ... 24767s Setting up libreiserfscore0t64 (1:3.6.27-7.1) ... 24767s Setting up libctf-nobfd0:armhf (2.42-4ubuntu1) ... 24767s Setting up libnss-systemd:armhf (255.4-1ubuntu5) ... 24767s Setting up krb5-locales (1.20.1-5.1build3) ... 24767s Setting up file (1:5.45-3) ... 24767s Setting up lshw (02.19.git.2021.06.19.996aaad9c7-2build2) ... 24767s Setting up locales (2.39-0ubuntu6) ... 24769s Generating locales (this might take a while)... 24775s en_US.UTF-8... done 24775s Generation complete. 24775s Setting up libldap-common (2.6.7+dfsg-1~exp1ubuntu6) ... 24775s Setting up xxd (2:9.1.0016-1ubuntu5) ... 24775s Setting up libsframe1:armhf (2.42-4ubuntu1) ... 24775s Setting up libelf1t64:armhf (0.190-1.1build2) ... 24775s Setting up libkrb5support0:armhf (1.20.1-5.1build3) ... 24775s Setting up linux-headers-6.8.0-20-generic (6.8.0-20.20) ... 24775s Setting up eject (2.39.3-9ubuntu2) ... 24775s Setting up apparmor (4.0.0-beta3-0ubuntu2) ... 24775s Installing new version of config file /etc/apparmor.d/abstractions/authentication ... 24775s Installing new version of config file /etc/apparmor.d/abstractions/crypto ... 24775s Installing new version of config file /etc/apparmor.d/abstractions/kde-open5 ... 24776s Installing new version of config file /etc/apparmor.d/abstractions/openssl ... 24776s Installing new version of config file /etc/apparmor.d/code ... 24776s Installing new version of config file /etc/apparmor.d/firefox ... 24776s apparmor_parser: Unable to replace "lsb_release". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24776s 24776s apparmor_parser: Unable to replace "kmod". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24776s 24776s apparmor_parser: Unable to replace "nvidia_modprobe". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24776s 24779s sysctl: cannot stat /proc/sys/kernel/apparmor_restrict_unprivileged_userns: No such file or directory 24779s Reloading AppArmor profiles 24779s /sbin/apparmor_parser: Unable to replace "1password". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "Discord". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "MongoDB Compass". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "cam". /sbin/apparmor_parser: Unable to replace "busybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "brave". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "buildah". /sbin/apparmor_parser: Unable to replace "ch-checkns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "ch-run". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "chrome". /sbin/apparmor_parser: Unable to replace "vscode". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "crun". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "devhelp". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "element-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "epiphany". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "evolution". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "firefox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "flatpak". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "geary". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "goldendict". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "github-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "ipa_verify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "keybase". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "kchmviewer". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lc-compliance". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "libcamerify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "loupe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "linux-sandbox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lxc-attach". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lxc-create". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lxc-destroy". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lxc-execute". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lxc-unshare". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lxc-stop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lxc-usernsexec". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "mmdebstrap". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "msedge". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "nautilus". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "notepadqq". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "opam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "obsidian". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "opera". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "pageedit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "polypane". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "qcam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "podman". /sbin/apparmor_parser: Unable to replace "rootlesskit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "rpm". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "qutebrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "rssguard". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "runc". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-abort". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "privacybrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-apt". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "plasmashell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-clean". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-adduser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-createchroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-distupgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-destroychroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-hold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-unhold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "qmapshack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-shell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-update". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "scide". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-upgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "slack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "slirp4netns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "sbuild-checkpackages". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "steam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "stress-ng". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "surfshark". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "systemd-coredump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "toybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "tuxedo-control-center". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "tup". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "signal-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "unprivileged_userns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "trinity". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "thunderbird". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "lsb_release". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "userbindmount". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "vdens". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "uwsgi-core". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "virtiofsd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "vivaldi-bin". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "kmod". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "nvidia_modprobe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "vpnns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "wpcom". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "/usr/bin/man". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24779s /sbin/apparmor_parser: Unable to replace "unix-chkpwd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24779s 24780s /sbin/apparmor_parser: Unable to replace "ubuntu_pro_apt_news". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24780s 24780s /sbin/apparmor_parser: Unable to replace "rsyslogd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24780s 24780s /sbin/apparmor_parser: Unable to replace "tcpdump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24780s 24780s Error: At least one profile failed to load 24780s Setting up libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 24780s No schema files found: doing nothing. 24780s Setting up libglib2.0-data (2.79.3-3ubuntu5) ... 24780s Setting up vim-common (2:9.1.0016-1ubuntu5) ... 24780s Setting up gcc-13-base:armhf (13.2.0-19ubuntu1) ... 24780s Setting up libqrtr-glib0:armhf (1.2.2-1ubuntu3) ... 24780s Setting up libslang2:armhf (2.3.3-3build1) ... 24780s Setting up libnvme1t64 (1.8-3) ... 24780s Setting up mtr-tiny (0.95-1.1build1) ... 24780s Setting up gnupg-l10n (2.4.4-2ubuntu15) ... 24780s Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) ... 24780s Setting up libdbus-1-3:armhf (1.14.10-4ubuntu2) ... 24780s Setting up xz-utils (5.6.0-0.2) ... 24780s Setting up perl-modules-5.38 (5.38.2-3.2) ... 24780s Setting up libpng16-16t64:armhf (1.6.43-3) ... 24780s Setting up systemd-timesyncd (255.4-1ubuntu5) ... 24781s Setting up libevent-core-2.1-7:armhf (2.1.12-stable-9build1) ... 24781s Setting up libss2:armhf (1.47.0-2.4~exp1ubuntu2) ... 24781s Setting up usb.ids (2024.03.18-1) ... 24781s Setting up sudo (1.9.15p5-3ubuntu3) ... 24781s Setting up dhcpcd-base (1:10.0.6-1ubuntu2) ... 24781s Setting up gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) ... 24782s Setting up libk5crypto3:armhf (1.20.1-5.1build3) ... 24782s Setting up logsave (1.47.0-2.4~exp1ubuntu2) ... 24782s Setting up libfdisk1:armhf (2.39.3-9ubuntu2) ... 24782s Setting up libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 24782s Setting up libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) ... 24782s Setting up python-apt-common (2.7.6build1) ... 24782s Setting up mount (2.39.3-9ubuntu2) ... 24782s Setting up dmsetup (2:1.02.185-3ubuntu2) ... 24782s Setting up uuid-runtime (2.39.3-9ubuntu2) ... 24784s uuidd.service is a disabled or a static unit not running, not starting it. 24784s Setting up libmm-glib0:armhf (1.23.4-0ubuntu1) ... 24784s Setting up groff-base (1.23.0-3build1) ... 24784s Setting up libplymouth5:armhf (24.004.60-1ubuntu5) ... 24784s Setting up dbus-session-bus-common (1.14.10-4ubuntu2) ... 24784s Setting up jq (1.7.1-3) ... 24784s Setting up gpgconf (2.4.4-2ubuntu15) ... 24784s Setting up libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 24785s Setting up libcryptsetup12:armhf (2:2.7.0-1ubuntu2) ... 24785s Setting up libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) ... 24785s Setting up libjson-glib-1.0-common (1.8.0-2build1) ... 24785s Setting up libkrb5-3:armhf (1.20.1-5.1build3) ... 24785s Setting up libpython3.11-minimal:armhf (3.11.8-1build4) ... 24785s Setting up libusb-1.0-0:armhf (2:1.0.27-1) ... 24785s Setting up libperl5.38t64:armhf (5.38.2-3.2) ... 24785s Setting up tnftp (20230507-2build1) ... 24785s Setting up libbinutils:armhf (2.42-4ubuntu1) ... 24785s Setting up dbus-system-bus-common (1.14.10-4ubuntu2) ... 24785s Setting up libfido2-1:armhf (1.14.0-1build1) ... 24785s Setting up openssl (3.0.13-0ubuntu2) ... 24785s Setting up libbsd0:armhf (0.12.1-1) ... 24785s Setting up readline-common (8.2-3.1) ... 24785s Setting up libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) ... 24785s Setting up libxmuu1:armhf (2:1.1.3-3build1) ... 24785s Setting up dbus-bin (1.14.10-4ubuntu2) ... 24785s Setting up info (7.1-3build1) ... 24785s Setting up liblocale-gettext-perl (1.07-6ubuntu3) ... 24785s Setting up gpg (2.4.4-2ubuntu15) ... 24785s Setting up libgudev-1.0-0:armhf (1:238-3ubuntu2) ... 24785s Setting up libpolkit-gobject-1-0:armhf (124-1ubuntu1) ... 24785s Setting up libbpf1:armhf (1:1.3.0-2build1) ... 24785s Setting up libmbim-glib4:armhf (1.31.2-0ubuntu2) ... 24785s Setting up rsync (3.2.7-1build1) ... 24788s rsync.service is a disabled or a static unit not running, not starting it. 24788s Setting up libkmod2:armhf (31+20240202-2ubuntu4) ... 24788s Setting up bolt (0.9.6-2build1) ... 24789s bolt.service is a disabled or a static unit not running, not starting it. 24789s Setting up gnupg-utils (2.4.4-2ubuntu15) ... 24789s Setting up initramfs-tools-bin (0.142ubuntu22) ... 24789s Setting up libctf0:armhf (2.42-4ubuntu1) ... 24789s Setting up cryptsetup-bin (2:2.7.0-1ubuntu2) ... 24789s Setting up python3.11-minimal (3.11.8-1build4) ... 24792s Setting up tcpdump (4.99.4-3ubuntu2) ... 24793s apparmor_parser: Unable to replace "tcpdump". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24793s 24793s Setting up apt-utils (2.7.13ubuntu1) ... 24793s Setting up gpg-agent (2.4.4-2ubuntu15) ... 24795s Setting up libpython3.12-stdlib:armhf (3.12.2-4build3) ... 24795s Setting up wget (1.21.4-1ubuntu2) ... 24795s Setting up libxmlb2:armhf (0.3.15-1build1) ... 24795s Setting up btrfs-progs (6.6.3-1.1build1) ... 24795s Setting up libpython3.11-stdlib:armhf (3.11.8-1build4) ... 24795s Setting up python3.12 (3.12.2-4build3) ... 24799s Setting up gpgsm (2.4.4-2ubuntu15) ... 24799s Setting up inetutils-telnet (2:2.5-3ubuntu3) ... 24799s Setting up e2fsprogs (1.47.0-2.4~exp1ubuntu2) ... 24799s update-initramfs: deferring update (trigger activated) 24800s e2scrub_all.service is a disabled or a static unit not running, not starting it. 24801s Setting up libparted2t64:armhf (3.6-3.1build2) ... 24801s Setting up linux-headers-generic (6.8.0-20.20+1) ... 24801s Setting up dbus-daemon (1.14.10-4ubuntu2) ... 24801s Setting up libmbim-proxy (1.31.2-0ubuntu2) ... 24801s Setting up vim-tiny (2:9.1.0016-1ubuntu5) ... 24801s Setting up kmod (31+20240202-2ubuntu4) ... 24802s Setting up libnetplan1:armhf (1.0-1) ... 24802s Setting up man-db (2.12.0-3build4) ... 24802s Updating database of manual pages ... 24806s apparmor_parser: Unable to replace "/usr/bin/man". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24806s 24808s man-db.service is a disabled or a static unit not running, not starting it. 24808s Setting up fdisk (2.39.3-9ubuntu2) ... 24808s Setting up libjson-glib-1.0-0:armhf (1.8.0-2build1) ... 24808s Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) ... 24808s Setting up libftdi1-2:armhf (1.5-6build4) ... 24808s Setting up perl (5.38.2-3.2) ... 24808s Setting up gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) ... 24808s Setting up dbus (1.14.10-4ubuntu2) ... 24808s A reboot is required to replace the running dbus-daemon. 24808s Please reboot the system when convenient. 24809s Setting up shared-mime-info (2.4-1build1) ... 24812s Setting up libblockdev-utils3:armhf (3.1.0-1build1) ... 24812s Setting up libgssapi-krb5-2:armhf (1.20.1-5.1build3) ... 24812s Setting up udev (255.4-1ubuntu5) ... 24815s Setting up ftp (20230507-2build1) ... 24815s Setting up keyboxd (2.4.4-2ubuntu15) ... 24815s Setting up libdpkg-perl (1.22.6ubuntu4) ... 24815s Setting up libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) ... 24815s Setting up libssh-4:armhf (0.10.6-2build1) ... 24815s Setting up libblockdev-nvme3:armhf (3.1.0-1build1) ... 24815s Setting up libblockdev-fs3:armhf (3.1.0-1build1) ... 24815s Setting up kpartx (0.9.4-5ubuntu5) ... 24815s Setting up libpam-systemd:armhf (255.4-1ubuntu5) ... 24816s Setting up libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 24816s Setting up libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 24816s Setting up netplan-generator (1.0-1) ... 24816s Removing 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 24816s Setting up initramfs-tools-core (0.142ubuntu22) ... 24816s Setting up binutils-arm-linux-gnueabihf (2.42-4ubuntu1) ... 24816s Setting up libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 24816s Setting up libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) ... 24816s Setting up libpython3-stdlib:armhf (3.12.2-0ubuntu1) ... 24816s Setting up systemd-resolved (255.4-1ubuntu5) ... 24818s Setting up python3.11 (3.11.8-1build4) ... 24822s Setting up telnet (0.17+2.5-3ubuntu3) ... 24822s Setting up initramfs-tools (0.142ubuntu22) ... 24822s update-initramfs: deferring update (trigger activated) 24822s Setting up libblockdev-mdraid3:armhf (3.1.0-1build1) ... 24822s Setting up libcurl4t64:armhf (8.5.0-2ubuntu7) ... 24822s Setting up bind9-libs:armhf (1:9.18.24-0ubuntu3) ... 24822s Setting up libtirpc3t64:armhf (1.3.4+ds-1.1) ... 24822s Setting up e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) ... 24822s Setting up libblockdev-swap3:armhf (3.1.0-1build1) ... 24822s Setting up plymouth (24.004.60-1ubuntu5) ... 24822s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 24823s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 24823s Setting up iproute2 (6.1.0-1ubuntu5) ... 24824s Setting up openssh-client (1:9.6p1-3ubuntu11) ... 24824s Setting up libgusb2:armhf (0.4.8-1build1) ... 24824s Setting up libblockdev-loop3:armhf (3.1.0-1build1) ... 24824s Setting up libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 24824s Setting up parted (3.6-3.1build2) ... 24824s Setting up libqmi-glib5:armhf (1.35.2-0ubuntu1) ... 24824s Setting up python3 (3.12.2-0ubuntu1) ... 24825s Setting up binutils (2.42-4ubuntu1) ... 24825s Setting up python3-markupsafe (2.1.5-1build1) ... 24825s Setting up libblockdev3:armhf (3.1.0-1build1) ... 24825s Setting up libjcat1:armhf (0.2.0-2build2) ... 24825s Setting up dpkg-dev (1.22.6ubuntu4) ... 24825s Setting up libblockdev-part3:armhf (3.1.0-1build1) ... 24825s Setting up dirmngr (2.4.4-2ubuntu15) ... 24826s Setting up dbus-user-session (1.14.10-4ubuntu2) ... 24826s Setting up plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) ... 24826s update-initramfs: deferring update (trigger activated) 24826s Setting up python3-cryptography (41.0.7-4build2) ... 24827s Setting up python3-gi (3.47.0-3build1) ... 24828s Setting up python3-typing-extensions (4.10.0-1) ... 24828s Setting up lsof (4.95.0-1build2) ... 24828s Setting up python3-pyrsistent:armhf (0.20.0-1build1) ... 24829s Setting up libnsl2:armhf (1.3.0-3build2) ... 24829s Setting up gnupg (2.4.4-2ubuntu15) ... 24829s Setting up python3-netplan (1.0-1) ... 24829s Setting up curl (8.5.0-2ubuntu7) ... 24829s Setting up libvolume-key1:armhf (0.3.12-7build1) ... 24829s Setting up bind9-host (1:9.18.24-0ubuntu3) ... 24829s Setting up python3-lib2to3 (3.12.2-3ubuntu2) ... 24830s Setting up python3-pkg-resources (68.1.2-2ubuntu1) ... 24830s Setting up openssh-sftp-server (1:9.6p1-3ubuntu11) ... 24830s Setting up python3-dbus (1.3.2-5build2) ... 24831s Setting up python3-setuptools (68.1.2-2ubuntu1) ... 24833s Setting up gpg-wks-client (2.4.4-2ubuntu15) ... 24833s Setting up openssh-server (1:9.6p1-3ubuntu11) ... 24834s Replacing config file /etc/ssh/sshd_config with new version 24839s Created symlink /etc/systemd/system/ssh.service.requires/ssh.socket → /usr/lib/systemd/system/ssh.socket. 24843s Setting up libblockdev-crypto3:armhf (3.1.0-1build1) ... 24843s Setting up python3-gdbm:armhf (3.12.2-3ubuntu2) ... 24843s Setting up python3-apt (2.7.6build1) ... 24844s Setting up python3-openssl (24.0.0-4) ... 24844s Setting up libfwupd2:armhf (1.9.15-1) ... 24844s Setting up python3-yaml (6.0.1-2build1) ... 24845s Setting up libqmi-proxy (1.35.2-0ubuntu1) ... 24845s Setting up netplan.io (1.0-1) ... 24845s Setting up bind9-dnsutils (1:9.18.24-0ubuntu3) ... 24845s Setting up ubuntu-pro-client (31.2) ... 24846s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 24846s 24849s Setting up fwupd (1.9.15-1) ... 24852s fwupd-offline-update.service is a disabled or a static unit not running, not starting it. 24852s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 24852s fwupd.service is a disabled or a static unit not running, not starting it. 24852s Setting up ubuntu-pro-client-l10n (31.2) ... 24852s Setting up ubuntu-minimal (1.536build1) ... 24852s Setting up ubuntu-standard (1.536build1) ... 24852s Processing triggers for libc-bin (2.39-0ubuntu6) ... 24852s Processing triggers for ufw (0.36.2-5) ... 24853s Processing triggers for install-info (7.1-3build1) ... 24853s Processing triggers for initramfs-tools (0.142ubuntu22) ... 24858s Reading package lists... 24859s Building dependency tree... 24859s Reading state information... 24861s The following packages will be REMOVED: 24861s libatasmart4* libblockdev-crypto3* libblockdev-fs3* libblockdev-loop3* 24861s libblockdev-mdraid3* libblockdev-nvme3* libblockdev-part3* 24861s libblockdev-swap3* libblockdev-utils3* libblockdev3* libbytesize-common* 24861s libbytesize1* libnspr4* libnss3* libnvme1t64* libpolkit-agent-1-0* 24861s libvolume-key1* linux-headers-6.8.0-11* python3-lib2to3* 24862s 0 upgraded, 0 newly installed, 19 to remove and 1 not upgraded. 24862s After this operation, 89.7 MB disk space will be freed. 24863s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78559 files and directories currently installed.) 24863s Removing libatasmart4:armhf (0.19-5build2) ... 24863s Removing libblockdev-crypto3:armhf (3.1.0-1build1) ... 24863s Removing libblockdev-fs3:armhf (3.1.0-1build1) ... 24863s Removing libblockdev-loop3:armhf (3.1.0-1build1) ... 24863s Removing libblockdev-mdraid3:armhf (3.1.0-1build1) ... 24863s Removing libblockdev-nvme3:armhf (3.1.0-1build1) ... 24863s Removing libblockdev-part3:armhf (3.1.0-1build1) ... 24863s Removing libblockdev-swap3:armhf (3.1.0-1build1) ... 24863s Removing libblockdev3:armhf (3.1.0-1build1) ... 24863s Removing libblockdev-utils3:armhf (3.1.0-1build1) ... 24863s Removing libbytesize1:armhf (2.10-1ubuntu1) ... 24863s Removing libbytesize-common (2.10-1ubuntu1) ... 24863s Removing libvolume-key1:armhf (0.3.12-7build1) ... 24863s Removing libnss3:armhf (2:3.98-1) ... 24863s Removing libnspr4:armhf (2:4.35-1.1) ... 24864s Removing libnvme1t64 (1.8-3) ... 24864s Removing libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 24864s Removing linux-headers-6.8.0-11 (6.8.0-11.11) ... 24867s Removing python3-lib2to3 (3.12.2-3ubuntu2) ... 24867s Processing triggers for libc-bin (2.39-0ubuntu6) ... 24868s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58288 files and directories currently installed.) 24868s Purging configuration files for libblockdev3:armhf (3.1.0-1build1) ... 24871s autopkgtest [22:06:35]: rebooting testbed after setup commands that affected boot 24981s Reading package lists... 24982s Building dependency tree... 24982s Reading state information... 24984s Starting pkgProblemResolver with broken count: 0 24984s Starting 2 pkgProblemResolver with broken count: 0 24984s Done 24986s The following additional packages will be installed: 24986s build-essential cpp cpp-13 cpp-13-arm-linux-gnueabihf 24986s cpp-arm-linux-gnueabihf g++ g++-13 g++-13-arm-linux-gnueabihf 24986s g++-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 24986s gcc-arm-linux-gnueabihf gfortran gfortran-13 gfortran-13-arm-linux-gnueabihf 24986s gfortran-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libc-dev-bin 24986s libc6-dev libcc1-0 libcrypt-dev libexpat1-dev libgcc-13-dev 24986s libgfortran-13-dev libgfortran5 libgomp1 libisl23 libjs-jquery 24986s libjs-sphinxdoc libjs-underscore liblapack3 libmpc3 libpython3-all-dev 24986s libpython3-dev libpython3.12-dev libpython3.12t64 libstdc++-13-dev libubsan1 24986s linux-libc-dev python3-all python3-all-dev python3-dev python3-numpy 24986s python3.12-dev rpcsvc-proto zlib1g-dev 24986s Suggested packages: 24986s cpp-doc gcc-13-locales cpp-13-doc gcc-13-doc gcc-multilib manpages-dev 24986s autoconf automake libtool flex bison gdb gcc-doc gdb-arm-linux-gnueabihf 24986s gfortran-doc gfortran-13-doc libcoarrays-dev glibc-doc libstdc++-13-doc 24986s python3-pytest 24986s Recommended packages: 24986s manpages manpages-dev libc-devtools javascript-common 24987s The following NEW packages will be installed: 24987s autopkgtest-satdep build-essential cpp cpp-13 cpp-13-arm-linux-gnueabihf 24987s cpp-arm-linux-gnueabihf g++ g++-13 g++-13-arm-linux-gnueabihf 24987s g++-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 24987s gcc-arm-linux-gnueabihf gfortran gfortran-13 gfortran-13-arm-linux-gnueabihf 24987s gfortran-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libc-dev-bin 24987s libc6-dev libcc1-0 libcrypt-dev libexpat1-dev libgcc-13-dev 24987s libgfortran-13-dev libgfortran5 libgomp1 libisl23 libjs-jquery 24987s libjs-sphinxdoc libjs-underscore liblapack3 libmpc3 libpython3-all-dev 24987s libpython3-dev libpython3.12-dev libpython3.12t64 libstdc++-13-dev libubsan1 24987s linux-libc-dev python3-all python3-all-dev python3-dev python3-numpy 24987s python3.12-dev rpcsvc-proto zlib1g-dev 24987s 0 upgraded, 50 newly installed, 0 to remove and 1 not upgraded. 24987s Need to get 71.1 MB/71.1 MB of archives. 24987s After this operation, 213 MB of additional disk space will be used. 24987s Get:1 /tmp/autopkgtest.b6ixTN/4-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [752 B] 24987s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-dev-bin armhf 2.39-0ubuntu6 [19.1 kB] 24987s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-libc-dev armhf 6.8.0-20.20 [1555 kB] 24988s Get:4 http://ftpmaster.internal/ubuntu noble/main armhf libcrypt-dev armhf 1:4.4.36-4 [136 kB] 24988s Get:5 http://ftpmaster.internal/ubuntu noble/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu6 [63.7 kB] 24988s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6-dev armhf 2.39-0ubuntu6 [1351 kB] 24988s Get:7 http://ftpmaster.internal/ubuntu noble/main armhf libisl23 armhf 0.26-3 [595 kB] 24988s Get:8 http://ftpmaster.internal/ubuntu noble/main armhf libmpc3 armhf 1.3.1-1 [46.4 kB] 24988s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [8753 kB] 24988s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13 armhf 13.2.0-19ubuntu1 [1036 B] 24988s Get:11 http://ftpmaster.internal/ubuntu noble/main armhf cpp-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [5320 B] 24988s Get:12 http://ftpmaster.internal/ubuntu noble/main armhf cpp armhf 4:13.2.0-7ubuntu1 [22.4 kB] 24988s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcc1-0 armhf 14-20240315-1ubuntu1 [39.0 kB] 24988s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgomp1 armhf 14-20240315-1ubuntu1 [125 kB] 24988s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libatomic1 armhf 14-20240315-1ubuntu1 [7824 B] 24988s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libasan8 armhf 14-20240315-1ubuntu1 [2941 kB] 24989s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libubsan1 armhf 14-20240315-1ubuntu1 [1152 kB] 24989s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-13-dev armhf 13.2.0-19ubuntu1 [900 kB] 24989s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [16.8 MB] 24990s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13 armhf 13.2.0-19ubuntu1 [448 kB] 24990s Get:21 http://ftpmaster.internal/ubuntu noble/main armhf gcc-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [1220 B] 24990s Get:22 http://ftpmaster.internal/ubuntu noble/main armhf gcc armhf 4:13.2.0-7ubuntu1 [5022 B] 24990s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++-13-dev armhf 13.2.0-19ubuntu1 [2403 kB] 24990s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf g++-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [9935 kB] 24991s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf g++-13 armhf 13.2.0-19ubuntu1 [14.5 kB] 24991s Get:26 http://ftpmaster.internal/ubuntu noble/main armhf g++-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [966 B] 24991s Get:27 http://ftpmaster.internal/ubuntu noble/main armhf g++ armhf 4:13.2.0-7ubuntu1 [1090 B] 24991s Get:28 http://ftpmaster.internal/ubuntu noble/main armhf build-essential armhf 12.10ubuntu1 [4928 B] 24991s Get:29 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgfortran5 armhf 14-20240315-1ubuntu1 [312 kB] 24991s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgfortran-13-dev armhf 13.2.0-19ubuntu1 [359 kB] 24991s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gfortran-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [9176 kB] 24991s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gfortran-13 armhf 13.2.0-19ubuntu1 [10.4 kB] 24991s Get:33 http://ftpmaster.internal/ubuntu noble/main armhf gfortran-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [1024 B] 24991s Get:34 http://ftpmaster.internal/ubuntu noble/main armhf gfortran armhf 4:13.2.0-7ubuntu1 [1166 B] 24991s Get:35 http://ftpmaster.internal/ubuntu noble/main armhf libblas3 armhf 3.12.0-3 [123 kB] 24991s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1-dev armhf 2.6.1-2 [122 kB] 24991s Get:37 http://ftpmaster.internal/ubuntu noble/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 24991s Get:38 http://ftpmaster.internal/ubuntu noble/main armhf libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 24991s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjs-sphinxdoc all 7.2.6-5 [149 kB] 24991s Get:40 http://ftpmaster.internal/ubuntu noble/main armhf liblapack3 armhf 3.12.0-3 [2085 kB] 24991s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12t64 armhf 3.12.2-4build3 [2056 kB] 24991s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g-dev armhf 1:1.3.dfsg-3.1ubuntu1 [880 kB] 24991s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-dev armhf 3.12.2-4build3 [3901 kB] 24992s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-dev armhf 3.12.2-0ubuntu1 [10.1 kB] 24992s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-all-dev armhf 3.12.2-0ubuntu1 [910 B] 24992s Get:46 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-all armhf 3.12.2-0ubuntu1 [886 B] 24992s Get:47 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-dev armhf 3.12.2-4build3 [498 kB] 24992s Get:48 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dev armhf 3.12.2-0ubuntu1 [26.7 kB] 24992s Get:49 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-all-dev armhf 3.12.2-0ubuntu1 [908 B] 24992s Get:50 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-numpy armhf 1:1.24.2-3ubuntu1 [3610 kB] 24994s Fetched 71.1 MB in 5s (13.8 MB/s) 24994s Selecting previously unselected package libc-dev-bin. 24995s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58284 files and directories currently installed.) 24995s Preparing to unpack .../00-libc-dev-bin_2.39-0ubuntu6_armhf.deb ... 24995s Unpacking libc-dev-bin (2.39-0ubuntu6) ... 24995s Selecting previously unselected package linux-libc-dev:armhf. 24995s Preparing to unpack .../01-linux-libc-dev_6.8.0-20.20_armhf.deb ... 24995s Unpacking linux-libc-dev:armhf (6.8.0-20.20) ... 24996s Selecting previously unselected package libcrypt-dev:armhf. 24996s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.36-4_armhf.deb ... 24996s Unpacking libcrypt-dev:armhf (1:4.4.36-4) ... 24996s Selecting previously unselected package rpcsvc-proto. 24996s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu6_armhf.deb ... 24996s Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ... 24996s Selecting previously unselected package libc6-dev:armhf. 24996s Preparing to unpack .../04-libc6-dev_2.39-0ubuntu6_armhf.deb ... 24996s Unpacking libc6-dev:armhf (2.39-0ubuntu6) ... 24997s Selecting previously unselected package libisl23:armhf. 24997s Preparing to unpack .../05-libisl23_0.26-3_armhf.deb ... 24997s Unpacking libisl23:armhf (0.26-3) ... 24997s Selecting previously unselected package libmpc3:armhf. 24997s Preparing to unpack .../06-libmpc3_1.3.1-1_armhf.deb ... 24997s Unpacking libmpc3:armhf (1.3.1-1) ... 24997s Selecting previously unselected package cpp-13-arm-linux-gnueabihf. 24997s Preparing to unpack .../07-cpp-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 24997s Unpacking cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 24998s Selecting previously unselected package cpp-13. 24998s Preparing to unpack .../08-cpp-13_13.2.0-19ubuntu1_armhf.deb ... 24998s Unpacking cpp-13 (13.2.0-19ubuntu1) ... 24998s Selecting previously unselected package cpp-arm-linux-gnueabihf. 24998s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 24998s Unpacking cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 24998s Selecting previously unselected package cpp. 24998s Preparing to unpack .../10-cpp_4%3a13.2.0-7ubuntu1_armhf.deb ... 24998s Unpacking cpp (4:13.2.0-7ubuntu1) ... 24998s Selecting previously unselected package libcc1-0:armhf. 24998s Preparing to unpack .../11-libcc1-0_14-20240315-1ubuntu1_armhf.deb ... 24998s Unpacking libcc1-0:armhf (14-20240315-1ubuntu1) ... 24998s Selecting previously unselected package libgomp1:armhf. 24998s Preparing to unpack .../12-libgomp1_14-20240315-1ubuntu1_armhf.deb ... 24998s Unpacking libgomp1:armhf (14-20240315-1ubuntu1) ... 24998s Selecting previously unselected package libatomic1:armhf. 24998s Preparing to unpack .../13-libatomic1_14-20240315-1ubuntu1_armhf.deb ... 24998s Unpacking libatomic1:armhf (14-20240315-1ubuntu1) ... 24998s Selecting previously unselected package libasan8:armhf. 24999s Preparing to unpack .../14-libasan8_14-20240315-1ubuntu1_armhf.deb ... 24999s Unpacking libasan8:armhf (14-20240315-1ubuntu1) ... 24999s Selecting previously unselected package libubsan1:armhf. 24999s Preparing to unpack .../15-libubsan1_14-20240315-1ubuntu1_armhf.deb ... 24999s Unpacking libubsan1:armhf (14-20240315-1ubuntu1) ... 24999s Selecting previously unselected package libgcc-13-dev:armhf. 24999s Preparing to unpack .../16-libgcc-13-dev_13.2.0-19ubuntu1_armhf.deb ... 24999s Unpacking libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 24999s Selecting previously unselected package gcc-13-arm-linux-gnueabihf. 24999s Preparing to unpack .../17-gcc-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 24999s Unpacking gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25000s Selecting previously unselected package gcc-13. 25001s Preparing to unpack .../18-gcc-13_13.2.0-19ubuntu1_armhf.deb ... 25001s Unpacking gcc-13 (13.2.0-19ubuntu1) ... 25001s Selecting previously unselected package gcc-arm-linux-gnueabihf. 25001s Preparing to unpack .../19-gcc-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 25001s Unpacking gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25001s Selecting previously unselected package gcc. 25001s Preparing to unpack .../20-gcc_4%3a13.2.0-7ubuntu1_armhf.deb ... 25001s Unpacking gcc (4:13.2.0-7ubuntu1) ... 25001s Selecting previously unselected package libstdc++-13-dev:armhf. 25001s Preparing to unpack .../21-libstdc++-13-dev_13.2.0-19ubuntu1_armhf.deb ... 25001s Unpacking libstdc++-13-dev:armhf (13.2.0-19ubuntu1) ... 25002s Selecting previously unselected package g++-13-arm-linux-gnueabihf. 25002s Preparing to unpack .../22-g++-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 25002s Unpacking g++-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25003s Selecting previously unselected package g++-13. 25003s Preparing to unpack .../23-g++-13_13.2.0-19ubuntu1_armhf.deb ... 25003s Unpacking g++-13 (13.2.0-19ubuntu1) ... 25003s Selecting previously unselected package g++-arm-linux-gnueabihf. 25003s Preparing to unpack .../24-g++-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 25003s Unpacking g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25003s Selecting previously unselected package g++. 25003s Preparing to unpack .../25-g++_4%3a13.2.0-7ubuntu1_armhf.deb ... 25003s Unpacking g++ (4:13.2.0-7ubuntu1) ... 25003s Selecting previously unselected package build-essential. 25003s Preparing to unpack .../26-build-essential_12.10ubuntu1_armhf.deb ... 25003s Unpacking build-essential (12.10ubuntu1) ... 25003s Selecting previously unselected package libgfortran5:armhf. 25003s Preparing to unpack .../27-libgfortran5_14-20240315-1ubuntu1_armhf.deb ... 25003s Unpacking libgfortran5:armhf (14-20240315-1ubuntu1) ... 25003s Selecting previously unselected package libgfortran-13-dev:armhf. 25003s Preparing to unpack .../28-libgfortran-13-dev_13.2.0-19ubuntu1_armhf.deb ... 25003s Unpacking libgfortran-13-dev:armhf (13.2.0-19ubuntu1) ... 25003s Selecting previously unselected package gfortran-13-arm-linux-gnueabihf. 25004s Preparing to unpack .../29-gfortran-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 25004s Unpacking gfortran-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25004s Selecting previously unselected package gfortran-13. 25005s Preparing to unpack .../30-gfortran-13_13.2.0-19ubuntu1_armhf.deb ... 25005s Unpacking gfortran-13 (13.2.0-19ubuntu1) ... 25005s Selecting previously unselected package gfortran-arm-linux-gnueabihf. 25005s Preparing to unpack .../31-gfortran-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 25005s Unpacking gfortran-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25005s Selecting previously unselected package gfortran. 25005s Preparing to unpack .../32-gfortran_4%3a13.2.0-7ubuntu1_armhf.deb ... 25005s Unpacking gfortran (4:13.2.0-7ubuntu1) ... 25005s Selecting previously unselected package libblas3:armhf. 25005s Preparing to unpack .../33-libblas3_3.12.0-3_armhf.deb ... 25005s Unpacking libblas3:armhf (3.12.0-3) ... 25005s Selecting previously unselected package libexpat1-dev:armhf. 25005s Preparing to unpack .../34-libexpat1-dev_2.6.1-2_armhf.deb ... 25005s Unpacking libexpat1-dev:armhf (2.6.1-2) ... 25005s Selecting previously unselected package libjs-jquery. 25005s Preparing to unpack .../35-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 25005s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 25005s Selecting previously unselected package libjs-underscore. 25005s Preparing to unpack .../36-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 25006s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 25006s Selecting previously unselected package libjs-sphinxdoc. 25006s Preparing to unpack .../37-libjs-sphinxdoc_7.2.6-5_all.deb ... 25006s Unpacking libjs-sphinxdoc (7.2.6-5) ... 25006s Selecting previously unselected package liblapack3:armhf. 25006s Preparing to unpack .../38-liblapack3_3.12.0-3_armhf.deb ... 25006s Unpacking liblapack3:armhf (3.12.0-3) ... 25006s Selecting previously unselected package libpython3.12t64:armhf. 25006s Preparing to unpack .../39-libpython3.12t64_3.12.2-4build3_armhf.deb ... 25006s Unpacking libpython3.12t64:armhf (3.12.2-4build3) ... 25007s Selecting previously unselected package zlib1g-dev:armhf. 25007s Preparing to unpack .../40-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 25007s Unpacking zlib1g-dev:armhf (1:1.3.dfsg-3.1ubuntu1) ... 25007s Selecting previously unselected package libpython3.12-dev:armhf. 25007s Preparing to unpack .../41-libpython3.12-dev_3.12.2-4build3_armhf.deb ... 25007s Unpacking libpython3.12-dev:armhf (3.12.2-4build3) ... 25007s Selecting previously unselected package libpython3-dev:armhf. 25007s Preparing to unpack .../42-libpython3-dev_3.12.2-0ubuntu1_armhf.deb ... 25007s Unpacking libpython3-dev:armhf (3.12.2-0ubuntu1) ... 25007s Selecting previously unselected package libpython3-all-dev:armhf. 25008s Preparing to unpack .../43-libpython3-all-dev_3.12.2-0ubuntu1_armhf.deb ... 25008s Unpacking libpython3-all-dev:armhf (3.12.2-0ubuntu1) ... 25008s Selecting previously unselected package python3-all. 25008s Preparing to unpack .../44-python3-all_3.12.2-0ubuntu1_armhf.deb ... 25008s Unpacking python3-all (3.12.2-0ubuntu1) ... 25008s Selecting previously unselected package python3.12-dev. 25008s Preparing to unpack .../45-python3.12-dev_3.12.2-4build3_armhf.deb ... 25008s Unpacking python3.12-dev (3.12.2-4build3) ... 25008s Selecting previously unselected package python3-dev. 25008s Preparing to unpack .../46-python3-dev_3.12.2-0ubuntu1_armhf.deb ... 25008s Unpacking python3-dev (3.12.2-0ubuntu1) ... 25008s Selecting previously unselected package python3-all-dev. 25008s Preparing to unpack .../47-python3-all-dev_3.12.2-0ubuntu1_armhf.deb ... 25008s Unpacking python3-all-dev (3.12.2-0ubuntu1) ... 25008s Selecting previously unselected package python3-numpy. 25008s Preparing to unpack .../48-python3-numpy_1%3a1.24.2-3ubuntu1_armhf.deb ... 25008s Unpacking python3-numpy (1:1.24.2-3ubuntu1) ... 25009s Selecting previously unselected package autopkgtest-satdep. 25010s Preparing to unpack .../49-4-autopkgtest-satdep.deb ... 25010s Unpacking autopkgtest-satdep (0) ... 25010s Setting up linux-libc-dev:armhf (6.8.0-20.20) ... 25010s Setting up python3-all (3.12.2-0ubuntu1) ... 25010s Setting up libgomp1:armhf (14-20240315-1ubuntu1) ... 25010s Setting up libpython3.12t64:armhf (3.12.2-4build3) ... 25010s Setting up libblas3:armhf (3.12.0-3) ... 25010s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 25010s Setting up rpcsvc-proto (1.4.2-0ubuntu6) ... 25010s Setting up libmpc3:armhf (1.3.1-1) ... 25010s Setting up libatomic1:armhf (14-20240315-1ubuntu1) ... 25010s Setting up libgfortran5:armhf (14-20240315-1ubuntu1) ... 25010s Setting up libubsan1:armhf (14-20240315-1ubuntu1) ... 25010s Setting up libcrypt-dev:armhf (1:4.4.36-4) ... 25010s Setting up libasan8:armhf (14-20240315-1ubuntu1) ... 25010s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 25010s Setting up libisl23:armhf (0.26-3) ... 25010s Setting up libc-dev-bin (2.39-0ubuntu6) ... 25010s Setting up libcc1-0:armhf (14-20240315-1ubuntu1) ... 25010s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 25010s Setting up liblapack3:armhf (3.12.0-3) ... 25010s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 25010s Setting up cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25010s Setting up python3-numpy (1:1.24.2-3ubuntu1) ... 25018s Setting up libjs-sphinxdoc (7.2.6-5) ... 25018s Setting up libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 25018s Setting up libc6-dev:armhf (2.39-0ubuntu6) ... 25018s Setting up libgfortran-13-dev:armhf (13.2.0-19ubuntu1) ... 25018s Setting up cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25018s Setting up libstdc++-13-dev:armhf (13.2.0-19ubuntu1) ... 25018s Setting up cpp-13 (13.2.0-19ubuntu1) ... 25018s Setting up gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25018s Setting up libexpat1-dev:armhf (2.6.1-2) ... 25018s Setting up gcc-13 (13.2.0-19ubuntu1) ... 25018s Setting up zlib1g-dev:armhf (1:1.3.dfsg-3.1ubuntu1) ... 25018s Setting up cpp (4:13.2.0-7ubuntu1) ... 25018s Setting up gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25018s Setting up g++-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25018s Setting up gfortran-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25018s Setting up g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25018s Setting up g++-13 (13.2.0-19ubuntu1) ... 25018s Setting up libpython3.12-dev:armhf (3.12.2-4build3) ... 25018s Setting up gcc (4:13.2.0-7ubuntu1) ... 25018s Setting up gfortran-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25018s Setting up gfortran-13 (13.2.0-19ubuntu1) ... 25018s Setting up python3.12-dev (3.12.2-4build3) ... 25018s Setting up g++ (4:13.2.0-7ubuntu1) ... 25018s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 25018s Setting up build-essential (12.10ubuntu1) ... 25018s Setting up libpython3-dev:armhf (3.12.2-0ubuntu1) ... 25018s Setting up gfortran (4:13.2.0-7ubuntu1) ... 25018s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 25018s update-alternatives: warning: skip creation of /usr/share/man/man1/f95.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f95) doesn't exist 25018s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 25018s update-alternatives: warning: skip creation of /usr/share/man/man1/f77.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f77) doesn't exist 25018s Setting up libpython3-all-dev:armhf (3.12.2-0ubuntu1) ... 25018s Setting up python3-dev (3.12.2-0ubuntu1) ... 25018s Setting up python3-all-dev (3.12.2-0ubuntu1) ... 25018s Setting up autopkgtest-satdep (0) ... 25018s Processing triggers for man-db (2.12.0-3build4) ... 25020s Processing triggers for libc-bin (2.39-0ubuntu6) ... 25044s (Reading database ... 62398 files and directories currently installed.) 25044s Removing autopkgtest-satdep (0) ... 25079s autopkgtest [22:10:03]: test f2py: [----------------------- 25082s === f2py3 === 25084s running build 25084s running config_cc 25084s INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options 25084s running config_fc 25084s INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options 25084s running build_src 25084s INFO: build_src 25084s INFO: building extension "hello" sources 25084s INFO: f2py options: [] 25084s INFO: f2py:> /tmp/tmpcny150t6/src.linux-armv7l-3.12/hellomodule.c 25084s creating /tmp/tmpcny150t6/src.linux-armv7l-3.12 25084s Reading fortran codes... 25084s Reading file 'hello.f' (format:fix,strict) 25084s Post-processing... 25084s Block: hello 25084s Block: foo 25084s Applying post-processing hooks... 25084s character_backward_compatibility_hook 25084s Post-processing (stage 2)... 25084s Building modules... 25084s Building module "hello"... 25084s Generating possibly empty wrappers" 25084s Maybe empty "hello-f2pywrappers.f" 25084s Creating wrapper for Fortran function "foo"("foo")... 25084s Constructing wrapper function "foo"... 25084s foo = foo(a) 25084s Wrote C/API module "hello" to file "/tmp/tmpcny150t6/src.linux-armv7l-3.12/hellomodule.c" 25084s Fortran 77 wrappers are saved to "/tmp/tmpcny150t6/src.linux-armv7l-3.12/hello-f2pywrappers.f" 25084s INFO: adding '/tmp/tmpcny150t6/src.linux-armv7l-3.12/fortranobject.c' to sources. 25084s INFO: adding '/tmp/tmpcny150t6/src.linux-armv7l-3.12' to include_dirs. 25084s copying /usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmpcny150t6/src.linux-armv7l-3.12 25084s copying /usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpcny150t6/src.linux-armv7l-3.12 25084s INFO: adding '/tmp/tmpcny150t6/src.linux-armv7l-3.12/hello-f2pywrappers.f' to sources. 25084s INFO: build_src: building npy-pkg config files 25084s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 25084s !! 25084s 25084s ******************************************************************************** 25084s Please avoid running ``setup.py`` directly. 25084s Instead, use pypa/build, pypa/installer or other 25084s standards-based tools. 25084s 25084s See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 25084s ******************************************************************************** 25084s 25084s !! 25084s self.initialize_options() 25084s running build_ext 25084s INFO: customize UnixCCompiler 25084s INFO: customize UnixCCompiler using build_ext 25084s INFO: get_default_fcompiler: matching types: '['arm', 'gnu95', 'intel', 'lahey', 'pg', 'nv', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor', 'fujitsu']' 25084s INFO: customize ArmFlangCompiler 25084s WARN: Could not locate executable armflang 25084s INFO: customize Gnu95FCompiler 25084s INFO: Found executable /usr/bin/gfortran 25084s INFO: customize Gnu95FCompiler 25084s INFO: customize Gnu95FCompiler using build_ext 25084s INFO: building 'hello' extension 25084s INFO: compiling C sources 25084s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 25084s 25084s creating /tmp/tmpcny150t6/tmp 25084s creating /tmp/tmpcny150t6/tmp/tmpcny150t6 25084s creating /tmp/tmpcny150t6/tmp/tmpcny150t6/src.linux-armv7l-3.12 25084s INFO: compile options: '-DNPY_DISABLE_OPTIMIZATION=1 -I/tmp/tmpcny150t6/src.linux-armv7l-3.12 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c' 25084s INFO: arm-linux-gnueabihf-gcc: /tmp/tmpcny150t6/src.linux-armv7l-3.12/hellomodule.c 25084s INFO: arm-linux-gnueabihf-gcc: /tmp/tmpcny150t6/src.linux-armv7l-3.12/fortranobject.c 25087s INFO: compiling Fortran sources 25087s INFO: Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops 25087s Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops 25087s Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops 25087s INFO: compile options: '-I/tmp/tmpcny150t6/src.linux-armv7l-3.12 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c' 25087s INFO: gfortran:f77: hello.f 25087s INFO: gfortran:f77: /tmp/tmpcny150t6/src.linux-armv7l-3.12/hello-f2pywrappers.f 25087s INFO: /usr/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmpcny150t6/tmp/tmpcny150t6/src.linux-armv7l-3.12/hellomodule.o /tmp/tmpcny150t6/tmp/tmpcny150t6/src.linux-armv7l-3.12/fortranobject.o /tmp/tmpcny150t6/hello.o /tmp/tmpcny150t6/tmp/tmpcny150t6/src.linux-armv7l-3.12/hello-f2pywrappers.o -L/usr/lib/gcc/arm-linux-gnueabihf/13 -L/usr/lib/gcc/arm-linux-gnueabihf/13 -L/usr/lib/arm-linux-gnueabihf -lgfortran -o ./hello.cpython-312-arm-linux-gnueabihf.so 25087s Removing build directory /tmp/tmpcny150t6 25088s === f2py3.12 === 25090s running build 25090s running config_cc 25090s INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options 25090s running config_fc 25090s INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options 25090s running build_src 25090s INFO: build_src 25090s INFO: building extension "hello" sources 25090s INFO: f2py options: [] 25090s INFO: f2py:> /tmp/tmpbe0wasup/src.linux-armv7l-3.12/hellomodule.c 25090s creating /tmp/tmpbe0wasup/src.linux-armv7l-3.12 25090s Reading fortran codes... 25090s Reading file 'hello.f' (format:fix,strict) 25090s Post-processing... 25090s Block: hello 25090s Block: foo 25090s Applying post-processing hooks... 25090s character_backward_compatibility_hook 25090s Post-processing (stage 2)... 25090s Building modules... 25090s Building module "hello"... 25090s Generating possibly empty wrappers" 25090s Maybe empty "hello-f2pywrappers.f" 25090s Creating wrapper for Fortran function "foo"("foo")... 25090s Constructing wrapper function "foo"... 25090s foo = foo(a) 25090s Wrote C/API module "hello" to file "/tmp/tmpbe0wasup/src.linux-armv7l-3.12/hellomodule.c" 25090s Fortran 77 wrappers are saved to "/tmp/tmpbe0wasup/src.linux-armv7l-3.12/hello-f2pywrappers.f" 25090s INFO: adding '/tmp/tmpbe0wasup/src.linux-armv7l-3.12/fortranobject.c' to sources. 25090s INFO: adding '/tmp/tmpbe0wasup/src.linux-armv7l-3.12' to include_dirs. 25090s copying /usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmpbe0wasup/src.linux-armv7l-3.12 25090s copying /usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpbe0wasup/src.linux-armv7l-3.12 25090s INFO: adding '/tmp/tmpbe0wasup/src.linux-armv7l-3.12/hello-f2pywrappers.f' to sources. 25090s INFO: build_src: building npy-pkg config files 25090s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 25090s !! 25090s 25090s ******************************************************************************** 25090s Please avoid running ``setup.py`` directly. 25090s Instead, use pypa/build, pypa/installer or other 25090s standards-based tools. 25090s 25090s See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 25090s ******************************************************************************** 25090s 25090s !! 25090s self.initialize_options() 25090s running build_ext 25090s INFO: customize UnixCCompiler 25090s INFO: customize UnixCCompiler using build_ext 25090s INFO: get_default_fcompiler: matching types: '['arm', 'gnu95', 'intel', 'lahey', 'pg', 'nv', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor', 'fujitsu']' 25090s INFO: customize ArmFlangCompiler 25090s WARN: Could not locate executable armflang 25090s INFO: customize Gnu95FCompiler 25090s INFO: Found executable /usr/bin/gfortran 25090s INFO: customize Gnu95FCompiler 25090s INFO: customize Gnu95FCompiler using build_ext 25090s INFO: building 'hello' extension 25090s INFO: compiling C sources 25090s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 25090s 25090s creating /tmp/tmpbe0wasup/tmp 25090s creating /tmp/tmpbe0wasup/tmp/tmpbe0wasup 25090s creating /tmp/tmpbe0wasup/tmp/tmpbe0wasup/src.linux-armv7l-3.12 25090s INFO: compile options: '-DNPY_DISABLE_OPTIMIZATION=1 -I/tmp/tmpbe0wasup/src.linux-armv7l-3.12 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c' 25090s INFO: arm-linux-gnueabihf-gcc: /tmp/tmpbe0wasup/src.linux-armv7l-3.12/hellomodule.c 25090s INFO: arm-linux-gnueabihf-gcc: /tmp/tmpbe0wasup/src.linux-armv7l-3.12/fortranobject.c 25092s INFO: compiling Fortran sources 25092s INFO: Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops 25092s Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops 25092s Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops 25092s INFO: compile options: '-I/tmp/tmpbe0wasup/src.linux-armv7l-3.12 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.12 -c' 25092s INFO: gfortran:f77: hello.f 25093s INFO: gfortran:f77: /tmp/tmpbe0wasup/src.linux-armv7l-3.12/hello-f2pywrappers.f 25093s INFO: /usr/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmpbe0wasup/tmp/tmpbe0wasup/src.linux-armv7l-3.12/hellomodule.o /tmp/tmpbe0wasup/tmp/tmpbe0wasup/src.linux-armv7l-3.12/fortranobject.o /tmp/tmpbe0wasup/hello.o /tmp/tmpbe0wasup/tmp/tmpbe0wasup/src.linux-armv7l-3.12/hello-f2pywrappers.o -L/usr/lib/gcc/arm-linux-gnueabihf/13 -L/usr/lib/gcc/arm-linux-gnueabihf/13 -L/usr/lib/arm-linux-gnueabihf -lgfortran -o ./hello.cpython-312-arm-linux-gnueabihf.so 25093s Removing build directory /tmp/tmpbe0wasup 25094s autopkgtest [22:10:18]: test f2py: -----------------------] 25100s autopkgtest [22:10:24]: test f2py: - - - - - - - - - - results - - - - - - - - - - 25100s f2py PASS 25105s autopkgtest [22:10:29]: test distutils: preparing testbed 25204s autopkgtest [22:12:08]: testbed dpkg architecture: armhf 25206s autopkgtest [22:12:10]: testbed apt version: 2.7.12 25206s autopkgtest [22:12:10]: @@@@@@@@@@@@@@@@@@@@ test bed setup 25209s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 25210s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 25210s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [52.7 kB] 25210s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3797 kB] 25212s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [492 kB] 25213s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf Packages [600 kB] 25213s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf c-n-f Metadata [2492 B] 25213s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf Packages [1372 B] 25213s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf c-n-f Metadata [116 B] 25213s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf Packages [3720 kB] 25214s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf c-n-f Metadata [7776 B] 25214s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf Packages [35.6 kB] 25214s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf c-n-f Metadata [116 B] 25225s Fetched 8833 kB in 5s (1625 kB/s) 25226s Reading package lists... 25233s Get:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease [117 kB] 25234s Get:2 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf Packages [601 kB] 25234s Get:3 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf c-n-f Metadata [2492 B] 25234s Get:4 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf Packages [3693 kB] 25235s Get:5 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf c-n-f Metadata [7776 B] 25235s Get:6 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf Packages [1372 B] 25235s Get:7 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf c-n-f Metadata [116 B] 25235s Get:8 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf Packages [35.6 kB] 25235s Get:9 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf c-n-f Metadata [116 B] 25246s Fetched 4459 kB in 3s (1662 kB/s) 25247s Reading package lists... 25256s tee: /proc/self/fd/2: Permission denied 25289s Hit:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease 25289s Hit:2 http://ports.ubuntu.com/ubuntu-ports noble InRelease 25290s Hit:3 http://ftpmaster.internal/ubuntu noble InRelease 25290s Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease 25290s Hit:5 http://ftpmaster.internal/ubuntu noble-updates InRelease 25290s Hit:6 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease 25290s Hit:7 http://ftpmaster.internal/ubuntu noble-security InRelease 25290s Hit:8 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease 25290s Hit:9 http://ftpmaster.internal/ubuntu noble-proposed InRelease 25298s Reading package lists... 25299s Reading package lists... 25300s Building dependency tree... 25300s Reading state information... 25302s Calculating upgrade... 25304s The following packages were automatically installed and are no longer required: 25304s libatasmart4 libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 25304s libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 libblockdev-swap3 25304s libblockdev-utils3 libblockdev3 libbytesize-common libbytesize1 libnspr4 25304s libnss3 libnvme1t64 libpolkit-agent-1-0 libvolume-key1 25304s linux-headers-6.8.0-11 python3-lib2to3 25304s Use 'apt autoremove' to remove them. 25308s The following packages will be REMOVED: 25308s libapt-pkg6.0 libarchive13 libatm1 libcurl3-gnutls libcurl4 libdb5.3 libelf1 25308s libext2fs2 libgdbm-compat4 libgdbm6 libglib2.0-0 libgnutls30 libgpgme11 25308s libhogweed6 libmagic1 libnetplan0 libnettle8 libnpth0 libnvme1 libparted2 25308s libpcap0.8 libperl5.38 libpng16-16 libpsl5 libreadline8 libreiserfscore0 25308s libssl3 libtirpc3 libudisks2-0 libuv1 linux-headers-6.8.0-11-generic 25308s python3-distutils udisks2 25308s The following NEW packages will be installed: 25308s libapt-pkg6.0t64 libarchive13t64 libatm1t64 libcurl3t64-gnutls libcurl4t64 25308s libdb5.3t64 libelf1t64 libext2fs2t64 libgdbm-compat4t64 libgdbm6t64 25308s libglib2.0-0t64 libgnutls30t64 libgpgme11t64 libhogweed6t64 libmagic1t64 25308s libnetplan1 libnettle8t64 libnpth0t64 libnvme1t64 libparted2t64 25308s libpcap0.8t64 libperl5.38t64 libpng16-16t64 libpsl5t64 libreadline8t64 25308s libreiserfscore0t64 libssl3t64 libtirpc3t64 libuv1t64 linux-headers-6.8.0-20 25308s linux-headers-6.8.0-20-generic xdg-user-dirs 25308s The following packages have been kept back: 25308s multipath-tools 25308s The following packages will be upgraded: 25308s apparmor apt apt-utils bind9-dnsutils bind9-host bind9-libs binutils 25308s binutils-arm-linux-gnueabihf binutils-common bolt bsdextrautils bsdutils 25308s btrfs-progs coreutils cryptsetup-bin curl dbus dbus-bin dbus-daemon 25308s dbus-session-bus-common dbus-system-bus-common dbus-user-session debianutils 25308s dhcpcd-base dirmngr dmsetup dpkg dpkg-dev e2fsprogs e2fsprogs-l10n eject 25308s fdisk file ftp fwupd gawk gcc-13-base gcc-14-base gir1.2-girepository-2.0 25308s gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client 25308s gpgconf gpgsm gpgv groff-base ibverbs-providers inetutils-telnet info 25308s initramfs-tools initramfs-tools-bin initramfs-tools-core install-info 25308s iproute2 jq keyboxd kmod kpartx krb5-locales libapparmor1 libaudit-common 25308s libaudit1 libbinutils libblkid1 libblockdev-crypto3 libblockdev-fs3 25308s libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 25308s libblockdev-swap3 libblockdev-utils3 libblockdev3 libbpf1 libbrotli1 libbsd0 25308s libc-bin libc6 libcap-ng0 libcom-err2 libcryptsetup12 libctf-nobfd0 libctf0 25308s libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl 25308s libevent-core-2.1-7 libexpat1 libfdisk1 libfido2-1 libftdi1-2 libfwupd2 25308s libgcc-s1 libgirepository-1.0-1 libglib2.0-data libgssapi-krb5-2 25308s libgudev-1.0-0 libgusb2 libibverbs1 libjcat1 libjq1 libjson-glib-1.0-0 25308s libjson-glib-1.0-common libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 25308s libldap-common libldap2 liblocale-gettext-perl liblzma5 libmagic-mgc 25308s libmbim-glib4 libmbim-proxy libmm-glib0 libmount1 libnghttp2-14 libnsl2 25308s libnss-systemd libpam-modules libpam-modules-bin libpam-runtime 25308s libpam-systemd libpam0g libplymouth5 libpolkit-agent-1-0 25308s libpolkit-gobject-1-0 libpython3-stdlib libpython3.11-minimal 25308s libpython3.11-stdlib libpython3.12-minimal libpython3.12-stdlib libqmi-glib5 25308s libqmi-proxy libqrtr-glib0 librtmp1 libsasl2-2 libsasl2-modules 25308s libsasl2-modules-db libseccomp2 libselinux1 libsemanage-common libsemanage2 25308s libsframe1 libslang2 libsmartcols1 libsqlite3-0 libss2 libssh-4 libstdc++6 25308s libsystemd-shared libsystemd0 libtext-charwidth-perl libtext-iconv-perl 25308s libtirpc-common libudev1 libusb-1.0-0 libuuid1 libvolume-key1 libxml2 25308s libxmlb2 libxmuu1 linux-headers-generic locales logsave lshw lsof man-db 25308s mount mtr-tiny netplan-generator netplan.io openssh-client openssh-server 25308s openssh-sftp-server openssl parted perl perl-base perl-modules-5.38 25308s pinentry-curses plymouth plymouth-theme-ubuntu-text psmisc python-apt-common 25308s python3 python3-apt python3-cryptography python3-dbus python3-gdbm 25308s python3-gi python3-lib2to3 python3-markupsafe python3-minimal 25308s python3-netplan python3-openssl python3-pkg-resources python3-pyrsistent 25308s python3-setuptools python3-typing-extensions python3-yaml python3.11 25308s python3.11-minimal python3.12 python3.12-minimal readline-common rsync 25308s shared-mime-info sudo systemd systemd-dev systemd-resolved systemd-sysv 25308s systemd-timesyncd tcpdump telnet tnftp ubuntu-minimal ubuntu-pro-client 25308s ubuntu-pro-client-l10n ubuntu-standard udev usb.ids util-linux uuid-runtime 25308s vim-common vim-tiny wget xxd xz-utils zlib1g 25309s 236 upgraded, 32 newly installed, 33 to remove and 1 not upgraded. 25309s Need to get 106 MB of archives. 25309s After this operation, 82.8 MB of additional disk space will be used. 25309s Get:1 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdutils armhf 1:2.39.3-9ubuntu2 [102 kB] 25309s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-14-base armhf 14-20240315-1ubuntu1 [47.0 kB] 25309s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-s1 armhf 14-20240315-1ubuntu1 [41.5 kB] 25309s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++6 armhf 14-20240315-1ubuntu1 [714 kB] 25309s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6 armhf 2.39-0ubuntu6 [2827 kB] 25310s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssl armhf 3.0.13-0ubuntu2 [975 kB] 25310s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g armhf 1:1.3.dfsg-3.1ubuntu1 [49.2 kB] 25310s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2build6 [51.3 kB] 25310s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12 armhf 3.12.2-4build3 [645 kB] 25310s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1 armhf 2.6.1-2 [65.9 kB] 25310s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-minimal armhf 3.12.2-4build3 [1942 kB] 25310s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-stdlib armhf 3.12.2-4build3 [1906 kB] 25310s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-minimal armhf 3.12.2-4build3 [816 kB] 25310s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf parted armhf 3.6-3.1build2 [39.4 kB] 25310s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblkid1 armhf 2.39.3-9ubuntu2 [160 kB] 25310s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libselinux1 armhf 3.5-2build3 [70.5 kB] 25310s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-dev all 255.4-1ubuntu5 [103 kB] 25310s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-timesyncd armhf 255.4-1ubuntu5 [36.0 kB] 25310s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-session-bus-common all 1.14.10-4ubuntu2 [80.3 kB] 25310s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit-common all 1:3.1.2-2.1 [5674 B] 25310s Get:21 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcap-ng0 armhf 0.8.4-2build1 [13.5 kB] 25310s Get:22 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit1 armhf 1:3.1.2-2.1 [44.3 kB] 25310s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam0g armhf 1.5.3-5ubuntu3 [62.0 kB] 25310s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblzma5 armhf 5.6.0-0.2 [117 kB] 25310s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap2 armhf 2.6.7+dfsg-1~exp1ubuntu6 [172 kB] 25310s Get:26 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-0t64 armhf 2.79.3-3ubuntu5 [1414 kB] 25310s Get:27 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libvolume-key1 armhf 0.3.12-7build1 [38.4 kB] 25310s Get:28 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgpgme11t64 armhf 1.18.0-4.1ubuntu3 [120 kB] 25310s Get:29 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjcat1 armhf 0.2.0-2build2 [30.4 kB] 25311s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libarchive13t64 armhf 3.7.2-1.1ubuntu1 [330 kB] 25311s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fwupd armhf 1.9.15-1 [4349 kB] 25311s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client-l10n armhf 31.2 [19.4 kB] 25311s Get:33 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client armhf 31.2 [216 kB] 25311s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11 armhf 3.11.8-1build4 [589 kB] 25311s Get:35 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11-minimal armhf 3.11.8-1build4 [1795 kB] 25311s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-minimal armhf 3.11.8-1build4 [826 kB] 25311s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-4ubuntu4 [19.2 kB] 25311s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-iconv-perl armhf 1.7-8build2 [12.7 kB] 25311s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-charwidth-perl armhf 0.04-11build2 [8962 B] 25311s Get:40 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-base armhf 5.38.2-3.2 [1671 kB] 25311s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblocale-gettext-perl armhf 1.07-6ubuntu3 [15.0 kB] 25311s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-modules-5.38 all 5.38.2-3.2 [3110 kB] 25311s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gdbm armhf 3.12.2-3ubuntu2 [17.1 kB] 25311s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf man-db armhf 2.12.0-3build4 [1196 kB] 25311s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm6t64 armhf 1.23-5.1 [30.3 kB] 25311s Get:46 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm-compat4t64 armhf 1.23-5.1 [6208 B] 25311s Get:47 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libperl5.38t64 armhf 5.38.2-3.2 [4101 kB] 25312s Get:48 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl armhf 5.38.2-3.2 [231 kB] 25312s Get:49 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdb5.3t64 armhf 5.3.28+dfsg2-5build1 [661 kB] 25312s Get:50 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-stdlib armhf 3.11.8-1build4 [1810 kB] 25312s Get:51 http://ftpmaster.internal/ubuntu noble-proposed/main armhf keyboxd armhf 2.4.4-2ubuntu15 [111 kB] 25312s Get:52 http://ftpmaster.internal/ubuntu noble/main armhf libnpth0t64 armhf 1.6-3.1 [6940 B] 25312s Get:53 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgv armhf 2.4.4-2ubuntu15 [224 kB] 25312s Get:54 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg armhf 2.4.4-2ubuntu15 [524 kB] 25312s Get:55 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-wks-client armhf 2.4.4-2ubuntu15 [87.4 kB] 25312s Get:56 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-utils armhf 2.4.4-2ubuntu15 [158 kB] 25312s Get:57 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-agent armhf 2.4.4-2ubuntu15 [235 kB] 25312s Get:58 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgsm armhf 2.4.4-2ubuntu15 [241 kB] 25312s Get:59 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreadline8t64 armhf 8.2-3.1 [129 kB] 25312s Get:60 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gawk armhf 1:5.2.1-2build2 [415 kB] 25312s Get:61 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fdisk armhf 2.39.3-9ubuntu2 [135 kB] 25312s Get:62 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgconf armhf 2.4.4-2ubuntu15 [115 kB] 25312s Get:63 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dirmngr armhf 2.4.4-2ubuntu15 [346 kB] 25312s Get:64 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg all 2.4.4-2ubuntu15 [359 kB] 25312s Get:65 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-apt armhf 2.7.6build1 [162 kB] 25312s Get:66 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt-utils armhf 2.7.13ubuntu1 [210 kB] 25312s Get:67 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapt-pkg6.0t64 armhf 2.7.13ubuntu1 [986 kB] 25312s Get:68 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnettle8t64 armhf 3.9.1-2.2 [187 kB] 25312s Get:69 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libhogweed6t64 armhf 3.9.1-2.2 [187 kB] 25312s Get:70 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgnutls30t64 armhf 3.8.3-1.1ubuntu2 [1046 kB] 25312s Get:71 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt armhf 2.7.13ubuntu1 [1367 kB] 25312s Get:72 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl3t64-gnutls armhf 8.5.0-2ubuntu7 [290 kB] 25312s Get:73 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfwupd2 armhf 1.9.15-1 [123 kB] 25312s Get:74 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpsl5t64 armhf 0.21.2-1.1 [55.7 kB] 25312s Get:75 http://ftpmaster.internal/ubuntu noble-proposed/main armhf wget armhf 1.21.4-1ubuntu2 [317 kB] 25312s Get:76 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tnftp armhf 20230507-2build1 [98.6 kB] 25312s Get:77 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpcap0.8t64 armhf 1.10.4-4.1ubuntu1 [137 kB] 25312s Get:78 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tcpdump armhf 4.99.4-3ubuntu2 [425 kB] 25312s Get:79 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd-shared armhf 255.4-1ubuntu5 [2009 kB] 25312s Get:80 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-resolved armhf 255.4-1ubuntu5 [289 kB] 25312s Get:81 http://ftpmaster.internal/ubuntu noble-proposed/main armhf sudo armhf 1.9.15p5-3ubuntu3 [936 kB] 25312s Get:82 http://ftpmaster.internal/ubuntu noble-proposed/main armhf rsync armhf 3.2.7-1build1 [413 kB] 25312s Get:83 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-cryptography armhf 41.0.7-4build2 [788 kB] 25312s Get:84 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-sftp-server armhf 1:9.6p1-3ubuntu11 [35.5 kB] 25312s Get:85 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-client armhf 1:9.6p1-3ubuntu11 [890 kB] 25312s Get:86 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-server armhf 1:9.6p1-3ubuntu11 [503 kB] 25313s Get:87 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-6.8.0-20 all 6.8.0-20.20 [13.6 MB] 25313s Get:88 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-6.8.0-20-generic armhf 6.8.0-20.20 [1287 kB] 25313s Get:89 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-generic armhf 6.8.0-20.20+1 [9610 B] 25313s Get:90 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssl3t64 armhf 3.0.13-0ubuntu2 [1558 kB] 25313s Get:91 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libudev1 armhf 255.4-1ubuntu5 [166 kB] 25313s Get:92 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd armhf 255.4-1ubuntu5 [3502 kB] 25313s Get:93 http://ftpmaster.internal/ubuntu noble-proposed/main armhf udev armhf 255.4-1ubuntu5 [1852 kB] 25313s Get:94 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-sysv armhf 255.4-1ubuntu5 [11.9 kB] 25313s Get:95 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnss-systemd armhf 255.4-1ubuntu5 [148 kB] 25314s Get:96 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-systemd armhf 255.4-1ubuntu5 [216 kB] 25314s Get:97 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd0 armhf 255.4-1ubuntu5 [410 kB] 25314s Get:98 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules-bin armhf 1.5.3-5ubuntu3 [47.0 kB] 25314s Get:99 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules armhf 1.5.3-5ubuntu3 [261 kB] 25314s Get:100 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-runtime all 1.5.3-5ubuntu3 [40.8 kB] 25314s Get:101 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-user-session armhf 1.14.10-4ubuntu2 [9962 B] 25314s Get:102 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapparmor1 armhf 4.0.0-beta3-0ubuntu2 [45.0 kB] 25314s Get:103 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-bin armhf 1.14.10-4ubuntu2 [37.1 kB] 25314s Get:104 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-system-bus-common all 1.14.10-4ubuntu2 [81.5 kB] 25314s Get:105 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus armhf 1.14.10-4ubuntu2 [28.1 kB] 25314s Get:106 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-daemon armhf 1.14.10-4ubuntu2 [109 kB] 25314s Get:107 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdbus-1-3 armhf 1.14.10-4ubuntu2 [190 kB] 25314s Get:108 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kmod armhf 31+20240202-2ubuntu4 [91.8 kB] 25314s Get:109 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkmod2 armhf 31+20240202-2ubuntu4 [44.9 kB] 25314s Get:110 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmount1 armhf 2.39.3-9ubuntu2 [171 kB] 25315s Get:111 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libseccomp2 armhf 2.5.5-1ubuntu2 [49.5 kB] 25315s Get:112 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuuid1 armhf 2.39.3-9ubuntu2 [34.4 kB] 25315s Get:113 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcryptsetup12 armhf 2:2.7.0-1ubuntu2 [238 kB] 25315s Get:114 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfdisk1 armhf 2.39.3-9ubuntu2 [196 kB] 25315s Get:115 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mount armhf 2.39.3-9ubuntu2 [134 kB] 25315s Get:116 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdevmapper1.02.1 armhf 2:1.02.185-3ubuntu2 [135 kB] 25315s Get:117 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libparted2t64 armhf 3.6-3.1build2 [143 kB] 25315s Get:118 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsqlite3-0 armhf 3.45.1-1ubuntu1 [599 kB] 25315s Get:119 http://ftpmaster.internal/ubuntu noble-proposed/main armhf pinentry-curses armhf 1.2.1-3ubuntu4 [36.7 kB] 25315s Get:120 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsmartcols1 armhf 2.39.3-9ubuntu2 [117 kB] 25315s Get:121 http://ftpmaster.internal/ubuntu noble-proposed/main armhf readline-common all 8.2-3.1 [56.4 kB] 25315s Get:122 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-yaml armhf 6.0.1-2build1 [117 kB] 25316s Get:123 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python-apt-common all 2.7.6build1 [19.8 kB] 25316s Get:124 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-setuptools all 68.1.2-2ubuntu1 [396 kB] 25316s Get:125 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pkg-resources all 68.1.2-2ubuntu1 [168 kB] 25316s Get:126 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg armhf 1.22.6ubuntu4 [1229 kB] 25316s Get:127 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-minimal armhf 3.12.2-0ubuntu1 [27.1 kB] 25316s Get:128 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3 armhf 3.12.2-0ubuntu1 [24.1 kB] 25316s Get:129 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-stdlib armhf 3.12.2-0ubuntu1 [9802 B] 25316s Get:130 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdextrautils armhf 2.39.3-9ubuntu2 [78.7 kB] 25316s Get:131 http://ftpmaster.internal/ubuntu noble-proposed/main armhf groff-base armhf 1.23.0-3build1 [946 kB] 25316s Get:132 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-2 armhf 2.1.28+dfsg1-4ubuntu4 [49.7 kB] 25316s Get:133 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-common all 1.8.0-2build1 [4210 B] 25316s Get:134 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-0 armhf 1.8.0-2build1 [61.2 kB] 25316s Get:135 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxml2 armhf 2.9.14+dfsg-1.3ubuntu2 [595 kB] 25316s Get:136 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgudev-1.0-0 armhf 1:238-3ubuntu2 [13.6 kB] 25316s Get:137 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libusb-1.0-0 armhf 2:1.0.27-1 [48.7 kB] 25316s Get:138 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgusb2 armhf 0.4.8-1build1 [34.6 kB] 25317s Get:139 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-proxy armhf 1.31.2-0ubuntu2 [5748 B] 25317s Get:140 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-glib4 armhf 1.31.2-0ubuntu2 [216 kB] 25317s Get:141 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmm-glib0 armhf 1.23.4-0ubuntu1 [214 kB] 25317s Get:142 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-agent-1-0 armhf 124-1ubuntu1 [15.3 kB] 25317s Get:143 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-gobject-1-0 armhf 124-1ubuntu1 [44.1 kB] 25317s Get:144 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-proxy armhf 1.35.2-0ubuntu1 [5732 B] 25317s Get:145 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqrtr-glib0 armhf 1.2.2-1ubuntu3 [15.4 kB] 25317s Get:146 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-glib5 armhf 1.35.2-0ubuntu1 [908 kB] 25317s Get:147 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmlb2 armhf 0.3.15-1build1 [57.0 kB] 25317s Get:148 http://ftpmaster.internal/ubuntu noble-proposed/main armhf shared-mime-info armhf 2.4-1build1 [470 kB] 25317s Get:149 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbrotli1 armhf 1.1.0-2build1 [319 kB] 25317s Get:150 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgssapi-krb5-2 armhf 1.20.1-5.1build3 [119 kB] 25317s Get:151 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5-3 armhf 1.20.1-5.1build3 [321 kB] 25317s Get:152 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5support0 armhf 1.20.1-5.1build3 [31.4 kB] 25317s Get:153 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libk5crypto3 armhf 1.20.1-5.1build3 [78.6 kB] 25317s Get:154 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcom-err2 armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 25317s Get:155 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnghttp2-14 armhf 1.59.0-1build1 [68.1 kB] 25317s Get:156 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssh-4 armhf 0.10.6-2build1 [169 kB] 25317s Get:157 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libibverbs1 armhf 50.0-2build1 [57.9 kB] 25317s Get:158 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfido2-1 armhf 1.14.0-1build1 [75.8 kB] 25317s Get:159 http://ftpmaster.internal/ubuntu noble-proposed/main armhf coreutils armhf 9.4-3ubuntu3 [1280 kB] 25317s Get:160 http://ftpmaster.internal/ubuntu noble-proposed/main armhf debianutils armhf 5.17 [88.9 kB] 25317s Get:161 http://ftpmaster.internal/ubuntu noble-proposed/main armhf util-linux armhf 2.39.3-9ubuntu2 [1216 kB] 25317s Get:162 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-bin armhf 2.39-0ubuntu6 [530 kB] 25317s Get:163 http://ftpmaster.internal/ubuntu noble-proposed/main armhf curl armhf 8.5.0-2ubuntu7 [219 kB] 25317s Get:164 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl4t64 armhf 8.5.0-2ubuntu7 [296 kB] 25317s Get:165 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbpf1 armhf 1:1.3.0-2build1 [146 kB] 25318s Get:166 http://ftpmaster.internal/ubuntu noble-proposed/main armhf iproute2 armhf 6.1.0-1ubuntu5 [1060 kB] 25318s Get:167 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libelf1t64 armhf 0.190-1.1build2 [49.9 kB] 25318s Get:168 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lsof armhf 4.95.0-1build2 [248 kB] 25318s Get:169 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnsl2 armhf 1.3.0-3build2 [36.5 kB] 25318s Get:170 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc-common all 1.3.4+ds-1.1 [8018 B] 25318s Get:171 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc3t64 armhf 1.3.4+ds-1.1 [73.2 kB] 25318s Get:172 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-utils3 armhf 3.1.0-1build1 [16.9 kB] 25318s Get:173 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-fs3 armhf 3.1.0-1build1 [34.4 kB] 25318s Get:174 http://ftpmaster.internal/ubuntu noble-proposed/main armhf logsave armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 25318s Get:175 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-minimal armhf 1.536build1 [10.7 kB] 25318s Get:176 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools all 0.142ubuntu22 [9056 B] 25318s Get:177 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-core all 0.142ubuntu22 [50.0 kB] 25318s Get:178 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs-l10n all 1.47.0-2.4~exp1ubuntu2 [5996 B] 25318s Get:179 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libext2fs2t64 armhf 1.47.0-2.4~exp1ubuntu2 [201 kB] 25318s Get:180 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs armhf 1.47.0-2.4~exp1ubuntu2 [571 kB] 25318s Get:181 http://ftpmaster.internal/ubuntu noble-proposed/main armhf btrfs-progs armhf 6.6.3-1.1build1 [852 kB] 25318s Get:182 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dhcpcd-base armhf 1:10.0.6-1ubuntu2 [186 kB] 25318s Get:183 http://ftpmaster.internal/ubuntu noble-proposed/main armhf eject armhf 2.39.3-9ubuntu2 [43.2 kB] 25318s Get:184 http://ftpmaster.internal/ubuntu noble-proposed/main armhf locales all 2.39-0ubuntu6 [4232 kB] 25318s Get:185 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnetplan1 armhf 1.0-1 [113 kB] 25318s Get:186 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-netplan armhf 1.0-1 [22.5 kB] 25318s Get:187 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan-generator armhf 1.0-1 [58.7 kB] 25318s Get:188 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dbus armhf 1.3.2-5build2 [94.7 kB] 25318s Get:189 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan.io armhf 1.0-1 [64.3 kB] 25318s Get:190 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-tiny armhf 2:9.1.0016-1ubuntu5 [665 kB] 25318s Get:191 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-common all 2:9.1.0016-1ubuntu5 [385 kB] 25318s Get:192 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-bin armhf 0.142ubuntu22 [20.1 kB] 25318s Get:193 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreiserfscore0t64 armhf 1:3.6.27-7.1 [66.2 kB] 25318s Get:194 http://ftpmaster.internal/ubuntu noble-proposed/main armhf file armhf 1:5.45-3 [21.1 kB] 25318s Get:195 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic-mgc armhf 1:5.45-3 [307 kB] 25318s Get:196 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic1t64 armhf 1:5.45-3 [81.4 kB] 25318s Get:197 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-nvme3 armhf 3.1.0-1build1 [17.5 kB] 25318s Get:198 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnvme1t64 armhf 1.8-3 [67.5 kB] 25318s Get:199 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libplymouth5 armhf 24.004.60-1ubuntu5 [140 kB] 25318s Get:200 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpng16-16t64 armhf 1.6.43-3 [166 kB] 25318s Get:201 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-host armhf 1:9.18.24-0ubuntu3 [47.4 kB] 25318s Get:202 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-dnsutils armhf 1:9.18.24-0ubuntu3 [149 kB] 25319s Get:203 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-libs armhf 1:9.18.24-0ubuntu3 [1148 kB] 25319s Get:204 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuv1t64 armhf 1.48.0-1.1 [82.9 kB] 25319s Get:205 http://ftpmaster.internal/ubuntu noble-proposed/main armhf uuid-runtime armhf 2.39.3-9ubuntu2 [41.7 kB] 25319s Get:206 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdebconfclient0 armhf 0.271ubuntu2 [10.8 kB] 25319s Get:207 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage-common all 3.5-1build4 [10.1 kB] 25319s Get:208 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage2 armhf 3.5-1build4 [84.5 kB] 25319s Get:209 http://ftpmaster.internal/ubuntu noble-proposed/main armhf install-info armhf 7.1-3build1 [60.5 kB] 25319s Get:210 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-base armhf 13.2.0-19ubuntu1 [47.7 kB] 25319s Get:211 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libss2 armhf 1.47.0-2.4~exp1ubuntu2 [14.7 kB] 25319s Get:212 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dmsetup armhf 2:1.02.185-3ubuntu2 [81.1 kB] 25319s Get:213 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-girepository-2.0 armhf 1.79.1-1ubuntu6 [24.8 kB] 25319s Get:214 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-glib-2.0 armhf 2.79.3-3ubuntu5 [182 kB] 25319s Get:215 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgirepository-1.0-1 armhf 1.79.1-1ubuntu6 [106 kB] 25319s Get:216 http://ftpmaster.internal/ubuntu noble-proposed/main armhf krb5-locales all 1.20.1-5.1build3 [13.8 kB] 25319s Get:217 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbsd0 armhf 0.12.1-1 [36.6 kB] 25319s Get:218 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-data all 2.79.3-3ubuntu5 [46.6 kB] 25319s Get:219 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libslang2 armhf 2.3.3-3build1 [478 kB] 25319s Get:220 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gi armhf 3.47.0-3build1 [219 kB] 25320s Get:221 http://ftpmaster.internal/ubuntu noble/main armhf xdg-user-dirs armhf 0.18-1 [17.3 kB] 25320s Get:222 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xxd armhf 2:9.1.0016-1ubuntu5 [62.4 kB] 25320s Get:223 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apparmor armhf 4.0.0-beta3-0ubuntu2 [562 kB] 25320s Get:224 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ftp all 20230507-2build1 [4724 B] 25320s Get:225 http://ftpmaster.internal/ubuntu noble-proposed/main armhf inetutils-telnet armhf 2:2.5-3ubuntu3 [90.7 kB] 25320s Get:226 http://ftpmaster.internal/ubuntu noble-proposed/main armhf info armhf 7.1-3build1 [127 kB] 25320s Get:227 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmuu1 armhf 2:1.1.3-3build1 [8004 B] 25320s Get:228 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lshw armhf 02.19.git.2021.06.19.996aaad9c7-2build2 [310 kB] 25320s Get:229 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mtr-tiny armhf 0.95-1.1build1 [51.7 kB] 25320s Get:230 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth-theme-ubuntu-text armhf 24.004.60-1ubuntu5 [9826 B] 25320s Get:231 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth armhf 24.004.60-1ubuntu5 [143 kB] 25320s Get:232 http://ftpmaster.internal/ubuntu noble-proposed/main armhf psmisc armhf 23.7-1 [176 kB] 25320s Get:233 http://ftpmaster.internal/ubuntu noble-proposed/main armhf telnet all 0.17+2.5-3ubuntu3 [3682 B] 25320s Get:234 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xz-utils armhf 5.6.0-0.2 [271 kB] 25320s Get:235 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-standard armhf 1.536build1 [10.7 kB] 25320s Get:236 http://ftpmaster.internal/ubuntu noble-proposed/main armhf usb.ids all 2024.03.18-1 [223 kB] 25320s Get:237 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libctf-nobfd0 armhf 2.42-4ubuntu1 [88.0 kB] 25320s Get:238 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libctf0 armhf 2.42-4ubuntu1 [87.7 kB] 25320s Get:239 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils-arm-linux-gnueabihf armhf 2.42-4ubuntu1 [2925 kB] 25320s Get:240 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbinutils armhf 2.42-4ubuntu1 [464 kB] 25320s Get:241 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils armhf 2.42-4ubuntu1 [3078 B] 25320s Get:242 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils-common armhf 2.42-4ubuntu1 [217 kB] 25320s Get:243 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsframe1 armhf 2.42-4ubuntu1 [13.1 kB] 25320s Get:244 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bolt armhf 0.9.6-2build1 [138 kB] 25320s Get:245 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cryptsetup-bin armhf 2:2.7.0-1ubuntu2 [214 kB] 25320s Get:246 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg-dev all 1.22.6ubuntu4 [1074 kB] 25320s Get:247 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdpkg-perl all 1.22.6ubuntu4 [268 kB] 25320s Get:248 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-l10n all 2.4.4-2ubuntu15 [65.8 kB] 25320s Get:249 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ibverbs-providers armhf 50.0-2build1 [27.4 kB] 25320s Get:250 http://ftpmaster.internal/ubuntu noble-proposed/main armhf jq armhf 1.7.1-3 [65.2 kB] 25320s Get:251 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjq1 armhf 1.7.1-3 [156 kB] 25320s Get:252 http://ftpmaster.internal/ubuntu noble/main armhf libatm1t64 armhf 1:2.5.1-5.1 [20.0 kB] 25320s Get:253 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-crypto3 armhf 3.1.0-1build1 [20.3 kB] 25320s Get:254 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-loop3 armhf 3.1.0-1build1 [6502 B] 25320s Get:255 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-mdraid3 armhf 3.1.0-1build1 [13.3 kB] 25320s Get:256 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-part3 armhf 3.1.0-1build1 [16.4 kB] 25320s Get:257 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-swap3 armhf 3.1.0-1build1 [8894 B] 25320s Get:258 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev3 armhf 3.1.0-1build1 [42.9 kB] 25320s Get:259 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libevent-core-2.1-7 armhf 2.1.12-stable-9build1 [82.3 kB] 25320s Get:260 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libftdi1-2 armhf 1.5-6build4 [25.7 kB] 25320s Get:261 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap-common all 2.6.7+dfsg-1~exp1ubuntu6 [31.3 kB] 25320s Get:262 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules armhf 2.1.28+dfsg1-4ubuntu4 [61.4 kB] 25320s Get:263 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-lib2to3 all 3.12.2-3ubuntu2 [79.3 kB] 25320s Get:264 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-markupsafe armhf 2.1.5-1build1 [12.1 kB] 25320s Get:265 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-openssl all 24.0.0-4 [47.9 kB] 25320s Get:266 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pyrsistent armhf 0.20.0-1build1 [53.0 kB] 25321s Get:267 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-typing-extensions all 4.10.0-1 [60.7 kB] 25321s Get:268 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kpartx armhf 0.9.4-5ubuntu5 [31.4 kB] 25326s Preconfiguring packages ... 25327s Fetched 106 MB in 12s (8728 kB/s) 25328s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 25328s Preparing to unpack .../bsdutils_1%3a2.39.3-9ubuntu2_armhf.deb ... 25328s Unpacking bsdutils (1:2.39.3-9ubuntu2) over (1:2.39.3-6ubuntu2) ... 25328s Setting up bsdutils (1:2.39.3-9ubuntu2) ... 25328s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 25328s Preparing to unpack .../gcc-14-base_14-20240315-1ubuntu1_armhf.deb ... 25328s Unpacking gcc-14-base:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 25328s Setting up gcc-14-base:armhf (14-20240315-1ubuntu1) ... 25329s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 25329s Preparing to unpack .../libgcc-s1_14-20240315-1ubuntu1_armhf.deb ... 25329s Unpacking libgcc-s1:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 25329s Setting up libgcc-s1:armhf (14-20240315-1ubuntu1) ... 25329s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 25329s Preparing to unpack .../libstdc++6_14-20240315-1ubuntu1_armhf.deb ... 25329s Unpacking libstdc++6:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 25329s Setting up libstdc++6:armhf (14-20240315-1ubuntu1) ... 25330s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 25330s Preparing to unpack .../libc6_2.39-0ubuntu6_armhf.deb ... 25330s Unpacking libc6:armhf (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 25331s Setting up libc6:armhf (2.39-0ubuntu6) ... 25334s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 25334s Preparing to unpack .../openssl_3.0.13-0ubuntu2_armhf.deb ... 25334s Unpacking openssl (3.0.13-0ubuntu2) over (3.0.10-1ubuntu4) ... 25334s Preparing to unpack .../zlib1g_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 25334s Unpacking zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) over (1:1.3.dfsg-3ubuntu1) ... 25335s Setting up zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) ... 25335s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 25335s Preparing to unpack .../0-librtmp1_2.4+20151223.gitfa8646d.1-2build6_armhf.deb ... 25335s Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) over (2.4+20151223.gitfa8646d.1-2build4) ... 25335s Preparing to unpack .../1-python3.12_3.12.2-4build3_armhf.deb ... 25336s Unpacking python3.12 (3.12.2-4build3) over (3.12.2-1) ... 25336s Preparing to unpack .../2-libexpat1_2.6.1-2_armhf.deb ... 25336s Unpacking libexpat1:armhf (2.6.1-2) over (2.6.0-1) ... 25336s Preparing to unpack .../3-python3.12-minimal_3.12.2-4build3_armhf.deb ... 25336s Unpacking python3.12-minimal (3.12.2-4build3) over (3.12.2-1) ... 25337s Preparing to unpack .../4-libpython3.12-stdlib_3.12.2-4build3_armhf.deb ... 25337s Unpacking libpython3.12-stdlib:armhf (3.12.2-4build3) over (3.12.2-1) ... 25339s Preparing to unpack .../5-libpython3.12-minimal_3.12.2-4build3_armhf.deb ... 25339s Unpacking libpython3.12-minimal:armhf (3.12.2-4build3) over (3.12.2-1) ... 25341s Preparing to unpack .../6-parted_3.6-3.1build2_armhf.deb ... 25341s Unpacking parted (3.6-3.1build2) over (3.6-3) ... 25341s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 25341s Removing libparted2:armhf (3.6-3) ... 25342s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25342s Preparing to unpack .../libblkid1_2.39.3-9ubuntu2_armhf.deb ... 25342s Unpacking libblkid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25342s Setting up libblkid1:armhf (2.39.3-9ubuntu2) ... 25342s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25342s Preparing to unpack .../libselinux1_3.5-2build3_armhf.deb ... 25342s Unpacking libselinux1:armhf (3.5-2build3) over (3.5-2build1) ... 25342s Setting up libselinux1:armhf (3.5-2build3) ... 25342s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25342s Preparing to unpack .../systemd-dev_255.4-1ubuntu5_all.deb ... 25342s Unpacking systemd-dev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25343s Preparing to unpack .../systemd-timesyncd_255.4-1ubuntu5_armhf.deb ... 25343s Unpacking systemd-timesyncd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25343s Preparing to unpack .../dbus-session-bus-common_1.14.10-4ubuntu2_all.deb ... 25343s Unpacking dbus-session-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 25343s Preparing to unpack .../libaudit-common_1%3a3.1.2-2.1_all.deb ... 25343s Unpacking libaudit-common (1:3.1.2-2.1) over (1:3.1.2-2) ... 25343s Setting up libaudit-common (1:3.1.2-2.1) ... 25343s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25343s Preparing to unpack .../libcap-ng0_0.8.4-2build1_armhf.deb ... 25343s Unpacking libcap-ng0:armhf (0.8.4-2build1) over (0.8.4-2) ... 25343s Setting up libcap-ng0:armhf (0.8.4-2build1) ... 25343s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25343s Preparing to unpack .../libaudit1_1%3a3.1.2-2.1_armhf.deb ... 25343s Unpacking libaudit1:armhf (1:3.1.2-2.1) over (1:3.1.2-2) ... 25344s Setting up libaudit1:armhf (1:3.1.2-2.1) ... 25344s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25344s Preparing to unpack .../libpam0g_1.5.3-5ubuntu3_armhf.deb ... 25344s Unpacking libpam0g:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 25344s Setting up libpam0g:armhf (1.5.3-5ubuntu3) ... 25345s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25345s Preparing to unpack .../liblzma5_5.6.0-0.2_armhf.deb ... 25345s Unpacking liblzma5:armhf (5.6.0-0.2) over (5.4.5-0.3) ... 25345s Setting up liblzma5:armhf (5.6.0-0.2) ... 25345s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25345s Preparing to unpack .../libldap2_2.6.7+dfsg-1~exp1ubuntu6_armhf.deb ... 25345s Unpacking libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 25346s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 25346s Removing udisks2 (2.10.1-1ubuntu2) ... 25347s dpkg: libglib2.0-0:armhf: dependency problems, but removing anyway as you requested: 25347s shared-mime-info depends on libglib2.0-0 (>= 2.75.3). 25347s python3-gi depends on libglib2.0-0 (>= 2.77.0). 25347s python3-dbus depends on libglib2.0-0 (>= 2.16.0). 25347s netplan.io depends on libglib2.0-0 (>= 2.70.0). 25347s netplan-generator depends on libglib2.0-0 (>= 2.70.0). 25347s libxmlb2:armhf depends on libglib2.0-0 (>= 2.54.0). 25347s libvolume-key1:armhf depends on libglib2.0-0 (>= 2.18.0). 25347s libudisks2-0:armhf depends on libglib2.0-0 (>= 2.75.3). 25347s libqrtr-glib0:armhf depends on libglib2.0-0 (>= 2.56). 25347s libqmi-proxy depends on libglib2.0-0 (>= 2.30.0). 25347s libqmi-glib5:armhf depends on libglib2.0-0 (>= 2.54.0). 25347s libpolkit-gobject-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 25347s libpolkit-agent-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 25347s libnetplan0:armhf depends on libglib2.0-0 (>= 2.75.3). 25347s libmm-glib0:armhf depends on libglib2.0-0 (>= 2.62.0). 25347s libmbim-proxy depends on libglib2.0-0 (>= 2.56). 25347s libmbim-glib4:armhf depends on libglib2.0-0 (>= 2.56). 25347s libjson-glib-1.0-0:armhf depends on libglib2.0-0 (>= 2.75.3). 25347s libjcat1:armhf depends on libglib2.0-0 (>= 2.75.3). 25347s libgusb2:armhf depends on libglib2.0-0 (>= 2.75.3). 25347s libgudev-1.0-0:armhf depends on libglib2.0-0 (>= 2.38.0). 25347s libgirepository-1.0-1:armhf depends on libglib2.0-0 (>= 2.79.0). 25347s libfwupd2:armhf depends on libglib2.0-0 (>= 2.79.0). 25347s libblockdev3:armhf depends on libglib2.0-0 (>= 2.42.2). 25347s libblockdev-utils3:armhf depends on libglib2.0-0 (>= 2.75.3). 25347s libblockdev-swap3:armhf depends on libglib2.0-0 (>= 2.42.2). 25347s libblockdev-part3:armhf depends on libglib2.0-0 (>= 2.42.2). 25347s libblockdev-nvme3:armhf depends on libglib2.0-0 (>= 2.42.2). 25347s libblockdev-mdraid3:armhf depends on libglib2.0-0 (>= 2.42.2). 25347s libblockdev-loop3:armhf depends on libglib2.0-0 (>= 2.42.2). 25347s libblockdev-fs3:armhf depends on libglib2.0-0 (>= 2.42.2). 25347s libblockdev-crypto3:armhf depends on libglib2.0-0 (>= 2.42.2). 25347s gir1.2-glib-2.0:armhf depends on libglib2.0-0 (= 2.79.2-1~ubuntu1). 25347s fwupd depends on libglib2.0-0 (>= 2.79.0). 25347s bolt depends on libglib2.0-0 (>= 2.56.0). 25347s 25347s Removing libglib2.0-0:armhf (2.79.2-1~ubuntu1) ... 25347s Selecting previously unselected package libglib2.0-0t64:armhf. 25348s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58560 files and directories currently installed.) 25348s Preparing to unpack .../libglib2.0-0t64_2.79.3-3ubuntu5_armhf.deb ... 25348s libglib2.0-0t64.preinst: Removing /var/lib/dpkg/info/libglib2.0-0:armhf.postrm to avoid loss of /usr/share/glib-2.0/schemas/gschemas.compiled... 25348s removed '/var/lib/dpkg/info/libglib2.0-0:armhf.postrm' 25348s Unpacking libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 25348s Preparing to unpack .../libvolume-key1_0.3.12-7build1_armhf.deb ... 25348s Unpacking libvolume-key1:armhf (0.3.12-7build1) over (0.3.12-5build2) ... 25348s dpkg: libgpgme11:armhf: dependency problems, but removing anyway as you requested: 25348s libjcat1:armhf depends on libgpgme11 (>= 1.2.0). 25348s 25349s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58585 files and directories currently installed.) 25349s Removing libgpgme11:armhf (1.18.0-4ubuntu1) ... 25349s Selecting previously unselected package libgpgme11t64:armhf. 25349s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58579 files and directories currently installed.) 25349s Preparing to unpack .../libgpgme11t64_1.18.0-4.1ubuntu3_armhf.deb ... 25349s Unpacking libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 25349s Preparing to unpack .../libjcat1_0.2.0-2build2_armhf.deb ... 25349s Unpacking libjcat1:armhf (0.2.0-2build2) over (0.2.0-2) ... 25349s dpkg: libarchive13:armhf: dependency problems, but removing anyway as you requested: 25349s fwupd depends on libarchive13 (>= 3.2.1). 25349s 25349s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58586 files and directories currently installed.) 25349s Removing libarchive13:armhf (3.7.2-1ubuntu2) ... 25349s Selecting previously unselected package libarchive13t64:armhf. 25350s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58580 files and directories currently installed.) 25350s Preparing to unpack .../00-libarchive13t64_3.7.2-1.1ubuntu1_armhf.deb ... 25350s Unpacking libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 25350s Preparing to unpack .../01-fwupd_1.9.15-1_armhf.deb ... 25350s Unpacking fwupd (1.9.15-1) over (1.9.14-1) ... 25351s Preparing to unpack .../02-ubuntu-pro-client-l10n_31.2_armhf.deb ... 25351s Unpacking ubuntu-pro-client-l10n (31.2) over (31.1) ... 25351s Preparing to unpack .../03-ubuntu-pro-client_31.2_armhf.deb ... 25353s Unpacking ubuntu-pro-client (31.2) over (31.1) ... 25353s Preparing to unpack .../04-python3.11_3.11.8-1build4_armhf.deb ... 25354s Unpacking python3.11 (3.11.8-1build4) over (3.11.8-1) ... 25354s Preparing to unpack .../05-python3.11-minimal_3.11.8-1build4_armhf.deb ... 25354s Unpacking python3.11-minimal (3.11.8-1build4) over (3.11.8-1) ... 25354s Preparing to unpack .../06-libpython3.11-minimal_3.11.8-1build4_armhf.deb ... 25355s Unpacking libpython3.11-minimal:armhf (3.11.8-1build4) over (3.11.8-1) ... 25355s Preparing to unpack .../07-libsasl2-modules-db_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 25355s Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 25355s Preparing to unpack .../08-libtext-iconv-perl_1.7-8build2_armhf.deb ... 25355s Unpacking libtext-iconv-perl:armhf (1.7-8build2) over (1.7-8build1) ... 25355s Preparing to unpack .../09-libtext-charwidth-perl_0.04-11build2_armhf.deb ... 25355s Unpacking libtext-charwidth-perl:armhf (0.04-11build2) over (0.04-11build1) ... 25356s Preparing to unpack .../10-perl-base_5.38.2-3.2_armhf.deb ... 25356s Unpacking perl-base (5.38.2-3.2) over (5.38.2-3) ... 25357s Setting up perl-base (5.38.2-3.2) ... 25357s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 25357s Preparing to unpack .../liblocale-gettext-perl_1.07-6ubuntu3_armhf.deb ... 25357s Unpacking liblocale-gettext-perl (1.07-6ubuntu3) over (1.07-6build1) ... 25357s Preparing to unpack .../perl-modules-5.38_5.38.2-3.2_all.deb ... 25357s Unpacking perl-modules-5.38 (5.38.2-3.2) over (5.38.2-3) ... 25360s Preparing to unpack .../python3-gdbm_3.12.2-3ubuntu2_armhf.deb ... 25360s Unpacking python3-gdbm:armhf (3.12.2-3ubuntu2) over (3.11.5-1) ... 25361s Preparing to unpack .../man-db_2.12.0-3build4_armhf.deb ... 25361s Unpacking man-db (2.12.0-3build4) over (2.12.0-3) ... 25361s dpkg: libgdbm-compat4:armhf: dependency problems, but removing anyway as you requested: 25361s libperl5.38:armhf depends on libgdbm-compat4 (>= 1.18-3). 25361s 25362s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 25362s Removing libgdbm-compat4:armhf (1.23-5) ... 25362s dpkg: libgdbm6:armhf: dependency problems, but removing anyway as you requested: 25362s libperl5.38:armhf depends on libgdbm6 (>= 1.21). 25362s 25362s Removing libgdbm6:armhf (1.23-5) ... 25362s Selecting previously unselected package libgdbm6t64:armhf. 25362s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58577 files and directories currently installed.) 25362s Preparing to unpack .../libgdbm6t64_1.23-5.1_armhf.deb ... 25362s Unpacking libgdbm6t64:armhf (1.23-5.1) ... 25362s Selecting previously unselected package libgdbm-compat4t64:armhf. 25362s Preparing to unpack .../libgdbm-compat4t64_1.23-5.1_armhf.deb ... 25362s Unpacking libgdbm-compat4t64:armhf (1.23-5.1) ... 25362s dpkg: libperl5.38:armhf: dependency problems, but removing anyway as you requested: 25362s perl depends on libperl5.38 (= 5.38.2-3). 25362s 25363s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 25363s Removing libperl5.38:armhf (5.38.2-3) ... 25363s Selecting previously unselected package libperl5.38t64:armhf. 25363s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58070 files and directories currently installed.) 25363s Preparing to unpack .../libperl5.38t64_5.38.2-3.2_armhf.deb ... 25363s Unpacking libperl5.38t64:armhf (5.38.2-3.2) ... 25364s Preparing to unpack .../perl_5.38.2-3.2_armhf.deb ... 25364s Unpacking perl (5.38.2-3.2) over (5.38.2-3) ... 25364s dpkg: libdb5.3:armhf: dependency problems, but removing anyway as you requested: 25364s libpython3.11-stdlib:armhf depends on libdb5.3. 25364s libpam-modules:armhf depends on libdb5.3. 25364s iproute2 depends on libdb5.3. 25364s apt-utils depends on libdb5.3. 25364s 25365s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 25365s Removing libdb5.3:armhf (5.3.28+dfsg2-4) ... 25365s Selecting previously unselected package libdb5.3t64:armhf. 25365s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58583 files and directories currently installed.) 25365s Preparing to unpack .../libdb5.3t64_5.3.28+dfsg2-5build1_armhf.deb ... 25365s Unpacking libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 25365s Preparing to unpack .../libpython3.11-stdlib_3.11.8-1build4_armhf.deb ... 25365s Unpacking libpython3.11-stdlib:armhf (3.11.8-1build4) over (3.11.8-1) ... 25366s Preparing to unpack .../keyboxd_2.4.4-2ubuntu15_armhf.deb ... 25366s Unpacking keyboxd (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25367s dpkg: libnpth0:armhf: dependency problems, but removing anyway as you requested: 25367s gpgv depends on libnpth0 (>= 0.90). 25367s gpgsm depends on libnpth0 (>= 0.90). 25367s gpg-agent depends on libnpth0 (>= 0.90). 25367s gpg depends on libnpth0 (>= 0.90). 25367s dirmngr depends on libnpth0 (>= 0.90). 25367s 25367s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 25367s Removing libnpth0:armhf (1.6-3build2) ... 25367s Selecting previously unselected package libnpth0t64:armhf. 25367s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58582 files and directories currently installed.) 25367s Preparing to unpack .../libnpth0t64_1.6-3.1_armhf.deb ... 25367s Unpacking libnpth0t64:armhf (1.6-3.1) ... 25367s Setting up libnpth0t64:armhf (1.6-3.1) ... 25368s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 25368s Preparing to unpack .../gpgv_2.4.4-2ubuntu15_armhf.deb ... 25368s Unpacking gpgv (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25368s Setting up gpgv (2.4.4-2ubuntu15) ... 25368s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 25368s Preparing to unpack .../gpg_2.4.4-2ubuntu15_armhf.deb ... 25368s Unpacking gpg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25368s Preparing to unpack .../gpg-wks-client_2.4.4-2ubuntu15_armhf.deb ... 25368s Unpacking gpg-wks-client (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25368s Preparing to unpack .../gnupg-utils_2.4.4-2ubuntu15_armhf.deb ... 25368s Unpacking gnupg-utils (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25369s Preparing to unpack .../gpg-agent_2.4.4-2ubuntu15_armhf.deb ... 25369s Unpacking gpg-agent (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25369s Preparing to unpack .../gpgsm_2.4.4-2ubuntu15_armhf.deb ... 25369s Unpacking gpgsm (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25369s dpkg: libreadline8:armhf: dependency problems, but removing anyway as you requested: 25369s gpgconf depends on libreadline8 (>= 6.0). 25369s gawk depends on libreadline8 (>= 6.0). 25369s fdisk depends on libreadline8 (>= 6.0). 25369s 25369s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 25369s Removing libreadline8:armhf (8.2-3) ... 25369s Selecting previously unselected package libreadline8t64:armhf. 25369s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58576 files and directories currently installed.) 25369s Preparing to unpack .../libreadline8t64_8.2-3.1_armhf.deb ... 25369s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8 to /lib/arm-linux-gnueabihf/libhistory.so.8.usr-is-merged by libreadline8t64' 25370s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8.2 to /lib/arm-linux-gnueabihf/libhistory.so.8.2.usr-is-merged by libreadline8t64' 25370s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8 to /lib/arm-linux-gnueabihf/libreadline.so.8.usr-is-merged by libreadline8t64' 25370s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8.2 to /lib/arm-linux-gnueabihf/libreadline.so.8.2.usr-is-merged by libreadline8t64' 25370s Unpacking libreadline8t64:armhf (8.2-3.1) ... 25370s Setting up libreadline8t64:armhf (8.2-3.1) ... 25370s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 25370s Preparing to unpack .../0-gawk_1%3a5.2.1-2build2_armhf.deb ... 25370s Unpacking gawk (1:5.2.1-2build2) over (1:5.2.1-2) ... 25371s Preparing to unpack .../1-fdisk_2.39.3-9ubuntu2_armhf.deb ... 25371s Unpacking fdisk (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25371s Preparing to unpack .../2-gpgconf_2.4.4-2ubuntu15_armhf.deb ... 25371s Unpacking gpgconf (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25371s Preparing to unpack .../3-dirmngr_2.4.4-2ubuntu15_armhf.deb ... 25371s Unpacking dirmngr (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25372s Preparing to unpack .../4-gnupg_2.4.4-2ubuntu15_all.deb ... 25372s Unpacking gnupg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25372s Preparing to unpack .../5-python3-apt_2.7.6build1_armhf.deb ... 25373s Unpacking python3-apt (2.7.6build1) over (2.7.6) ... 25373s Preparing to unpack .../6-apt-utils_2.7.13ubuntu1_armhf.deb ... 25373s Unpacking apt-utils (2.7.13ubuntu1) over (2.7.12) ... 25374s dpkg: libapt-pkg6.0:armhf: dependency problems, but removing anyway as you requested: 25374s apt depends on libapt-pkg6.0 (>= 2.7.12). 25374s 25374s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58594 files and directories currently installed.) 25374s Removing libapt-pkg6.0:armhf (2.7.12) ... 25374s dpkg: libnettle8:armhf: dependency problems, but removing anyway as you requested: 25374s libhogweed6:armhf depends on libnettle8. 25374s libgnutls30:armhf depends on libnettle8 (>= 3.9~). 25374s libcurl3-gnutls:armhf depends on libnettle8. 25374s 25374s Removing libnettle8:armhf (3.9.1-2) ... 25375s Selecting previously unselected package libapt-pkg6.0t64:armhf. 25375s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58538 files and directories currently installed.) 25375s Preparing to unpack .../libapt-pkg6.0t64_2.7.13ubuntu1_armhf.deb ... 25375s Unpacking libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 25375s Setting up libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 25375s Selecting previously unselected package libnettle8t64:armhf. 25376s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 25376s Preparing to unpack .../libnettle8t64_3.9.1-2.2_armhf.deb ... 25376s Unpacking libnettle8t64:armhf (3.9.1-2.2) ... 25376s Setting up libnettle8t64:armhf (3.9.1-2.2) ... 25376s dpkg: libhogweed6:armhf: dependency problems, but removing anyway as you requested: 25376s libgnutls30:armhf depends on libhogweed6 (>= 3.6). 25376s 25376s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 25376s Removing libhogweed6:armhf (3.9.1-2) ... 25376s Selecting previously unselected package libhogweed6t64:armhf. 25376s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58591 files and directories currently installed.) 25376s Preparing to unpack .../libhogweed6t64_3.9.1-2.2_armhf.deb ... 25376s Unpacking libhogweed6t64:armhf (3.9.1-2.2) ... 25377s Setting up libhogweed6t64:armhf (3.9.1-2.2) ... 25377s dpkg: libgnutls30:armhf: dependency problems, but removing anyway as you requested: 25377s libcurl3-gnutls:armhf depends on libgnutls30 (>= 3.8.2). 25377s apt depends on libgnutls30 (>= 3.8.1). 25377s 25377s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58597 files and directories currently installed.) 25377s Removing libgnutls30:armhf (3.8.3-1ubuntu1) ... 25377s Selecting previously unselected package libgnutls30t64:armhf. 25377s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 25377s Preparing to unpack .../libgnutls30t64_3.8.3-1.1ubuntu2_armhf.deb ... 25377s Unpacking libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 25378s Setting up libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 25378s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 25378s Preparing to unpack .../apt_2.7.13ubuntu1_armhf.deb ... 25378s Unpacking apt (2.7.13ubuntu1) over (2.7.12) ... 25379s Setting up apt (2.7.13ubuntu1) ... 25382s dpkg: libcurl3-gnutls:armhf: dependency problems, but removing anyway as you requested: 25382s libfwupd2:armhf depends on libcurl3-gnutls (>= 7.63.0). 25382s 25382s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 25382s Removing libcurl3-gnutls:armhf (8.5.0-2ubuntu2) ... 25382s Selecting previously unselected package libcurl3t64-gnutls:armhf. 25382s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58609 files and directories currently installed.) 25382s Preparing to unpack .../libcurl3t64-gnutls_8.5.0-2ubuntu7_armhf.deb ... 25382s Unpacking libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 25382s Preparing to unpack .../libfwupd2_1.9.15-1_armhf.deb ... 25382s Unpacking libfwupd2:armhf (1.9.15-1) over (1.9.14-1) ... 25382s dpkg: libpsl5:armhf: dependency problems, but removing anyway as you requested: 25382s wget depends on libpsl5 (>= 0.16.0). 25382s libcurl4:armhf depends on libpsl5 (>= 0.16.0). 25382s 25382s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 25382s Removing libpsl5:armhf (0.21.2-1build1) ... 25383s Selecting previously unselected package libpsl5t64:armhf. 25383s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58611 files and directories currently installed.) 25383s Preparing to unpack .../libpsl5t64_0.21.2-1.1_armhf.deb ... 25383s Unpacking libpsl5t64:armhf (0.21.2-1.1) ... 25383s Preparing to unpack .../wget_1.21.4-1ubuntu2_armhf.deb ... 25383s Unpacking wget (1.21.4-1ubuntu2) over (1.21.4-1ubuntu1) ... 25383s Preparing to unpack .../tnftp_20230507-2build1_armhf.deb ... 25383s Unpacking tnftp (20230507-2build1) over (20230507-2) ... 25383s dpkg: libpcap0.8:armhf: dependency problems, but removing anyway as you requested: 25383s tcpdump depends on libpcap0.8 (>= 1.9.1). 25383s 25383s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58617 files and directories currently installed.) 25383s Removing libpcap0.8:armhf (1.10.4-4ubuntu3) ... 25384s Selecting previously unselected package libpcap0.8t64:armhf. 25384s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58606 files and directories currently installed.) 25384s Preparing to unpack .../00-libpcap0.8t64_1.10.4-4.1ubuntu1_armhf.deb ... 25384s Unpacking libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 25384s Preparing to unpack .../01-tcpdump_4.99.4-3ubuntu2_armhf.deb ... 25384s Unpacking tcpdump (4.99.4-3ubuntu2) over (4.99.4-3ubuntu1) ... 25384s Preparing to unpack .../02-libsystemd-shared_255.4-1ubuntu5_armhf.deb ... 25384s Unpacking libsystemd-shared:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25385s Preparing to unpack .../03-systemd-resolved_255.4-1ubuntu5_armhf.deb ... 25385s Unpacking systemd-resolved (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25385s Preparing to unpack .../04-sudo_1.9.15p5-3ubuntu3_armhf.deb ... 25385s Unpacking sudo (1.9.15p5-3ubuntu3) over (1.9.15p5-3ubuntu1) ... 25386s Preparing to unpack .../05-rsync_3.2.7-1build1_armhf.deb ... 25386s Unpacking rsync (3.2.7-1build1) over (3.2.7-1) ... 25386s Preparing to unpack .../06-python3-cryptography_41.0.7-4build2_armhf.deb ... 25387s Unpacking python3-cryptography (41.0.7-4build2) over (41.0.7-3) ... 25387s Preparing to unpack .../07-openssh-sftp-server_1%3a9.6p1-3ubuntu11_armhf.deb ... 25387s Unpacking openssh-sftp-server (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 25387s Preparing to unpack .../08-openssh-client_1%3a9.6p1-3ubuntu11_armhf.deb ... 25387s Unpacking openssh-client (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 25388s Preparing to unpack .../09-openssh-server_1%3a9.6p1-3ubuntu11_armhf.deb ... 25388s Unpacking openssh-server (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 25389s Selecting previously unselected package linux-headers-6.8.0-20. 25389s Preparing to unpack .../10-linux-headers-6.8.0-20_6.8.0-20.20_all.deb ... 25389s Unpacking linux-headers-6.8.0-20 (6.8.0-20.20) ... 25416s Selecting previously unselected package linux-headers-6.8.0-20-generic. 25416s Preparing to unpack .../11-linux-headers-6.8.0-20-generic_6.8.0-20.20_armhf.deb ... 25416s Unpacking linux-headers-6.8.0-20-generic (6.8.0-20.20) ... 25426s Preparing to unpack .../12-linux-headers-generic_6.8.0-20.20+1_armhf.deb ... 25426s Unpacking linux-headers-generic (6.8.0-20.20+1) over (6.8.0-11.11+1) ... 25426s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 89769 files and directories currently installed.) 25426s Removing linux-headers-6.8.0-11-generic (6.8.0-11.11) ... 25429s dpkg: libssl3:armhf: dependency problems, but removing anyway as you requested: 25429s systemd depends on libssl3 (>= 3.0.0). 25429s libssh-4:armhf depends on libssl3 (>= 3.0.0). 25429s libsasl2-modules:armhf depends on libssl3 (>= 3.0.0). 25429s libsasl2-2:armhf depends on libssl3 (>= 3.0.0). 25429s libnvme1 depends on libssl3 (>= 3.0.0). 25429s libkrb5-3:armhf depends on libssl3 (>= 3.0.0). 25429s libkmod2:armhf depends on libssl3 (>= 3.0.0). 25429s libfido2-1:armhf depends on libssl3 (>= 3.0.0). 25429s libcurl4:armhf depends on libssl3 (>= 3.0.0). 25429s libcryptsetup12:armhf depends on libssl3 (>= 3.0.0). 25429s kmod depends on libssl3 (>= 3.0.0). 25429s dhcpcd-base depends on libssl3 (>= 3.0.0). 25429s bind9-libs:armhf depends on libssl3 (>= 3.0.0). 25429s 25429s Removing libssl3:armhf (3.0.10-1ubuntu4) ... 25429s Selecting previously unselected package libssl3t64:armhf. 25429s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78619 files and directories currently installed.) 25429s Preparing to unpack .../libssl3t64_3.0.13-0ubuntu2_armhf.deb ... 25429s Unpacking libssl3t64:armhf (3.0.13-0ubuntu2) ... 25430s Setting up libssl3t64:armhf (3.0.13-0ubuntu2) ... 25430s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 25430s Preparing to unpack .../libudev1_255.4-1ubuntu5_armhf.deb ... 25430s Unpacking libudev1:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25430s Setting up libudev1:armhf (255.4-1ubuntu5) ... 25430s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 25430s Preparing to unpack .../systemd_255.4-1ubuntu5_armhf.deb ... 25431s Unpacking systemd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25433s Preparing to unpack .../udev_255.4-1ubuntu5_armhf.deb ... 25433s Unpacking udev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25433s Preparing to unpack .../libsystemd0_255.4-1ubuntu5_armhf.deb ... 25433s Unpacking libsystemd0:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25433s Setting up libsystemd0:armhf (255.4-1ubuntu5) ... 25433s Setting up libsystemd-shared:armhf (255.4-1ubuntu5) ... 25434s Setting up systemd-dev (255.4-1ubuntu5) ... 25434s Setting up systemd (255.4-1ubuntu5) ... 25436s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 25436s Preparing to unpack .../systemd-sysv_255.4-1ubuntu5_armhf.deb ... 25436s Unpacking systemd-sysv (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25436s Preparing to unpack .../libnss-systemd_255.4-1ubuntu5_armhf.deb ... 25436s Unpacking libnss-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25436s Preparing to unpack .../libpam-systemd_255.4-1ubuntu5_armhf.deb ... 25436s Unpacking libpam-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 25437s Preparing to unpack .../libpam-modules-bin_1.5.3-5ubuntu3_armhf.deb ... 25437s Unpacking libpam-modules-bin (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 25437s Setting up libpam-modules-bin (1.5.3-5ubuntu3) ... 25438s pam_namespace.service is a disabled or a static unit not running, not starting it. 25438s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 25438s Preparing to unpack .../libpam-modules_1.5.3-5ubuntu3_armhf.deb ... 25438s Unpacking libpam-modules:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 25439s Setting up libpam-modules:armhf (1.5.3-5ubuntu3) ... 25439s Installing new version of config file /etc/security/namespace.init ... 25439s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 25439s Preparing to unpack .../libpam-runtime_1.5.3-5ubuntu3_all.deb ... 25439s Unpacking libpam-runtime (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 25439s Setting up libpam-runtime (1.5.3-5ubuntu3) ... 25440s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 25440s Preparing to unpack .../0-dbus-user-session_1.14.10-4ubuntu2_armhf.deb ... 25440s Unpacking dbus-user-session (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 25440s Preparing to unpack .../1-libapparmor1_4.0.0-beta3-0ubuntu2_armhf.deb ... 25440s Unpacking libapparmor1:armhf (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 25440s Preparing to unpack .../2-dbus-bin_1.14.10-4ubuntu2_armhf.deb ... 25440s Unpacking dbus-bin (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 25441s Preparing to unpack .../3-dbus-system-bus-common_1.14.10-4ubuntu2_all.deb ... 25441s Unpacking dbus-system-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 25441s Preparing to unpack .../4-dbus_1.14.10-4ubuntu2_armhf.deb ... 25441s Unpacking dbus (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 25441s Preparing to unpack .../5-dbus-daemon_1.14.10-4ubuntu2_armhf.deb ... 25441s Unpacking dbus-daemon (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 25441s Preparing to unpack .../6-libdbus-1-3_1.14.10-4ubuntu2_armhf.deb ... 25441s Unpacking libdbus-1-3:armhf (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 25441s Preparing to unpack .../7-kmod_31+20240202-2ubuntu4_armhf.deb ... 25441s Unpacking kmod (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 25441s dpkg: warning: unable to delete old directory '/lib/modprobe.d': Directory not empty 25441s Preparing to unpack .../8-libkmod2_31+20240202-2ubuntu4_armhf.deb ... 25441s Unpacking libkmod2:armhf (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 25442s Preparing to unpack .../9-libmount1_2.39.3-9ubuntu2_armhf.deb ... 25442s Unpacking libmount1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25442s Setting up libmount1:armhf (2.39.3-9ubuntu2) ... 25442s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 25442s Preparing to unpack .../libseccomp2_2.5.5-1ubuntu2_armhf.deb ... 25442s Unpacking libseccomp2:armhf (2.5.5-1ubuntu2) over (2.5.5-1ubuntu1) ... 25442s Setting up libseccomp2:armhf (2.5.5-1ubuntu2) ... 25443s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 25443s Preparing to unpack .../libuuid1_2.39.3-9ubuntu2_armhf.deb ... 25443s Unpacking libuuid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25443s Setting up libuuid1:armhf (2.39.3-9ubuntu2) ... 25443s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 25443s Preparing to unpack .../0-libcryptsetup12_2%3a2.7.0-1ubuntu2_armhf.deb ... 25443s Unpacking libcryptsetup12:armhf (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 25443s Preparing to unpack .../1-libfdisk1_2.39.3-9ubuntu2_armhf.deb ... 25443s Unpacking libfdisk1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25443s Preparing to unpack .../2-mount_2.39.3-9ubuntu2_armhf.deb ... 25443s Unpacking mount (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25443s Preparing to unpack .../3-libdevmapper1.02.1_2%3a1.02.185-3ubuntu2_armhf.deb ... 25443s Unpacking libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 25443s Selecting previously unselected package libparted2t64:armhf. 25443s Preparing to unpack .../4-libparted2t64_3.6-3.1build2_armhf.deb ... 25443s Unpacking libparted2t64:armhf (3.6-3.1build2) ... 25444s Preparing to unpack .../5-libsqlite3-0_3.45.1-1ubuntu1_armhf.deb ... 25444s Unpacking libsqlite3-0:armhf (3.45.1-1ubuntu1) over (3.45.1-1) ... 25444s Preparing to unpack .../6-pinentry-curses_1.2.1-3ubuntu4_armhf.deb ... 25444s Unpacking pinentry-curses (1.2.1-3ubuntu4) over (1.2.1-3ubuntu1) ... 25444s Preparing to unpack .../7-libsmartcols1_2.39.3-9ubuntu2_armhf.deb ... 25444s Unpacking libsmartcols1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25444s Setting up libsmartcols1:armhf (2.39.3-9ubuntu2) ... 25444s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78636 files and directories currently installed.) 25444s Preparing to unpack .../0-readline-common_8.2-3.1_all.deb ... 25444s Unpacking readline-common (8.2-3.1) over (8.2-3) ... 25445s Preparing to unpack .../1-python3-yaml_6.0.1-2build1_armhf.deb ... 25445s Unpacking python3-yaml (6.0.1-2build1) over (6.0.1-2) ... 25445s Preparing to unpack .../2-python-apt-common_2.7.6build1_all.deb ... 25445s Unpacking python-apt-common (2.7.6build1) over (2.7.6) ... 25445s Preparing to unpack .../3-python3-setuptools_68.1.2-2ubuntu1_all.deb ... 25446s Unpacking python3-setuptools (68.1.2-2ubuntu1) over (68.1.2-2) ... 25446s Preparing to unpack .../4-python3-pkg-resources_68.1.2-2ubuntu1_all.deb ... 25447s Unpacking python3-pkg-resources (68.1.2-2ubuntu1) over (68.1.2-2) ... 25447s Preparing to unpack .../5-dpkg_1.22.6ubuntu4_armhf.deb ... 25447s Unpacking dpkg (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 25448s Setting up dpkg (1.22.6ubuntu4) ... 25449s Setting up libpython3.12-minimal:armhf (3.12.2-4build3) ... 25449s Setting up libexpat1:armhf (2.6.1-2) ... 25449s Setting up python3.12-minimal (3.12.2-4build3) ... 25453s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 25453s Preparing to unpack .../python3-minimal_3.12.2-0ubuntu1_armhf.deb ... 25453s Unpacking python3-minimal (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 25453s Setting up python3-minimal (3.12.2-0ubuntu1) ... 25454s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 25454s Preparing to unpack .../00-python3_3.12.2-0ubuntu1_armhf.deb ... 25454s Unpacking python3 (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 25454s Preparing to unpack .../01-libpython3-stdlib_3.12.2-0ubuntu1_armhf.deb ... 25454s Unpacking libpython3-stdlib:armhf (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 25454s Preparing to unpack .../02-bsdextrautils_2.39.3-9ubuntu2_armhf.deb ... 25454s Unpacking bsdextrautils (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25454s Preparing to unpack .../03-groff-base_1.23.0-3build1_armhf.deb ... 25454s Unpacking groff-base (1.23.0-3build1) over (1.23.0-3) ... 25455s Preparing to unpack .../04-libsasl2-2_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 25455s Unpacking libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 25455s Preparing to unpack .../05-libjson-glib-1.0-common_1.8.0-2build1_all.deb ... 25455s Unpacking libjson-glib-1.0-common (1.8.0-2build1) over (1.8.0-2) ... 25455s Preparing to unpack .../06-libjson-glib-1.0-0_1.8.0-2build1_armhf.deb ... 25455s Unpacking libjson-glib-1.0-0:armhf (1.8.0-2build1) over (1.8.0-2) ... 25455s Preparing to unpack .../07-libxml2_2.9.14+dfsg-1.3ubuntu2_armhf.deb ... 25455s Unpacking libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) over (2.9.14+dfsg-1.3ubuntu1) ... 25455s Preparing to unpack .../08-libgudev-1.0-0_1%3a238-3ubuntu2_armhf.deb ... 25455s Unpacking libgudev-1.0-0:armhf (1:238-3ubuntu2) over (1:238-3) ... 25455s Preparing to unpack .../09-libusb-1.0-0_2%3a1.0.27-1_armhf.deb ... 25455s Unpacking libusb-1.0-0:armhf (2:1.0.27-1) over (2:1.0.26-1) ... 25456s Preparing to unpack .../10-libgusb2_0.4.8-1build1_armhf.deb ... 25456s Unpacking libgusb2:armhf (0.4.8-1build1) over (0.4.8-1) ... 25456s Preparing to unpack .../11-libmbim-proxy_1.31.2-0ubuntu2_armhf.deb ... 25456s Unpacking libmbim-proxy (1.31.2-0ubuntu2) over (1.30.0-1) ... 25456s Preparing to unpack .../12-libmbim-glib4_1.31.2-0ubuntu2_armhf.deb ... 25456s Unpacking libmbim-glib4:armhf (1.31.2-0ubuntu2) over (1.30.0-1) ... 25456s Preparing to unpack .../13-libmm-glib0_1.23.4-0ubuntu1_armhf.deb ... 25456s Unpacking libmm-glib0:armhf (1.23.4-0ubuntu1) over (1.22.0-3) ... 25456s Preparing to unpack .../14-libpolkit-agent-1-0_124-1ubuntu1_armhf.deb ... 25456s Unpacking libpolkit-agent-1-0:armhf (124-1ubuntu1) over (124-1) ... 25456s Preparing to unpack .../15-libpolkit-gobject-1-0_124-1ubuntu1_armhf.deb ... 25456s Unpacking libpolkit-gobject-1-0:armhf (124-1ubuntu1) over (124-1) ... 25456s Preparing to unpack .../16-libqmi-proxy_1.35.2-0ubuntu1_armhf.deb ... 25456s Unpacking libqmi-proxy (1.35.2-0ubuntu1) over (1.34.0-2) ... 25457s Preparing to unpack .../17-libqrtr-glib0_1.2.2-1ubuntu3_armhf.deb ... 25457s Unpacking libqrtr-glib0:armhf (1.2.2-1ubuntu3) over (1.2.2-1ubuntu2) ... 25457s Preparing to unpack .../18-libqmi-glib5_1.35.2-0ubuntu1_armhf.deb ... 25457s Unpacking libqmi-glib5:armhf (1.35.2-0ubuntu1) over (1.34.0-2) ... 25457s Preparing to unpack .../19-libxmlb2_0.3.15-1build1_armhf.deb ... 25457s Unpacking libxmlb2:armhf (0.3.15-1build1) over (0.3.15-1) ... 25457s Preparing to unpack .../20-shared-mime-info_2.4-1build1_armhf.deb ... 25457s Unpacking shared-mime-info (2.4-1build1) over (2.4-1) ... 25457s Preparing to unpack .../21-libbrotli1_1.1.0-2build1_armhf.deb ... 25457s Unpacking libbrotli1:armhf (1.1.0-2build1) over (1.1.0-2) ... 25458s Preparing to unpack .../22-libgssapi-krb5-2_1.20.1-5.1build3_armhf.deb ... 25458s Unpacking libgssapi-krb5-2:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 25458s Preparing to unpack .../23-libkrb5-3_1.20.1-5.1build3_armhf.deb ... 25458s Unpacking libkrb5-3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 25458s Preparing to unpack .../24-libkrb5support0_1.20.1-5.1build3_armhf.deb ... 25458s Unpacking libkrb5support0:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 25458s Preparing to unpack .../25-libk5crypto3_1.20.1-5.1build3_armhf.deb ... 25458s Unpacking libk5crypto3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 25458s Preparing to unpack .../26-libcom-err2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 25458s Unpacking libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 25458s Preparing to unpack .../27-libnghttp2-14_1.59.0-1build1_armhf.deb ... 25458s Unpacking libnghttp2-14:armhf (1.59.0-1build1) over (1.59.0-1) ... 25458s Preparing to unpack .../28-libssh-4_0.10.6-2build1_armhf.deb ... 25458s Unpacking libssh-4:armhf (0.10.6-2build1) over (0.10.6-2) ... 25458s Preparing to unpack .../29-libibverbs1_50.0-2build1_armhf.deb ... 25458s Unpacking libibverbs1:armhf (50.0-2build1) over (50.0-2) ... 25459s Preparing to unpack .../30-libfido2-1_1.14.0-1build1_armhf.deb ... 25459s Unpacking libfido2-1:armhf (1.14.0-1build1) over (1.14.0-1) ... 25459s Preparing to unpack .../31-coreutils_9.4-3ubuntu3_armhf.deb ... 25459s Unpacking coreutils (9.4-3ubuntu3) over (9.4-2ubuntu4) ... 25460s Setting up coreutils (9.4-3ubuntu3) ... 25460s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 25460s Preparing to unpack .../debianutils_5.17_armhf.deb ... 25460s Unpacking debianutils (5.17) over (5.16) ... 25461s Setting up debianutils (5.17) ... 25461s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 25461s Preparing to unpack .../util-linux_2.39.3-9ubuntu2_armhf.deb ... 25461s Unpacking util-linux (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25462s Setting up util-linux (2.39.3-9ubuntu2) ... 25466s fstrim.service is a disabled or a static unit not running, not starting it. 25466s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 25466s Preparing to unpack .../libc-bin_2.39-0ubuntu6_armhf.deb ... 25466s Unpacking libc-bin (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 25466s Setting up libc-bin (2.39-0ubuntu6) ... 25467s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 25467s Removing libatm1:armhf (1:2.5.1-5) ... 25467s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 25467s Preparing to unpack .../curl_8.5.0-2ubuntu7_armhf.deb ... 25467s Unpacking curl (8.5.0-2ubuntu7) over (8.5.0-2ubuntu2) ... 25468s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 25468s Removing libcurl4:armhf (8.5.0-2ubuntu2) ... 25468s Selecting previously unselected package libcurl4t64:armhf. 25468s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78625 files and directories currently installed.) 25468s Preparing to unpack .../libcurl4t64_8.5.0-2ubuntu7_armhf.deb ... 25468s Unpacking libcurl4t64:armhf (8.5.0-2ubuntu7) ... 25468s Preparing to unpack .../libbpf1_1%3a1.3.0-2build1_armhf.deb ... 25468s Unpacking libbpf1:armhf (1:1.3.0-2build1) over (1:1.3.0-2) ... 25468s Preparing to unpack .../iproute2_6.1.0-1ubuntu5_armhf.deb ... 25468s Unpacking iproute2 (6.1.0-1ubuntu5) over (6.1.0-1ubuntu2) ... 25469s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78631 files and directories currently installed.) 25469s Removing libelf1:armhf (0.190-1) ... 25469s Selecting previously unselected package libelf1t64:armhf. 25470s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78626 files and directories currently installed.) 25470s Preparing to unpack .../libelf1t64_0.190-1.1build2_armhf.deb ... 25470s Unpacking libelf1t64:armhf (0.190-1.1build2) ... 25470s Preparing to unpack .../lsof_4.95.0-1build2_armhf.deb ... 25470s Unpacking lsof (4.95.0-1build2) over (4.95.0-1build1) ... 25470s Preparing to unpack .../libnsl2_1.3.0-3build2_armhf.deb ... 25470s Unpacking libnsl2:armhf (1.3.0-3build2) over (1.3.0-3) ... 25470s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78631 files and directories currently installed.) 25470s Removing libtirpc3:armhf (1.3.4+ds-1build1) ... 25470s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78625 files and directories currently installed.) 25470s Preparing to unpack .../0-libtirpc-common_1.3.4+ds-1.1_all.deb ... 25470s Unpacking libtirpc-common (1.3.4+ds-1.1) over (1.3.4+ds-1build1) ... 25470s Selecting previously unselected package libtirpc3t64:armhf. 25471s Preparing to unpack .../1-libtirpc3t64_1.3.4+ds-1.1_armhf.deb ... 25471s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3 to /lib/arm-linux-gnueabihf/libtirpc.so.3.usr-is-merged by libtirpc3t64' 25471s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0 to /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' 25471s Unpacking libtirpc3t64:armhf (1.3.4+ds-1.1) ... 25471s Preparing to unpack .../2-libblockdev-utils3_3.1.0-1build1_armhf.deb ... 25471s Unpacking libblockdev-utils3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25471s Preparing to unpack .../3-libblockdev-fs3_3.1.0-1build1_armhf.deb ... 25471s Unpacking libblockdev-fs3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25471s Preparing to unpack .../4-logsave_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 25471s Unpacking logsave (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 25471s Preparing to unpack .../5-ubuntu-minimal_1.536build1_armhf.deb ... 25471s Unpacking ubuntu-minimal (1.536build1) over (1.536) ... 25471s Preparing to unpack .../6-initramfs-tools_0.142ubuntu22_all.deb ... 25471s Unpacking initramfs-tools (0.142ubuntu22) over (0.142ubuntu20) ... 25472s Preparing to unpack .../7-initramfs-tools-core_0.142ubuntu22_all.deb ... 25472s Unpacking initramfs-tools-core (0.142ubuntu22) over (0.142ubuntu20) ... 25472s Preparing to unpack .../8-e2fsprogs-l10n_1.47.0-2.4~exp1ubuntu2_all.deb ... 25472s Unpacking e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 25472s dpkg: libext2fs2:armhf: dependency problems, but removing anyway as you requested: 25472s e2fsprogs depends on libext2fs2 (= 1.47.0-2ubuntu1). 25472s btrfs-progs depends on libext2fs2 (>= 1.42). 25472s 25472s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78637 files and directories currently installed.) 25472s Removing libext2fs2:armhf (1.47.0-2ubuntu1) ... 25472s Selecting previously unselected package libext2fs2t64:armhf. 25473s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 25473s Preparing to unpack .../libext2fs2t64_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 25473s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2 to /lib/arm-linux-gnueabihf/libe2p.so.2.usr-is-merged by libext2fs2t64' 25473s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2.3 to /lib/arm-linux-gnueabihf/libe2p.so.2.3.usr-is-merged by libext2fs2t64' 25473s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2 to /lib/arm-linux-gnueabihf/libext2fs.so.2.usr-is-merged by libext2fs2t64' 25473s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2.4 to /lib/arm-linux-gnueabihf/libext2fs.so.2.4.usr-is-merged by libext2fs2t64' 25473s Unpacking libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 25473s Setting up libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) ... 25473s Setting up libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 25473s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78646 files and directories currently installed.) 25473s Preparing to unpack .../00-e2fsprogs_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 25473s Unpacking e2fsprogs (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 25474s Preparing to unpack .../01-btrfs-progs_6.6.3-1.1build1_armhf.deb ... 25474s Unpacking btrfs-progs (6.6.3-1.1build1) over (6.6.3-1.1) ... 25474s Preparing to unpack .../02-dhcpcd-base_1%3a10.0.6-1ubuntu2_armhf.deb ... 25474s Unpacking dhcpcd-base (1:10.0.6-1ubuntu2) over (1:10.0.6-1ubuntu1) ... 25474s Preparing to unpack .../03-eject_2.39.3-9ubuntu2_armhf.deb ... 25474s Unpacking eject (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25474s Preparing to unpack .../04-locales_2.39-0ubuntu6_all.deb ... 25474s Unpacking locales (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 25476s Selecting previously unselected package libnetplan1:armhf. 25476s Preparing to unpack .../05-libnetplan1_1.0-1_armhf.deb ... 25476s Unpacking libnetplan1:armhf (1.0-1) ... 25477s Preparing to unpack .../06-python3-netplan_1.0-1_armhf.deb ... 25477s Unpacking python3-netplan (1.0-1) over (0.107.1-3) ... 25477s Preparing to unpack .../07-netplan-generator_1.0-1_armhf.deb ... 25477s Adding 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 25477s Unpacking netplan-generator (1.0-1) over (0.107.1-3) ... 25477s Preparing to unpack .../08-python3-dbus_1.3.2-5build2_armhf.deb ... 25477s Unpacking python3-dbus (1.3.2-5build2) over (1.3.2-5build1) ... 25478s Preparing to unpack .../09-netplan.io_1.0-1_armhf.deb ... 25478s Unpacking netplan.io (1.0-1) over (0.107.1-3) ... 25478s Preparing to unpack .../10-vim-tiny_2%3a9.1.0016-1ubuntu5_armhf.deb ... 25478s Unpacking vim-tiny (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 25478s Preparing to unpack .../11-vim-common_2%3a9.1.0016-1ubuntu5_all.deb ... 25478s Unpacking vim-common (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 25479s Preparing to unpack .../12-initramfs-tools-bin_0.142ubuntu22_armhf.deb ... 25479s Unpacking initramfs-tools-bin (0.142ubuntu22) over (0.142ubuntu20) ... 25479s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78650 files and directories currently installed.) 25479s Removing libreiserfscore0 (1:3.6.27-7) ... 25479s Selecting previously unselected package libreiserfscore0t64. 25479s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 25479s Preparing to unpack .../libreiserfscore0t64_1%3a3.6.27-7.1_armhf.deb ... 25479s Unpacking libreiserfscore0t64 (1:3.6.27-7.1) ... 25479s Preparing to unpack .../file_1%3a5.45-3_armhf.deb ... 25479s Unpacking file (1:5.45-3) over (1:5.45-2) ... 25480s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78651 files and directories currently installed.) 25480s Removing libmagic1:armhf (1:5.45-2) ... 25480s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78641 files and directories currently installed.) 25480s Preparing to unpack .../libmagic-mgc_1%3a5.45-3_armhf.deb ... 25480s Unpacking libmagic-mgc (1:5.45-3) over (1:5.45-2) ... 25480s Selecting previously unselected package libmagic1t64:armhf. 25480s Preparing to unpack .../libmagic1t64_1%3a5.45-3_armhf.deb ... 25480s Unpacking libmagic1t64:armhf (1:5.45-3) ... 25481s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78652 files and directories currently installed.) 25481s Removing libnetplan0:armhf (0.107.1-3) ... 25481s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78648 files and directories currently installed.) 25481s Preparing to unpack .../libblockdev-nvme3_3.1.0-1build1_armhf.deb ... 25481s Unpacking libblockdev-nvme3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25482s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78648 files and directories currently installed.) 25482s Removing libnvme1 (1.8-2) ... 25482s Selecting previously unselected package libnvme1t64. 25482s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78641 files and directories currently installed.) 25482s Preparing to unpack .../libnvme1t64_1.8-3_armhf.deb ... 25482s Unpacking libnvme1t64 (1.8-3) ... 25482s Preparing to unpack .../libplymouth5_24.004.60-1ubuntu5_armhf.deb ... 25482s Unpacking libplymouth5:armhf (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 25482s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78649 files and directories currently installed.) 25482s Removing libpng16-16:armhf (1.6.43-1) ... 25483s Selecting previously unselected package libpng16-16t64:armhf. 25483s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78639 files and directories currently installed.) 25483s Preparing to unpack .../libpng16-16t64_1.6.43-3_armhf.deb ... 25483s Unpacking libpng16-16t64:armhf (1.6.43-3) ... 25483s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78650 files and directories currently installed.) 25483s Removing libudisks2-0:armhf (2.10.1-1ubuntu2) ... 25483s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 25483s Preparing to unpack .../bind9-host_1%3a9.18.24-0ubuntu3_armhf.deb ... 25483s Unpacking bind9-host (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 25484s Preparing to unpack .../bind9-dnsutils_1%3a9.18.24-0ubuntu3_armhf.deb ... 25484s Unpacking bind9-dnsutils (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 25484s Preparing to unpack .../bind9-libs_1%3a9.18.24-0ubuntu3_armhf.deb ... 25484s Unpacking bind9-libs:armhf (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 25484s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 25484s Removing libuv1:armhf (1.48.0-1) ... 25484s Selecting previously unselected package libuv1t64:armhf. 25484s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78640 files and directories currently installed.) 25484s Preparing to unpack .../libuv1t64_1.48.0-1.1_armhf.deb ... 25484s Unpacking libuv1t64:armhf (1.48.0-1.1) ... 25485s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78646 files and directories currently installed.) 25485s Removing python3-distutils (3.11.5-1) ... 25485s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 25485s Preparing to unpack .../uuid-runtime_2.39.3-9ubuntu2_armhf.deb ... 25485s Unpacking uuid-runtime (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 25485s Preparing to unpack .../libdebconfclient0_0.271ubuntu2_armhf.deb ... 25485s Unpacking libdebconfclient0:armhf (0.271ubuntu2) over (0.271ubuntu1) ... 25485s Setting up libdebconfclient0:armhf (0.271ubuntu2) ... 25486s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 25486s Preparing to unpack .../libsemanage-common_3.5-1build4_all.deb ... 25486s Unpacking libsemanage-common (3.5-1build4) over (3.5-1build2) ... 25486s Setting up libsemanage-common (3.5-1build4) ... 25486s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 25486s Preparing to unpack .../libsemanage2_3.5-1build4_armhf.deb ... 25486s Unpacking libsemanage2:armhf (3.5-1build4) over (3.5-1build2) ... 25486s Setting up libsemanage2:armhf (3.5-1build4) ... 25487s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 25487s Preparing to unpack .../install-info_7.1-3build1_armhf.deb ... 25487s Unpacking install-info (7.1-3build1) over (7.1-3) ... 25487s Setting up install-info (7.1-3build1) ... 25487s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 25487s Preparing to unpack .../00-gcc-13-base_13.2.0-19ubuntu1_armhf.deb ... 25488s Unpacking gcc-13-base:armhf (13.2.0-19ubuntu1) over (13.2.0-17ubuntu2) ... 25488s Preparing to unpack .../01-libss2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 25488s Unpacking libss2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 25488s Preparing to unpack .../02-dmsetup_2%3a1.02.185-3ubuntu2_armhf.deb ... 25488s Unpacking dmsetup (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 25488s Preparing to unpack .../03-gir1.2-girepository-2.0_1.79.1-1ubuntu6_armhf.deb ... 25488s Unpacking gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 25488s Preparing to unpack .../04-gir1.2-glib-2.0_2.79.3-3ubuntu5_armhf.deb ... 25488s Unpacking gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 25488s Preparing to unpack .../05-libgirepository-1.0-1_1.79.1-1ubuntu6_armhf.deb ... 25488s Unpacking libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 25488s Preparing to unpack .../06-krb5-locales_1.20.1-5.1build3_all.deb ... 25488s Unpacking krb5-locales (1.20.1-5.1build3) over (1.20.1-5build1) ... 25488s Preparing to unpack .../07-libbsd0_0.12.1-1_armhf.deb ... 25488s Unpacking libbsd0:armhf (0.12.1-1) over (0.11.8-1) ... 25489s Preparing to unpack .../08-libglib2.0-data_2.79.3-3ubuntu5_all.deb ... 25489s Unpacking libglib2.0-data (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 25489s Preparing to unpack .../09-libslang2_2.3.3-3build1_armhf.deb ... 25489s Unpacking libslang2:armhf (2.3.3-3build1) over (2.3.3-3) ... 25489s Preparing to unpack .../10-python3-gi_3.47.0-3build1_armhf.deb ... 25489s Unpacking python3-gi (3.47.0-3build1) over (3.47.0-3) ... 25489s Selecting previously unselected package xdg-user-dirs. 25489s Preparing to unpack .../11-xdg-user-dirs_0.18-1_armhf.deb ... 25490s Unpacking xdg-user-dirs (0.18-1) ... 25490s Preparing to unpack .../12-xxd_2%3a9.1.0016-1ubuntu5_armhf.deb ... 25490s Unpacking xxd (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 25490s Preparing to unpack .../13-apparmor_4.0.0-beta3-0ubuntu2_armhf.deb ... 25493s Unpacking apparmor (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 25495s Preparing to unpack .../14-ftp_20230507-2build1_all.deb ... 25495s Unpacking ftp (20230507-2build1) over (20230507-2) ... 25495s Preparing to unpack .../15-inetutils-telnet_2%3a2.5-3ubuntu3_armhf.deb ... 25495s Unpacking inetutils-telnet (2:2.5-3ubuntu3) over (2:2.5-3ubuntu1) ... 25495s Preparing to unpack .../16-info_7.1-3build1_armhf.deb ... 25495s Unpacking info (7.1-3build1) over (7.1-3) ... 25495s Preparing to unpack .../17-libxmuu1_2%3a1.1.3-3build1_armhf.deb ... 25495s Unpacking libxmuu1:armhf (2:1.1.3-3build1) over (2:1.1.3-3) ... 25496s Preparing to unpack .../18-lshw_02.19.git.2021.06.19.996aaad9c7-2build2_armhf.deb ... 25496s Unpacking lshw (02.19.git.2021.06.19.996aaad9c7-2build2) over (02.19.git.2021.06.19.996aaad9c7-2build1) ... 25496s Preparing to unpack .../19-mtr-tiny_0.95-1.1build1_armhf.deb ... 25496s Unpacking mtr-tiny (0.95-1.1build1) over (0.95-1.1) ... 25496s Preparing to unpack .../20-plymouth-theme-ubuntu-text_24.004.60-1ubuntu5_armhf.deb ... 25496s Unpacking plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 25496s Preparing to unpack .../21-plymouth_24.004.60-1ubuntu5_armhf.deb ... 25496s Unpacking plymouth (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 25497s Preparing to unpack .../22-psmisc_23.7-1_armhf.deb ... 25497s Unpacking psmisc (23.7-1) over (23.6-2) ... 25497s Preparing to unpack .../23-telnet_0.17+2.5-3ubuntu3_all.deb ... 25497s Unpacking telnet (0.17+2.5-3ubuntu3) over (0.17+2.5-3ubuntu1) ... 25497s Preparing to unpack .../24-xz-utils_5.6.0-0.2_armhf.deb ... 25497s Unpacking xz-utils (5.6.0-0.2) over (5.4.5-0.3) ... 25497s Preparing to unpack .../25-ubuntu-standard_1.536build1_armhf.deb ... 25497s Unpacking ubuntu-standard (1.536build1) over (1.536) ... 25498s Preparing to unpack .../26-usb.ids_2024.03.18-1_all.deb ... 25498s Unpacking usb.ids (2024.03.18-1) over (2024.01.30-1) ... 25498s Preparing to unpack .../27-libctf-nobfd0_2.42-4ubuntu1_armhf.deb ... 25498s Unpacking libctf-nobfd0:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 25498s Preparing to unpack .../28-libctf0_2.42-4ubuntu1_armhf.deb ... 25498s Unpacking libctf0:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 25498s Preparing to unpack .../29-binutils-arm-linux-gnueabihf_2.42-4ubuntu1_armhf.deb ... 25498s Unpacking binutils-arm-linux-gnueabihf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 25499s Preparing to unpack .../30-libbinutils_2.42-4ubuntu1_armhf.deb ... 25499s Unpacking libbinutils:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 25499s Preparing to unpack .../31-binutils_2.42-4ubuntu1_armhf.deb ... 25499s Unpacking binutils (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 25499s Preparing to unpack .../32-binutils-common_2.42-4ubuntu1_armhf.deb ... 25499s Unpacking binutils-common:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 25499s Preparing to unpack .../33-libsframe1_2.42-4ubuntu1_armhf.deb ... 25499s Unpacking libsframe1:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 25499s Preparing to unpack .../34-bolt_0.9.6-2build1_armhf.deb ... 25499s Unpacking bolt (0.9.6-2build1) over (0.9.6-2) ... 25500s Preparing to unpack .../35-cryptsetup-bin_2%3a2.7.0-1ubuntu2_armhf.deb ... 25500s Unpacking cryptsetup-bin (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 25500s Preparing to unpack .../36-dpkg-dev_1.22.6ubuntu4_all.deb ... 25500s Unpacking dpkg-dev (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 25501s Preparing to unpack .../37-libdpkg-perl_1.22.6ubuntu4_all.deb ... 25501s Unpacking libdpkg-perl (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 25501s Preparing to unpack .../38-gnupg-l10n_2.4.4-2ubuntu15_all.deb ... 25501s Unpacking gnupg-l10n (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 25501s Preparing to unpack .../39-ibverbs-providers_50.0-2build1_armhf.deb ... 25501s Unpacking ibverbs-providers:armhf (50.0-2build1) over (50.0-2) ... 25502s Preparing to unpack .../40-jq_1.7.1-3_armhf.deb ... 25502s Unpacking jq (1.7.1-3) over (1.7.1-2) ... 25502s Preparing to unpack .../41-libjq1_1.7.1-3_armhf.deb ... 25502s Unpacking libjq1:armhf (1.7.1-3) over (1.7.1-2) ... 25502s Selecting previously unselected package libatm1t64:armhf. 25502s Preparing to unpack .../42-libatm1t64_1%3a2.5.1-5.1_armhf.deb ... 25502s Unpacking libatm1t64:armhf (1:2.5.1-5.1) ... 25502s Preparing to unpack .../43-libblockdev-crypto3_3.1.0-1build1_armhf.deb ... 25502s Unpacking libblockdev-crypto3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25502s Preparing to unpack .../44-libblockdev-loop3_3.1.0-1build1_armhf.deb ... 25502s Unpacking libblockdev-loop3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25502s Preparing to unpack .../45-libblockdev-mdraid3_3.1.0-1build1_armhf.deb ... 25502s Unpacking libblockdev-mdraid3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25502s Preparing to unpack .../46-libblockdev-part3_3.1.0-1build1_armhf.deb ... 25502s Unpacking libblockdev-part3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25502s Preparing to unpack .../47-libblockdev-swap3_3.1.0-1build1_armhf.deb ... 25502s Unpacking libblockdev-swap3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25503s Preparing to unpack .../48-libblockdev3_3.1.0-1build1_armhf.deb ... 25503s Unpacking libblockdev3:armhf (3.1.0-1build1) over (3.1.0-1) ... 25503s Preparing to unpack .../49-libevent-core-2.1-7_2.1.12-stable-9build1_armhf.deb ... 25503s Unpacking libevent-core-2.1-7:armhf (2.1.12-stable-9build1) over (2.1.12-stable-9) ... 25503s Preparing to unpack .../50-libftdi1-2_1.5-6build4_armhf.deb ... 25503s Unpacking libftdi1-2:armhf (1.5-6build4) over (1.5-6build3) ... 25503s Preparing to unpack .../51-libldap-common_2.6.7+dfsg-1~exp1ubuntu6_all.deb ... 25503s Unpacking libldap-common (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 25503s Preparing to unpack .../52-libsasl2-modules_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 25503s Unpacking libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 25504s Preparing to unpack .../53-python3-lib2to3_3.12.2-3ubuntu2_all.deb ... 25504s Unpacking python3-lib2to3 (3.12.2-3ubuntu2) over (3.11.5-1) ... 25504s Preparing to unpack .../54-python3-markupsafe_2.1.5-1build1_armhf.deb ... 25505s Unpacking python3-markupsafe (2.1.5-1build1) over (2.1.5-1) ... 25505s Preparing to unpack .../55-python3-openssl_24.0.0-4_all.deb ... 25505s Unpacking python3-openssl (24.0.0-4) over (23.2.0-1) ... 25505s Preparing to unpack .../56-python3-pyrsistent_0.20.0-1build1_armhf.deb ... 25505s Unpacking python3-pyrsistent:armhf (0.20.0-1build1) over (0.20.0-1) ... 25506s Preparing to unpack .../57-python3-typing-extensions_4.10.0-1_all.deb ... 25506s Unpacking python3-typing-extensions (4.10.0-1) over (4.9.0-1) ... 25506s Preparing to unpack .../58-kpartx_0.9.4-5ubuntu5_armhf.deb ... 25506s Unpacking kpartx (0.9.4-5ubuntu5) over (0.9.4-5ubuntu3) ... 25506s Setting up pinentry-curses (1.2.1-3ubuntu4) ... 25506s Setting up libtext-iconv-perl:armhf (1.7-8build2) ... 25506s Setting up libtext-charwidth-perl:armhf (0.04-11build2) ... 25506s Setting up libibverbs1:armhf (50.0-2build1) ... 25506s Setting up systemd-sysv (255.4-1ubuntu5) ... 25506s Setting up libapparmor1:armhf (4.0.0-beta3-0ubuntu2) ... 25506s Setting up libatm1t64:armhf (1:2.5.1-5.1) ... 25506s Setting up libgdbm6t64:armhf (1.23-5.1) ... 25506s Setting up bsdextrautils (2.39.3-9ubuntu2) ... 25506s Setting up libgdbm-compat4t64:armhf (1.23-5.1) ... 25506s Setting up xdg-user-dirs (0.18-1) ... 25506s Setting up ibverbs-providers:armhf (50.0-2build1) ... 25506s Setting up linux-headers-6.8.0-20 (6.8.0-20.20) ... 25506s Setting up libmagic-mgc (1:5.45-3) ... 25506s Setting up gawk (1:5.2.1-2build2) ... 25506s Setting up psmisc (23.7-1) ... 25506s Setting up libjq1:armhf (1.7.1-3) ... 25506s Setting up libtirpc-common (1.3.4+ds-1.1) ... 25506s Setting up libbrotli1:armhf (1.1.0-2build1) ... 25506s Setting up libsqlite3-0:armhf (3.45.1-1ubuntu1) ... 25506s Setting up libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) ... 25506s Setting up libuv1t64:armhf (1.48.0-1.1) ... 25506s Setting up libmagic1t64:armhf (1:5.45-3) ... 25506s Setting up binutils-common:armhf (2.42-4ubuntu1) ... 25506s Setting up libpsl5t64:armhf (0.21.2-1.1) ... 25506s Setting up libnghttp2-14:armhf (1.59.0-1build1) ... 25506s Setting up libreiserfscore0t64 (1:3.6.27-7.1) ... 25506s Setting up libctf-nobfd0:armhf (2.42-4ubuntu1) ... 25506s Setting up libnss-systemd:armhf (255.4-1ubuntu5) ... 25507s Setting up krb5-locales (1.20.1-5.1build3) ... 25507s Setting up file (1:5.45-3) ... 25507s Setting up lshw (02.19.git.2021.06.19.996aaad9c7-2build2) ... 25507s Setting up locales (2.39-0ubuntu6) ... 25509s Generating locales (this might take a while)... 25517s en_US.UTF-8... done 25517s Generation complete. 25517s Setting up libldap-common (2.6.7+dfsg-1~exp1ubuntu6) ... 25517s Setting up xxd (2:9.1.0016-1ubuntu5) ... 25517s Setting up libsframe1:armhf (2.42-4ubuntu1) ... 25517s Setting up libelf1t64:armhf (0.190-1.1build2) ... 25517s Setting up libkrb5support0:armhf (1.20.1-5.1build3) ... 25517s Setting up linux-headers-6.8.0-20-generic (6.8.0-20.20) ... 25517s Setting up eject (2.39.3-9ubuntu2) ... 25517s Setting up apparmor (4.0.0-beta3-0ubuntu2) ... 25517s Installing new version of config file /etc/apparmor.d/abstractions/authentication ... 25517s Installing new version of config file /etc/apparmor.d/abstractions/crypto ... 25518s Installing new version of config file /etc/apparmor.d/abstractions/kde-open5 ... 25518s Installing new version of config file /etc/apparmor.d/abstractions/openssl ... 25518s Installing new version of config file /etc/apparmor.d/code ... 25518s Installing new version of config file /etc/apparmor.d/firefox ... 25519s apparmor_parser: Unable to replace "lsb_release". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25519s 25519s apparmor_parser: Unable to replace "kmod". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25519s 25519s apparmor_parser: Unable to replace "nvidia_modprobe". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25519s 25522s sysctl: cannot stat /proc/sys/kernel/apparmor_restrict_unprivileged_userns: No such file or directory 25522s Reloading AppArmor profiles 25522s /sbin/apparmor_parser: Unable to replace "1password". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "Discord". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "brave". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "buildah". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "busybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "MongoDB Compass". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "cam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "ch-checkns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "ch-run". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "chrome". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "crun". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "vscode". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "devhelp". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "epiphany". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "element-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "firefox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "evolution". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "flatpak". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "geary". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "github-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "goldendict". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "ipa_verify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "kchmviewer". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "keybase". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "lc-compliance". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "libcamerify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "loupe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "linux-sandbox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "lxc-attach". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "lxc-create". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "lxc-destroy". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "lxc-execute". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "lxc-usernsexec". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "lxc-unshare". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "lxc-stop". /sbin/apparmor_parser: Unable to replace "msedge". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "mmdebstrap". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "notepadqq". /sbin/apparmor_parser: Unable to replace "nautilus". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "opam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "pageedit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "obsidian". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "opera". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "polypane". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "podman". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "privacybrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "qcam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25522s /sbin/apparmor_parser: Unable to replace "plasmashell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25522s 25523s /sbin/apparmor_parser: Unable to replace "qutebrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "qmapshack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "rpm". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "rootlesskit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "runc". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-checkpackages". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "rssguard". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-abort". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-adduser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-apt". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-clean". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-destroychroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-hold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-shell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-unhold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-upgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-distupgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-createchroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "lsb_release". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "slack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "steam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "scide". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "slirp4netns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "signal-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "trinity". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "sbuild-update". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "kmod". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "nvidia_modprobe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "tuxedo-control-center". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "tup". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "systemd-coredump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "thunderbird". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "userbindmount". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "toybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "surfshark". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "unprivileged_userns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "stress-ng". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "vdens". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "uwsgi-core". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "vivaldi-bin". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "virtiofsd". /sbin/apparmor_parser: Unable to replace "wpcom". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "vpnns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "ubuntu_pro_apt_news". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "unix-chkpwd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "/usr/bin/man". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "rsyslogd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s /sbin/apparmor_parser: Unable to replace "tcpdump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25523s 25523s Error: At least one profile failed to load 25523s Setting up libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 25523s No schema files found: doing nothing. 25523s Setting up libglib2.0-data (2.79.3-3ubuntu5) ... 25523s Setting up vim-common (2:9.1.0016-1ubuntu5) ... 25523s Setting up gcc-13-base:armhf (13.2.0-19ubuntu1) ... 25523s Setting up libqrtr-glib0:armhf (1.2.2-1ubuntu3) ... 25523s Setting up libslang2:armhf (2.3.3-3build1) ... 25523s Setting up libnvme1t64 (1.8-3) ... 25523s Setting up mtr-tiny (0.95-1.1build1) ... 25523s Setting up gnupg-l10n (2.4.4-2ubuntu15) ... 25523s Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) ... 25523s Setting up libdbus-1-3:armhf (1.14.10-4ubuntu2) ... 25523s Setting up xz-utils (5.6.0-0.2) ... 25523s Setting up perl-modules-5.38 (5.38.2-3.2) ... 25523s Setting up libpng16-16t64:armhf (1.6.43-3) ... 25523s Setting up systemd-timesyncd (255.4-1ubuntu5) ... 25525s Setting up libevent-core-2.1-7:armhf (2.1.12-stable-9build1) ... 25525s Setting up libss2:armhf (1.47.0-2.4~exp1ubuntu2) ... 25525s Setting up usb.ids (2024.03.18-1) ... 25525s Setting up sudo (1.9.15p5-3ubuntu3) ... 25525s Setting up dhcpcd-base (1:10.0.6-1ubuntu2) ... 25525s Setting up gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) ... 25525s Setting up libk5crypto3:armhf (1.20.1-5.1build3) ... 25525s Setting up logsave (1.47.0-2.4~exp1ubuntu2) ... 25525s Setting up libfdisk1:armhf (2.39.3-9ubuntu2) ... 25525s Setting up libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 25525s Setting up libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) ... 25525s Setting up python-apt-common (2.7.6build1) ... 25525s Setting up mount (2.39.3-9ubuntu2) ... 25525s Setting up dmsetup (2:1.02.185-3ubuntu2) ... 25525s Setting up uuid-runtime (2.39.3-9ubuntu2) ... 25528s uuidd.service is a disabled or a static unit not running, not starting it. 25528s Setting up libmm-glib0:armhf (1.23.4-0ubuntu1) ... 25528s Setting up groff-base (1.23.0-3build1) ... 25528s Setting up libplymouth5:armhf (24.004.60-1ubuntu5) ... 25528s Setting up dbus-session-bus-common (1.14.10-4ubuntu2) ... 25528s Setting up jq (1.7.1-3) ... 25528s Setting up gpgconf (2.4.4-2ubuntu15) ... 25528s Setting up libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 25528s Setting up libcryptsetup12:armhf (2:2.7.0-1ubuntu2) ... 25528s Setting up libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) ... 25528s Setting up libjson-glib-1.0-common (1.8.0-2build1) ... 25528s Setting up libkrb5-3:armhf (1.20.1-5.1build3) ... 25528s Setting up libpython3.11-minimal:armhf (3.11.8-1build4) ... 25528s Setting up libusb-1.0-0:armhf (2:1.0.27-1) ... 25528s Setting up libperl5.38t64:armhf (5.38.2-3.2) ... 25528s Setting up tnftp (20230507-2build1) ... 25528s Setting up libbinutils:armhf (2.42-4ubuntu1) ... 25528s Setting up dbus-system-bus-common (1.14.10-4ubuntu2) ... 25529s Setting up libfido2-1:armhf (1.14.0-1build1) ... 25529s Setting up openssl (3.0.13-0ubuntu2) ... 25529s Setting up libbsd0:armhf (0.12.1-1) ... 25529s Setting up readline-common (8.2-3.1) ... 25529s Setting up libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) ... 25529s Setting up libxmuu1:armhf (2:1.1.3-3build1) ... 25529s Setting up dbus-bin (1.14.10-4ubuntu2) ... 25529s Setting up info (7.1-3build1) ... 25529s Setting up liblocale-gettext-perl (1.07-6ubuntu3) ... 25529s Setting up gpg (2.4.4-2ubuntu15) ... 25529s Setting up libgudev-1.0-0:armhf (1:238-3ubuntu2) ... 25529s Setting up libpolkit-gobject-1-0:armhf (124-1ubuntu1) ... 25529s Setting up libbpf1:armhf (1:1.3.0-2build1) ... 25529s Setting up libmbim-glib4:armhf (1.31.2-0ubuntu2) ... 25529s Setting up rsync (3.2.7-1build1) ... 25531s rsync.service is a disabled or a static unit not running, not starting it. 25531s Setting up libkmod2:armhf (31+20240202-2ubuntu4) ... 25531s Setting up bolt (0.9.6-2build1) ... 25532s bolt.service is a disabled or a static unit not running, not starting it. 25532s Setting up gnupg-utils (2.4.4-2ubuntu15) ... 25532s Setting up initramfs-tools-bin (0.142ubuntu22) ... 25532s Setting up libctf0:armhf (2.42-4ubuntu1) ... 25532s Setting up cryptsetup-bin (2:2.7.0-1ubuntu2) ... 25532s Setting up python3.11-minimal (3.11.8-1build4) ... 25535s Setting up tcpdump (4.99.4-3ubuntu2) ... 25536s apparmor_parser: Unable to replace "tcpdump". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25536s 25536s Setting up apt-utils (2.7.13ubuntu1) ... 25536s Setting up gpg-agent (2.4.4-2ubuntu15) ... 25537s Setting up libpython3.12-stdlib:armhf (3.12.2-4build3) ... 25537s Setting up wget (1.21.4-1ubuntu2) ... 25537s Setting up libxmlb2:armhf (0.3.15-1build1) ... 25537s Setting up btrfs-progs (6.6.3-1.1build1) ... 25537s Setting up libpython3.11-stdlib:armhf (3.11.8-1build4) ... 25537s Setting up python3.12 (3.12.2-4build3) ... 25541s Setting up gpgsm (2.4.4-2ubuntu15) ... 25541s Setting up inetutils-telnet (2:2.5-3ubuntu3) ... 25541s Setting up e2fsprogs (1.47.0-2.4~exp1ubuntu2) ... 25541s update-initramfs: deferring update (trigger activated) 25544s e2scrub_all.service is a disabled or a static unit not running, not starting it. 25544s Setting up libparted2t64:armhf (3.6-3.1build2) ... 25544s Setting up linux-headers-generic (6.8.0-20.20+1) ... 25544s Setting up dbus-daemon (1.14.10-4ubuntu2) ... 25544s Setting up libmbim-proxy (1.31.2-0ubuntu2) ... 25544s Setting up vim-tiny (2:9.1.0016-1ubuntu5) ... 25544s Setting up kmod (31+20240202-2ubuntu4) ... 25546s Setting up libnetplan1:armhf (1.0-1) ... 25546s Setting up man-db (2.12.0-3build4) ... 25546s Updating database of manual pages ... 25552s apparmor_parser: Unable to replace "/usr/bin/man". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25552s 25554s man-db.service is a disabled or a static unit not running, not starting it. 25554s Setting up fdisk (2.39.3-9ubuntu2) ... 25554s Setting up libjson-glib-1.0-0:armhf (1.8.0-2build1) ... 25554s Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) ... 25554s Setting up libftdi1-2:armhf (1.5-6build4) ... 25554s Setting up perl (5.38.2-3.2) ... 25554s Setting up gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) ... 25554s Setting up dbus (1.14.10-4ubuntu2) ... 25554s A reboot is required to replace the running dbus-daemon. 25554s Please reboot the system when convenient. 25555s Setting up shared-mime-info (2.4-1build1) ... 25557s Setting up libblockdev-utils3:armhf (3.1.0-1build1) ... 25557s Setting up libgssapi-krb5-2:armhf (1.20.1-5.1build3) ... 25557s Setting up udev (255.4-1ubuntu5) ... 25559s Setting up ftp (20230507-2build1) ... 25559s Setting up keyboxd (2.4.4-2ubuntu15) ... 25560s Setting up libdpkg-perl (1.22.6ubuntu4) ... 25560s Setting up libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) ... 25560s Setting up libssh-4:armhf (0.10.6-2build1) ... 25560s Setting up libblockdev-nvme3:armhf (3.1.0-1build1) ... 25560s Setting up libblockdev-fs3:armhf (3.1.0-1build1) ... 25560s Setting up kpartx (0.9.4-5ubuntu5) ... 25560s Setting up libpam-systemd:armhf (255.4-1ubuntu5) ... 25560s Setting up libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 25560s Setting up libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 25560s Setting up netplan-generator (1.0-1) ... 25560s Removing 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 25560s Setting up initramfs-tools-core (0.142ubuntu22) ... 25560s Setting up binutils-arm-linux-gnueabihf (2.42-4ubuntu1) ... 25560s Setting up libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 25560s Setting up libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) ... 25560s Setting up libpython3-stdlib:armhf (3.12.2-0ubuntu1) ... 25560s Setting up systemd-resolved (255.4-1ubuntu5) ... 25562s Setting up python3.11 (3.11.8-1build4) ... 25566s Setting up telnet (0.17+2.5-3ubuntu3) ... 25566s Setting up initramfs-tools (0.142ubuntu22) ... 25566s update-initramfs: deferring update (trigger activated) 25566s Setting up libblockdev-mdraid3:armhf (3.1.0-1build1) ... 25566s Setting up libcurl4t64:armhf (8.5.0-2ubuntu7) ... 25566s Setting up bind9-libs:armhf (1:9.18.24-0ubuntu3) ... 25566s Setting up libtirpc3t64:armhf (1.3.4+ds-1.1) ... 25566s Setting up e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) ... 25566s Setting up libblockdev-swap3:armhf (3.1.0-1build1) ... 25566s Setting up plymouth (24.004.60-1ubuntu5) ... 25566s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 25567s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 25567s Setting up iproute2 (6.1.0-1ubuntu5) ... 25568s Setting up openssh-client (1:9.6p1-3ubuntu11) ... 25568s Setting up libgusb2:armhf (0.4.8-1build1) ... 25568s Setting up libblockdev-loop3:armhf (3.1.0-1build1) ... 25568s Setting up libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 25568s Setting up parted (3.6-3.1build2) ... 25568s Setting up libqmi-glib5:armhf (1.35.2-0ubuntu1) ... 25568s Setting up python3 (3.12.2-0ubuntu1) ... 25569s Setting up binutils (2.42-4ubuntu1) ... 25569s Setting up python3-markupsafe (2.1.5-1build1) ... 25569s Setting up libblockdev3:armhf (3.1.0-1build1) ... 25569s Setting up libjcat1:armhf (0.2.0-2build2) ... 25570s Setting up dpkg-dev (1.22.6ubuntu4) ... 25570s Setting up libblockdev-part3:armhf (3.1.0-1build1) ... 25570s Setting up dirmngr (2.4.4-2ubuntu15) ... 25570s Setting up dbus-user-session (1.14.10-4ubuntu2) ... 25570s Setting up plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) ... 25570s update-initramfs: deferring update (trigger activated) 25570s Setting up python3-cryptography (41.0.7-4build2) ... 25571s Setting up python3-gi (3.47.0-3build1) ... 25572s Setting up python3-typing-extensions (4.10.0-1) ... 25573s Setting up lsof (4.95.0-1build2) ... 25573s Setting up python3-pyrsistent:armhf (0.20.0-1build1) ... 25573s Setting up libnsl2:armhf (1.3.0-3build2) ... 25573s Setting up gnupg (2.4.4-2ubuntu15) ... 25573s Setting up python3-netplan (1.0-1) ... 25573s Setting up curl (8.5.0-2ubuntu7) ... 25573s Setting up libvolume-key1:armhf (0.3.12-7build1) ... 25573s Setting up bind9-host (1:9.18.24-0ubuntu3) ... 25573s Setting up python3-lib2to3 (3.12.2-3ubuntu2) ... 25575s Setting up python3-pkg-resources (68.1.2-2ubuntu1) ... 25576s Setting up openssh-sftp-server (1:9.6p1-3ubuntu11) ... 25576s Setting up python3-dbus (1.3.2-5build2) ... 25576s Setting up python3-setuptools (68.1.2-2ubuntu1) ... 25578s Setting up gpg-wks-client (2.4.4-2ubuntu15) ... 25578s Setting up openssh-server (1:9.6p1-3ubuntu11) ... 25579s Replacing config file /etc/ssh/sshd_config with new version 25585s Created symlink /etc/systemd/system/ssh.service.requires/ssh.socket → /usr/lib/systemd/system/ssh.socket. 25589s Setting up libblockdev-crypto3:armhf (3.1.0-1build1) ... 25589s Setting up python3-gdbm:armhf (3.12.2-3ubuntu2) ... 25589s Setting up python3-apt (2.7.6build1) ... 25590s Setting up python3-openssl (24.0.0-4) ... 25590s Setting up libfwupd2:armhf (1.9.15-1) ... 25590s Setting up python3-yaml (6.0.1-2build1) ... 25591s Setting up libqmi-proxy (1.35.2-0ubuntu1) ... 25591s Setting up netplan.io (1.0-1) ... 25591s Setting up bind9-dnsutils (1:9.18.24-0ubuntu3) ... 25591s Setting up ubuntu-pro-client (31.2) ... 25592s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 25592s 25597s Setting up fwupd (1.9.15-1) ... 25599s fwupd-offline-update.service is a disabled or a static unit not running, not starting it. 25599s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 25599s fwupd.service is a disabled or a static unit not running, not starting it. 25599s Setting up ubuntu-pro-client-l10n (31.2) ... 25599s Setting up ubuntu-minimal (1.536build1) ... 25599s Setting up ubuntu-standard (1.536build1) ... 25599s Processing triggers for libc-bin (2.39-0ubuntu6) ... 25599s Processing triggers for ufw (0.36.2-5) ... 25600s Processing triggers for install-info (7.1-3build1) ... 25600s Processing triggers for initramfs-tools (0.142ubuntu22) ... 25606s Reading package lists... 25606s Building dependency tree... 25606s Reading state information... 25608s The following packages will be REMOVED: 25608s libatasmart4* libblockdev-crypto3* libblockdev-fs3* libblockdev-loop3* 25608s libblockdev-mdraid3* libblockdev-nvme3* libblockdev-part3* 25608s libblockdev-swap3* libblockdev-utils3* libblockdev3* libbytesize-common* 25608s libbytesize1* libnspr4* libnss3* libnvme1t64* libpolkit-agent-1-0* 25608s libvolume-key1* linux-headers-6.8.0-11* python3-lib2to3* 25610s 0 upgraded, 0 newly installed, 19 to remove and 1 not upgraded. 25610s After this operation, 89.7 MB disk space will be freed. 25610s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78559 files and directories currently installed.) 25610s Removing libatasmart4:armhf (0.19-5build2) ... 25610s Removing libblockdev-crypto3:armhf (3.1.0-1build1) ... 25610s Removing libblockdev-fs3:armhf (3.1.0-1build1) ... 25610s Removing libblockdev-loop3:armhf (3.1.0-1build1) ... 25610s Removing libblockdev-mdraid3:armhf (3.1.0-1build1) ... 25610s Removing libblockdev-nvme3:armhf (3.1.0-1build1) ... 25610s Removing libblockdev-part3:armhf (3.1.0-1build1) ... 25610s Removing libblockdev-swap3:armhf (3.1.0-1build1) ... 25610s Removing libblockdev3:armhf (3.1.0-1build1) ... 25610s Removing libblockdev-utils3:armhf (3.1.0-1build1) ... 25610s Removing libbytesize1:armhf (2.10-1ubuntu1) ... 25610s Removing libbytesize-common (2.10-1ubuntu1) ... 25611s Removing libvolume-key1:armhf (0.3.12-7build1) ... 25611s Removing libnss3:armhf (2:3.98-1) ... 25611s Removing libnspr4:armhf (2:4.35-1.1) ... 25611s Removing libnvme1t64 (1.8-3) ... 25611s Removing libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 25611s Removing linux-headers-6.8.0-11 (6.8.0-11.11) ... 25614s Removing python3-lib2to3 (3.12.2-3ubuntu2) ... 25614s Processing triggers for libc-bin (2.39-0ubuntu6) ... 25615s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58288 files and directories currently installed.) 25615s Purging configuration files for libblockdev3:armhf (3.1.0-1build1) ... 25618s autopkgtest [22:19:02]: rebooting testbed after setup commands that affected boot 25716s Reading package lists... 25716s Building dependency tree... 25716s Reading state information... 25718s Starting pkgProblemResolver with broken count: 0 25718s Starting 2 pkgProblemResolver with broken count: 0 25718s Done 25720s The following additional packages will be installed: 25720s build-essential cpp cpp-13 cpp-13-arm-linux-gnueabihf 25720s cpp-arm-linux-gnueabihf g++ g++-13 g++-13-arm-linux-gnueabihf 25720s g++-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 25720s gcc-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libc-dev-bin libc6-dev 25720s libcc1-0 libcrypt-dev libfftw3-bin libfftw3-dev libfftw3-double3 25720s libfftw3-single3 libgcc-13-dev libgfortran5 libgomp1 libisl23 liblapack3 25720s libmpc3 libstdc++-13-dev libubsan1 linux-libc-dev python3-numpy rpcsvc-proto 25720s Suggested packages: 25720s cpp-doc gcc-13-locales cpp-13-doc gcc-13-doc gcc-multilib manpages-dev 25720s autoconf automake libtool flex bison gdb gcc-doc gdb-arm-linux-gnueabihf 25720s glibc-doc libfftw3-doc libstdc++-13-doc gfortran python3-dev python3-pytest 25720s Recommended packages: 25720s manpages manpages-dev libc-devtools 25721s The following NEW packages will be installed: 25721s autopkgtest-satdep build-essential cpp cpp-13 cpp-13-arm-linux-gnueabihf 25721s cpp-arm-linux-gnueabihf g++ g++-13 g++-13-arm-linux-gnueabihf 25721s g++-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 25721s gcc-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libc-dev-bin libc6-dev 25721s libcc1-0 libcrypt-dev libfftw3-bin libfftw3-dev libfftw3-double3 25721s libfftw3-single3 libgcc-13-dev libgfortran5 libgomp1 libisl23 liblapack3 25721s libmpc3 libstdc++-13-dev libubsan1 linux-libc-dev python3-numpy rpcsvc-proto 25721s 0 upgraded, 36 newly installed, 0 to remove and 1 not upgraded. 25721s Need to get 55.0 MB/55.0 MB of archives. 25721s After this operation, 167 MB of additional disk space will be used. 25721s Get:1 /tmp/autopkgtest.b6ixTN/5-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [740 B] 25721s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-dev-bin armhf 2.39-0ubuntu6 [19.1 kB] 25721s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-libc-dev armhf 6.8.0-20.20 [1555 kB] 25722s Get:4 http://ftpmaster.internal/ubuntu noble/main armhf libcrypt-dev armhf 1:4.4.36-4 [136 kB] 25722s Get:5 http://ftpmaster.internal/ubuntu noble/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu6 [63.7 kB] 25722s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6-dev armhf 2.39-0ubuntu6 [1351 kB] 25722s Get:7 http://ftpmaster.internal/ubuntu noble/main armhf libisl23 armhf 0.26-3 [595 kB] 25722s Get:8 http://ftpmaster.internal/ubuntu noble/main armhf libmpc3 armhf 1.3.1-1 [46.4 kB] 25722s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [8753 kB] 25723s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13 armhf 13.2.0-19ubuntu1 [1036 B] 25723s Get:11 http://ftpmaster.internal/ubuntu noble/main armhf cpp-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [5320 B] 25723s Get:12 http://ftpmaster.internal/ubuntu noble/main armhf cpp armhf 4:13.2.0-7ubuntu1 [22.4 kB] 25723s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcc1-0 armhf 14-20240315-1ubuntu1 [39.0 kB] 25723s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgomp1 armhf 14-20240315-1ubuntu1 [125 kB] 25723s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libatomic1 armhf 14-20240315-1ubuntu1 [7824 B] 25723s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libasan8 armhf 14-20240315-1ubuntu1 [2941 kB] 25724s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libubsan1 armhf 14-20240315-1ubuntu1 [1152 kB] 25724s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-13-dev armhf 13.2.0-19ubuntu1 [900 kB] 25724s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [16.8 MB] 25725s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13 armhf 13.2.0-19ubuntu1 [448 kB] 25725s Get:21 http://ftpmaster.internal/ubuntu noble/main armhf gcc-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [1220 B] 25725s Get:22 http://ftpmaster.internal/ubuntu noble/main armhf gcc armhf 4:13.2.0-7ubuntu1 [5022 B] 25725s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++-13-dev armhf 13.2.0-19ubuntu1 [2403 kB] 25725s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf g++-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [9935 kB] 25726s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf g++-13 armhf 13.2.0-19ubuntu1 [14.5 kB] 25726s Get:26 http://ftpmaster.internal/ubuntu noble/main armhf g++-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [966 B] 25726s Get:27 http://ftpmaster.internal/ubuntu noble/main armhf g++ armhf 4:13.2.0-7ubuntu1 [1090 B] 25726s Get:28 http://ftpmaster.internal/ubuntu noble/main armhf build-essential armhf 12.10ubuntu1 [4928 B] 25726s Get:29 http://ftpmaster.internal/ubuntu noble/main armhf libblas3 armhf 3.12.0-3 [123 kB] 25726s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfftw3-double3 armhf 3.3.10-1ubuntu2 [366 kB] 25726s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfftw3-single3 armhf 3.3.10-1ubuntu2 [374 kB] 25726s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfftw3-bin armhf 3.3.10-1ubuntu2 [29.6 kB] 25726s Get:33 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfftw3-dev armhf 3.3.10-1ubuntu2 [706 kB] 25726s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgfortran5 armhf 14-20240315-1ubuntu1 [312 kB] 25726s Get:35 http://ftpmaster.internal/ubuntu noble/main armhf liblapack3 armhf 3.12.0-3 [2085 kB] 25727s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-numpy armhf 1:1.24.2-3ubuntu1 [3610 kB] 25729s Fetched 55.0 MB in 6s (8981 kB/s) 25729s Selecting previously unselected package libc-dev-bin. 25729s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58284 files and directories currently installed.) 25729s Preparing to unpack .../00-libc-dev-bin_2.39-0ubuntu6_armhf.deb ... 25729s Unpacking libc-dev-bin (2.39-0ubuntu6) ... 25729s Selecting previously unselected package linux-libc-dev:armhf. 25729s Preparing to unpack .../01-linux-libc-dev_6.8.0-20.20_armhf.deb ... 25729s Unpacking linux-libc-dev:armhf (6.8.0-20.20) ... 25730s Selecting previously unselected package libcrypt-dev:armhf. 25730s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.36-4_armhf.deb ... 25730s Unpacking libcrypt-dev:armhf (1:4.4.36-4) ... 25730s Selecting previously unselected package rpcsvc-proto. 25730s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu6_armhf.deb ... 25730s Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ... 25730s Selecting previously unselected package libc6-dev:armhf. 25730s Preparing to unpack .../04-libc6-dev_2.39-0ubuntu6_armhf.deb ... 25730s Unpacking libc6-dev:armhf (2.39-0ubuntu6) ... 25731s Selecting previously unselected package libisl23:armhf. 25731s Preparing to unpack .../05-libisl23_0.26-3_armhf.deb ... 25731s Unpacking libisl23:armhf (0.26-3) ... 25731s Selecting previously unselected package libmpc3:armhf. 25731s Preparing to unpack .../06-libmpc3_1.3.1-1_armhf.deb ... 25731s Unpacking libmpc3:armhf (1.3.1-1) ... 25731s Selecting previously unselected package cpp-13-arm-linux-gnueabihf. 25731s Preparing to unpack .../07-cpp-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 25731s Unpacking cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25732s Selecting previously unselected package cpp-13. 25732s Preparing to unpack .../08-cpp-13_13.2.0-19ubuntu1_armhf.deb ... 25732s Unpacking cpp-13 (13.2.0-19ubuntu1) ... 25732s Selecting previously unselected package cpp-arm-linux-gnueabihf. 25732s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 25732s Unpacking cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25732s Selecting previously unselected package cpp. 25732s Preparing to unpack .../10-cpp_4%3a13.2.0-7ubuntu1_armhf.deb ... 25732s Unpacking cpp (4:13.2.0-7ubuntu1) ... 25733s Selecting previously unselected package libcc1-0:armhf. 25733s Preparing to unpack .../11-libcc1-0_14-20240315-1ubuntu1_armhf.deb ... 25733s Unpacking libcc1-0:armhf (14-20240315-1ubuntu1) ... 25733s Selecting previously unselected package libgomp1:armhf. 25733s Preparing to unpack .../12-libgomp1_14-20240315-1ubuntu1_armhf.deb ... 25733s Unpacking libgomp1:armhf (14-20240315-1ubuntu1) ... 25733s Selecting previously unselected package libatomic1:armhf. 25733s Preparing to unpack .../13-libatomic1_14-20240315-1ubuntu1_armhf.deb ... 25733s Unpacking libatomic1:armhf (14-20240315-1ubuntu1) ... 25733s Selecting previously unselected package libasan8:armhf. 25733s Preparing to unpack .../14-libasan8_14-20240315-1ubuntu1_armhf.deb ... 25733s Unpacking libasan8:armhf (14-20240315-1ubuntu1) ... 25733s Selecting previously unselected package libubsan1:armhf. 25733s Preparing to unpack .../15-libubsan1_14-20240315-1ubuntu1_armhf.deb ... 25733s Unpacking libubsan1:armhf (14-20240315-1ubuntu1) ... 25734s Selecting previously unselected package libgcc-13-dev:armhf. 25734s Preparing to unpack .../16-libgcc-13-dev_13.2.0-19ubuntu1_armhf.deb ... 25734s Unpacking libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 25734s Selecting previously unselected package gcc-13-arm-linux-gnueabihf. 25734s Preparing to unpack .../17-gcc-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 25734s Unpacking gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25736s Selecting previously unselected package gcc-13. 25736s Preparing to unpack .../18-gcc-13_13.2.0-19ubuntu1_armhf.deb ... 25736s Unpacking gcc-13 (13.2.0-19ubuntu1) ... 25736s Selecting previously unselected package gcc-arm-linux-gnueabihf. 25736s Preparing to unpack .../19-gcc-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 25736s Unpacking gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25736s Selecting previously unselected package gcc. 25736s Preparing to unpack .../20-gcc_4%3a13.2.0-7ubuntu1_armhf.deb ... 25736s Unpacking gcc (4:13.2.0-7ubuntu1) ... 25736s Selecting previously unselected package libstdc++-13-dev:armhf. 25736s Preparing to unpack .../21-libstdc++-13-dev_13.2.0-19ubuntu1_armhf.deb ... 25736s Unpacking libstdc++-13-dev:armhf (13.2.0-19ubuntu1) ... 25737s Selecting previously unselected package g++-13-arm-linux-gnueabihf. 25738s Preparing to unpack .../22-g++-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 25738s Unpacking g++-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25739s Selecting previously unselected package g++-13. 25739s Preparing to unpack .../23-g++-13_13.2.0-19ubuntu1_armhf.deb ... 25739s Unpacking g++-13 (13.2.0-19ubuntu1) ... 25739s Selecting previously unselected package g++-arm-linux-gnueabihf. 25739s Preparing to unpack .../24-g++-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 25739s Unpacking g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25739s Selecting previously unselected package g++. 25739s Preparing to unpack .../25-g++_4%3a13.2.0-7ubuntu1_armhf.deb ... 25739s Unpacking g++ (4:13.2.0-7ubuntu1) ... 25739s Selecting previously unselected package build-essential. 25739s Preparing to unpack .../26-build-essential_12.10ubuntu1_armhf.deb ... 25739s Unpacking build-essential (12.10ubuntu1) ... 25739s Selecting previously unselected package libblas3:armhf. 25739s Preparing to unpack .../27-libblas3_3.12.0-3_armhf.deb ... 25739s Unpacking libblas3:armhf (3.12.0-3) ... 25740s Selecting previously unselected package libfftw3-double3:armhf. 25740s Preparing to unpack .../28-libfftw3-double3_3.3.10-1ubuntu2_armhf.deb ... 25740s Unpacking libfftw3-double3:armhf (3.3.10-1ubuntu2) ... 25740s Selecting previously unselected package libfftw3-single3:armhf. 25740s Preparing to unpack .../29-libfftw3-single3_3.3.10-1ubuntu2_armhf.deb ... 25740s Unpacking libfftw3-single3:armhf (3.3.10-1ubuntu2) ... 25740s Selecting previously unselected package libfftw3-bin. 25740s Preparing to unpack .../30-libfftw3-bin_3.3.10-1ubuntu2_armhf.deb ... 25740s Unpacking libfftw3-bin (3.3.10-1ubuntu2) ... 25740s Selecting previously unselected package libfftw3-dev:armhf. 25740s Preparing to unpack .../31-libfftw3-dev_3.3.10-1ubuntu2_armhf.deb ... 25740s Unpacking libfftw3-dev:armhf (3.3.10-1ubuntu2) ... 25740s Selecting previously unselected package libgfortran5:armhf. 25740s Preparing to unpack .../32-libgfortran5_14-20240315-1ubuntu1_armhf.deb ... 25740s Unpacking libgfortran5:armhf (14-20240315-1ubuntu1) ... 25740s Selecting previously unselected package liblapack3:armhf. 25740s Preparing to unpack .../33-liblapack3_3.12.0-3_armhf.deb ... 25740s Unpacking liblapack3:armhf (3.12.0-3) ... 25741s Selecting previously unselected package python3-numpy. 25741s Preparing to unpack .../34-python3-numpy_1%3a1.24.2-3ubuntu1_armhf.deb ... 25741s Unpacking python3-numpy (1:1.24.2-3ubuntu1) ... 25742s Selecting previously unselected package autopkgtest-satdep. 25742s Preparing to unpack .../35-5-autopkgtest-satdep.deb ... 25742s Unpacking autopkgtest-satdep (0) ... 25742s Setting up linux-libc-dev:armhf (6.8.0-20.20) ... 25742s Setting up libgomp1:armhf (14-20240315-1ubuntu1) ... 25742s Setting up libblas3:armhf (3.12.0-3) ... 25742s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 25742s Setting up rpcsvc-proto (1.4.2-0ubuntu6) ... 25742s Setting up libmpc3:armhf (1.3.1-1) ... 25742s Setting up libatomic1:armhf (14-20240315-1ubuntu1) ... 25742s Setting up libfftw3-double3:armhf (3.3.10-1ubuntu2) ... 25742s Setting up libgfortran5:armhf (14-20240315-1ubuntu1) ... 25743s Setting up libubsan1:armhf (14-20240315-1ubuntu1) ... 25743s Setting up libcrypt-dev:armhf (1:4.4.36-4) ... 25743s Setting up libasan8:armhf (14-20240315-1ubuntu1) ... 25743s Setting up libisl23:armhf (0.26-3) ... 25743s Setting up libc-dev-bin (2.39-0ubuntu6) ... 25743s Setting up libcc1-0:armhf (14-20240315-1ubuntu1) ... 25743s Setting up liblapack3:armhf (3.12.0-3) ... 25743s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 25743s Setting up libfftw3-single3:armhf (3.3.10-1ubuntu2) ... 25743s Setting up cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25743s Setting up libfftw3-bin (3.3.10-1ubuntu2) ... 25743s Setting up python3-numpy (1:1.24.2-3ubuntu1) ... 25753s Setting up libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 25753s Setting up libc6-dev:armhf (2.39-0ubuntu6) ... 25753s Setting up libfftw3-dev:armhf (3.3.10-1ubuntu2) ... 25753s Setting up cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25753s Setting up libstdc++-13-dev:armhf (13.2.0-19ubuntu1) ... 25753s Setting up cpp-13 (13.2.0-19ubuntu1) ... 25753s Setting up gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25753s Setting up gcc-13 (13.2.0-19ubuntu1) ... 25753s Setting up cpp (4:13.2.0-7ubuntu1) ... 25753s Setting up gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25753s Setting up g++-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 25753s Setting up g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 25753s Setting up g++-13 (13.2.0-19ubuntu1) ... 25753s Setting up gcc (4:13.2.0-7ubuntu1) ... 25753s Setting up g++ (4:13.2.0-7ubuntu1) ... 25753s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 25753s Setting up build-essential (12.10ubuntu1) ... 25753s Setting up autopkgtest-satdep (0) ... 25753s Processing triggers for man-db (2.12.0-3build4) ... 25755s Processing triggers for libc-bin (2.39-0ubuntu6) ... 25774s (Reading database ... 62033 files and directories currently installed.) 25774s Removing autopkgtest-satdep (0) ... 25797s autopkgtest [22:22:01]: test distutils: [----------------------- 25801s :1: DeprecationWarning: 25801s 25801s `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 25801s of the deprecation of `distutils` itself. It will be removed for 25801s Python >= 3.12. For older Python versions it will remain present. 25801s It is recommended to use `setuptools < 60.0` for those Python versions. 25801s For more details, see: 25801s https://numpy.org/devdocs/reference/distutils_status_migration.html 25801s 25801s 25801s autopkgtest [22:22:05]: test distutils: -----------------------] 25806s autopkgtest [22:22:10]: test distutils: - - - - - - - - - - results - - - - - - - - - - 25806s distutils PASS 25810s autopkgtest [22:22:14]: test capi: preparing testbed 25894s autopkgtest [22:23:38]: testbed dpkg architecture: armhf 25897s autopkgtest [22:23:41]: testbed apt version: 2.7.12 25897s autopkgtest [22:23:41]: @@@@@@@@@@@@@@@@@@@@ test bed setup 25900s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 25901s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3797 kB] 25902s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 25902s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [492 kB] 25902s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [52.7 kB] 25902s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf Packages [600 kB] 25902s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf c-n-f Metadata [2492 B] 25902s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf Packages [1372 B] 25902s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted armhf c-n-f Metadata [116 B] 25902s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf Packages [3720 kB] 25902s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/universe armhf c-n-f Metadata [7776 B] 25902s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf Packages [35.6 kB] 25902s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/multiverse armhf c-n-f Metadata [116 B] 25916s Fetched 8833 kB in 6s (1563 kB/s) 25916s Reading package lists... 25924s Get:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease [117 kB] 25925s Get:2 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf Packages [600 kB] 25925s Get:3 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main armhf c-n-f Metadata [2492 B] 25925s Get:4 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf Packages [3720 kB] 25926s Get:5 http://ports.ubuntu.com/ubuntu-ports noble-proposed/universe armhf c-n-f Metadata [7776 B] 25926s Get:6 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf Packages [1372 B] 25926s Get:7 http://ports.ubuntu.com/ubuntu-ports noble-proposed/restricted armhf c-n-f Metadata [116 B] 25926s Get:8 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf Packages [35.6 kB] 25926s Get:9 http://ports.ubuntu.com/ubuntu-ports noble-proposed/multiverse armhf c-n-f Metadata [116 B] 25936s Fetched 4484 kB in 3s (1612 kB/s) 25937s Reading package lists... 25945s tee: /proc/self/fd/2: Permission denied 25990s Hit:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed InRelease 25990s Hit:2 http://ftpmaster.internal/ubuntu noble InRelease 25990s Hit:3 http://ports.ubuntu.com/ubuntu-ports noble InRelease 25990s Hit:4 http://ftpmaster.internal/ubuntu noble-updates InRelease 25990s Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease 25990s Hit:6 http://ftpmaster.internal/ubuntu noble-security InRelease 25990s Hit:7 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease 25990s Hit:8 http://ftpmaster.internal/ubuntu noble-proposed InRelease 25990s Hit:9 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease 25996s Reading package lists... 25997s Reading package lists... 25998s Building dependency tree... 25998s Reading state information... 26000s Calculating upgrade... 26001s The following packages were automatically installed and are no longer required: 26001s libatasmart4 libblockdev-crypto3 libblockdev-fs3 libblockdev-loop3 26001s libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 libblockdev-swap3 26001s libblockdev-utils3 libblockdev3 libbytesize-common libbytesize1 libnspr4 26001s libnss3 libnvme1t64 libpolkit-agent-1-0 libvolume-key1 26001s linux-headers-6.8.0-11 python3-lib2to3 26001s Use 'apt autoremove' to remove them. 26003s The following packages will be REMOVED: 26003s libapt-pkg6.0 libarchive13 libatm1 libcurl3-gnutls libcurl4 libdb5.3 libelf1 26003s libext2fs2 libgdbm-compat4 libgdbm6 libglib2.0-0 libgnutls30 libgpgme11 26003s libhogweed6 libmagic1 libnetplan0 libnettle8 libnpth0 libnvme1 libparted2 26003s libpcap0.8 libperl5.38 libpng16-16 libpsl5 libreadline8 libreiserfscore0 26003s libssl3 libtirpc3 libudisks2-0 libuv1 linux-headers-6.8.0-11-generic 26003s python3-distutils udisks2 26003s The following NEW packages will be installed: 26003s libapt-pkg6.0t64 libarchive13t64 libatm1t64 libcurl3t64-gnutls libcurl4t64 26003s libdb5.3t64 libelf1t64 libext2fs2t64 libgdbm-compat4t64 libgdbm6t64 26003s libglib2.0-0t64 libgnutls30t64 libgpgme11t64 libhogweed6t64 libmagic1t64 26003s libnetplan1 libnettle8t64 libnpth0t64 libnvme1t64 libparted2t64 26003s libpcap0.8t64 libperl5.38t64 libpng16-16t64 libpsl5t64 libreadline8t64 26003s libreiserfscore0t64 libssl3t64 libtirpc3t64 libuv1t64 linux-headers-6.8.0-20 26003s linux-headers-6.8.0-20-generic xdg-user-dirs 26003s The following packages have been kept back: 26003s multipath-tools 26003s The following packages will be upgraded: 26003s apparmor apt apt-utils bind9-dnsutils bind9-host bind9-libs binutils 26003s binutils-arm-linux-gnueabihf binutils-common bolt bsdextrautils bsdutils 26003s btrfs-progs coreutils cryptsetup-bin curl dbus dbus-bin dbus-daemon 26003s dbus-session-bus-common dbus-system-bus-common dbus-user-session debianutils 26003s dhcpcd-base dirmngr dmsetup dpkg dpkg-dev e2fsprogs e2fsprogs-l10n eject 26003s fdisk file ftp fwupd gawk gcc-13-base gcc-14-base gir1.2-girepository-2.0 26003s gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client 26003s gpgconf gpgsm gpgv groff-base ibverbs-providers inetutils-telnet info 26003s initramfs-tools initramfs-tools-bin initramfs-tools-core install-info 26003s iproute2 jq keyboxd kmod kpartx krb5-locales libapparmor1 libaudit-common 26003s libaudit1 libbinutils libblkid1 libblockdev-crypto3 libblockdev-fs3 26003s libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 libblockdev-part3 26003s libblockdev-swap3 libblockdev-utils3 libblockdev3 libbpf1 libbrotli1 libbsd0 26003s libc-bin libc6 libcap-ng0 libcom-err2 libcryptsetup12 libctf-nobfd0 libctf0 26003s libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdpkg-perl 26003s libevent-core-2.1-7 libexpat1 libfdisk1 libfido2-1 libftdi1-2 libfwupd2 26003s libgcc-s1 libgirepository-1.0-1 libglib2.0-data libgssapi-krb5-2 26003s libgudev-1.0-0 libgusb2 libibverbs1 libjcat1 libjq1 libjson-glib-1.0-0 26003s libjson-glib-1.0-common libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 26003s libldap-common libldap2 liblocale-gettext-perl liblzma5 libmagic-mgc 26003s libmbim-glib4 libmbim-proxy libmm-glib0 libmount1 libnghttp2-14 libnsl2 26003s libnss-systemd libpam-modules libpam-modules-bin libpam-runtime 26003s libpam-systemd libpam0g libplymouth5 libpolkit-agent-1-0 26003s libpolkit-gobject-1-0 libpython3-stdlib libpython3.11-minimal 26003s libpython3.11-stdlib libpython3.12-minimal libpython3.12-stdlib libqmi-glib5 26003s libqmi-proxy libqrtr-glib0 librtmp1 libsasl2-2 libsasl2-modules 26003s libsasl2-modules-db libseccomp2 libselinux1 libsemanage-common libsemanage2 26003s libsframe1 libslang2 libsmartcols1 libsqlite3-0 libss2 libssh-4 libstdc++6 26003s libsystemd-shared libsystemd0 libtext-charwidth-perl libtext-iconv-perl 26003s libtirpc-common libudev1 libusb-1.0-0 libuuid1 libvolume-key1 libxml2 26003s libxmlb2 libxmuu1 linux-headers-generic locales logsave lshw lsof man-db 26003s mount mtr-tiny netplan-generator netplan.io openssh-client openssh-server 26003s openssh-sftp-server openssl parted perl perl-base perl-modules-5.38 26003s pinentry-curses plymouth plymouth-theme-ubuntu-text psmisc python-apt-common 26003s python3 python3-apt python3-cryptography python3-dbus python3-gdbm 26003s python3-gi python3-lib2to3 python3-markupsafe python3-minimal 26003s python3-netplan python3-openssl python3-pkg-resources python3-pyrsistent 26003s python3-setuptools python3-typing-extensions python3-yaml python3.11 26003s python3.11-minimal python3.12 python3.12-minimal readline-common rsync 26003s shared-mime-info sudo systemd systemd-dev systemd-resolved systemd-sysv 26003s systemd-timesyncd tcpdump telnet tnftp ubuntu-minimal ubuntu-pro-client 26003s ubuntu-pro-client-l10n ubuntu-standard udev usb.ids util-linux uuid-runtime 26003s vim-common vim-tiny wget xxd xz-utils zlib1g 26004s 236 upgraded, 32 newly installed, 33 to remove and 1 not upgraded. 26004s Need to get 106 MB of archives. 26004s After this operation, 82.8 MB of additional disk space will be used. 26004s Get:1 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdutils armhf 1:2.39.3-9ubuntu2 [102 kB] 26004s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-14-base armhf 14-20240315-1ubuntu1 [47.0 kB] 26004s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-s1 armhf 14-20240315-1ubuntu1 [41.5 kB] 26004s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++6 armhf 14-20240315-1ubuntu1 [714 kB] 26005s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6 armhf 2.39-0ubuntu6 [2827 kB] 26006s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssl armhf 3.0.13-0ubuntu2 [975 kB] 26006s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g armhf 1:1.3.dfsg-3.1ubuntu1 [49.2 kB] 26006s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2build6 [51.3 kB] 26006s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12 armhf 3.12.2-4build3 [645 kB] 26006s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1 armhf 2.6.1-2 [65.9 kB] 26006s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-minimal armhf 3.12.2-4build3 [1942 kB] 26007s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-stdlib armhf 3.12.2-4build3 [1906 kB] 26008s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-minimal armhf 3.12.2-4build3 [816 kB] 26008s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf parted armhf 3.6-3.1build2 [39.4 kB] 26008s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblkid1 armhf 2.39.3-9ubuntu2 [160 kB] 26008s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libselinux1 armhf 3.5-2build3 [70.5 kB] 26008s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-dev all 255.4-1ubuntu5 [103 kB] 26008s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-timesyncd armhf 255.4-1ubuntu5 [36.0 kB] 26008s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-session-bus-common all 1.14.10-4ubuntu2 [80.3 kB] 26008s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit-common all 1:3.1.2-2.1 [5674 B] 26008s Get:21 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcap-ng0 armhf 0.8.4-2build1 [13.5 kB] 26008s Get:22 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libaudit1 armhf 1:3.1.2-2.1 [44.3 kB] 26008s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam0g armhf 1.5.3-5ubuntu3 [62.0 kB] 26008s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblzma5 armhf 5.6.0-0.2 [117 kB] 26008s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap2 armhf 2.6.7+dfsg-1~exp1ubuntu6 [172 kB] 26008s Get:26 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-0t64 armhf 2.79.3-3ubuntu5 [1414 kB] 26009s Get:27 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libvolume-key1 armhf 0.3.12-7build1 [38.4 kB] 26009s Get:28 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgpgme11t64 armhf 1.18.0-4.1ubuntu3 [120 kB] 26009s Get:29 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjcat1 armhf 0.2.0-2build2 [30.4 kB] 26009s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libarchive13t64 armhf 3.7.2-1.1ubuntu1 [330 kB] 26009s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fwupd armhf 1.9.15-1 [4349 kB] 26011s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client-l10n armhf 31.2 [19.4 kB] 26011s Get:33 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ubuntu-pro-client armhf 31.2 [216 kB] 26011s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11 armhf 3.11.8-1build4 [589 kB] 26012s Get:35 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.11-minimal armhf 3.11.8-1build4 [1795 kB] 26012s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-minimal armhf 3.11.8-1build4 [826 kB] 26013s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-4ubuntu4 [19.2 kB] 26013s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-iconv-perl armhf 1.7-8build2 [12.7 kB] 26013s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtext-charwidth-perl armhf 0.04-11build2 [8962 B] 26013s Get:40 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-base armhf 5.38.2-3.2 [1671 kB] 26013s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf liblocale-gettext-perl armhf 1.07-6ubuntu3 [15.0 kB] 26013s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl-modules-5.38 all 5.38.2-3.2 [3110 kB] 26015s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gdbm armhf 3.12.2-3ubuntu2 [17.1 kB] 26015s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf man-db armhf 2.12.0-3build4 [1196 kB] 26015s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm6t64 armhf 1.23-5.1 [30.3 kB] 26015s Get:46 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgdbm-compat4t64 armhf 1.23-5.1 [6208 B] 26015s Get:47 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libperl5.38t64 armhf 5.38.2-3.2 [4101 kB] 26018s Get:48 http://ftpmaster.internal/ubuntu noble-proposed/main armhf perl armhf 5.38.2-3.2 [231 kB] 26018s Get:49 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdb5.3t64 armhf 5.3.28+dfsg2-5build1 [661 kB] 26019s Get:50 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.11-stdlib armhf 3.11.8-1build4 [1810 kB] 26020s Get:51 http://ftpmaster.internal/ubuntu noble-proposed/main armhf keyboxd armhf 2.4.4-2ubuntu15 [111 kB] 26020s Get:52 http://ftpmaster.internal/ubuntu noble/main armhf libnpth0t64 armhf 1.6-3.1 [6940 B] 26020s Get:53 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgv armhf 2.4.4-2ubuntu15 [224 kB] 26020s Get:54 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg armhf 2.4.4-2ubuntu15 [524 kB] 26021s Get:55 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-wks-client armhf 2.4.4-2ubuntu15 [87.4 kB] 26021s Get:56 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-utils armhf 2.4.4-2ubuntu15 [158 kB] 26021s Get:57 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpg-agent armhf 2.4.4-2ubuntu15 [235 kB] 26021s Get:58 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgsm armhf 2.4.4-2ubuntu15 [241 kB] 26021s Get:59 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreadline8t64 armhf 8.2-3.1 [129 kB] 26021s Get:60 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gawk armhf 1:5.2.1-2build2 [415 kB] 26021s Get:61 http://ftpmaster.internal/ubuntu noble-proposed/main armhf fdisk armhf 2.39.3-9ubuntu2 [135 kB] 26022s Get:62 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gpgconf armhf 2.4.4-2ubuntu15 [115 kB] 26022s Get:63 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dirmngr armhf 2.4.4-2ubuntu15 [346 kB] 26022s Get:64 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg all 2.4.4-2ubuntu15 [359 kB] 26022s Get:65 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-apt armhf 2.7.6build1 [162 kB] 26022s Get:66 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt-utils armhf 2.7.13ubuntu1 [210 kB] 26022s Get:67 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapt-pkg6.0t64 armhf 2.7.13ubuntu1 [986 kB] 26023s Get:68 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnettle8t64 armhf 3.9.1-2.2 [187 kB] 26023s Get:69 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libhogweed6t64 armhf 3.9.1-2.2 [187 kB] 26023s Get:70 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgnutls30t64 armhf 3.8.3-1.1ubuntu2 [1046 kB] 26024s Get:71 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apt armhf 2.7.13ubuntu1 [1367 kB] 26024s Get:72 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl3t64-gnutls armhf 8.5.0-2ubuntu7 [290 kB] 26025s Get:73 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfwupd2 armhf 1.9.15-1 [123 kB] 26025s Get:74 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpsl5t64 armhf 0.21.2-1.1 [55.7 kB] 26025s Get:75 http://ftpmaster.internal/ubuntu noble-proposed/main armhf wget armhf 1.21.4-1ubuntu2 [317 kB] 26025s Get:76 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tnftp armhf 20230507-2build1 [98.6 kB] 26025s Get:77 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpcap0.8t64 armhf 1.10.4-4.1ubuntu1 [137 kB] 26025s Get:78 http://ftpmaster.internal/ubuntu noble-proposed/main armhf tcpdump armhf 4.99.4-3ubuntu2 [425 kB] 26025s Get:79 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd-shared armhf 255.4-1ubuntu5 [2009 kB] 26027s Get:80 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-resolved armhf 255.4-1ubuntu5 [289 kB] 26027s Get:81 http://ftpmaster.internal/ubuntu noble-proposed/main armhf sudo armhf 1.9.15p5-3ubuntu3 [936 kB] 26027s Get:82 http://ftpmaster.internal/ubuntu noble-proposed/main armhf rsync armhf 3.2.7-1build1 [413 kB] 26028s Get:83 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-cryptography armhf 41.0.7-4build2 [788 kB] 26028s Get:84 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-sftp-server armhf 1:9.6p1-3ubuntu11 [35.5 kB] 26028s Get:85 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-client armhf 1:9.6p1-3ubuntu11 [890 kB] 26028s Get:86 http://ftpmaster.internal/ubuntu noble-proposed/main armhf openssh-server armhf 1:9.6p1-3ubuntu11 [503 kB] 26029s Get:87 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-6.8.0-20 all 6.8.0-20.20 [13.6 MB] 26035s Get:88 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-6.8.0-20-generic armhf 6.8.0-20.20 [1287 kB] 26036s Get:89 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-headers-generic armhf 6.8.0-20.20+1 [9610 B] 26036s Get:90 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssl3t64 armhf 3.0.13-0ubuntu2 [1558 kB] 26036s Get:91 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libudev1 armhf 255.4-1ubuntu5 [166 kB] 26036s Get:92 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd armhf 255.4-1ubuntu5 [3502 kB] 26037s Get:93 http://ftpmaster.internal/ubuntu noble-proposed/main armhf udev armhf 255.4-1ubuntu5 [1852 kB] 26038s Get:94 http://ftpmaster.internal/ubuntu noble-proposed/main armhf systemd-sysv armhf 255.4-1ubuntu5 [11.9 kB] 26038s Get:95 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnss-systemd armhf 255.4-1ubuntu5 [148 kB] 26038s Get:96 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-systemd armhf 255.4-1ubuntu5 [216 kB] 26038s Get:97 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsystemd0 armhf 255.4-1ubuntu5 [410 kB] 26038s Get:98 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules-bin armhf 1.5.3-5ubuntu3 [47.0 kB] 26038s Get:99 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-modules armhf 1.5.3-5ubuntu3 [261 kB] 26038s Get:100 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpam-runtime all 1.5.3-5ubuntu3 [40.8 kB] 26038s Get:101 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-user-session armhf 1.14.10-4ubuntu2 [9962 B] 26038s Get:102 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libapparmor1 armhf 4.0.0-beta3-0ubuntu2 [45.0 kB] 26038s Get:103 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-bin armhf 1.14.10-4ubuntu2 [37.1 kB] 26038s Get:104 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-system-bus-common all 1.14.10-4ubuntu2 [81.5 kB] 26038s Get:105 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus armhf 1.14.10-4ubuntu2 [28.1 kB] 26038s Get:106 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dbus-daemon armhf 1.14.10-4ubuntu2 [109 kB] 26038s Get:107 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdbus-1-3 armhf 1.14.10-4ubuntu2 [190 kB] 26038s Get:108 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kmod armhf 31+20240202-2ubuntu4 [91.8 kB] 26038s Get:109 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkmod2 armhf 31+20240202-2ubuntu4 [44.9 kB] 26039s Get:110 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmount1 armhf 2.39.3-9ubuntu2 [171 kB] 26039s Get:111 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libseccomp2 armhf 2.5.5-1ubuntu2 [49.5 kB] 26039s Get:112 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuuid1 armhf 2.39.3-9ubuntu2 [34.4 kB] 26039s Get:113 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcryptsetup12 armhf 2:2.7.0-1ubuntu2 [238 kB] 26039s Get:114 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfdisk1 armhf 2.39.3-9ubuntu2 [196 kB] 26039s Get:115 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mount armhf 2.39.3-9ubuntu2 [134 kB] 26039s Get:116 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdevmapper1.02.1 armhf 2:1.02.185-3ubuntu2 [135 kB] 26039s Get:117 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libparted2t64 armhf 3.6-3.1build2 [143 kB] 26039s Get:118 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsqlite3-0 armhf 3.45.1-1ubuntu1 [599 kB] 26039s Get:119 http://ftpmaster.internal/ubuntu noble-proposed/main armhf pinentry-curses armhf 1.2.1-3ubuntu4 [36.7 kB] 26039s Get:120 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsmartcols1 armhf 2.39.3-9ubuntu2 [117 kB] 26039s Get:121 http://ftpmaster.internal/ubuntu noble-proposed/main armhf readline-common all 8.2-3.1 [56.4 kB] 26039s Get:122 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-yaml armhf 6.0.1-2build1 [117 kB] 26039s Get:123 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python-apt-common all 2.7.6build1 [19.8 kB] 26039s Get:124 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-setuptools all 68.1.2-2ubuntu1 [396 kB] 26039s Get:125 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pkg-resources all 68.1.2-2ubuntu1 [168 kB] 26039s Get:126 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg armhf 1.22.6ubuntu4 [1229 kB] 26040s Get:127 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-minimal armhf 3.12.2-0ubuntu1 [27.1 kB] 26040s Get:128 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3 armhf 3.12.2-0ubuntu1 [24.1 kB] 26040s Get:129 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-stdlib armhf 3.12.2-0ubuntu1 [9802 B] 26040s Get:130 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bsdextrautils armhf 2.39.3-9ubuntu2 [78.7 kB] 26040s Get:131 http://ftpmaster.internal/ubuntu noble-proposed/main armhf groff-base armhf 1.23.0-3build1 [946 kB] 26040s Get:132 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-2 armhf 2.1.28+dfsg1-4ubuntu4 [49.7 kB] 26040s Get:133 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-common all 1.8.0-2build1 [4210 B] 26040s Get:134 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjson-glib-1.0-0 armhf 1.8.0-2build1 [61.2 kB] 26040s Get:135 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxml2 armhf 2.9.14+dfsg-1.3ubuntu2 [595 kB] 26040s Get:136 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgudev-1.0-0 armhf 1:238-3ubuntu2 [13.6 kB] 26040s Get:137 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libusb-1.0-0 armhf 2:1.0.27-1 [48.7 kB] 26040s Get:138 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgusb2 armhf 0.4.8-1build1 [34.6 kB] 26040s Get:139 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-proxy armhf 1.31.2-0ubuntu2 [5748 B] 26040s Get:140 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmbim-glib4 armhf 1.31.2-0ubuntu2 [216 kB] 26040s Get:141 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmm-glib0 armhf 1.23.4-0ubuntu1 [214 kB] 26040s Get:142 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-agent-1-0 armhf 124-1ubuntu1 [15.3 kB] 26040s Get:143 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpolkit-gobject-1-0 armhf 124-1ubuntu1 [44.1 kB] 26040s Get:144 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-proxy armhf 1.35.2-0ubuntu1 [5732 B] 26040s Get:145 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqrtr-glib0 armhf 1.2.2-1ubuntu3 [15.4 kB] 26040s Get:146 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libqmi-glib5 armhf 1.35.2-0ubuntu1 [908 kB] 26040s Get:147 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmlb2 armhf 0.3.15-1build1 [57.0 kB] 26041s Get:148 http://ftpmaster.internal/ubuntu noble-proposed/main armhf shared-mime-info armhf 2.4-1build1 [470 kB] 26041s Get:149 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbrotli1 armhf 1.1.0-2build1 [319 kB] 26041s Get:150 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgssapi-krb5-2 armhf 1.20.1-5.1build3 [119 kB] 26041s Get:151 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5-3 armhf 1.20.1-5.1build3 [321 kB] 26041s Get:152 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libkrb5support0 armhf 1.20.1-5.1build3 [31.4 kB] 26041s Get:153 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libk5crypto3 armhf 1.20.1-5.1build3 [78.6 kB] 26041s Get:154 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcom-err2 armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 26041s Get:155 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnghttp2-14 armhf 1.59.0-1build1 [68.1 kB] 26041s Get:156 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libssh-4 armhf 0.10.6-2build1 [169 kB] 26041s Get:157 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libibverbs1 armhf 50.0-2build1 [57.9 kB] 26041s Get:158 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libfido2-1 armhf 1.14.0-1build1 [75.8 kB] 26041s Get:159 http://ftpmaster.internal/ubuntu noble-proposed/main armhf coreutils armhf 9.4-3ubuntu3 [1280 kB] 26041s Get:160 http://ftpmaster.internal/ubuntu noble-proposed/main armhf debianutils armhf 5.17 [88.9 kB] 26041s Get:161 http://ftpmaster.internal/ubuntu noble-proposed/main armhf util-linux armhf 2.39.3-9ubuntu2 [1216 kB] 26041s Get:162 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-bin armhf 2.39-0ubuntu6 [530 kB] 26042s Get:163 http://ftpmaster.internal/ubuntu noble-proposed/main armhf curl armhf 8.5.0-2ubuntu7 [219 kB] 26042s Get:164 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcurl4t64 armhf 8.5.0-2ubuntu7 [296 kB] 26042s Get:165 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbpf1 armhf 1:1.3.0-2build1 [146 kB] 26042s Get:166 http://ftpmaster.internal/ubuntu noble-proposed/main armhf iproute2 armhf 6.1.0-1ubuntu5 [1060 kB] 26042s Get:167 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libelf1t64 armhf 0.190-1.1build2 [49.9 kB] 26042s Get:168 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lsof armhf 4.95.0-1build2 [248 kB] 26042s Get:169 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnsl2 armhf 1.3.0-3build2 [36.5 kB] 26042s Get:170 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc-common all 1.3.4+ds-1.1 [8018 B] 26042s Get:171 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libtirpc3t64 armhf 1.3.4+ds-1.1 [73.2 kB] 26042s Get:172 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-utils3 armhf 3.1.0-1build1 [16.9 kB] 26042s Get:173 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-fs3 armhf 3.1.0-1build1 [34.4 kB] 26042s Get:174 http://ftpmaster.internal/ubuntu noble-proposed/main armhf logsave armhf 1.47.0-2.4~exp1ubuntu2 [21.9 kB] 26042s Get:175 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-minimal armhf 1.536build1 [10.7 kB] 26042s Get:176 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools all 0.142ubuntu22 [9056 B] 26042s Get:177 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-core all 0.142ubuntu22 [50.0 kB] 26042s Get:178 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs-l10n all 1.47.0-2.4~exp1ubuntu2 [5996 B] 26042s Get:179 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libext2fs2t64 armhf 1.47.0-2.4~exp1ubuntu2 [201 kB] 26042s Get:180 http://ftpmaster.internal/ubuntu noble-proposed/main armhf e2fsprogs armhf 1.47.0-2.4~exp1ubuntu2 [571 kB] 26042s Get:181 http://ftpmaster.internal/ubuntu noble-proposed/main armhf btrfs-progs armhf 6.6.3-1.1build1 [852 kB] 26043s Get:182 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dhcpcd-base armhf 1:10.0.6-1ubuntu2 [186 kB] 26043s Get:183 http://ftpmaster.internal/ubuntu noble-proposed/main armhf eject armhf 2.39.3-9ubuntu2 [43.2 kB] 26043s Get:184 http://ftpmaster.internal/ubuntu noble-proposed/main armhf locales all 2.39-0ubuntu6 [4232 kB] 26044s Get:185 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnetplan1 armhf 1.0-1 [113 kB] 26044s Get:186 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-netplan armhf 1.0-1 [22.5 kB] 26044s Get:187 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan-generator armhf 1.0-1 [58.7 kB] 26044s Get:188 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dbus armhf 1.3.2-5build2 [94.7 kB] 26044s Get:189 http://ftpmaster.internal/ubuntu noble-proposed/main armhf netplan.io armhf 1.0-1 [64.3 kB] 26044s Get:190 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-tiny armhf 2:9.1.0016-1ubuntu5 [665 kB] 26044s Get:191 http://ftpmaster.internal/ubuntu noble-proposed/main armhf vim-common all 2:9.1.0016-1ubuntu5 [385 kB] 26044s Get:192 http://ftpmaster.internal/ubuntu noble-proposed/main armhf initramfs-tools-bin armhf 0.142ubuntu22 [20.1 kB] 26044s Get:193 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libreiserfscore0t64 armhf 1:3.6.27-7.1 [66.2 kB] 26044s Get:194 http://ftpmaster.internal/ubuntu noble-proposed/main armhf file armhf 1:5.45-3 [21.1 kB] 26044s Get:195 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic-mgc armhf 1:5.45-3 [307 kB] 26044s Get:196 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libmagic1t64 armhf 1:5.45-3 [81.4 kB] 26044s Get:197 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-nvme3 armhf 3.1.0-1build1 [17.5 kB] 26044s Get:198 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libnvme1t64 armhf 1.8-3 [67.5 kB] 26044s Get:199 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libplymouth5 armhf 24.004.60-1ubuntu5 [140 kB] 26044s Get:200 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpng16-16t64 armhf 1.6.43-3 [166 kB] 26044s Get:201 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-host armhf 1:9.18.24-0ubuntu3 [47.4 kB] 26044s Get:202 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-dnsutils armhf 1:9.18.24-0ubuntu3 [149 kB] 26045s Get:203 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bind9-libs armhf 1:9.18.24-0ubuntu3 [1148 kB] 26045s Get:204 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libuv1t64 armhf 1.48.0-1.1 [82.9 kB] 26045s Get:205 http://ftpmaster.internal/ubuntu noble-proposed/main armhf uuid-runtime armhf 2.39.3-9ubuntu2 [41.7 kB] 26045s Get:206 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdebconfclient0 armhf 0.271ubuntu2 [10.8 kB] 26045s Get:207 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage-common all 3.5-1build4 [10.1 kB] 26045s Get:208 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsemanage2 armhf 3.5-1build4 [84.5 kB] 26045s Get:209 http://ftpmaster.internal/ubuntu noble-proposed/main armhf install-info armhf 7.1-3build1 [60.5 kB] 26045s Get:210 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-base armhf 13.2.0-19ubuntu1 [47.7 kB] 26045s Get:211 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libss2 armhf 1.47.0-2.4~exp1ubuntu2 [14.7 kB] 26045s Get:212 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dmsetup armhf 2:1.02.185-3ubuntu2 [81.1 kB] 26045s Get:213 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-girepository-2.0 armhf 1.79.1-1ubuntu6 [24.8 kB] 26045s Get:214 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gir1.2-glib-2.0 armhf 2.79.3-3ubuntu5 [182 kB] 26045s Get:215 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgirepository-1.0-1 armhf 1.79.1-1ubuntu6 [106 kB] 26045s Get:216 http://ftpmaster.internal/ubuntu noble-proposed/main armhf krb5-locales all 1.20.1-5.1build3 [13.8 kB] 26045s Get:217 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbsd0 armhf 0.12.1-1 [36.6 kB] 26045s Get:218 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libglib2.0-data all 2.79.3-3ubuntu5 [46.6 kB] 26046s Get:219 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libslang2 armhf 2.3.3-3build1 [478 kB] 26046s Get:220 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-gi armhf 3.47.0-3build1 [219 kB] 26046s Get:221 http://ftpmaster.internal/ubuntu noble/main armhf xdg-user-dirs armhf 0.18-1 [17.3 kB] 26046s Get:222 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xxd armhf 2:9.1.0016-1ubuntu5 [62.4 kB] 26046s Get:223 http://ftpmaster.internal/ubuntu noble-proposed/main armhf apparmor armhf 4.0.0-beta3-0ubuntu2 [562 kB] 26046s Get:224 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ftp all 20230507-2build1 [4724 B] 26046s Get:225 http://ftpmaster.internal/ubuntu noble-proposed/main armhf inetutils-telnet armhf 2:2.5-3ubuntu3 [90.7 kB] 26046s Get:226 http://ftpmaster.internal/ubuntu noble-proposed/main armhf info armhf 7.1-3build1 [127 kB] 26046s Get:227 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libxmuu1 armhf 2:1.1.3-3build1 [8004 B] 26046s Get:228 http://ftpmaster.internal/ubuntu noble-proposed/main armhf lshw armhf 02.19.git.2021.06.19.996aaad9c7-2build2 [310 kB] 26046s Get:229 http://ftpmaster.internal/ubuntu noble-proposed/main armhf mtr-tiny armhf 0.95-1.1build1 [51.7 kB] 26046s Get:230 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth-theme-ubuntu-text armhf 24.004.60-1ubuntu5 [9826 B] 26046s Get:231 http://ftpmaster.internal/ubuntu noble-proposed/main armhf plymouth armhf 24.004.60-1ubuntu5 [143 kB] 26046s Get:232 http://ftpmaster.internal/ubuntu noble-proposed/main armhf psmisc armhf 23.7-1 [176 kB] 26046s Get:233 http://ftpmaster.internal/ubuntu noble-proposed/main armhf telnet all 0.17+2.5-3ubuntu3 [3682 B] 26046s Get:234 http://ftpmaster.internal/ubuntu noble-proposed/main armhf xz-utils armhf 5.6.0-0.2 [271 kB] 26046s Get:235 http://ftpmaster.internal/ubuntu noble/main armhf ubuntu-standard armhf 1.536build1 [10.7 kB] 26046s Get:236 http://ftpmaster.internal/ubuntu noble-proposed/main armhf usb.ids all 2024.03.18-1 [223 kB] 26046s Get:237 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libctf-nobfd0 armhf 2.42-4ubuntu1 [88.0 kB] 26046s Get:238 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libctf0 armhf 2.42-4ubuntu1 [87.7 kB] 26046s Get:239 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils-arm-linux-gnueabihf armhf 2.42-4ubuntu1 [2925 kB] 26047s Get:240 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libbinutils armhf 2.42-4ubuntu1 [464 kB] 26047s Get:241 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils armhf 2.42-4ubuntu1 [3078 B] 26047s Get:242 http://ftpmaster.internal/ubuntu noble-proposed/main armhf binutils-common armhf 2.42-4ubuntu1 [217 kB] 26047s Get:243 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsframe1 armhf 2.42-4ubuntu1 [13.1 kB] 26047s Get:244 http://ftpmaster.internal/ubuntu noble-proposed/main armhf bolt armhf 0.9.6-2build1 [138 kB] 26047s Get:245 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cryptsetup-bin armhf 2:2.7.0-1ubuntu2 [214 kB] 26047s Get:246 http://ftpmaster.internal/ubuntu noble-proposed/main armhf dpkg-dev all 1.22.6ubuntu4 [1074 kB] 26047s Get:247 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libdpkg-perl all 1.22.6ubuntu4 [268 kB] 26047s Get:248 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gnupg-l10n all 2.4.4-2ubuntu15 [65.8 kB] 26047s Get:249 http://ftpmaster.internal/ubuntu noble-proposed/main armhf ibverbs-providers armhf 50.0-2build1 [27.4 kB] 26047s Get:250 http://ftpmaster.internal/ubuntu noble-proposed/main armhf jq armhf 1.7.1-3 [65.2 kB] 26047s Get:251 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjq1 armhf 1.7.1-3 [156 kB] 26047s Get:252 http://ftpmaster.internal/ubuntu noble/main armhf libatm1t64 armhf 1:2.5.1-5.1 [20.0 kB] 26047s Get:253 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-crypto3 armhf 3.1.0-1build1 [20.3 kB] 26047s Get:254 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-loop3 armhf 3.1.0-1build1 [6502 B] 26047s Get:255 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-mdraid3 armhf 3.1.0-1build1 [13.3 kB] 26047s Get:256 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-part3 armhf 3.1.0-1build1 [16.4 kB] 26047s Get:257 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev-swap3 armhf 3.1.0-1build1 [8894 B] 26047s Get:258 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libblockdev3 armhf 3.1.0-1build1 [42.9 kB] 26047s Get:259 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libevent-core-2.1-7 armhf 2.1.12-stable-9build1 [82.3 kB] 26047s Get:260 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libftdi1-2 armhf 1.5-6build4 [25.7 kB] 26047s Get:261 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libldap-common all 2.6.7+dfsg-1~exp1ubuntu6 [31.3 kB] 26047s Get:262 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libsasl2-modules armhf 2.1.28+dfsg1-4ubuntu4 [61.4 kB] 26047s Get:263 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-lib2to3 all 3.12.2-3ubuntu2 [79.3 kB] 26047s Get:264 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-markupsafe armhf 2.1.5-1build1 [12.1 kB] 26047s Get:265 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-openssl all 24.0.0-4 [47.9 kB] 26047s Get:266 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-pyrsistent armhf 0.20.0-1build1 [53.0 kB] 26047s Get:267 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-typing-extensions all 4.10.0-1 [60.7 kB] 26047s Get:268 http://ftpmaster.internal/ubuntu noble-proposed/main armhf kpartx armhf 0.9.4-5ubuntu5 [31.4 kB] 26052s Preconfiguring packages ... 26054s Fetched 106 MB in 44s (2433 kB/s) 26054s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 26054s Preparing to unpack .../bsdutils_1%3a2.39.3-9ubuntu2_armhf.deb ... 26054s Unpacking bsdutils (1:2.39.3-9ubuntu2) over (1:2.39.3-6ubuntu2) ... 26054s Setting up bsdutils (1:2.39.3-9ubuntu2) ... 26054s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 26054s Preparing to unpack .../gcc-14-base_14-20240315-1ubuntu1_armhf.deb ... 26054s Unpacking gcc-14-base:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 26054s Setting up gcc-14-base:armhf (14-20240315-1ubuntu1) ... 26054s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 26054s Preparing to unpack .../libgcc-s1_14-20240315-1ubuntu1_armhf.deb ... 26054s Unpacking libgcc-s1:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 26054s Setting up libgcc-s1:armhf (14-20240315-1ubuntu1) ... 26055s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 26055s Preparing to unpack .../libstdc++6_14-20240315-1ubuntu1_armhf.deb ... 26055s Unpacking libstdc++6:armhf (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 26055s Setting up libstdc++6:armhf (14-20240315-1ubuntu1) ... 26055s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 26055s Preparing to unpack .../libc6_2.39-0ubuntu6_armhf.deb ... 26056s Unpacking libc6:armhf (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 26056s Setting up libc6:armhf (2.39-0ubuntu6) ... 26058s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 26058s Preparing to unpack .../openssl_3.0.13-0ubuntu2_armhf.deb ... 26058s Unpacking openssl (3.0.13-0ubuntu2) over (3.0.10-1ubuntu4) ... 26058s Preparing to unpack .../zlib1g_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 26058s Unpacking zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) over (1:1.3.dfsg-3ubuntu1) ... 26058s Setting up zlib1g:armhf (1:1.3.dfsg-3.1ubuntu1) ... 26058s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58620 files and directories currently installed.) 26058s Preparing to unpack .../0-librtmp1_2.4+20151223.gitfa8646d.1-2build6_armhf.deb ... 26058s Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) over (2.4+20151223.gitfa8646d.1-2build4) ... 26058s Preparing to unpack .../1-python3.12_3.12.2-4build3_armhf.deb ... 26059s Unpacking python3.12 (3.12.2-4build3) over (3.12.2-1) ... 26059s Preparing to unpack .../2-libexpat1_2.6.1-2_armhf.deb ... 26059s Unpacking libexpat1:armhf (2.6.1-2) over (2.6.0-1) ... 26059s Preparing to unpack .../3-python3.12-minimal_3.12.2-4build3_armhf.deb ... 26059s Unpacking python3.12-minimal (3.12.2-4build3) over (3.12.2-1) ... 26059s Preparing to unpack .../4-libpython3.12-stdlib_3.12.2-4build3_armhf.deb ... 26060s Unpacking libpython3.12-stdlib:armhf (3.12.2-4build3) over (3.12.2-1) ... 26060s Preparing to unpack .../5-libpython3.12-minimal_3.12.2-4build3_armhf.deb ... 26060s Unpacking libpython3.12-minimal:armhf (3.12.2-4build3) over (3.12.2-1) ... 26061s Preparing to unpack .../6-parted_3.6-3.1build2_armhf.deb ... 26061s Unpacking parted (3.6-3.1build2) over (3.6-3) ... 26062s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58618 files and directories currently installed.) 26062s Removing libparted2:armhf (3.6-3) ... 26062s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26062s Preparing to unpack .../libblkid1_2.39.3-9ubuntu2_armhf.deb ... 26062s Unpacking libblkid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26062s Setting up libblkid1:armhf (2.39.3-9ubuntu2) ... 26062s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26062s Preparing to unpack .../libselinux1_3.5-2build3_armhf.deb ... 26062s Unpacking libselinux1:armhf (3.5-2build3) over (3.5-2build1) ... 26062s Setting up libselinux1:armhf (3.5-2build3) ... 26062s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26062s Preparing to unpack .../systemd-dev_255.4-1ubuntu5_all.deb ... 26062s Unpacking systemd-dev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26063s Preparing to unpack .../systemd-timesyncd_255.4-1ubuntu5_armhf.deb ... 26063s Unpacking systemd-timesyncd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26063s Preparing to unpack .../dbus-session-bus-common_1.14.10-4ubuntu2_all.deb ... 26063s Unpacking dbus-session-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 26063s Preparing to unpack .../libaudit-common_1%3a3.1.2-2.1_all.deb ... 26063s Unpacking libaudit-common (1:3.1.2-2.1) over (1:3.1.2-2) ... 26063s Setting up libaudit-common (1:3.1.2-2.1) ... 26063s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26063s Preparing to unpack .../libcap-ng0_0.8.4-2build1_armhf.deb ... 26063s Unpacking libcap-ng0:armhf (0.8.4-2build1) over (0.8.4-2) ... 26063s Setting up libcap-ng0:armhf (0.8.4-2build1) ... 26063s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26063s Preparing to unpack .../libaudit1_1%3a3.1.2-2.1_armhf.deb ... 26063s Unpacking libaudit1:armhf (1:3.1.2-2.1) over (1:3.1.2-2) ... 26064s Setting up libaudit1:armhf (1:3.1.2-2.1) ... 26064s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26064s Preparing to unpack .../libpam0g_1.5.3-5ubuntu3_armhf.deb ... 26064s Unpacking libpam0g:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 26064s Setting up libpam0g:armhf (1.5.3-5ubuntu3) ... 26065s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26065s Preparing to unpack .../liblzma5_5.6.0-0.2_armhf.deb ... 26065s Unpacking liblzma5:armhf (5.6.0-0.2) over (5.4.5-0.3) ... 26065s Setting up liblzma5:armhf (5.6.0-0.2) ... 26065s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26065s Preparing to unpack .../libldap2_2.6.7+dfsg-1~exp1ubuntu6_armhf.deb ... 26065s Unpacking libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 26066s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58612 files and directories currently installed.) 26066s Removing udisks2 (2.10.1-1ubuntu2) ... 26067s dpkg: libglib2.0-0:armhf: dependency problems, but removing anyway as you requested: 26067s shared-mime-info depends on libglib2.0-0 (>= 2.75.3). 26067s python3-gi depends on libglib2.0-0 (>= 2.77.0). 26067s python3-dbus depends on libglib2.0-0 (>= 2.16.0). 26067s netplan.io depends on libglib2.0-0 (>= 2.70.0). 26067s netplan-generator depends on libglib2.0-0 (>= 2.70.0). 26067s libxmlb2:armhf depends on libglib2.0-0 (>= 2.54.0). 26067s libvolume-key1:armhf depends on libglib2.0-0 (>= 2.18.0). 26067s libudisks2-0:armhf depends on libglib2.0-0 (>= 2.75.3). 26067s libqrtr-glib0:armhf depends on libglib2.0-0 (>= 2.56). 26067s libqmi-proxy depends on libglib2.0-0 (>= 2.30.0). 26067s libqmi-glib5:armhf depends on libglib2.0-0 (>= 2.54.0). 26067s libpolkit-gobject-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 26067s libpolkit-agent-1-0:armhf depends on libglib2.0-0 (>= 2.38.0). 26067s libnetplan0:armhf depends on libglib2.0-0 (>= 2.75.3). 26067s libmm-glib0:armhf depends on libglib2.0-0 (>= 2.62.0). 26067s libmbim-proxy depends on libglib2.0-0 (>= 2.56). 26067s libmbim-glib4:armhf depends on libglib2.0-0 (>= 2.56). 26067s libjson-glib-1.0-0:armhf depends on libglib2.0-0 (>= 2.75.3). 26067s libjcat1:armhf depends on libglib2.0-0 (>= 2.75.3). 26067s libgusb2:armhf depends on libglib2.0-0 (>= 2.75.3). 26067s libgudev-1.0-0:armhf depends on libglib2.0-0 (>= 2.38.0). 26067s libgirepository-1.0-1:armhf depends on libglib2.0-0 (>= 2.79.0). 26067s libfwupd2:armhf depends on libglib2.0-0 (>= 2.79.0). 26067s libblockdev3:armhf depends on libglib2.0-0 (>= 2.42.2). 26067s libblockdev-utils3:armhf depends on libglib2.0-0 (>= 2.75.3). 26067s libblockdev-swap3:armhf depends on libglib2.0-0 (>= 2.42.2). 26067s libblockdev-part3:armhf depends on libglib2.0-0 (>= 2.42.2). 26067s libblockdev-nvme3:armhf depends on libglib2.0-0 (>= 2.42.2). 26067s libblockdev-mdraid3:armhf depends on libglib2.0-0 (>= 2.42.2). 26067s libblockdev-loop3:armhf depends on libglib2.0-0 (>= 2.42.2). 26067s libblockdev-fs3:armhf depends on libglib2.0-0 (>= 2.42.2). 26067s libblockdev-crypto3:armhf depends on libglib2.0-0 (>= 2.42.2). 26067s gir1.2-glib-2.0:armhf depends on libglib2.0-0 (= 2.79.2-1~ubuntu1). 26067s fwupd depends on libglib2.0-0 (>= 2.79.0). 26067s bolt depends on libglib2.0-0 (>= 2.56.0). 26067s 26067s Removing libglib2.0-0:armhf (2.79.2-1~ubuntu1) ... 26067s Selecting previously unselected package libglib2.0-0t64:armhf. 26068s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58560 files and directories currently installed.) 26068s Preparing to unpack .../libglib2.0-0t64_2.79.3-3ubuntu5_armhf.deb ... 26068s libglib2.0-0t64.preinst: Removing /var/lib/dpkg/info/libglib2.0-0:armhf.postrm to avoid loss of /usr/share/glib-2.0/schemas/gschemas.compiled... 26068s removed '/var/lib/dpkg/info/libglib2.0-0:armhf.postrm' 26068s Unpacking libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 26068s Preparing to unpack .../libvolume-key1_0.3.12-7build1_armhf.deb ... 26068s Unpacking libvolume-key1:armhf (0.3.12-7build1) over (0.3.12-5build2) ... 26068s dpkg: libgpgme11:armhf: dependency problems, but removing anyway as you requested: 26068s libjcat1:armhf depends on libgpgme11 (>= 1.2.0). 26068s 26068s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58585 files and directories currently installed.) 26068s Removing libgpgme11:armhf (1.18.0-4ubuntu1) ... 26068s Selecting previously unselected package libgpgme11t64:armhf. 26069s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58579 files and directories currently installed.) 26069s Preparing to unpack .../libgpgme11t64_1.18.0-4.1ubuntu3_armhf.deb ... 26069s Unpacking libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 26069s Preparing to unpack .../libjcat1_0.2.0-2build2_armhf.deb ... 26069s Unpacking libjcat1:armhf (0.2.0-2build2) over (0.2.0-2) ... 26069s dpkg: libarchive13:armhf: dependency problems, but removing anyway as you requested: 26069s fwupd depends on libarchive13 (>= 3.2.1). 26069s 26069s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58586 files and directories currently installed.) 26069s Removing libarchive13:armhf (3.7.2-1ubuntu2) ... 26069s Selecting previously unselected package libarchive13t64:armhf. 26069s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58580 files and directories currently installed.) 26069s Preparing to unpack .../00-libarchive13t64_3.7.2-1.1ubuntu1_armhf.deb ... 26069s Unpacking libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 26070s Preparing to unpack .../01-fwupd_1.9.15-1_armhf.deb ... 26070s Unpacking fwupd (1.9.15-1) over (1.9.14-1) ... 26071s Preparing to unpack .../02-ubuntu-pro-client-l10n_31.2_armhf.deb ... 26071s Unpacking ubuntu-pro-client-l10n (31.2) over (31.1) ... 26071s Preparing to unpack .../03-ubuntu-pro-client_31.2_armhf.deb ... 26073s Unpacking ubuntu-pro-client (31.2) over (31.1) ... 26073s Preparing to unpack .../04-python3.11_3.11.8-1build4_armhf.deb ... 26073s Unpacking python3.11 (3.11.8-1build4) over (3.11.8-1) ... 26074s Preparing to unpack .../05-python3.11-minimal_3.11.8-1build4_armhf.deb ... 26074s Unpacking python3.11-minimal (3.11.8-1build4) over (3.11.8-1) ... 26074s Preparing to unpack .../06-libpython3.11-minimal_3.11.8-1build4_armhf.deb ... 26074s Unpacking libpython3.11-minimal:armhf (3.11.8-1build4) over (3.11.8-1) ... 26075s Preparing to unpack .../07-libsasl2-modules-db_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 26075s Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 26075s Preparing to unpack .../08-libtext-iconv-perl_1.7-8build2_armhf.deb ... 26075s Unpacking libtext-iconv-perl:armhf (1.7-8build2) over (1.7-8build1) ... 26075s Preparing to unpack .../09-libtext-charwidth-perl_0.04-11build2_armhf.deb ... 26075s Unpacking libtext-charwidth-perl:armhf (0.04-11build2) over (0.04-11build1) ... 26075s Preparing to unpack .../10-perl-base_5.38.2-3.2_armhf.deb ... 26075s Unpacking perl-base (5.38.2-3.2) over (5.38.2-3) ... 26076s Setting up perl-base (5.38.2-3.2) ... 26077s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 26077s Preparing to unpack .../liblocale-gettext-perl_1.07-6ubuntu3_armhf.deb ... 26077s Unpacking liblocale-gettext-perl (1.07-6ubuntu3) over (1.07-6build1) ... 26077s Preparing to unpack .../perl-modules-5.38_5.38.2-3.2_all.deb ... 26077s Unpacking perl-modules-5.38 (5.38.2-3.2) over (5.38.2-3) ... 26079s Preparing to unpack .../python3-gdbm_3.12.2-3ubuntu2_armhf.deb ... 26079s Unpacking python3-gdbm:armhf (3.12.2-3ubuntu2) over (3.11.5-1) ... 26079s Preparing to unpack .../man-db_2.12.0-3build4_armhf.deb ... 26079s Unpacking man-db (2.12.0-3build4) over (2.12.0-3) ... 26079s dpkg: libgdbm-compat4:armhf: dependency problems, but removing anyway as you requested: 26079s libperl5.38:armhf depends on libgdbm-compat4 (>= 1.18-3). 26079s 26079s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 26079s Removing libgdbm-compat4:armhf (1.23-5) ... 26079s dpkg: libgdbm6:armhf: dependency problems, but removing anyway as you requested: 26079s libperl5.38:armhf depends on libgdbm6 (>= 1.21). 26079s 26080s Removing libgdbm6:armhf (1.23-5) ... 26080s Selecting previously unselected package libgdbm6t64:armhf. 26080s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58577 files and directories currently installed.) 26080s Preparing to unpack .../libgdbm6t64_1.23-5.1_armhf.deb ... 26080s Unpacking libgdbm6t64:armhf (1.23-5.1) ... 26080s Selecting previously unselected package libgdbm-compat4t64:armhf. 26080s Preparing to unpack .../libgdbm-compat4t64_1.23-5.1_armhf.deb ... 26080s Unpacking libgdbm-compat4t64:armhf (1.23-5.1) ... 26080s dpkg: libperl5.38:armhf: dependency problems, but removing anyway as you requested: 26080s perl depends on libperl5.38 (= 5.38.2-3). 26080s 26080s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 26080s Removing libperl5.38:armhf (5.38.2-3) ... 26080s Selecting previously unselected package libperl5.38t64:armhf. 26081s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58070 files and directories currently installed.) 26081s Preparing to unpack .../libperl5.38t64_5.38.2-3.2_armhf.deb ... 26081s Unpacking libperl5.38t64:armhf (5.38.2-3.2) ... 26081s Preparing to unpack .../perl_5.38.2-3.2_armhf.deb ... 26081s Unpacking perl (5.38.2-3.2) over (5.38.2-3) ... 26082s dpkg: libdb5.3:armhf: dependency problems, but removing anyway as you requested: 26082s libpython3.11-stdlib:armhf depends on libdb5.3. 26082s libpam-modules:armhf depends on libdb5.3. 26082s iproute2 depends on libdb5.3. 26082s apt-utils depends on libdb5.3. 26082s 26082s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58589 files and directories currently installed.) 26082s Removing libdb5.3:armhf (5.3.28+dfsg2-4) ... 26082s Selecting previously unselected package libdb5.3t64:armhf. 26082s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58583 files and directories currently installed.) 26082s Preparing to unpack .../libdb5.3t64_5.3.28+dfsg2-5build1_armhf.deb ... 26082s Unpacking libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 26082s Preparing to unpack .../libpython3.11-stdlib_3.11.8-1build4_armhf.deb ... 26082s Unpacking libpython3.11-stdlib:armhf (3.11.8-1build4) over (3.11.8-1) ... 26083s Preparing to unpack .../keyboxd_2.4.4-2ubuntu15_armhf.deb ... 26083s Unpacking keyboxd (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26083s dpkg: libnpth0:armhf: dependency problems, but removing anyway as you requested: 26083s gpgv depends on libnpth0 (>= 0.90). 26083s gpgsm depends on libnpth0 (>= 0.90). 26083s gpg-agent depends on libnpth0 (>= 0.90). 26083s gpg depends on libnpth0 (>= 0.90). 26083s dirmngr depends on libnpth0 (>= 0.90). 26083s 26083s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58587 files and directories currently installed.) 26083s Removing libnpth0:armhf (1.6-3build2) ... 26083s Selecting previously unselected package libnpth0t64:armhf. 26083s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58582 files and directories currently installed.) 26083s Preparing to unpack .../libnpth0t64_1.6-3.1_armhf.deb ... 26083s Unpacking libnpth0t64:armhf (1.6-3.1) ... 26083s Setting up libnpth0t64:armhf (1.6-3.1) ... 26083s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 26083s Preparing to unpack .../gpgv_2.4.4-2ubuntu15_armhf.deb ... 26083s Unpacking gpgv (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26084s Setting up gpgv (2.4.4-2ubuntu15) ... 26084s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 26084s Preparing to unpack .../gpg_2.4.4-2ubuntu15_armhf.deb ... 26084s Unpacking gpg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26084s Preparing to unpack .../gpg-wks-client_2.4.4-2ubuntu15_armhf.deb ... 26084s Unpacking gpg-wks-client (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26084s Preparing to unpack .../gnupg-utils_2.4.4-2ubuntu15_armhf.deb ... 26084s Unpacking gnupg-utils (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26084s Preparing to unpack .../gpg-agent_2.4.4-2ubuntu15_armhf.deb ... 26084s Unpacking gpg-agent (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26084s Preparing to unpack .../gpgsm_2.4.4-2ubuntu15_armhf.deb ... 26084s Unpacking gpgsm (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26084s dpkg: libreadline8:armhf: dependency problems, but removing anyway as you requested: 26084s gpgconf depends on libreadline8 (>= 6.0). 26084s gawk depends on libreadline8 (>= 6.0). 26084s fdisk depends on libreadline8 (>= 6.0). 26084s 26085s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 26085s Removing libreadline8:armhf (8.2-3) ... 26085s Selecting previously unselected package libreadline8t64:armhf. 26085s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58576 files and directories currently installed.) 26085s Preparing to unpack .../libreadline8t64_8.2-3.1_armhf.deb ... 26085s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8 to /lib/arm-linux-gnueabihf/libhistory.so.8.usr-is-merged by libreadline8t64' 26085s Adding 'diversion of /lib/arm-linux-gnueabihf/libhistory.so.8.2 to /lib/arm-linux-gnueabihf/libhistory.so.8.2.usr-is-merged by libreadline8t64' 26085s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8 to /lib/arm-linux-gnueabihf/libreadline.so.8.usr-is-merged by libreadline8t64' 26085s Adding 'diversion of /lib/arm-linux-gnueabihf/libreadline.so.8.2 to /lib/arm-linux-gnueabihf/libreadline.so.8.2.usr-is-merged by libreadline8t64' 26085s Unpacking libreadline8t64:armhf (8.2-3.1) ... 26085s Setting up libreadline8t64:armhf (8.2-3.1) ... 26085s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 26085s Preparing to unpack .../0-gawk_1%3a5.2.1-2build2_armhf.deb ... 26085s Unpacking gawk (1:5.2.1-2build2) over (1:5.2.1-2) ... 26086s Preparing to unpack .../1-fdisk_2.39.3-9ubuntu2_armhf.deb ... 26086s Unpacking fdisk (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26086s Preparing to unpack .../2-gpgconf_2.4.4-2ubuntu15_armhf.deb ... 26086s Unpacking gpgconf (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26086s Preparing to unpack .../3-dirmngr_2.4.4-2ubuntu15_armhf.deb ... 26086s Unpacking dirmngr (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26086s Preparing to unpack .../4-gnupg_2.4.4-2ubuntu15_all.deb ... 26086s Unpacking gnupg (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26087s Preparing to unpack .../5-python3-apt_2.7.6build1_armhf.deb ... 26087s Unpacking python3-apt (2.7.6build1) over (2.7.6) ... 26087s Preparing to unpack .../6-apt-utils_2.7.13ubuntu1_armhf.deb ... 26087s Unpacking apt-utils (2.7.13ubuntu1) over (2.7.12) ... 26087s dpkg: libapt-pkg6.0:armhf: dependency problems, but removing anyway as you requested: 26087s apt depends on libapt-pkg6.0 (>= 2.7.12). 26087s 26087s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58594 files and directories currently installed.) 26087s Removing libapt-pkg6.0:armhf (2.7.12) ... 26087s dpkg: libnettle8:armhf: dependency problems, but removing anyway as you requested: 26087s libhogweed6:armhf depends on libnettle8. 26087s libgnutls30:armhf depends on libnettle8 (>= 3.9~). 26087s libcurl3-gnutls:armhf depends on libnettle8. 26087s 26087s Removing libnettle8:armhf (3.9.1-2) ... 26087s Selecting previously unselected package libapt-pkg6.0t64:armhf. 26087s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58538 files and directories currently installed.) 26087s Preparing to unpack .../libapt-pkg6.0t64_2.7.13ubuntu1_armhf.deb ... 26087s Unpacking libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 26088s Setting up libapt-pkg6.0t64:armhf (2.7.13ubuntu1) ... 26088s Selecting previously unselected package libnettle8t64:armhf. 26088s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 26088s Preparing to unpack .../libnettle8t64_3.9.1-2.2_armhf.deb ... 26088s Unpacking libnettle8t64:armhf (3.9.1-2.2) ... 26088s Setting up libnettle8t64:armhf (3.9.1-2.2) ... 26088s dpkg: libhogweed6:armhf: dependency problems, but removing anyway as you requested: 26088s libgnutls30:armhf depends on libhogweed6 (>= 3.6). 26088s 26088s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58596 files and directories currently installed.) 26088s Removing libhogweed6:armhf (3.9.1-2) ... 26088s Selecting previously unselected package libhogweed6t64:armhf. 26088s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58591 files and directories currently installed.) 26088s Preparing to unpack .../libhogweed6t64_3.9.1-2.2_armhf.deb ... 26088s Unpacking libhogweed6t64:armhf (3.9.1-2.2) ... 26088s Setting up libhogweed6t64:armhf (3.9.1-2.2) ... 26088s dpkg: libgnutls30:armhf: dependency problems, but removing anyway as you requested: 26088s libcurl3-gnutls:armhf depends on libgnutls30 (>= 3.8.2). 26088s apt depends on libgnutls30 (>= 3.8.1). 26088s 26088s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58597 files and directories currently installed.) 26088s Removing libgnutls30:armhf (3.8.3-1ubuntu1) ... 26089s Selecting previously unselected package libgnutls30t64:armhf. 26089s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58588 files and directories currently installed.) 26089s Preparing to unpack .../libgnutls30t64_3.8.3-1.1ubuntu2_armhf.deb ... 26089s Unpacking libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 26089s Setting up libgnutls30t64:armhf (3.8.3-1.1ubuntu2) ... 26089s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 26089s Preparing to unpack .../apt_2.7.13ubuntu1_armhf.deb ... 26089s Unpacking apt (2.7.13ubuntu1) over (2.7.12) ... 26090s Setting up apt (2.7.13ubuntu1) ... 26091s dpkg: libcurl3-gnutls:armhf: dependency problems, but removing anyway as you requested: 26091s libfwupd2:armhf depends on libcurl3-gnutls (>= 7.63.0). 26091s 26091s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 26091s Removing libcurl3-gnutls:armhf (8.5.0-2ubuntu2) ... 26091s Selecting previously unselected package libcurl3t64-gnutls:armhf. 26092s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58609 files and directories currently installed.) 26092s Preparing to unpack .../libcurl3t64-gnutls_8.5.0-2ubuntu7_armhf.deb ... 26092s Unpacking libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 26092s Preparing to unpack .../libfwupd2_1.9.15-1_armhf.deb ... 26092s Unpacking libfwupd2:armhf (1.9.15-1) over (1.9.14-1) ... 26092s dpkg: libpsl5:armhf: dependency problems, but removing anyway as you requested: 26092s wget depends on libpsl5 (>= 0.16.0). 26092s libcurl4:armhf depends on libpsl5 (>= 0.16.0). 26092s 26092s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58616 files and directories currently installed.) 26092s Removing libpsl5:armhf (0.21.2-1build1) ... 26092s Selecting previously unselected package libpsl5t64:armhf. 26092s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58611 files and directories currently installed.) 26092s Preparing to unpack .../libpsl5t64_0.21.2-1.1_armhf.deb ... 26092s Unpacking libpsl5t64:armhf (0.21.2-1.1) ... 26092s Preparing to unpack .../wget_1.21.4-1ubuntu2_armhf.deb ... 26092s Unpacking wget (1.21.4-1ubuntu2) over (1.21.4-1ubuntu1) ... 26093s Preparing to unpack .../tnftp_20230507-2build1_armhf.deb ... 26093s Unpacking tnftp (20230507-2build1) over (20230507-2) ... 26093s dpkg: libpcap0.8:armhf: dependency problems, but removing anyway as you requested: 26093s tcpdump depends on libpcap0.8 (>= 1.9.1). 26093s 26093s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58617 files and directories currently installed.) 26093s Removing libpcap0.8:armhf (1.10.4-4ubuntu3) ... 26093s Selecting previously unselected package libpcap0.8t64:armhf. 26093s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58606 files and directories currently installed.) 26093s Preparing to unpack .../00-libpcap0.8t64_1.10.4-4.1ubuntu1_armhf.deb ... 26093s Unpacking libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 26093s Preparing to unpack .../01-tcpdump_4.99.4-3ubuntu2_armhf.deb ... 26093s Unpacking tcpdump (4.99.4-3ubuntu2) over (4.99.4-3ubuntu1) ... 26094s Preparing to unpack .../02-libsystemd-shared_255.4-1ubuntu5_armhf.deb ... 26094s Unpacking libsystemd-shared:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26094s Preparing to unpack .../03-systemd-resolved_255.4-1ubuntu5_armhf.deb ... 26094s Unpacking systemd-resolved (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26094s Preparing to unpack .../04-sudo_1.9.15p5-3ubuntu3_armhf.deb ... 26094s Unpacking sudo (1.9.15p5-3ubuntu3) over (1.9.15p5-3ubuntu1) ... 26094s Preparing to unpack .../05-rsync_3.2.7-1build1_armhf.deb ... 26094s Unpacking rsync (3.2.7-1build1) over (3.2.7-1) ... 26094s Preparing to unpack .../06-python3-cryptography_41.0.7-4build2_armhf.deb ... 26095s Unpacking python3-cryptography (41.0.7-4build2) over (41.0.7-3) ... 26095s Preparing to unpack .../07-openssh-sftp-server_1%3a9.6p1-3ubuntu11_armhf.deb ... 26095s Unpacking openssh-sftp-server (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 26095s Preparing to unpack .../08-openssh-client_1%3a9.6p1-3ubuntu11_armhf.deb ... 26095s Unpacking openssh-client (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 26096s Preparing to unpack .../09-openssh-server_1%3a9.6p1-3ubuntu11_armhf.deb ... 26096s Unpacking openssh-server (1:9.6p1-3ubuntu11) over (1:9.6p1-3ubuntu2) ... 26096s Selecting previously unselected package linux-headers-6.8.0-20. 26096s Preparing to unpack .../10-linux-headers-6.8.0-20_6.8.0-20.20_all.deb ... 26096s Unpacking linux-headers-6.8.0-20 (6.8.0-20.20) ... 26112s Selecting previously unselected package linux-headers-6.8.0-20-generic. 26112s Preparing to unpack .../11-linux-headers-6.8.0-20-generic_6.8.0-20.20_armhf.deb ... 26112s Unpacking linux-headers-6.8.0-20-generic (6.8.0-20.20) ... 26118s Preparing to unpack .../12-linux-headers-generic_6.8.0-20.20+1_armhf.deb ... 26118s Unpacking linux-headers-generic (6.8.0-20.20+1) over (6.8.0-11.11+1) ... 26119s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 89769 files and directories currently installed.) 26119s Removing linux-headers-6.8.0-11-generic (6.8.0-11.11) ... 26121s dpkg: libssl3:armhf: dependency problems, but removing anyway as you requested: 26121s systemd depends on libssl3 (>= 3.0.0). 26121s libssh-4:armhf depends on libssl3 (>= 3.0.0). 26121s libsasl2-modules:armhf depends on libssl3 (>= 3.0.0). 26121s libsasl2-2:armhf depends on libssl3 (>= 3.0.0). 26121s libnvme1 depends on libssl3 (>= 3.0.0). 26121s libkrb5-3:armhf depends on libssl3 (>= 3.0.0). 26121s libkmod2:armhf depends on libssl3 (>= 3.0.0). 26121s libfido2-1:armhf depends on libssl3 (>= 3.0.0). 26121s libcurl4:armhf depends on libssl3 (>= 3.0.0). 26121s libcryptsetup12:armhf depends on libssl3 (>= 3.0.0). 26121s kmod depends on libssl3 (>= 3.0.0). 26121s dhcpcd-base depends on libssl3 (>= 3.0.0). 26121s bind9-libs:armhf depends on libssl3 (>= 3.0.0). 26121s 26121s Removing libssl3:armhf (3.0.10-1ubuntu4) ... 26121s Selecting previously unselected package libssl3t64:armhf. 26121s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78619 files and directories currently installed.) 26122s Preparing to unpack .../libssl3t64_3.0.13-0ubuntu2_armhf.deb ... 26122s Unpacking libssl3t64:armhf (3.0.13-0ubuntu2) ... 26122s Setting up libssl3t64:armhf (3.0.13-0ubuntu2) ... 26122s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 26122s Preparing to unpack .../libudev1_255.4-1ubuntu5_armhf.deb ... 26122s Unpacking libudev1:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26122s Setting up libudev1:armhf (255.4-1ubuntu5) ... 26122s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 26123s Preparing to unpack .../systemd_255.4-1ubuntu5_armhf.deb ... 26123s Unpacking systemd (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26125s Preparing to unpack .../udev_255.4-1ubuntu5_armhf.deb ... 26125s Unpacking udev (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26126s Preparing to unpack .../libsystemd0_255.4-1ubuntu5_armhf.deb ... 26126s Unpacking libsystemd0:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26126s Setting up libsystemd0:armhf (255.4-1ubuntu5) ... 26126s Setting up libsystemd-shared:armhf (255.4-1ubuntu5) ... 26126s Setting up systemd-dev (255.4-1ubuntu5) ... 26126s Setting up systemd (255.4-1ubuntu5) ... 26129s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 26129s Preparing to unpack .../systemd-sysv_255.4-1ubuntu5_armhf.deb ... 26129s Unpacking systemd-sysv (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26129s Preparing to unpack .../libnss-systemd_255.4-1ubuntu5_armhf.deb ... 26129s Unpacking libnss-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26129s Preparing to unpack .../libpam-systemd_255.4-1ubuntu5_armhf.deb ... 26129s Unpacking libpam-systemd:armhf (255.4-1ubuntu5) over (255.2-3ubuntu2) ... 26129s Preparing to unpack .../libpam-modules-bin_1.5.3-5ubuntu3_armhf.deb ... 26129s Unpacking libpam-modules-bin (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 26130s Setting up libpam-modules-bin (1.5.3-5ubuntu3) ... 26130s pam_namespace.service is a disabled or a static unit not running, not starting it. 26131s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78632 files and directories currently installed.) 26131s Preparing to unpack .../libpam-modules_1.5.3-5ubuntu3_armhf.deb ... 26131s Unpacking libpam-modules:armhf (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 26131s Setting up libpam-modules:armhf (1.5.3-5ubuntu3) ... 26131s Installing new version of config file /etc/security/namespace.init ... 26131s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 26131s Preparing to unpack .../libpam-runtime_1.5.3-5ubuntu3_all.deb ... 26131s Unpacking libpam-runtime (1.5.3-5ubuntu3) over (1.5.2-9.1ubuntu3) ... 26131s Setting up libpam-runtime (1.5.3-5ubuntu3) ... 26132s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 26132s Preparing to unpack .../0-dbus-user-session_1.14.10-4ubuntu2_armhf.deb ... 26132s Unpacking dbus-user-session (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 26132s Preparing to unpack .../1-libapparmor1_4.0.0-beta3-0ubuntu2_armhf.deb ... 26132s Unpacking libapparmor1:armhf (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 26133s Preparing to unpack .../2-dbus-bin_1.14.10-4ubuntu2_armhf.deb ... 26133s Unpacking dbus-bin (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 26133s Preparing to unpack .../3-dbus-system-bus-common_1.14.10-4ubuntu2_all.deb ... 26133s Unpacking dbus-system-bus-common (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 26133s Preparing to unpack .../4-dbus_1.14.10-4ubuntu2_armhf.deb ... 26133s Unpacking dbus (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 26133s Preparing to unpack .../5-dbus-daemon_1.14.10-4ubuntu2_armhf.deb ... 26133s Unpacking dbus-daemon (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 26133s Preparing to unpack .../6-libdbus-1-3_1.14.10-4ubuntu2_armhf.deb ... 26133s Unpacking libdbus-1-3:armhf (1.14.10-4ubuntu2) over (1.14.10-4ubuntu1) ... 26133s Preparing to unpack .../7-kmod_31+20240202-2ubuntu4_armhf.deb ... 26133s Unpacking kmod (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 26133s dpkg: warning: unable to delete old directory '/lib/modprobe.d': Directory not empty 26133s Preparing to unpack .../8-libkmod2_31+20240202-2ubuntu4_armhf.deb ... 26133s Unpacking libkmod2:armhf (31+20240202-2ubuntu4) over (30+20230601-2ubuntu1) ... 26133s Preparing to unpack .../9-libmount1_2.39.3-9ubuntu2_armhf.deb ... 26133s Unpacking libmount1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26134s Setting up libmount1:armhf (2.39.3-9ubuntu2) ... 26134s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 26134s Preparing to unpack .../libseccomp2_2.5.5-1ubuntu2_armhf.deb ... 26134s Unpacking libseccomp2:armhf (2.5.5-1ubuntu2) over (2.5.5-1ubuntu1) ... 26134s Setting up libseccomp2:armhf (2.5.5-1ubuntu2) ... 26134s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 26134s Preparing to unpack .../libuuid1_2.39.3-9ubuntu2_armhf.deb ... 26134s Unpacking libuuid1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26134s Setting up libuuid1:armhf (2.39.3-9ubuntu2) ... 26134s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78629 files and directories currently installed.) 26134s Preparing to unpack .../0-libcryptsetup12_2%3a2.7.0-1ubuntu2_armhf.deb ... 26134s Unpacking libcryptsetup12:armhf (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 26135s Preparing to unpack .../1-libfdisk1_2.39.3-9ubuntu2_armhf.deb ... 26135s Unpacking libfdisk1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26135s Preparing to unpack .../2-mount_2.39.3-9ubuntu2_armhf.deb ... 26135s Unpacking mount (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26135s Preparing to unpack .../3-libdevmapper1.02.1_2%3a1.02.185-3ubuntu2_armhf.deb ... 26135s Unpacking libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 26135s Selecting previously unselected package libparted2t64:armhf. 26135s Preparing to unpack .../4-libparted2t64_3.6-3.1build2_armhf.deb ... 26135s Unpacking libparted2t64:armhf (3.6-3.1build2) ... 26135s Preparing to unpack .../5-libsqlite3-0_3.45.1-1ubuntu1_armhf.deb ... 26135s Unpacking libsqlite3-0:armhf (3.45.1-1ubuntu1) over (3.45.1-1) ... 26135s Preparing to unpack .../6-pinentry-curses_1.2.1-3ubuntu4_armhf.deb ... 26135s Unpacking pinentry-curses (1.2.1-3ubuntu4) over (1.2.1-3ubuntu1) ... 26135s Preparing to unpack .../7-libsmartcols1_2.39.3-9ubuntu2_armhf.deb ... 26135s Unpacking libsmartcols1:armhf (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26136s Setting up libsmartcols1:armhf (2.39.3-9ubuntu2) ... 26136s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78636 files and directories currently installed.) 26136s Preparing to unpack .../0-readline-common_8.2-3.1_all.deb ... 26136s Unpacking readline-common (8.2-3.1) over (8.2-3) ... 26136s Preparing to unpack .../1-python3-yaml_6.0.1-2build1_armhf.deb ... 26136s Unpacking python3-yaml (6.0.1-2build1) over (6.0.1-2) ... 26136s Preparing to unpack .../2-python-apt-common_2.7.6build1_all.deb ... 26136s Unpacking python-apt-common (2.7.6build1) over (2.7.6) ... 26136s Preparing to unpack .../3-python3-setuptools_68.1.2-2ubuntu1_all.deb ... 26137s Unpacking python3-setuptools (68.1.2-2ubuntu1) over (68.1.2-2) ... 26137s Preparing to unpack .../4-python3-pkg-resources_68.1.2-2ubuntu1_all.deb ... 26138s Unpacking python3-pkg-resources (68.1.2-2ubuntu1) over (68.1.2-2) ... 26138s Preparing to unpack .../5-dpkg_1.22.6ubuntu4_armhf.deb ... 26138s Unpacking dpkg (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 26138s Setting up dpkg (1.22.6ubuntu4) ... 26140s Setting up libpython3.12-minimal:armhf (3.12.2-4build3) ... 26140s Setting up libexpat1:armhf (2.6.1-2) ... 26140s Setting up python3.12-minimal (3.12.2-4build3) ... 26143s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 26143s Preparing to unpack .../python3-minimal_3.12.2-0ubuntu1_armhf.deb ... 26143s Unpacking python3-minimal (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 26143s Setting up python3-minimal (3.12.2-0ubuntu1) ... 26144s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 26144s Preparing to unpack .../00-python3_3.12.2-0ubuntu1_armhf.deb ... 26144s Unpacking python3 (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 26145s Preparing to unpack .../01-libpython3-stdlib_3.12.2-0ubuntu1_armhf.deb ... 26145s Unpacking libpython3-stdlib:armhf (3.12.2-0ubuntu1) over (3.12.1-0ubuntu2) ... 26145s Preparing to unpack .../02-bsdextrautils_2.39.3-9ubuntu2_armhf.deb ... 26145s Unpacking bsdextrautils (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26145s Preparing to unpack .../03-groff-base_1.23.0-3build1_armhf.deb ... 26145s Unpacking groff-base (1.23.0-3build1) over (1.23.0-3) ... 26146s Preparing to unpack .../04-libsasl2-2_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 26146s Unpacking libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 26146s Preparing to unpack .../05-libjson-glib-1.0-common_1.8.0-2build1_all.deb ... 26146s Unpacking libjson-glib-1.0-common (1.8.0-2build1) over (1.8.0-2) ... 26146s Preparing to unpack .../06-libjson-glib-1.0-0_1.8.0-2build1_armhf.deb ... 26146s Unpacking libjson-glib-1.0-0:armhf (1.8.0-2build1) over (1.8.0-2) ... 26146s Preparing to unpack .../07-libxml2_2.9.14+dfsg-1.3ubuntu2_armhf.deb ... 26146s Unpacking libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) over (2.9.14+dfsg-1.3ubuntu1) ... 26146s Preparing to unpack .../08-libgudev-1.0-0_1%3a238-3ubuntu2_armhf.deb ... 26146s Unpacking libgudev-1.0-0:armhf (1:238-3ubuntu2) over (1:238-3) ... 26146s Preparing to unpack .../09-libusb-1.0-0_2%3a1.0.27-1_armhf.deb ... 26146s Unpacking libusb-1.0-0:armhf (2:1.0.27-1) over (2:1.0.26-1) ... 26147s Preparing to unpack .../10-libgusb2_0.4.8-1build1_armhf.deb ... 26147s Unpacking libgusb2:armhf (0.4.8-1build1) over (0.4.8-1) ... 26147s Preparing to unpack .../11-libmbim-proxy_1.31.2-0ubuntu2_armhf.deb ... 26147s Unpacking libmbim-proxy (1.31.2-0ubuntu2) over (1.30.0-1) ... 26147s Preparing to unpack .../12-libmbim-glib4_1.31.2-0ubuntu2_armhf.deb ... 26147s Unpacking libmbim-glib4:armhf (1.31.2-0ubuntu2) over (1.30.0-1) ... 26147s Preparing to unpack .../13-libmm-glib0_1.23.4-0ubuntu1_armhf.deb ... 26147s Unpacking libmm-glib0:armhf (1.23.4-0ubuntu1) over (1.22.0-3) ... 26147s Preparing to unpack .../14-libpolkit-agent-1-0_124-1ubuntu1_armhf.deb ... 26147s Unpacking libpolkit-agent-1-0:armhf (124-1ubuntu1) over (124-1) ... 26147s Preparing to unpack .../15-libpolkit-gobject-1-0_124-1ubuntu1_armhf.deb ... 26147s Unpacking libpolkit-gobject-1-0:armhf (124-1ubuntu1) over (124-1) ... 26147s Preparing to unpack .../16-libqmi-proxy_1.35.2-0ubuntu1_armhf.deb ... 26147s Unpacking libqmi-proxy (1.35.2-0ubuntu1) over (1.34.0-2) ... 26148s Preparing to unpack .../17-libqrtr-glib0_1.2.2-1ubuntu3_armhf.deb ... 26148s Unpacking libqrtr-glib0:armhf (1.2.2-1ubuntu3) over (1.2.2-1ubuntu2) ... 26148s Preparing to unpack .../18-libqmi-glib5_1.35.2-0ubuntu1_armhf.deb ... 26148s Unpacking libqmi-glib5:armhf (1.35.2-0ubuntu1) over (1.34.0-2) ... 26148s Preparing to unpack .../19-libxmlb2_0.3.15-1build1_armhf.deb ... 26148s Unpacking libxmlb2:armhf (0.3.15-1build1) over (0.3.15-1) ... 26149s Preparing to unpack .../20-shared-mime-info_2.4-1build1_armhf.deb ... 26149s Unpacking shared-mime-info (2.4-1build1) over (2.4-1) ... 26149s Preparing to unpack .../21-libbrotli1_1.1.0-2build1_armhf.deb ... 26149s Unpacking libbrotli1:armhf (1.1.0-2build1) over (1.1.0-2) ... 26149s Preparing to unpack .../22-libgssapi-krb5-2_1.20.1-5.1build3_armhf.deb ... 26149s Unpacking libgssapi-krb5-2:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 26149s Preparing to unpack .../23-libkrb5-3_1.20.1-5.1build3_armhf.deb ... 26149s Unpacking libkrb5-3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 26149s Preparing to unpack .../24-libkrb5support0_1.20.1-5.1build3_armhf.deb ... 26149s Unpacking libkrb5support0:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 26149s Preparing to unpack .../25-libk5crypto3_1.20.1-5.1build3_armhf.deb ... 26149s Unpacking libk5crypto3:armhf (1.20.1-5.1build3) over (1.20.1-5build1) ... 26149s Preparing to unpack .../26-libcom-err2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 26149s Unpacking libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 26149s Preparing to unpack .../27-libnghttp2-14_1.59.0-1build1_armhf.deb ... 26149s Unpacking libnghttp2-14:armhf (1.59.0-1build1) over (1.59.0-1) ... 26150s Preparing to unpack .../28-libssh-4_0.10.6-2build1_armhf.deb ... 26150s Unpacking libssh-4:armhf (0.10.6-2build1) over (0.10.6-2) ... 26150s Preparing to unpack .../29-libibverbs1_50.0-2build1_armhf.deb ... 26150s Unpacking libibverbs1:armhf (50.0-2build1) over (50.0-2) ... 26150s Preparing to unpack .../30-libfido2-1_1.14.0-1build1_armhf.deb ... 26150s Unpacking libfido2-1:armhf (1.14.0-1build1) over (1.14.0-1) ... 26150s Preparing to unpack .../31-coreutils_9.4-3ubuntu3_armhf.deb ... 26150s Unpacking coreutils (9.4-3ubuntu3) over (9.4-2ubuntu4) ... 26151s Setting up coreutils (9.4-3ubuntu3) ... 26151s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 26151s Preparing to unpack .../debianutils_5.17_armhf.deb ... 26151s Unpacking debianutils (5.17) over (5.16) ... 26152s Setting up debianutils (5.17) ... 26152s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 26152s Preparing to unpack .../util-linux_2.39.3-9ubuntu2_armhf.deb ... 26152s Unpacking util-linux (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26153s Setting up util-linux (2.39.3-9ubuntu2) ... 26155s fstrim.service is a disabled or a static unit not running, not starting it. 26155s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 26155s Preparing to unpack .../libc-bin_2.39-0ubuntu6_armhf.deb ... 26155s Unpacking libc-bin (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 26155s Setting up libc-bin (2.39-0ubuntu6) ... 26156s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78635 files and directories currently installed.) 26156s Removing libatm1:armhf (1:2.5.1-5) ... 26157s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 26157s Preparing to unpack .../curl_8.5.0-2ubuntu7_armhf.deb ... 26157s Unpacking curl (8.5.0-2ubuntu7) over (8.5.0-2ubuntu2) ... 26157s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 26157s Removing libcurl4:armhf (8.5.0-2ubuntu2) ... 26157s Selecting previously unselected package libcurl4t64:armhf. 26157s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78625 files and directories currently installed.) 26157s Preparing to unpack .../libcurl4t64_8.5.0-2ubuntu7_armhf.deb ... 26157s Unpacking libcurl4t64:armhf (8.5.0-2ubuntu7) ... 26157s Preparing to unpack .../libbpf1_1%3a1.3.0-2build1_armhf.deb ... 26157s Unpacking libbpf1:armhf (1:1.3.0-2build1) over (1:1.3.0-2) ... 26158s Preparing to unpack .../iproute2_6.1.0-1ubuntu5_armhf.deb ... 26158s Unpacking iproute2 (6.1.0-1ubuntu5) over (6.1.0-1ubuntu2) ... 26158s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78631 files and directories currently installed.) 26158s Removing libelf1:armhf (0.190-1) ... 26158s Selecting previously unselected package libelf1t64:armhf. 26159s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78626 files and directories currently installed.) 26159s Preparing to unpack .../libelf1t64_0.190-1.1build2_armhf.deb ... 26159s Unpacking libelf1t64:armhf (0.190-1.1build2) ... 26159s Preparing to unpack .../lsof_4.95.0-1build2_armhf.deb ... 26159s Unpacking lsof (4.95.0-1build2) over (4.95.0-1build1) ... 26159s Preparing to unpack .../libnsl2_1.3.0-3build2_armhf.deb ... 26159s Unpacking libnsl2:armhf (1.3.0-3build2) over (1.3.0-3) ... 26159s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78631 files and directories currently installed.) 26159s Removing libtirpc3:armhf (1.3.4+ds-1build1) ... 26160s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78625 files and directories currently installed.) 26160s Preparing to unpack .../0-libtirpc-common_1.3.4+ds-1.1_all.deb ... 26160s Unpacking libtirpc-common (1.3.4+ds-1.1) over (1.3.4+ds-1build1) ... 26160s Selecting previously unselected package libtirpc3t64:armhf. 26160s Preparing to unpack .../1-libtirpc3t64_1.3.4+ds-1.1_armhf.deb ... 26160s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3 to /lib/arm-linux-gnueabihf/libtirpc.so.3.usr-is-merged by libtirpc3t64' 26160s Adding 'diversion of /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0 to /lib/arm-linux-gnueabihf/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' 26160s Unpacking libtirpc3t64:armhf (1.3.4+ds-1.1) ... 26160s Preparing to unpack .../2-libblockdev-utils3_3.1.0-1build1_armhf.deb ... 26160s Unpacking libblockdev-utils3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26160s Preparing to unpack .../3-libblockdev-fs3_3.1.0-1build1_armhf.deb ... 26160s Unpacking libblockdev-fs3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26160s Preparing to unpack .../4-logsave_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 26160s Unpacking logsave (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 26161s Preparing to unpack .../5-ubuntu-minimal_1.536build1_armhf.deb ... 26161s Unpacking ubuntu-minimal (1.536build1) over (1.536) ... 26161s Preparing to unpack .../6-initramfs-tools_0.142ubuntu22_all.deb ... 26161s Unpacking initramfs-tools (0.142ubuntu22) over (0.142ubuntu20) ... 26161s Preparing to unpack .../7-initramfs-tools-core_0.142ubuntu22_all.deb ... 26161s Unpacking initramfs-tools-core (0.142ubuntu22) over (0.142ubuntu20) ... 26161s Preparing to unpack .../8-e2fsprogs-l10n_1.47.0-2.4~exp1ubuntu2_all.deb ... 26161s Unpacking e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 26161s dpkg: libext2fs2:armhf: dependency problems, but removing anyway as you requested: 26161s e2fsprogs depends on libext2fs2 (= 1.47.0-2ubuntu1). 26161s btrfs-progs depends on libext2fs2 (>= 1.42). 26161s 26162s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78637 files and directories currently installed.) 26162s Removing libext2fs2:armhf (1.47.0-2ubuntu1) ... 26162s Selecting previously unselected package libext2fs2t64:armhf. 26162s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78630 files and directories currently installed.) 26162s Preparing to unpack .../libext2fs2t64_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 26162s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2 to /lib/arm-linux-gnueabihf/libe2p.so.2.usr-is-merged by libext2fs2t64' 26162s Adding 'diversion of /lib/arm-linux-gnueabihf/libe2p.so.2.3 to /lib/arm-linux-gnueabihf/libe2p.so.2.3.usr-is-merged by libext2fs2t64' 26162s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2 to /lib/arm-linux-gnueabihf/libext2fs.so.2.usr-is-merged by libext2fs2t64' 26162s Adding 'diversion of /lib/arm-linux-gnueabihf/libext2fs.so.2.4 to /lib/arm-linux-gnueabihf/libext2fs.so.2.4.usr-is-merged by libext2fs2t64' 26162s Unpacking libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 26162s Setting up libcom-err2:armhf (1.47.0-2.4~exp1ubuntu2) ... 26162s Setting up libext2fs2t64:armhf (1.47.0-2.4~exp1ubuntu2) ... 26162s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78646 files and directories currently installed.) 26162s Preparing to unpack .../00-e2fsprogs_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 26162s Unpacking e2fsprogs (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 26163s Preparing to unpack .../01-btrfs-progs_6.6.3-1.1build1_armhf.deb ... 26163s Unpacking btrfs-progs (6.6.3-1.1build1) over (6.6.3-1.1) ... 26163s Preparing to unpack .../02-dhcpcd-base_1%3a10.0.6-1ubuntu2_armhf.deb ... 26163s Unpacking dhcpcd-base (1:10.0.6-1ubuntu2) over (1:10.0.6-1ubuntu1) ... 26163s Preparing to unpack .../03-eject_2.39.3-9ubuntu2_armhf.deb ... 26163s Unpacking eject (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26163s Preparing to unpack .../04-locales_2.39-0ubuntu6_all.deb ... 26163s Unpacking locales (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 26164s Selecting previously unselected package libnetplan1:armhf. 26165s Preparing to unpack .../05-libnetplan1_1.0-1_armhf.deb ... 26165s Unpacking libnetplan1:armhf (1.0-1) ... 26165s Preparing to unpack .../06-python3-netplan_1.0-1_armhf.deb ... 26165s Unpacking python3-netplan (1.0-1) over (0.107.1-3) ... 26165s Preparing to unpack .../07-netplan-generator_1.0-1_armhf.deb ... 26165s Adding 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 26165s Unpacking netplan-generator (1.0-1) over (0.107.1-3) ... 26165s Preparing to unpack .../08-python3-dbus_1.3.2-5build2_armhf.deb ... 26165s Unpacking python3-dbus (1.3.2-5build2) over (1.3.2-5build1) ... 26165s Preparing to unpack .../09-netplan.io_1.0-1_armhf.deb ... 26165s Unpacking netplan.io (1.0-1) over (0.107.1-3) ... 26166s Preparing to unpack .../10-vim-tiny_2%3a9.1.0016-1ubuntu5_armhf.deb ... 26166s Unpacking vim-tiny (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 26166s Preparing to unpack .../11-vim-common_2%3a9.1.0016-1ubuntu5_all.deb ... 26166s Unpacking vim-common (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 26166s Preparing to unpack .../12-initramfs-tools-bin_0.142ubuntu22_armhf.deb ... 26166s Unpacking initramfs-tools-bin (0.142ubuntu22) over (0.142ubuntu20) ... 26166s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78650 files and directories currently installed.) 26166s Removing libreiserfscore0 (1:3.6.27-7) ... 26167s Selecting previously unselected package libreiserfscore0t64. 26167s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 26167s Preparing to unpack .../libreiserfscore0t64_1%3a3.6.27-7.1_armhf.deb ... 26167s Unpacking libreiserfscore0t64 (1:3.6.27-7.1) ... 26167s Preparing to unpack .../file_1%3a5.45-3_armhf.deb ... 26167s Unpacking file (1:5.45-3) over (1:5.45-2) ... 26167s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78651 files and directories currently installed.) 26167s Removing libmagic1:armhf (1:5.45-2) ... 26167s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78641 files and directories currently installed.) 26167s Preparing to unpack .../libmagic-mgc_1%3a5.45-3_armhf.deb ... 26167s Unpacking libmagic-mgc (1:5.45-3) over (1:5.45-2) ... 26168s Selecting previously unselected package libmagic1t64:armhf. 26168s Preparing to unpack .../libmagic1t64_1%3a5.45-3_armhf.deb ... 26168s Unpacking libmagic1t64:armhf (1:5.45-3) ... 26168s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78652 files and directories currently installed.) 26168s Removing libnetplan0:armhf (0.107.1-3) ... 26168s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78648 files and directories currently installed.) 26168s Preparing to unpack .../libblockdev-nvme3_3.1.0-1build1_armhf.deb ... 26168s Unpacking libblockdev-nvme3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26169s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78648 files and directories currently installed.) 26169s Removing libnvme1 (1.8-2) ... 26169s Selecting previously unselected package libnvme1t64. 26169s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78641 files and directories currently installed.) 26169s Preparing to unpack .../libnvme1t64_1.8-3_armhf.deb ... 26169s Unpacking libnvme1t64 (1.8-3) ... 26169s Preparing to unpack .../libplymouth5_24.004.60-1ubuntu5_armhf.deb ... 26169s Unpacking libplymouth5:armhf (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 26169s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78649 files and directories currently installed.) 26169s Removing libpng16-16:armhf (1.6.43-1) ... 26169s Selecting previously unselected package libpng16-16t64:armhf. 26170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78639 files and directories currently installed.) 26170s Preparing to unpack .../libpng16-16t64_1.6.43-3_armhf.deb ... 26170s Unpacking libpng16-16t64:armhf (1.6.43-3) ... 26170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78650 files and directories currently installed.) 26170s Removing libudisks2-0:armhf (2.10.1-1ubuntu2) ... 26170s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 26170s Preparing to unpack .../bind9-host_1%3a9.18.24-0ubuntu3_armhf.deb ... 26170s Unpacking bind9-host (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 26170s Preparing to unpack .../bind9-dnsutils_1%3a9.18.24-0ubuntu3_armhf.deb ... 26170s Unpacking bind9-dnsutils (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 26170s Preparing to unpack .../bind9-libs_1%3a9.18.24-0ubuntu3_armhf.deb ... 26170s Unpacking bind9-libs:armhf (1:9.18.24-0ubuntu3) over (1:9.18.21-0ubuntu1) ... 26171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78645 files and directories currently installed.) 26171s Removing libuv1:armhf (1.48.0-1) ... 26171s Selecting previously unselected package libuv1t64:armhf. 26171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78640 files and directories currently installed.) 26171s Preparing to unpack .../libuv1t64_1.48.0-1.1_armhf.deb ... 26171s Unpacking libuv1t64:armhf (1.48.0-1.1) ... 26171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78646 files and directories currently installed.) 26171s Removing python3-distutils (3.11.5-1) ... 26171s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 26171s Preparing to unpack .../uuid-runtime_2.39.3-9ubuntu2_armhf.deb ... 26172s Unpacking uuid-runtime (2.39.3-9ubuntu2) over (2.39.3-6ubuntu2) ... 26172s Preparing to unpack .../libdebconfclient0_0.271ubuntu2_armhf.deb ... 26172s Unpacking libdebconfclient0:armhf (0.271ubuntu2) over (0.271ubuntu1) ... 26172s Setting up libdebconfclient0:armhf (0.271ubuntu2) ... 26172s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 26172s Preparing to unpack .../libsemanage-common_3.5-1build4_all.deb ... 26172s Unpacking libsemanage-common (3.5-1build4) over (3.5-1build2) ... 26172s Setting up libsemanage-common (3.5-1build4) ... 26172s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 26172s Preparing to unpack .../libsemanage2_3.5-1build4_armhf.deb ... 26172s Unpacking libsemanage2:armhf (3.5-1build4) over (3.5-1build2) ... 26172s Setting up libsemanage2:armhf (3.5-1build4) ... 26173s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 26173s Preparing to unpack .../install-info_7.1-3build1_armhf.deb ... 26173s Unpacking install-info (7.1-3build1) over (7.1-3) ... 26173s Setting up install-info (7.1-3build1) ... 26173s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78591 files and directories currently installed.) 26173s Preparing to unpack .../00-gcc-13-base_13.2.0-19ubuntu1_armhf.deb ... 26173s Unpacking gcc-13-base:armhf (13.2.0-19ubuntu1) over (13.2.0-17ubuntu2) ... 26173s Preparing to unpack .../01-libss2_1.47.0-2.4~exp1ubuntu2_armhf.deb ... 26173s Unpacking libss2:armhf (1.47.0-2.4~exp1ubuntu2) over (1.47.0-2ubuntu1) ... 26173s Preparing to unpack .../02-dmsetup_2%3a1.02.185-3ubuntu2_armhf.deb ... 26173s Unpacking dmsetup (2:1.02.185-3ubuntu2) over (2:1.02.185-3ubuntu1) ... 26174s Preparing to unpack .../03-gir1.2-girepository-2.0_1.79.1-1ubuntu6_armhf.deb ... 26174s Unpacking gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 26174s Preparing to unpack .../04-gir1.2-glib-2.0_2.79.3-3ubuntu5_armhf.deb ... 26174s Unpacking gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 26174s Preparing to unpack .../05-libgirepository-1.0-1_1.79.1-1ubuntu6_armhf.deb ... 26174s Unpacking libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) over (1.79.1-1) ... 26174s Preparing to unpack .../06-krb5-locales_1.20.1-5.1build3_all.deb ... 26174s Unpacking krb5-locales (1.20.1-5.1build3) over (1.20.1-5build1) ... 26174s Preparing to unpack .../07-libbsd0_0.12.1-1_armhf.deb ... 26174s Unpacking libbsd0:armhf (0.12.1-1) over (0.11.8-1) ... 26174s Preparing to unpack .../08-libglib2.0-data_2.79.3-3ubuntu5_all.deb ... 26174s Unpacking libglib2.0-data (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 26174s Preparing to unpack .../09-libslang2_2.3.3-3build1_armhf.deb ... 26174s Unpacking libslang2:armhf (2.3.3-3build1) over (2.3.3-3) ... 26174s Preparing to unpack .../10-python3-gi_3.47.0-3build1_armhf.deb ... 26175s Unpacking python3-gi (3.47.0-3build1) over (3.47.0-3) ... 26175s Selecting previously unselected package xdg-user-dirs. 26175s Preparing to unpack .../11-xdg-user-dirs_0.18-1_armhf.deb ... 26175s Unpacking xdg-user-dirs (0.18-1) ... 26175s Preparing to unpack .../12-xxd_2%3a9.1.0016-1ubuntu5_armhf.deb ... 26175s Unpacking xxd (2:9.1.0016-1ubuntu5) over (2:9.1.0016-1ubuntu2) ... 26175s Preparing to unpack .../13-apparmor_4.0.0-beta3-0ubuntu2_armhf.deb ... 26178s Unpacking apparmor (4.0.0-beta3-0ubuntu2) over (4.0.0~alpha4-0ubuntu1) ... 26180s Preparing to unpack .../14-ftp_20230507-2build1_all.deb ... 26180s Unpacking ftp (20230507-2build1) over (20230507-2) ... 26180s Preparing to unpack .../15-inetutils-telnet_2%3a2.5-3ubuntu3_armhf.deb ... 26180s Unpacking inetutils-telnet (2:2.5-3ubuntu3) over (2:2.5-3ubuntu1) ... 26180s Preparing to unpack .../16-info_7.1-3build1_armhf.deb ... 26180s Unpacking info (7.1-3build1) over (7.1-3) ... 26180s Preparing to unpack .../17-libxmuu1_2%3a1.1.3-3build1_armhf.deb ... 26180s Unpacking libxmuu1:armhf (2:1.1.3-3build1) over (2:1.1.3-3) ... 26180s Preparing to unpack .../18-lshw_02.19.git.2021.06.19.996aaad9c7-2build2_armhf.deb ... 26180s Unpacking lshw (02.19.git.2021.06.19.996aaad9c7-2build2) over (02.19.git.2021.06.19.996aaad9c7-2build1) ... 26180s Preparing to unpack .../19-mtr-tiny_0.95-1.1build1_armhf.deb ... 26180s Unpacking mtr-tiny (0.95-1.1build1) over (0.95-1.1) ... 26181s Preparing to unpack .../20-plymouth-theme-ubuntu-text_24.004.60-1ubuntu5_armhf.deb ... 26181s Unpacking plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 26181s Preparing to unpack .../21-plymouth_24.004.60-1ubuntu5_armhf.deb ... 26181s Unpacking plymouth (24.004.60-1ubuntu5) over (24.004.60-1ubuntu3) ... 26182s Preparing to unpack .../22-psmisc_23.7-1_armhf.deb ... 26182s Unpacking psmisc (23.7-1) over (23.6-2) ... 26182s Preparing to unpack .../23-telnet_0.17+2.5-3ubuntu3_all.deb ... 26182s Unpacking telnet (0.17+2.5-3ubuntu3) over (0.17+2.5-3ubuntu1) ... 26182s Preparing to unpack .../24-xz-utils_5.6.0-0.2_armhf.deb ... 26182s Unpacking xz-utils (5.6.0-0.2) over (5.4.5-0.3) ... 26182s Preparing to unpack .../25-ubuntu-standard_1.536build1_armhf.deb ... 26183s Unpacking ubuntu-standard (1.536build1) over (1.536) ... 26183s Preparing to unpack .../26-usb.ids_2024.03.18-1_all.deb ... 26183s Unpacking usb.ids (2024.03.18-1) over (2024.01.30-1) ... 26183s Preparing to unpack .../27-libctf-nobfd0_2.42-4ubuntu1_armhf.deb ... 26183s Unpacking libctf-nobfd0:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 26183s Preparing to unpack .../28-libctf0_2.42-4ubuntu1_armhf.deb ... 26183s Unpacking libctf0:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 26183s Preparing to unpack .../29-binutils-arm-linux-gnueabihf_2.42-4ubuntu1_armhf.deb ... 26183s Unpacking binutils-arm-linux-gnueabihf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 26184s Preparing to unpack .../30-libbinutils_2.42-4ubuntu1_armhf.deb ... 26184s Unpacking libbinutils:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 26184s Preparing to unpack .../31-binutils_2.42-4ubuntu1_armhf.deb ... 26184s Unpacking binutils (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 26184s Preparing to unpack .../32-binutils-common_2.42-4ubuntu1_armhf.deb ... 26184s Unpacking binutils-common:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 26184s Preparing to unpack .../33-libsframe1_2.42-4ubuntu1_armhf.deb ... 26184s Unpacking libsframe1:armhf (2.42-4ubuntu1) over (2.42-3ubuntu1) ... 26184s Preparing to unpack .../34-bolt_0.9.6-2build1_armhf.deb ... 26184s Unpacking bolt (0.9.6-2build1) over (0.9.6-2) ... 26184s Preparing to unpack .../35-cryptsetup-bin_2%3a2.7.0-1ubuntu2_armhf.deb ... 26184s Unpacking cryptsetup-bin (2:2.7.0-1ubuntu2) over (2:2.7.0-1ubuntu1) ... 26185s Preparing to unpack .../36-dpkg-dev_1.22.6ubuntu4_all.deb ... 26185s Unpacking dpkg-dev (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 26185s Preparing to unpack .../37-libdpkg-perl_1.22.6ubuntu4_all.deb ... 26185s Unpacking libdpkg-perl (1.22.6ubuntu4) over (1.22.4ubuntu5) ... 26185s Preparing to unpack .../38-gnupg-l10n_2.4.4-2ubuntu15_all.deb ... 26185s Unpacking gnupg-l10n (2.4.4-2ubuntu15) over (2.4.4-2ubuntu7) ... 26186s Preparing to unpack .../39-ibverbs-providers_50.0-2build1_armhf.deb ... 26186s Unpacking ibverbs-providers:armhf (50.0-2build1) over (50.0-2) ... 26186s Preparing to unpack .../40-jq_1.7.1-3_armhf.deb ... 26186s Unpacking jq (1.7.1-3) over (1.7.1-2) ... 26186s Preparing to unpack .../41-libjq1_1.7.1-3_armhf.deb ... 26186s Unpacking libjq1:armhf (1.7.1-3) over (1.7.1-2) ... 26187s Selecting previously unselected package libatm1t64:armhf. 26187s Preparing to unpack .../42-libatm1t64_1%3a2.5.1-5.1_armhf.deb ... 26187s Unpacking libatm1t64:armhf (1:2.5.1-5.1) ... 26187s Preparing to unpack .../43-libblockdev-crypto3_3.1.0-1build1_armhf.deb ... 26187s Unpacking libblockdev-crypto3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26187s Preparing to unpack .../44-libblockdev-loop3_3.1.0-1build1_armhf.deb ... 26187s Unpacking libblockdev-loop3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26187s Preparing to unpack .../45-libblockdev-mdraid3_3.1.0-1build1_armhf.deb ... 26187s Unpacking libblockdev-mdraid3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26187s Preparing to unpack .../46-libblockdev-part3_3.1.0-1build1_armhf.deb ... 26187s Unpacking libblockdev-part3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26188s Preparing to unpack .../47-libblockdev-swap3_3.1.0-1build1_armhf.deb ... 26188s Unpacking libblockdev-swap3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26188s Preparing to unpack .../48-libblockdev3_3.1.0-1build1_armhf.deb ... 26188s Unpacking libblockdev3:armhf (3.1.0-1build1) over (3.1.0-1) ... 26188s Preparing to unpack .../49-libevent-core-2.1-7_2.1.12-stable-9build1_armhf.deb ... 26188s Unpacking libevent-core-2.1-7:armhf (2.1.12-stable-9build1) over (2.1.12-stable-9) ... 26188s Preparing to unpack .../50-libftdi1-2_1.5-6build4_armhf.deb ... 26188s Unpacking libftdi1-2:armhf (1.5-6build4) over (1.5-6build3) ... 26189s Preparing to unpack .../51-libldap-common_2.6.7+dfsg-1~exp1ubuntu6_all.deb ... 26189s Unpacking libldap-common (2.6.7+dfsg-1~exp1ubuntu6) over (2.6.7+dfsg-1~exp1ubuntu1) ... 26189s Preparing to unpack .../52-libsasl2-modules_2.1.28+dfsg1-4ubuntu4_armhf.deb ... 26189s Unpacking libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) over (2.1.28+dfsg1-4) ... 26189s Preparing to unpack .../53-python3-lib2to3_3.12.2-3ubuntu2_all.deb ... 26190s Unpacking python3-lib2to3 (3.12.2-3ubuntu2) over (3.11.5-1) ... 26190s Preparing to unpack .../54-python3-markupsafe_2.1.5-1build1_armhf.deb ... 26190s Unpacking python3-markupsafe (2.1.5-1build1) over (2.1.5-1) ... 26190s Preparing to unpack .../55-python3-openssl_24.0.0-4_all.deb ... 26191s Unpacking python3-openssl (24.0.0-4) over (23.2.0-1) ... 26191s Preparing to unpack .../56-python3-pyrsistent_0.20.0-1build1_armhf.deb ... 26191s Unpacking python3-pyrsistent:armhf (0.20.0-1build1) over (0.20.0-1) ... 26191s Preparing to unpack .../57-python3-typing-extensions_4.10.0-1_all.deb ... 26192s Unpacking python3-typing-extensions (4.10.0-1) over (4.9.0-1) ... 26192s Preparing to unpack .../58-kpartx_0.9.4-5ubuntu5_armhf.deb ... 26192s Unpacking kpartx (0.9.4-5ubuntu5) over (0.9.4-5ubuntu3) ... 26192s Setting up pinentry-curses (1.2.1-3ubuntu4) ... 26192s Setting up libtext-iconv-perl:armhf (1.7-8build2) ... 26192s Setting up libtext-charwidth-perl:armhf (0.04-11build2) ... 26192s Setting up libibverbs1:armhf (50.0-2build1) ... 26192s Setting up systemd-sysv (255.4-1ubuntu5) ... 26192s Setting up libapparmor1:armhf (4.0.0-beta3-0ubuntu2) ... 26192s Setting up libatm1t64:armhf (1:2.5.1-5.1) ... 26192s Setting up libgdbm6t64:armhf (1.23-5.1) ... 26192s Setting up bsdextrautils (2.39.3-9ubuntu2) ... 26192s Setting up libgdbm-compat4t64:armhf (1.23-5.1) ... 26192s Setting up xdg-user-dirs (0.18-1) ... 26192s Setting up ibverbs-providers:armhf (50.0-2build1) ... 26192s Setting up linux-headers-6.8.0-20 (6.8.0-20.20) ... 26192s Setting up libmagic-mgc (1:5.45-3) ... 26192s Setting up gawk (1:5.2.1-2build2) ... 26192s Setting up psmisc (23.7-1) ... 26192s Setting up libjq1:armhf (1.7.1-3) ... 26192s Setting up libtirpc-common (1.3.4+ds-1.1) ... 26192s Setting up libbrotli1:armhf (1.1.0-2build1) ... 26192s Setting up libsqlite3-0:armhf (3.45.1-1ubuntu1) ... 26192s Setting up libsasl2-modules:armhf (2.1.28+dfsg1-4ubuntu4) ... 26193s Setting up libuv1t64:armhf (1.48.0-1.1) ... 26193s Setting up libmagic1t64:armhf (1:5.45-3) ... 26193s Setting up binutils-common:armhf (2.42-4ubuntu1) ... 26193s Setting up libpsl5t64:armhf (0.21.2-1.1) ... 26193s Setting up libnghttp2-14:armhf (1.59.0-1build1) ... 26193s Setting up libreiserfscore0t64 (1:3.6.27-7.1) ... 26193s Setting up libctf-nobfd0:armhf (2.42-4ubuntu1) ... 26193s Setting up libnss-systemd:armhf (255.4-1ubuntu5) ... 26193s Setting up krb5-locales (1.20.1-5.1build3) ... 26193s Setting up file (1:5.45-3) ... 26193s Setting up lshw (02.19.git.2021.06.19.996aaad9c7-2build2) ... 26193s Setting up locales (2.39-0ubuntu6) ... 26196s Generating locales (this might take a while)... 26203s en_US.UTF-8... done 26203s Generation complete. 26203s Setting up libldap-common (2.6.7+dfsg-1~exp1ubuntu6) ... 26203s Setting up xxd (2:9.1.0016-1ubuntu5) ... 26203s Setting up libsframe1:armhf (2.42-4ubuntu1) ... 26203s Setting up libelf1t64:armhf (0.190-1.1build2) ... 26203s Setting up libkrb5support0:armhf (1.20.1-5.1build3) ... 26203s Setting up linux-headers-6.8.0-20-generic (6.8.0-20.20) ... 26203s Setting up eject (2.39.3-9ubuntu2) ... 26203s Setting up apparmor (4.0.0-beta3-0ubuntu2) ... 26203s Installing new version of config file /etc/apparmor.d/abstractions/authentication ... 26203s Installing new version of config file /etc/apparmor.d/abstractions/crypto ... 26203s Installing new version of config file /etc/apparmor.d/abstractions/kde-open5 ... 26204s Installing new version of config file /etc/apparmor.d/abstractions/openssl ... 26204s Installing new version of config file /etc/apparmor.d/code ... 26204s Installing new version of config file /etc/apparmor.d/firefox ... 26204s apparmor_parser: Unable to replace "lsb_release". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26204s 26205s apparmor_parser: Unable to replace "kmod". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26205s 26205s apparmor_parser: Unable to replace "nvidia_modprobe". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26205s 26207s sysctl: cannot stat /proc/sys/kernel/apparmor_restrict_unprivileged_userns: No such file or directory 26207s Reloading AppArmor profiles 26207s /sbin/apparmor_parser: Unable to replace "1password". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "Discord". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "MongoDB Compass". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "brave". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "buildah". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "cam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "ch-checkns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "busybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "ch-run". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "chrome". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "crun". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "vscode". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "devhelp". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "element-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "evolution". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "epiphany". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "geary". /sbin/apparmor_parser: Unable to replace "firefox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "github-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "flatpak". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "goldendict". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "kchmviewer". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "keybase". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "ipa_verify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "libcamerify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "linux-sandbox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "loupe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "lc-compliance". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "lxc-attach". /sbin/apparmor_parser: Unable to replace "lxc-destroy". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "lxc-create". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "lxc-execute". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "lxc-stop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "lxc-unshare". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "lxc-usernsexec". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "msedge". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "mmdebstrap". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "nautilus". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "notepadqq". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "obsidian". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "opera". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "opam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "qcam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "qmapshack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "pageedit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "qutebrowser". /sbin/apparmor_parser: Unable to replace "podman". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "polypane". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "rootlesskit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "rssguard". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "privacybrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "lsb_release". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "runc". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-apt". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "rpm". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-clean". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-checkpackages". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-createchroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-adduser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-destroychroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-hold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-unhold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-shell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "plasmashell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-abort". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-distupgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-update". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "slack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "slirp4netns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "sbuild-upgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "steam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "stress-ng". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "scide". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "signal-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "systemd-coredump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "tup". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "toybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "surfshark". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "thunderbird". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "kmod". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "nvidia_modprobe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26207s /sbin/apparmor_parser: Unable to replace "trinity". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26207s 26208s /sbin/apparmor_parser: Unable to replace "tuxedo-control-center". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "userbindmount". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "unprivileged_userns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "vdens". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "uwsgi-core". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "vpnns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "virtiofsd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "wpcom". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "vivaldi-bin". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "rsyslogd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "unix-chkpwd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "/usr/bin/man". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "ubuntu_pro_apt_news". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s /sbin/apparmor_parser: Unable to replace "tcpdump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26208s 26208s Error: At least one profile failed to load 26208s Setting up libglib2.0-0t64:armhf (2.79.3-3ubuntu5) ... 26208s No schema files found: doing nothing. 26208s Setting up libglib2.0-data (2.79.3-3ubuntu5) ... 26208s Setting up vim-common (2:9.1.0016-1ubuntu5) ... 26208s Setting up gcc-13-base:armhf (13.2.0-19ubuntu1) ... 26208s Setting up libqrtr-glib0:armhf (1.2.2-1ubuntu3) ... 26208s Setting up libslang2:armhf (2.3.3-3build1) ... 26208s Setting up libnvme1t64 (1.8-3) ... 26208s Setting up mtr-tiny (0.95-1.1build1) ... 26208s Setting up gnupg-l10n (2.4.4-2ubuntu15) ... 26208s Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2build6) ... 26208s Setting up libdbus-1-3:armhf (1.14.10-4ubuntu2) ... 26208s Setting up xz-utils (5.6.0-0.2) ... 26208s Setting up perl-modules-5.38 (5.38.2-3.2) ... 26208s Setting up libpng16-16t64:armhf (1.6.43-3) ... 26208s Setting up systemd-timesyncd (255.4-1ubuntu5) ... 26210s Setting up libevent-core-2.1-7:armhf (2.1.12-stable-9build1) ... 26210s Setting up libss2:armhf (1.47.0-2.4~exp1ubuntu2) ... 26210s Setting up usb.ids (2024.03.18-1) ... 26210s Setting up sudo (1.9.15p5-3ubuntu3) ... 26210s Setting up dhcpcd-base (1:10.0.6-1ubuntu2) ... 26210s Setting up gir1.2-glib-2.0:armhf (2.79.3-3ubuntu5) ... 26210s Setting up libk5crypto3:armhf (1.20.1-5.1build3) ... 26210s Setting up logsave (1.47.0-2.4~exp1ubuntu2) ... 26210s Setting up libfdisk1:armhf (2.39.3-9ubuntu2) ... 26210s Setting up libdb5.3t64:armhf (5.3.28+dfsg2-5build1) ... 26210s Setting up libdevmapper1.02.1:armhf (2:1.02.185-3ubuntu2) ... 26210s Setting up python-apt-common (2.7.6build1) ... 26210s Setting up mount (2.39.3-9ubuntu2) ... 26210s Setting up dmsetup (2:1.02.185-3ubuntu2) ... 26210s Setting up uuid-runtime (2.39.3-9ubuntu2) ... 26212s uuidd.service is a disabled or a static unit not running, not starting it. 26213s Setting up libmm-glib0:armhf (1.23.4-0ubuntu1) ... 26213s Setting up groff-base (1.23.0-3build1) ... 26213s Setting up libplymouth5:armhf (24.004.60-1ubuntu5) ... 26213s Setting up dbus-session-bus-common (1.14.10-4ubuntu2) ... 26213s Setting up jq (1.7.1-3) ... 26213s Setting up gpgconf (2.4.4-2ubuntu15) ... 26213s Setting up libpcap0.8t64:armhf (1.10.4-4.1ubuntu1) ... 26213s Setting up libcryptsetup12:armhf (2:2.7.0-1ubuntu2) ... 26213s Setting up libgirepository-1.0-1:armhf (1.79.1-1ubuntu6) ... 26213s Setting up libjson-glib-1.0-common (1.8.0-2build1) ... 26213s Setting up libkrb5-3:armhf (1.20.1-5.1build3) ... 26213s Setting up libpython3.11-minimal:armhf (3.11.8-1build4) ... 26213s Setting up libusb-1.0-0:armhf (2:1.0.27-1) ... 26213s Setting up libperl5.38t64:armhf (5.38.2-3.2) ... 26213s Setting up tnftp (20230507-2build1) ... 26213s Setting up libbinutils:armhf (2.42-4ubuntu1) ... 26213s Setting up dbus-system-bus-common (1.14.10-4ubuntu2) ... 26213s Setting up libfido2-1:armhf (1.14.0-1build1) ... 26213s Setting up openssl (3.0.13-0ubuntu2) ... 26213s Setting up libbsd0:armhf (0.12.1-1) ... 26213s Setting up readline-common (8.2-3.1) ... 26213s Setting up libxml2:armhf (2.9.14+dfsg-1.3ubuntu2) ... 26213s Setting up libxmuu1:armhf (2:1.1.3-3build1) ... 26213s Setting up dbus-bin (1.14.10-4ubuntu2) ... 26213s Setting up info (7.1-3build1) ... 26213s Setting up liblocale-gettext-perl (1.07-6ubuntu3) ... 26213s Setting up gpg (2.4.4-2ubuntu15) ... 26213s Setting up libgudev-1.0-0:armhf (1:238-3ubuntu2) ... 26213s Setting up libpolkit-gobject-1-0:armhf (124-1ubuntu1) ... 26213s Setting up libbpf1:armhf (1:1.3.0-2build1) ... 26213s Setting up libmbim-glib4:armhf (1.31.2-0ubuntu2) ... 26213s Setting up rsync (3.2.7-1build1) ... 26216s rsync.service is a disabled or a static unit not running, not starting it. 26216s Setting up libkmod2:armhf (31+20240202-2ubuntu4) ... 26216s Setting up bolt (0.9.6-2build1) ... 26217s bolt.service is a disabled or a static unit not running, not starting it. 26217s Setting up gnupg-utils (2.4.4-2ubuntu15) ... 26217s Setting up initramfs-tools-bin (0.142ubuntu22) ... 26217s Setting up libctf0:armhf (2.42-4ubuntu1) ... 26217s Setting up cryptsetup-bin (2:2.7.0-1ubuntu2) ... 26218s Setting up python3.11-minimal (3.11.8-1build4) ... 26223s Setting up tcpdump (4.99.4-3ubuntu2) ... 26224s apparmor_parser: Unable to replace "tcpdump". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26224s 26224s Setting up apt-utils (2.7.13ubuntu1) ... 26224s Setting up gpg-agent (2.4.4-2ubuntu15) ... 26226s Setting up libpython3.12-stdlib:armhf (3.12.2-4build3) ... 26226s Setting up wget (1.21.4-1ubuntu2) ... 26226s Setting up libxmlb2:armhf (0.3.15-1build1) ... 26226s Setting up btrfs-progs (6.6.3-1.1build1) ... 26226s Setting up libpython3.11-stdlib:armhf (3.11.8-1build4) ... 26226s Setting up python3.12 (3.12.2-4build3) ... 26231s Setting up gpgsm (2.4.4-2ubuntu15) ... 26231s Setting up inetutils-telnet (2:2.5-3ubuntu3) ... 26231s Setting up e2fsprogs (1.47.0-2.4~exp1ubuntu2) ... 26231s update-initramfs: deferring update (trigger activated) 26233s e2scrub_all.service is a disabled or a static unit not running, not starting it. 26234s Setting up libparted2t64:armhf (3.6-3.1build2) ... 26234s Setting up linux-headers-generic (6.8.0-20.20+1) ... 26234s Setting up dbus-daemon (1.14.10-4ubuntu2) ... 26234s Setting up libmbim-proxy (1.31.2-0ubuntu2) ... 26234s Setting up vim-tiny (2:9.1.0016-1ubuntu5) ... 26234s Setting up kmod (31+20240202-2ubuntu4) ... 26235s Setting up libnetplan1:armhf (1.0-1) ... 26235s Setting up man-db (2.12.0-3build4) ... 26235s Updating database of manual pages ... 26235s apparmor_parser: Unable to replace "/usr/bin/man". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26235s 26237s man-db.service is a disabled or a static unit not running, not starting it. 26237s Setting up fdisk (2.39.3-9ubuntu2) ... 26237s Setting up libjson-glib-1.0-0:armhf (1.8.0-2build1) ... 26237s Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-4ubuntu4) ... 26238s Setting up libftdi1-2:armhf (1.5-6build4) ... 26238s Setting up perl (5.38.2-3.2) ... 26238s Setting up gir1.2-girepository-2.0:armhf (1.79.1-1ubuntu6) ... 26238s Setting up dbus (1.14.10-4ubuntu2) ... 26238s A reboot is required to replace the running dbus-daemon. 26238s Please reboot the system when convenient. 26239s Setting up shared-mime-info (2.4-1build1) ... 26241s Setting up libblockdev-utils3:armhf (3.1.0-1build1) ... 26241s Setting up libgssapi-krb5-2:armhf (1.20.1-5.1build3) ... 26241s Setting up udev (255.4-1ubuntu5) ... 26244s Setting up ftp (20230507-2build1) ... 26244s Setting up keyboxd (2.4.4-2ubuntu15) ... 26245s Setting up libdpkg-perl (1.22.6ubuntu4) ... 26245s Setting up libsasl2-2:armhf (2.1.28+dfsg1-4ubuntu4) ... 26245s Setting up libssh-4:armhf (0.10.6-2build1) ... 26245s Setting up libblockdev-nvme3:armhf (3.1.0-1build1) ... 26245s Setting up libblockdev-fs3:armhf (3.1.0-1build1) ... 26245s Setting up kpartx (0.9.4-5ubuntu5) ... 26245s Setting up libpam-systemd:armhf (255.4-1ubuntu5) ... 26246s Setting up libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 26246s Setting up libgpgme11t64:armhf (1.18.0-4.1ubuntu3) ... 26246s Setting up netplan-generator (1.0-1) ... 26246s Removing 'diversion of /lib/systemd/system-generators/netplan to /lib/systemd/system-generators/netplan.usr-is-merged by netplan-generator' 26246s Setting up initramfs-tools-core (0.142ubuntu22) ... 26246s Setting up binutils-arm-linux-gnueabihf (2.42-4ubuntu1) ... 26246s Setting up libarchive13t64:armhf (3.7.2-1.1ubuntu1) ... 26246s Setting up libldap2:armhf (2.6.7+dfsg-1~exp1ubuntu6) ... 26246s Setting up libpython3-stdlib:armhf (3.12.2-0ubuntu1) ... 26246s Setting up systemd-resolved (255.4-1ubuntu5) ... 26248s Setting up python3.11 (3.11.8-1build4) ... 26252s Setting up telnet (0.17+2.5-3ubuntu3) ... 26253s Setting up initramfs-tools (0.142ubuntu22) ... 26253s update-initramfs: deferring update (trigger activated) 26253s Setting up libblockdev-mdraid3:armhf (3.1.0-1build1) ... 26253s Setting up libcurl4t64:armhf (8.5.0-2ubuntu7) ... 26253s Setting up bind9-libs:armhf (1:9.18.24-0ubuntu3) ... 26253s Setting up libtirpc3t64:armhf (1.3.4+ds-1.1) ... 26253s Setting up e2fsprogs-l10n (1.47.0-2.4~exp1ubuntu2) ... 26253s Setting up libblockdev-swap3:armhf (3.1.0-1build1) ... 26253s Setting up plymouth (24.004.60-1ubuntu5) ... 26253s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 26254s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 26255s Setting up iproute2 (6.1.0-1ubuntu5) ... 26256s Setting up openssh-client (1:9.6p1-3ubuntu11) ... 26256s Setting up libgusb2:armhf (0.4.8-1build1) ... 26256s Setting up libblockdev-loop3:armhf (3.1.0-1build1) ... 26256s Setting up libcurl3t64-gnutls:armhf (8.5.0-2ubuntu7) ... 26256s Setting up parted (3.6-3.1build2) ... 26256s Setting up libqmi-glib5:armhf (1.35.2-0ubuntu1) ... 26256s Setting up python3 (3.12.2-0ubuntu1) ... 26257s Setting up binutils (2.42-4ubuntu1) ... 26257s Setting up python3-markupsafe (2.1.5-1build1) ... 26257s Setting up libblockdev3:armhf (3.1.0-1build1) ... 26257s Setting up libjcat1:armhf (0.2.0-2build2) ... 26257s Setting up dpkg-dev (1.22.6ubuntu4) ... 26257s Setting up libblockdev-part3:armhf (3.1.0-1build1) ... 26257s Setting up dirmngr (2.4.4-2ubuntu15) ... 26258s Setting up dbus-user-session (1.14.10-4ubuntu2) ... 26258s Setting up plymouth-theme-ubuntu-text (24.004.60-1ubuntu5) ... 26258s update-initramfs: deferring update (trigger activated) 26258s Setting up python3-cryptography (41.0.7-4build2) ... 26259s Setting up python3-gi (3.47.0-3build1) ... 26260s Setting up python3-typing-extensions (4.10.0-1) ... 26260s Setting up lsof (4.95.0-1build2) ... 26260s Setting up python3-pyrsistent:armhf (0.20.0-1build1) ... 26261s Setting up libnsl2:armhf (1.3.0-3build2) ... 26261s Setting up gnupg (2.4.4-2ubuntu15) ... 26261s Setting up python3-netplan (1.0-1) ... 26261s Setting up curl (8.5.0-2ubuntu7) ... 26261s Setting up libvolume-key1:armhf (0.3.12-7build1) ... 26261s Setting up bind9-host (1:9.18.24-0ubuntu3) ... 26261s Setting up python3-lib2to3 (3.12.2-3ubuntu2) ... 26262s Setting up python3-pkg-resources (68.1.2-2ubuntu1) ... 26263s Setting up openssh-sftp-server (1:9.6p1-3ubuntu11) ... 26263s Setting up python3-dbus (1.3.2-5build2) ... 26263s Setting up python3-setuptools (68.1.2-2ubuntu1) ... 26265s Setting up gpg-wks-client (2.4.4-2ubuntu15) ... 26265s Setting up openssh-server (1:9.6p1-3ubuntu11) ... 26265s Replacing config file /etc/ssh/sshd_config with new version 26269s Created symlink /etc/systemd/system/ssh.service.requires/ssh.socket → /usr/lib/systemd/system/ssh.socket. 26273s Setting up libblockdev-crypto3:armhf (3.1.0-1build1) ... 26273s Setting up python3-gdbm:armhf (3.12.2-3ubuntu2) ... 26273s Setting up python3-apt (2.7.6build1) ... 26273s Setting up python3-openssl (24.0.0-4) ... 26274s Setting up libfwupd2:armhf (1.9.15-1) ... 26274s Setting up python3-yaml (6.0.1-2build1) ... 26274s Setting up libqmi-proxy (1.35.2-0ubuntu1) ... 26274s Setting up netplan.io (1.0-1) ... 26274s Setting up bind9-dnsutils (1:9.18.24-0ubuntu3) ... 26274s Setting up ubuntu-pro-client (31.2) ... 26275s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 26275s 26279s Setting up fwupd (1.9.15-1) ... 26281s fwupd-offline-update.service is a disabled or a static unit not running, not starting it. 26281s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 26281s fwupd.service is a disabled or a static unit not running, not starting it. 26281s Setting up ubuntu-pro-client-l10n (31.2) ... 26281s Setting up ubuntu-minimal (1.536build1) ... 26281s Setting up ubuntu-standard (1.536build1) ... 26281s Processing triggers for libc-bin (2.39-0ubuntu6) ... 26281s Processing triggers for ufw (0.36.2-5) ... 26282s Processing triggers for install-info (7.1-3build1) ... 26282s Processing triggers for initramfs-tools (0.142ubuntu22) ... 26288s Reading package lists... 26288s Building dependency tree... 26288s Reading state information... 26291s The following packages will be REMOVED: 26291s libatasmart4* libblockdev-crypto3* libblockdev-fs3* libblockdev-loop3* 26291s libblockdev-mdraid3* libblockdev-nvme3* libblockdev-part3* 26291s libblockdev-swap3* libblockdev-utils3* libblockdev3* libbytesize-common* 26291s libbytesize1* libnspr4* libnss3* libnvme1t64* libpolkit-agent-1-0* 26291s libvolume-key1* linux-headers-6.8.0-11* python3-lib2to3* 26292s 0 upgraded, 0 newly installed, 19 to remove and 1 not upgraded. 26292s After this operation, 89.7 MB disk space will be freed. 26292s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 78559 files and directories currently installed.) 26292s Removing libatasmart4:armhf (0.19-5build2) ... 26292s Removing libblockdev-crypto3:armhf (3.1.0-1build1) ... 26292s Removing libblockdev-fs3:armhf (3.1.0-1build1) ... 26292s Removing libblockdev-loop3:armhf (3.1.0-1build1) ... 26292s Removing libblockdev-mdraid3:armhf (3.1.0-1build1) ... 26292s Removing libblockdev-nvme3:armhf (3.1.0-1build1) ... 26292s Removing libblockdev-part3:armhf (3.1.0-1build1) ... 26292s Removing libblockdev-swap3:armhf (3.1.0-1build1) ... 26292s Removing libblockdev3:armhf (3.1.0-1build1) ... 26292s Removing libblockdev-utils3:armhf (3.1.0-1build1) ... 26292s Removing libbytesize1:armhf (2.10-1ubuntu1) ... 26292s Removing libbytesize-common (2.10-1ubuntu1) ... 26293s Removing libvolume-key1:armhf (0.3.12-7build1) ... 26293s Removing libnss3:armhf (2:3.98-1) ... 26293s Removing libnspr4:armhf (2:4.35-1.1) ... 26293s Removing libnvme1t64 (1.8-3) ... 26293s Removing libpolkit-agent-1-0:armhf (124-1ubuntu1) ... 26293s Removing linux-headers-6.8.0-11 (6.8.0-11.11) ... 26296s Removing python3-lib2to3 (3.12.2-3ubuntu2) ... 26296s Processing triggers for libc-bin (2.39-0ubuntu6) ... 26297s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58288 files and directories currently installed.) 26297s Purging configuration files for libblockdev3:armhf (3.1.0-1build1) ... 26300s autopkgtest [22:30:24]: rebooting testbed after setup commands that affected boot 26388s Reading package lists... 26388s Building dependency tree... 26388s Reading state information... 26390s Starting pkgProblemResolver with broken count: 0 26390s Starting 2 pkgProblemResolver with broken count: 0 26390s Done 26392s The following additional packages will be installed: 26392s build-essential cpp cpp-13 cpp-13-arm-linux-gnueabihf 26392s cpp-arm-linux-gnueabihf g++ g++-13 g++-13-arm-linux-gnueabihf 26392s g++-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 26392s gcc-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libc-dev-bin libc6-dev 26392s libcc1-0 libcrypt-dev libexpat1-dev libgcc-13-dev libgfortran5 libgomp1 26392s libisl23 libjs-jquery libjs-sphinxdoc libjs-underscore liblapack3 libmpc3 26392s libpython3-all-dev libpython3-dev libpython3.12-dev libpython3.12t64 26392s libstdc++-13-dev libubsan1 linux-libc-dev python3-all python3-all-dev 26392s python3-dev python3-numpy python3.12-dev rpcsvc-proto zlib1g-dev 26392s Suggested packages: 26392s cpp-doc gcc-13-locales cpp-13-doc gcc-13-doc gcc-multilib manpages-dev 26392s autoconf automake libtool flex bison gdb gcc-doc gdb-arm-linux-gnueabihf 26392s glibc-doc libstdc++-13-doc gfortran python3-pytest 26392s Recommended packages: 26392s manpages manpages-dev libc-devtools javascript-common 26393s The following NEW packages will be installed: 26393s autopkgtest-satdep build-essential cpp cpp-13 cpp-13-arm-linux-gnueabihf 26393s cpp-arm-linux-gnueabihf g++ g++-13 g++-13-arm-linux-gnueabihf 26393s g++-arm-linux-gnueabihf gcc gcc-13 gcc-13-arm-linux-gnueabihf 26393s gcc-arm-linux-gnueabihf libasan8 libatomic1 libblas3 libc-dev-bin libc6-dev 26393s libcc1-0 libcrypt-dev libexpat1-dev libgcc-13-dev libgfortran5 libgomp1 26393s libisl23 libjs-jquery libjs-sphinxdoc libjs-underscore liblapack3 libmpc3 26393s libpython3-all-dev libpython3-dev libpython3.12-dev libpython3.12t64 26393s libstdc++-13-dev libubsan1 linux-libc-dev python3-all python3-all-dev 26393s python3-dev python3-numpy python3.12-dev rpcsvc-proto zlib1g-dev 26393s 0 upgraded, 45 newly installed, 0 to remove and 1 not upgraded. 26393s Need to get 61.6 MB/61.6 MB of archives. 26393s After this operation, 191 MB of additional disk space will be used. 26393s Get:1 /tmp/autopkgtest.b6ixTN/6-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [736 B] 26393s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc-dev-bin armhf 2.39-0ubuntu6 [19.1 kB] 26393s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main armhf linux-libc-dev armhf 6.8.0-20.20 [1555 kB] 26395s Get:4 http://ftpmaster.internal/ubuntu noble/main armhf libcrypt-dev armhf 1:4.4.36-4 [136 kB] 26395s Get:5 http://ftpmaster.internal/ubuntu noble/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu6 [63.7 kB] 26395s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libc6-dev armhf 2.39-0ubuntu6 [1351 kB] 26396s Get:7 http://ftpmaster.internal/ubuntu noble/main armhf libisl23 armhf 0.26-3 [595 kB] 26396s Get:8 http://ftpmaster.internal/ubuntu noble/main armhf libmpc3 armhf 1.3.1-1 [46.4 kB] 26396s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [8753 kB] 26397s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main armhf cpp-13 armhf 13.2.0-19ubuntu1 [1036 B] 26397s Get:11 http://ftpmaster.internal/ubuntu noble/main armhf cpp-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [5320 B] 26397s Get:12 http://ftpmaster.internal/ubuntu noble/main armhf cpp armhf 4:13.2.0-7ubuntu1 [22.4 kB] 26397s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libcc1-0 armhf 14-20240315-1ubuntu1 [39.0 kB] 26397s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgomp1 armhf 14-20240315-1ubuntu1 [125 kB] 26397s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libatomic1 armhf 14-20240315-1ubuntu1 [7824 B] 26397s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libasan8 armhf 14-20240315-1ubuntu1 [2941 kB] 26398s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libubsan1 armhf 14-20240315-1ubuntu1 [1152 kB] 26398s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgcc-13-dev armhf 13.2.0-19ubuntu1 [900 kB] 26398s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [16.8 MB] 26399s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main armhf gcc-13 armhf 13.2.0-19ubuntu1 [448 kB] 26399s Get:21 http://ftpmaster.internal/ubuntu noble/main armhf gcc-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [1220 B] 26399s Get:22 http://ftpmaster.internal/ubuntu noble/main armhf gcc armhf 4:13.2.0-7ubuntu1 [5022 B] 26399s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libstdc++-13-dev armhf 13.2.0-19ubuntu1 [2403 kB] 26399s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main armhf g++-13-arm-linux-gnueabihf armhf 13.2.0-19ubuntu1 [9935 kB] 26400s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main armhf g++-13 armhf 13.2.0-19ubuntu1 [14.5 kB] 26400s Get:26 http://ftpmaster.internal/ubuntu noble/main armhf g++-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [966 B] 26400s Get:27 http://ftpmaster.internal/ubuntu noble/main armhf g++ armhf 4:13.2.0-7ubuntu1 [1090 B] 26400s Get:28 http://ftpmaster.internal/ubuntu noble/main armhf build-essential armhf 12.10ubuntu1 [4928 B] 26400s Get:29 http://ftpmaster.internal/ubuntu noble/main armhf libblas3 armhf 3.12.0-3 [123 kB] 26400s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libexpat1-dev armhf 2.6.1-2 [122 kB] 26400s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libgfortran5 armhf 14-20240315-1ubuntu1 [312 kB] 26400s Get:32 http://ftpmaster.internal/ubuntu noble/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 26400s Get:33 http://ftpmaster.internal/ubuntu noble/main armhf libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 26400s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libjs-sphinxdoc all 7.2.6-5 [149 kB] 26400s Get:35 http://ftpmaster.internal/ubuntu noble/main armhf liblapack3 armhf 3.12.0-3 [2085 kB] 26400s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12t64 armhf 3.12.2-4build3 [2056 kB] 26400s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main armhf zlib1g-dev armhf 1:1.3.dfsg-3.1ubuntu1 [880 kB] 26400s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3.12-dev armhf 3.12.2-4build3 [3901 kB] 26400s Get:39 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-dev armhf 3.12.2-0ubuntu1 [10.1 kB] 26400s Get:40 http://ftpmaster.internal/ubuntu noble-proposed/main armhf libpython3-all-dev armhf 3.12.2-0ubuntu1 [910 B] 26400s Get:41 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-all armhf 3.12.2-0ubuntu1 [886 B] 26400s Get:42 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3.12-dev armhf 3.12.2-4build3 [498 kB] 26400s Get:43 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-dev armhf 3.12.2-0ubuntu1 [26.7 kB] 26400s Get:44 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-all-dev armhf 3.12.2-0ubuntu1 [908 B] 26400s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main armhf python3-numpy armhf 1:1.24.2-3ubuntu1 [3610 kB] 26402s Fetched 61.6 MB in 7s (8340 kB/s) 26402s Selecting previously unselected package libc-dev-bin. 26403s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58284 files and directories currently installed.) 26403s Preparing to unpack .../00-libc-dev-bin_2.39-0ubuntu6_armhf.deb ... 26403s Unpacking libc-dev-bin (2.39-0ubuntu6) ... 26403s Selecting previously unselected package linux-libc-dev:armhf. 26403s Preparing to unpack .../01-linux-libc-dev_6.8.0-20.20_armhf.deb ... 26403s Unpacking linux-libc-dev:armhf (6.8.0-20.20) ... 26404s Selecting previously unselected package libcrypt-dev:armhf. 26404s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.36-4_armhf.deb ... 26404s Unpacking libcrypt-dev:armhf (1:4.4.36-4) ... 26404s Selecting previously unselected package rpcsvc-proto. 26404s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu6_armhf.deb ... 26404s Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ... 26404s Selecting previously unselected package libc6-dev:armhf. 26404s Preparing to unpack .../04-libc6-dev_2.39-0ubuntu6_armhf.deb ... 26404s Unpacking libc6-dev:armhf (2.39-0ubuntu6) ... 26405s Selecting previously unselected package libisl23:armhf. 26405s Preparing to unpack .../05-libisl23_0.26-3_armhf.deb ... 26405s Unpacking libisl23:armhf (0.26-3) ... 26405s Selecting previously unselected package libmpc3:armhf. 26405s Preparing to unpack .../06-libmpc3_1.3.1-1_armhf.deb ... 26405s Unpacking libmpc3:armhf (1.3.1-1) ... 26405s Selecting previously unselected package cpp-13-arm-linux-gnueabihf. 26405s Preparing to unpack .../07-cpp-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 26405s Unpacking cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 26406s Selecting previously unselected package cpp-13. 26406s Preparing to unpack .../08-cpp-13_13.2.0-19ubuntu1_armhf.deb ... 26406s Unpacking cpp-13 (13.2.0-19ubuntu1) ... 26406s Selecting previously unselected package cpp-arm-linux-gnueabihf. 26406s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 26406s Unpacking cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 26406s Selecting previously unselected package cpp. 26406s Preparing to unpack .../10-cpp_4%3a13.2.0-7ubuntu1_armhf.deb ... 26406s Unpacking cpp (4:13.2.0-7ubuntu1) ... 26406s Selecting previously unselected package libcc1-0:armhf. 26407s Preparing to unpack .../11-libcc1-0_14-20240315-1ubuntu1_armhf.deb ... 26407s Unpacking libcc1-0:armhf (14-20240315-1ubuntu1) ... 26407s Selecting previously unselected package libgomp1:armhf. 26407s Preparing to unpack .../12-libgomp1_14-20240315-1ubuntu1_armhf.deb ... 26407s Unpacking libgomp1:armhf (14-20240315-1ubuntu1) ... 26407s Selecting previously unselected package libatomic1:armhf. 26407s Preparing to unpack .../13-libatomic1_14-20240315-1ubuntu1_armhf.deb ... 26407s Unpacking libatomic1:armhf (14-20240315-1ubuntu1) ... 26407s Selecting previously unselected package libasan8:armhf. 26407s Preparing to unpack .../14-libasan8_14-20240315-1ubuntu1_armhf.deb ... 26407s Unpacking libasan8:armhf (14-20240315-1ubuntu1) ... 26407s Selecting previously unselected package libubsan1:armhf. 26407s Preparing to unpack .../15-libubsan1_14-20240315-1ubuntu1_armhf.deb ... 26407s Unpacking libubsan1:armhf (14-20240315-1ubuntu1) ... 26407s Selecting previously unselected package libgcc-13-dev:armhf. 26408s Preparing to unpack .../16-libgcc-13-dev_13.2.0-19ubuntu1_armhf.deb ... 26408s Unpacking libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 26408s Selecting previously unselected package gcc-13-arm-linux-gnueabihf. 26408s Preparing to unpack .../17-gcc-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 26408s Unpacking gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 26409s Selecting previously unselected package gcc-13. 26409s Preparing to unpack .../18-gcc-13_13.2.0-19ubuntu1_armhf.deb ... 26409s Unpacking gcc-13 (13.2.0-19ubuntu1) ... 26409s Selecting previously unselected package gcc-arm-linux-gnueabihf. 26409s Preparing to unpack .../19-gcc-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 26409s Unpacking gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 26410s Selecting previously unselected package gcc. 26410s Preparing to unpack .../20-gcc_4%3a13.2.0-7ubuntu1_armhf.deb ... 26410s Unpacking gcc (4:13.2.0-7ubuntu1) ... 26410s Selecting previously unselected package libstdc++-13-dev:armhf. 26410s Preparing to unpack .../21-libstdc++-13-dev_13.2.0-19ubuntu1_armhf.deb ... 26410s Unpacking libstdc++-13-dev:armhf (13.2.0-19ubuntu1) ... 26411s Selecting previously unselected package g++-13-arm-linux-gnueabihf. 26411s Preparing to unpack .../22-g++-13-arm-linux-gnueabihf_13.2.0-19ubuntu1_armhf.deb ... 26411s Unpacking g++-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 26412s Selecting previously unselected package g++-13. 26412s Preparing to unpack .../23-g++-13_13.2.0-19ubuntu1_armhf.deb ... 26412s Unpacking g++-13 (13.2.0-19ubuntu1) ... 26412s Selecting previously unselected package g++-arm-linux-gnueabihf. 26412s Preparing to unpack .../24-g++-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 26412s Unpacking g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 26412s Selecting previously unselected package g++. 26412s Preparing to unpack .../25-g++_4%3a13.2.0-7ubuntu1_armhf.deb ... 26412s Unpacking g++ (4:13.2.0-7ubuntu1) ... 26412s Selecting previously unselected package build-essential. 26412s Preparing to unpack .../26-build-essential_12.10ubuntu1_armhf.deb ... 26412s Unpacking build-essential (12.10ubuntu1) ... 26412s Selecting previously unselected package libblas3:armhf. 26412s Preparing to unpack .../27-libblas3_3.12.0-3_armhf.deb ... 26412s Unpacking libblas3:armhf (3.12.0-3) ... 26412s Selecting previously unselected package libexpat1-dev:armhf. 26412s Preparing to unpack .../28-libexpat1-dev_2.6.1-2_armhf.deb ... 26412s Unpacking libexpat1-dev:armhf (2.6.1-2) ... 26413s Selecting previously unselected package libgfortran5:armhf. 26413s Preparing to unpack .../29-libgfortran5_14-20240315-1ubuntu1_armhf.deb ... 26413s Unpacking libgfortran5:armhf (14-20240315-1ubuntu1) ... 26413s Selecting previously unselected package libjs-jquery. 26413s Preparing to unpack .../30-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 26413s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 26413s Selecting previously unselected package libjs-underscore. 26413s Preparing to unpack .../31-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 26413s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 26413s Selecting previously unselected package libjs-sphinxdoc. 26413s Preparing to unpack .../32-libjs-sphinxdoc_7.2.6-5_all.deb ... 26413s Unpacking libjs-sphinxdoc (7.2.6-5) ... 26413s Selecting previously unselected package liblapack3:armhf. 26413s Preparing to unpack .../33-liblapack3_3.12.0-3_armhf.deb ... 26413s Unpacking liblapack3:armhf (3.12.0-3) ... 26413s Selecting previously unselected package libpython3.12t64:armhf. 26414s Preparing to unpack .../34-libpython3.12t64_3.12.2-4build3_armhf.deb ... 26414s Unpacking libpython3.12t64:armhf (3.12.2-4build3) ... 26414s Selecting previously unselected package zlib1g-dev:armhf. 26414s Preparing to unpack .../35-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu1_armhf.deb ... 26414s Unpacking zlib1g-dev:armhf (1:1.3.dfsg-3.1ubuntu1) ... 26414s Selecting previously unselected package libpython3.12-dev:armhf. 26414s Preparing to unpack .../36-libpython3.12-dev_3.12.2-4build3_armhf.deb ... 26414s Unpacking libpython3.12-dev:armhf (3.12.2-4build3) ... 26415s Selecting previously unselected package libpython3-dev:armhf. 26415s Preparing to unpack .../37-libpython3-dev_3.12.2-0ubuntu1_armhf.deb ... 26415s Unpacking libpython3-dev:armhf (3.12.2-0ubuntu1) ... 26416s Selecting previously unselected package libpython3-all-dev:armhf. 26416s Preparing to unpack .../38-libpython3-all-dev_3.12.2-0ubuntu1_armhf.deb ... 26416s Unpacking libpython3-all-dev:armhf (3.12.2-0ubuntu1) ... 26416s Selecting previously unselected package python3-all. 26416s Preparing to unpack .../39-python3-all_3.12.2-0ubuntu1_armhf.deb ... 26416s Unpacking python3-all (3.12.2-0ubuntu1) ... 26416s Selecting previously unselected package python3.12-dev. 26416s Preparing to unpack .../40-python3.12-dev_3.12.2-4build3_armhf.deb ... 26416s Unpacking python3.12-dev (3.12.2-4build3) ... 26416s Selecting previously unselected package python3-dev. 26416s Preparing to unpack .../41-python3-dev_3.12.2-0ubuntu1_armhf.deb ... 26416s Unpacking python3-dev (3.12.2-0ubuntu1) ... 26416s Selecting previously unselected package python3-all-dev. 26416s Preparing to unpack .../42-python3-all-dev_3.12.2-0ubuntu1_armhf.deb ... 26416s Unpacking python3-all-dev (3.12.2-0ubuntu1) ... 26416s Selecting previously unselected package python3-numpy. 26417s Preparing to unpack .../43-python3-numpy_1%3a1.24.2-3ubuntu1_armhf.deb ... 26417s Unpacking python3-numpy (1:1.24.2-3ubuntu1) ... 26418s Selecting previously unselected package autopkgtest-satdep. 26418s Preparing to unpack .../44-6-autopkgtest-satdep.deb ... 26418s Unpacking autopkgtest-satdep (0) ... 26418s Setting up linux-libc-dev:armhf (6.8.0-20.20) ... 26418s Setting up python3-all (3.12.2-0ubuntu1) ... 26418s Setting up libgomp1:armhf (14-20240315-1ubuntu1) ... 26418s Setting up libpython3.12t64:armhf (3.12.2-4build3) ... 26418s Setting up libblas3:armhf (3.12.0-3) ... 26418s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 26418s Setting up rpcsvc-proto (1.4.2-0ubuntu6) ... 26418s Setting up libmpc3:armhf (1.3.1-1) ... 26418s Setting up libatomic1:armhf (14-20240315-1ubuntu1) ... 26418s Setting up libgfortran5:armhf (14-20240315-1ubuntu1) ... 26418s Setting up libubsan1:armhf (14-20240315-1ubuntu1) ... 26418s Setting up libcrypt-dev:armhf (1:4.4.36-4) ... 26418s Setting up libasan8:armhf (14-20240315-1ubuntu1) ... 26418s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 26418s Setting up libisl23:armhf (0.26-3) ... 26418s Setting up libc-dev-bin (2.39-0ubuntu6) ... 26418s Setting up libcc1-0:armhf (14-20240315-1ubuntu1) ... 26418s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 26418s Setting up liblapack3:armhf (3.12.0-3) ... 26418s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 26418s Setting up cpp-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 26418s Setting up python3-numpy (1:1.24.2-3ubuntu1) ... 26427s Setting up libjs-sphinxdoc (7.2.6-5) ... 26427s Setting up libgcc-13-dev:armhf (13.2.0-19ubuntu1) ... 26427s Setting up libc6-dev:armhf (2.39-0ubuntu6) ... 26427s Setting up cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 26427s Setting up libstdc++-13-dev:armhf (13.2.0-19ubuntu1) ... 26427s Setting up cpp-13 (13.2.0-19ubuntu1) ... 26427s Setting up gcc-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 26427s Setting up libexpat1-dev:armhf (2.6.1-2) ... 26427s Setting up gcc-13 (13.2.0-19ubuntu1) ... 26427s Setting up zlib1g-dev:armhf (1:1.3.dfsg-3.1ubuntu1) ... 26427s Setting up cpp (4:13.2.0-7ubuntu1) ... 26427s Setting up gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 26427s Setting up g++-13-arm-linux-gnueabihf (13.2.0-19ubuntu1) ... 26427s Setting up g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 26427s Setting up g++-13 (13.2.0-19ubuntu1) ... 26427s Setting up libpython3.12-dev:armhf (3.12.2-4build3) ... 26427s Setting up gcc (4:13.2.0-7ubuntu1) ... 26427s Setting up python3.12-dev (3.12.2-4build3) ... 26427s Setting up g++ (4:13.2.0-7ubuntu1) ... 26427s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 26427s Setting up build-essential (12.10ubuntu1) ... 26427s Setting up libpython3-dev:armhf (3.12.2-0ubuntu1) ... 26427s Setting up libpython3-all-dev:armhf (3.12.2-0ubuntu1) ... 26427s Setting up python3-dev (3.12.2-0ubuntu1) ... 26427s Setting up python3-all-dev (3.12.2-0ubuntu1) ... 26427s Setting up autopkgtest-satdep (0) ... 26427s Processing triggers for man-db (2.12.0-3build4) ... 26430s Processing triggers for libc-bin (2.39-0ubuntu6) ... 26449s (Reading database ... 62364 files and directories currently installed.) 26449s Removing autopkgtest-satdep (0) ... 26468s autopkgtest [22:33:12]: test capi: [----------------------- 26471s === python3.12 === 26472s /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/setup.py:10: DeprecationWarning: 26472s 26472s `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 26472s of the deprecation of `distutils` itself. It will be removed for 26472s Python >= 3.12. For older Python versions it will remain present. 26472s It is recommended to use `setuptools < 60.0` for those Python versions. 26472s For more details, see: 26472s https://numpy.org/devdocs/reference/distutils_status_migration.html 26472s 26472s 26472s from numpy.distutils.core import setup 26473s running build 26473s running config_cc 26473s INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options 26473s running config_fc 26473s INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options 26473s running build_src 26473s INFO: build_src 26473s INFO: building extension "npufunc_directory.npufunc" sources 26473s INFO: build_src: building npy-pkg config files 26473s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 26473s !! 26473s 26473s ******************************************************************************** 26473s Please avoid running ``setup.py`` directly. 26473s Instead, use pypa/build, pypa/installer or other 26473s standards-based tools. 26473s 26473s See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 26473s ******************************************************************************** 26473s 26473s !! 26473s self.initialize_options() 26473s running build_ext 26473s INFO: customize UnixCCompiler 26473s INFO: customize UnixCCompiler using build_ext 26473s INFO: CCompilerOpt.cc_test_cexpr[1089] : testing compiler expression defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) 26473s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26473s 26473s creating /tmp/tmpd2_fotfz/tmp 26473s creating /tmp/tmpd2_fotfz/tmp/tmpd2_fotfz 26473s INFO: compile options: '-I/usr/include/python3.12 -c' 26473s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native) 26473s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26473s 26473s creating /tmp/tmpd2_fotfz/usr 26473s creating /tmp/tmpd2_fotfz/usr/lib 26473s creating /tmp/tmpd2_fotfz/usr/lib/python3 26473s creating /tmp/tmpd2_fotfz/usr/lib/python3/dist-packages 26473s creating /tmp/tmpd2_fotfz/usr/lib/python3/dist-packages/numpy 26473s creating /tmp/tmpd2_fotfz/usr/lib/python3/dist-packages/numpy/distutils 26473s creating /tmp/tmpd2_fotfz/usr/lib/python3/dist-packages/numpy/distutils/checks 26473s INFO: compile options: '-I/usr/include/python3.12 -c' 26473s extra options: '-march=native' 26473s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3) 26473s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26473s 26473s INFO: compile options: '-I/usr/include/python3.12 -c' 26473s extra options: '-O3' 26473s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror) 26473s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26473s 26473s INFO: compile options: '-I/usr/include/python3.12 -c' 26473s extra options: '-Werror' 26473s INFO: CCompilerOpt.__init__[1786] : check requested baseline 26473s INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features 26473s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon) 26473s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26473s 26473s INFO: compile options: '-I/usr/include/python3.12 -c' 26473s extra options: '-mfpu=neon' 26473s INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON' with flags (-mfpu=neon) 26473s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26473s 26473s INFO: compile options: '-I/usr/include/python3.12 -c' 26473s extra options: '-mfpu=neon -Werror' 26474s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp16 -mfp16-format=ieee) 26474s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26474s 26474s INFO: compile options: '-I/usr/include/python3.12 -c' 26474s extra options: '-mfpu=neon-fp16 -mfp16-format=ieee' 26474s INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_FP16' with flags (-mfpu=neon-fp16 -mfp16-format=ieee) 26474s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26474s 26474s INFO: compile options: '-I/usr/include/python3.12 -c' 26474s extra options: '-mfpu=neon-fp16 -mfp16-format=ieee -Werror' 26475s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-vfpv4) 26475s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26475s 26475s INFO: compile options: '-I/usr/include/python3.12 -c' 26475s extra options: '-mfpu=neon-vfpv4' 26475s INFO: CCompilerOpt.feature_test[1551] : testing feature 'NEON_VFPV4' with flags (-mfp16-format=ieee -mfpu=neon-vfpv4) 26475s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26475s 26475s INFO: compile options: '-I/usr/include/python3.12 -c' 26475s extra options: '-mfp16-format=ieee -mfpu=neon-vfpv4 -Werror' 26475s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfpu=neon-fp-armv8 -march=armv8-a+simd) 26475s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26475s 26475s INFO: compile options: '-I/usr/include/python3.12 -c' 26475s extra options: '-mfpu=neon-fp-armv8 -march=armv8-a+simd' 26475s INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMD' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8-a+simd) 26475s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26475s 26475s INFO: compile options: '-I/usr/include/python3.12 -c' 26475s extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8-a+simd -Werror' 26476s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16) 26476s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26476s 26476s INFO: compile options: '-I/usr/include/python3.12 -c' 26476s extra options: '-march=armv8.2-a+fp16' 26476s INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDHP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16) 26476s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26476s 26476s INFO: compile options: '-I/usr/include/python3.12 -c' 26476s extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16 -Werror' 26477s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+fp16fml) 26477s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26477s 26477s INFO: compile options: '-I/usr/include/python3.12 -c' 26477s extra options: '-march=armv8.2-a+fp16fml' 26477s INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDFHM' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16+fp16fml) 26477s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26477s 26477s INFO: compile options: '-I/usr/include/python3.12 -c' 26477s extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+fp16+fp16fml -Werror' 26478s INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=armv8.2-a+dotprod) 26478s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26478s 26478s INFO: compile options: '-I/usr/include/python3.12 -c' 26478s extra options: '-march=armv8.2-a+dotprod' 26478s INFO: CCompilerOpt.feature_test[1551] : testing feature 'ASIMDDP' with flags (-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+dotprod) 26478s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26478s 26478s INFO: compile options: '-I/usr/include/python3.12 -c' 26478s extra options: '-mfp16-format=ieee -mfpu=neon-fp-armv8 -march=armv8.2-a+dotprod -Werror' 26478s INFO: CCompilerOpt.__init__[1811] : initialize targets groups 26478s INFO: CCompilerOpt.__init__[1813] : parse target group simd_test 26478s INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets ((FMA3 AVX2) FMA4 VSX XOP VSX3 VXE VXE2 VSX2 AVX512F SSE2 SSE42 AVX512_SKX VSX4 VX) not part of baseline or dispatch-able features 26478s INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-armv7l-3.12/numpy/distutils/include/npy_cpu_dispatch_config.h) 26478s WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-armv7l-3.12/numpy/distutils/include does not exist, creating it 26478s INFO: building 'npufunc_directory.npufunc' extension 26478s INFO: compiling C sources 26478s INFO: C compiler: arm-linux-gnueabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fPIC 26478s 26478s INFO: compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-armv7l-3.12/numpy/distutils/include -I/usr/include/python3.12 -c' 26478s INFO: arm-linux-gnueabihf-gcc: ufunc.c 26479s In file included from /usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1940, 26479s from ufunc.c:2: 26479s /usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 26479s 17 | #warning "Using deprecated NumPy API, disable it with " \ 26479s | ^~~~~~~ 26479s ufunc.c:14:36: warning: initialization of ‘void (*)(char **, const npy_intp *, const npy_intp *, void *)’ {aka ‘void (*)(char **, const int *, const int *, void *)’} from incompatible pointer type ‘void (*)(char **, npy_intp *, npy_intp *, void *)’ {aka ‘void (*)(char **, int *, int *, void *)’} [-Wincompatible-pointer-types] 26479s 14 | PyUFuncGenericFunction funcs[1] = {&double_logit}; 26479s | ^ 26479s ufunc.c:14:36: note: (near initialization for ‘funcs[0]’) 26479s ufunc.c: In function ‘setupmodule’: 26479s ufunc.c:21:5: warning: ‘return’ with a value, in function returning void [-Wreturn-type] 26479s 21 | import_array(); 26479s | ^~~~~~~~~~~~ 26479s ufunc.c:18:13: note: declared here 26479s 18 | static void setupmodule(PyObject * m) 26479s | ^~~~~~~~~~~ 26479s ufunc.c:22:5: warning: ‘return’ with a value, in function returning void [-Wreturn-type] 26479s 22 | import_umath(); 26479s | ^~~~~~~~~~~~ 26479s ufunc.c:18:13: note: declared here 26479s 18 | static void setupmodule(PyObject * m) 26479s | ^~~~~~~~~~~ 26479s ufunc.c: In function ‘PyInit_npufunc’: 26479s ufunc.c:42:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 26479s 42 | return; 26479s | ^~~~~~ 26479s ufunc.c:38:16: note: declared here 26479s 38 | PyMODINIT_FUNC PyInit_npufunc(void) 26479s | ^~~~~~~~~~~~~~ 26479s creating build/lib.linux-armv7l-cpython-312 26479s creating build/lib.linux-armv7l-cpython-312/npufunc_directory 26479s INFO: arm-linux-gnueabihf-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-armv7l-cpython-312/ufunc.o -L/usr/lib/arm-linux-gnueabihf -o build/lib.linux-armv7l-cpython-312/npufunc_directory/npufunc.cpython-312-arm-linux-gnueabihf.so 26479s INFO: 26479s ########### EXT COMPILER OPTIMIZATION ########### 26479s INFO: Platform : 26479s Architecture: armhf 26479s Compiler : gcc 26479s 26479s CPU baseline : 26479s Requested : 'min' 26479s Enabled : none 26479s Flags : none 26479s Extra checks: none 26479s 26479s CPU dispatch : 26479s Requested : 'max -xop -fma4' 26479s Enabled : NEON NEON_FP16 NEON_VFPV4 ASIMD ASIMDHP ASIMDDP ASIMDFHM 26479s Generated : none 26479s INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 26481s /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/setup.py:10: DeprecationWarning: 26481s 26481s `numpy.distutils` is deprecated since NumPy 1.23.0, as a result 26481s of the deprecation of `distutils` itself. It will be removed for 26481s Python >= 3.12. For older Python versions it will remain present. 26481s It is recommended to use `setuptools < 60.0` for those Python versions. 26481s For more details, see: 26481s https://numpy.org/devdocs/reference/distutils_status_migration.html 26481s 26481s 26481s from numpy.distutils.core import setup 26481s running install 26481s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. 26481s !! 26481s 26481s ******************************************************************************** 26481s Please avoid running ``setup.py`` directly. 26481s Instead, use pypa/build, pypa/installer or other 26481s standards-based tools. 26481s 26481s See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 26481s ******************************************************************************** 26481s 26481s !! 26481s self.initialize_options() 26481s running build 26481s running config_cc 26481s INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options 26481s running config_fc 26481s INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options 26481s running build_src 26481s INFO: build_src 26481s INFO: building extension "npufunc_directory.npufunc" sources 26481s INFO: build_src: building npy-pkg config files 26481s running build_ext 26481s INFO: customize UnixCCompiler 26481s INFO: customize UnixCCompiler using build_ext 26481s INFO: CCompilerOpt.__init__[813] : load cache from file -> /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 26481s INFO: CCompilerOpt.__init__[824] : hit the file cache 26481s running install_lib 26482s creating /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/inst 26482s creating /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/inst/lib 26482s creating /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/inst/lib/python3 26482s creating /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/inst/lib/python3/dist-packages 26482s creating /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/inst/lib/python3/dist-packages/npufunc_directory 26482s copying build/lib.linux-armv7l-cpython-312/npufunc_directory/npufunc.cpython-312-arm-linux-gnueabihf.so -> /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/inst/lib/python3/dist-packages/npufunc_directory 26482s running install_egg_info 26482s running egg_info 26482s creating npufunc_directory.egg-info 26482s writing npufunc_directory.egg-info/PKG-INFO 26482s writing dependency_links to npufunc_directory.egg-info/dependency_links.txt 26482s writing top-level names to npufunc_directory.egg-info/top_level.txt 26482s writing manifest file 'npufunc_directory.egg-info/SOURCES.txt' 26482s reading manifest file 'npufunc_directory.egg-info/SOURCES.txt' 26482s writing manifest file 'npufunc_directory.egg-info/SOURCES.txt' 26482s Copying npufunc_directory.egg-info to /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/inst/lib/python3/dist-packages/npufunc_directory-0.0.0.egg-info 26482s Skipping SOURCES.txt 26482s running install_scripts 26482s running install_clib 26482s INFO: customize UnixCCompiler 26482s INFO: 26482s ########### EXT COMPILER OPTIMIZATION ########### 26482s INFO: Platform : 26482s Architecture: armhf 26482s Compiler : gcc 26482s 26482s CPU baseline : 26482s Requested : 'min' 26482s Enabled : none 26482s Flags : none 26482s Extra checks: none 26482s 26482s CPU dispatch : 26482s Requested : 'max -xop -fma4' 26482s Enabled : NEON NEON_FP16 NEON_VFPV4 ASIMD ASIMDHP ASIMDDP ASIMDFHM 26482s Generated : none 26482s INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/autopkgtest.b6ixTN/autopkgtest_tmp/build/temp.linux-armv7l-cpython-312/ccompiler_opt_cache_ext.py 26487s Segmentation fault (core dumped) 26487s autopkgtest [22:33:31]: test capi: -----------------------] 26492s autopkgtest [22:33:36]: test capi: - - - - - - - - - - results - - - - - - - - - - 26492s capi FAIL non-zero exit status 139 26496s autopkgtest [22:33:40]: @@@@@@@@@@@@@@@@@@@@ summary 26496s python3 FAIL timed out 26496s openblas PASS 26496s atlas FAIL timed out 26496s f2py PASS 26496s distutils PASS 26496s capi FAIL non-zero exit status 139